@Stability(value=Stable)
public static interface CfnConfigRule.SourceProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.config.*;
SourceProperty sourceProperty = SourceProperty.builder()
.owner("owner")
// the properties below are optional
.customPolicyDetails(CustomPolicyDetailsProperty.builder()
.enableDebugLogDelivery(false)
.policyRuntime("policyRuntime")
.policyText("policyText")
.build())
.sourceDetails(List.of(SourceDetailProperty.builder()
.eventSource("eventSource")
.messageType("messageType")
// the properties below are optional
.maximumExecutionFrequency("maximumExecutionFrequency")
.build()))
.sourceIdentifier("sourceIdentifier")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnConfigRule.SourceProperty.Builder
A builder for
CfnConfigRule.SourceProperty |
static class |
CfnConfigRule.SourceProperty.Jsii$Proxy
An implementation for
CfnConfigRule.SourceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnConfigRule.SourceProperty.Builder |
builder() |
default Object |
getCustomPolicyDetails()
`CfnConfigRule.SourceProperty.CustomPolicyDetails`.
|
String |
getOwner()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
default Object |
getSourceDetails()
Provides the source and the message types that cause AWS Config to evaluate your AWS resources against a rule.
|
default String |
getSourceIdentifier()
For AWS Config Managed rules, a predefined identifier from a list.
|
@Stability(value=Stable) @NotNull String getOwner()
AWS Config Managed Rules are predefined rules owned by AWS . For more information, see AWS Config Managed Rules in the AWS Config developer guide.
AWS Config Custom Rules are rules that you can develop either with Guard ( CUSTOM_POLICY ) or AWS Lambda ( CUSTOM_LAMBDA ). For more information, see AWS Config Custom Rules in the AWS Config developer guide.
@Stability(value=Stable) @Nullable default Object getCustomPolicyDetails()
@Stability(value=Stable) @Nullable default Object getSourceDetails()
It also provides the frequency with which you want AWS Config to run evaluations for the rule if the trigger type is periodic.
If the owner is set to CUSTOM_POLICY , the only acceptable values for the AWS Config rule trigger message type are ConfigurationItemChangeNotification and OversizedConfigurationItemChangeNotification .
@Stability(value=Stable) @Nullable default String getSourceIdentifier()
For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see List of AWS Config Managed Rules .
For AWS Config Custom Lambda rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name .
For AWS Config Custom Policy rules, this field will be ignored.
@Stability(value=Stable) static CfnConfigRule.SourceProperty.Builder builder()
Copyright © 2022. All rights reserved.