Class CfnConfigRulePropsMixin.SourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigRulePropsMixin.SourceProperty>
- Enclosing interface:
CfnConfigRulePropsMixin.SourceProperty
CfnConfigRulePropsMixin.SourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customPolicyDetails(CfnConfigRulePropsMixin.CustomPolicyDetailsProperty customPolicyDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getCustomPolicyDetails()customPolicyDetails(IResolvable customPolicyDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getCustomPolicyDetails()Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getOwner()sourceDetails(List<? extends Object> sourceDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceDetails()sourceDetails(IResolvable sourceDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceDetails()sourceIdentifier(String sourceIdentifier) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceIdentifier()sourceIdentifier(IFunctionRef sourceIdentifier) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customPolicyDetails
@Stability(Stable) public CfnConfigRulePropsMixin.SourceProperty.Builder customPolicyDetails(IResolvable customPolicyDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getCustomPolicyDetails()- Parameters:
customPolicyDetails- Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set toCUSTOM_POLICY.- Returns:
this
-
customPolicyDetails
@Stability(Stable) public CfnConfigRulePropsMixin.SourceProperty.Builder customPolicyDetails(CfnConfigRulePropsMixin.CustomPolicyDetailsProperty customPolicyDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getCustomPolicyDetails()- Parameters:
customPolicyDetails- Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set toCUSTOM_POLICY.- Returns:
this
-
owner
Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getOwner()- Parameters:
owner- Indicates whether AWS or the customer owns and manages the AWS Config rule. 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 .- Returns:
this
-
sourceDetails
@Stability(Stable) public CfnConfigRulePropsMixin.SourceProperty.Builder sourceDetails(IResolvable sourceDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceDetails()- Parameters:
sourceDetails- Provides the source and the message types that cause AWS Config to evaluate your AWS resources against a rule. 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 areConfigurationItemChangeNotificationandOversizedConfigurationItemChangeNotification.- Returns:
this
-
sourceDetails
@Stability(Stable) public CfnConfigRulePropsMixin.SourceProperty.Builder sourceDetails(List<? extends Object> sourceDetails) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceDetails()- Parameters:
sourceDetails- Provides the source and the message types that cause AWS Config to evaluate your AWS resources against a rule. 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 areConfigurationItemChangeNotificationandOversizedConfigurationItemChangeNotification.- Returns:
this
-
sourceIdentifier
@Stability(Stable) public CfnConfigRulePropsMixin.SourceProperty.Builder sourceIdentifier(String sourceIdentifier) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceIdentifier()- Parameters:
sourceIdentifier- For AWS Config Managed rules, a predefined identifier from a list. For example,IAM_PASSWORD_POLICYis 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.
- Returns:
this
-
sourceIdentifier
@Stability(Stable) public CfnConfigRulePropsMixin.SourceProperty.Builder sourceIdentifier(IFunctionRef sourceIdentifier) Sets the value ofCfnConfigRulePropsMixin.SourceProperty.getSourceIdentifier()- Parameters:
sourceIdentifier- For AWS Config Managed rules, a predefined identifier from a list. For example,IAM_PASSWORD_POLICYis 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.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConfigRulePropsMixin.SourceProperty>- Returns:
- a new instance of
CfnConfigRulePropsMixin.SourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-