Interface Source.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Source.Builder,
,Source> SdkBuilder<Source.Builder,
,Source> SdkPojo
- Enclosing class:
Source
-
Method Summary
Modifier and TypeMethodDescriptiondefault Source.Builder
customPolicyDetails
(Consumer<CustomPolicyDetails.Builder> customPolicyDetails) Provides the runtime system, policy definition, and whether debug logging is enabled.customPolicyDetails
(CustomPolicyDetails customPolicyDetails) Provides the runtime system, policy definition, and whether debug logging is enabled.Indicates whether Amazon Web Services or the customer owns and manages the Config rule.Indicates whether Amazon Web Services or the customer owns and manages the Config rule.sourceDetails
(Collection<SourceDetail> sourceDetails) Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule.sourceDetails
(Consumer<SourceDetail.Builder>... sourceDetails) Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule.sourceDetails
(SourceDetail... sourceDetails) Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule.sourceIdentifier
(String sourceIdentifier) For Config Managed rules, a predefined identifier from a list.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
owner
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.
Config Custom Rules are rules that you can develop either with Guard (
CUSTOM_POLICY
) or Lambda (CUSTOM_LAMBDA
). For more information, see Config Custom Rules in the Config developer guide.- Parameters:
owner
- Indicates whether Amazon Web Services or the customer owns and manages the Config rule.Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.
Config Custom Rules are rules that you can develop either with Guard (
CUSTOM_POLICY
) or Lambda (CUSTOM_LAMBDA
). For more information, see Config Custom Rules in the Config developer guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
owner
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.
Config Custom Rules are rules that you can develop either with Guard (
CUSTOM_POLICY
) or Lambda (CUSTOM_LAMBDA
). For more information, see Config Custom Rules in the Config developer guide.- Parameters:
owner
- Indicates whether Amazon Web Services or the customer owns and manages the Config rule.Config Managed Rules are predefined rules owned by Amazon Web Services. For more information, see Config Managed Rules in the Config developer guide.
Config Custom Rules are rules that you can develop either with Guard (
CUSTOM_POLICY
) or Lambda (CUSTOM_LAMBDA
). For more information, see Config Custom Rules in the Config developer guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceIdentifier
For Config Managed rules, a predefined identifier from a list. For example,
IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see List of Config Managed Rules.For Config Custom Lambda rules, the identifier is the Amazon Resource Name (ARN) of the rule's Lambda function, such as
arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name
.For Config Custom Policy rules, this field will be ignored.
- Parameters:
sourceIdentifier
- For Config Managed rules, a predefined identifier from a list. For example,IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see List of Config Managed Rules.For Config Custom Lambda rules, the identifier is the Amazon Resource Name (ARN) of the rule's Lambda function, such as
arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name
.For Config Custom Policy rules, this field will be ignored.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDetails
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want 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 Config rule trigger message type areConfigurationItemChangeNotification
andOversizedConfigurationItemChangeNotification
.- Parameters:
sourceDetails
- Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want 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 Config rule trigger message type areConfigurationItemChangeNotification
andOversizedConfigurationItemChangeNotification
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDetails
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want 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 Config rule trigger message type areConfigurationItemChangeNotification
andOversizedConfigurationItemChangeNotification
.- Parameters:
sourceDetails
- Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want 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 Config rule trigger message type areConfigurationItemChangeNotification
andOversizedConfigurationItemChangeNotification
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceDetails
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources against a rule. It also provides the frequency with which you want Config to run evaluations for the rule if the trigger type is periodic.
If the owner is set to
This is a convenience method that creates an instance of theCUSTOM_POLICY
, the only acceptable values for the Config rule trigger message type areConfigurationItemChangeNotification
andOversizedConfigurationItemChangeNotification
.SourceDetail.Builder
avoiding the need to create one manually viaSourceDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceDetails(List<SourceDetail>)
.- Parameters:
sourceDetails
- a consumer that will call methods onSourceDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customPolicyDetails
Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to
CUSTOM_POLICY
.- Parameters:
customPolicyDetails
- Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set toCUSTOM_POLICY
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customPolicyDetails
default Source.Builder customPolicyDetails(Consumer<CustomPolicyDetails.Builder> customPolicyDetails) Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set to
This is a convenience method that creates an instance of theCUSTOM_POLICY
.CustomPolicyDetails.Builder
avoiding the need to create one manually viaCustomPolicyDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomPolicyDetails(CustomPolicyDetails)
.- Parameters:
customPolicyDetails
- a consumer that will call methods onCustomPolicyDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-