Interface ConfigRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ConfigRule.Builder,ConfigRule>,SdkBuilder<ConfigRule.Builder,ConfigRule>,SdkPojo
- Enclosing class:
- ConfigRule
public static interface ConfigRule.Builder extends SdkPojo, CopyableBuilder<ConfigRule.Builder,ConfigRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConfigRule.BuilderconfigRuleArn(String configRuleArn)The Amazon Resource Name (ARN) of the Config rule.ConfigRule.BuilderconfigRuleId(String configRuleId)The ID of the Config rule.ConfigRule.BuilderconfigRuleName(String configRuleName)The name that you assign to the Config rule.ConfigRule.BuilderconfigRuleState(String configRuleState)Indicates whether the Config rule is active or is currently being deleted by Config.ConfigRule.BuilderconfigRuleState(ConfigRuleState configRuleState)Indicates whether the Config rule is active or is currently being deleted by Config.ConfigRule.BuildercreatedBy(String createdBy)Service principal name of the service that created the rule.ConfigRule.Builderdescription(String description)The description that you provide for the Config rule.ConfigRule.BuilderevaluationModes(Collection<EvaluationModeConfiguration> evaluationModes)The modes the Config rule can be evaluated in.ConfigRule.BuilderevaluationModes(Consumer<EvaluationModeConfiguration.Builder>... evaluationModes)The modes the Config rule can be evaluated in.ConfigRule.BuilderevaluationModes(EvaluationModeConfiguration... evaluationModes)The modes the Config rule can be evaluated in.ConfigRule.BuilderinputParameters(String inputParameters)A string, in JSON format, that is passed to the Config rule Lambda function.ConfigRule.BuildermaximumExecutionFrequency(String maximumExecutionFrequency)The maximum frequency with which Config runs evaluations for a rule.ConfigRule.BuildermaximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)The maximum frequency with which Config runs evaluations for a rule.default ConfigRule.Builderscope(Consumer<Scope.Builder> scope)Defines which resources can trigger an evaluation for the rule.ConfigRule.Builderscope(Scope scope)Defines which resources can trigger an evaluation for the rule.default ConfigRule.Buildersource(Consumer<Source.Builder> source)Provides the rule owner (Amazon Web Servicesfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.ConfigRule.Buildersource(Source source)Provides the rule owner (Amazon Web Servicesfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.-
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 Detail
-
configRuleName
ConfigRule.Builder configRuleName(String configRuleName)
The name that you assign to the Config rule. The name is required if you are adding a new rule.
- Parameters:
configRuleName- The name that you assign to the Config rule. The name is required if you are adding a new rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configRuleArn
ConfigRule.Builder configRuleArn(String configRuleArn)
The Amazon Resource Name (ARN) of the Config rule.
- Parameters:
configRuleArn- The Amazon Resource Name (ARN) of the Config rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configRuleId
ConfigRule.Builder configRuleId(String configRuleId)
The ID of the Config rule.
- Parameters:
configRuleId- The ID of the Config rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
ConfigRule.Builder description(String description)
The description that you provide for the Config rule.
- Parameters:
description- The description that you provide for the Config rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
ConfigRule.Builder scope(Scope scope)
Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.
The scope can be empty.
- Parameters:
scope- Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.The scope can be empty.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
default ConfigRule.Builder scope(Consumer<Scope.Builder> scope)
Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.
This is a convenience method that creates an instance of theThe scope can be empty.
Scope.Builderavoiding the need to create one manually viaScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscope(Scope).- Parameters:
scope- a consumer that will call methods onScope.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
scope(Scope)
-
source
ConfigRule.Builder source(Source source)
Provides the rule owner (
Amazon Web Servicesfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.- Parameters:
source- Provides the rule owner (Amazon Web Servicesfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
source
default ConfigRule.Builder source(Consumer<Source.Builder> source)
Provides the rule owner (
This is a convenience method that creates an instance of theAmazon Web Servicesfor managed rules,CUSTOM_POLICYfor Custom Policy rules, andCUSTOM_LAMBDAfor Custom Lambda rules), the rule identifier, and the notifications that cause the function to evaluate your Amazon Web Services resources.Source.Builderavoiding the need to create one manually viaSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosource(Source).- Parameters:
source- a consumer that will call methods onSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
source(Source)
-
inputParameters
ConfigRule.Builder inputParameters(String inputParameters)
A string, in JSON format, that is passed to the Config rule Lambda function.
- Parameters:
inputParameters- A string, in JSON format, that is passed to the Config rule Lambda function.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumExecutionFrequency
ConfigRule.Builder maximumExecutionFrequency(String maximumExecutionFrequency)
The maximum frequency with which Config runs evaluations for a rule. You can specify a value for
MaximumExecutionFrequencywhen:-
This is for an Config managed rule that is triggered at a periodic frequency.
-
Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequencyparameter.- Parameters:
maximumExecutionFrequency- The maximum frequency with which Config runs evaluations for a rule. You can specify a value forMaximumExecutionFrequencywhen:-
This is for an Config managed rule that is triggered at a periodic frequency.
-
Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequencyparameter.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MaximumExecutionFrequency,MaximumExecutionFrequency
-
-
maximumExecutionFrequency
ConfigRule.Builder maximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
The maximum frequency with which Config runs evaluations for a rule. You can specify a value for
MaximumExecutionFrequencywhen:-
This is for an Config managed rule that is triggered at a periodic frequency.
-
Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequencyparameter.- Parameters:
maximumExecutionFrequency- The maximum frequency with which Config runs evaluations for a rule. You can specify a value forMaximumExecutionFrequencywhen:-
This is for an Config managed rule that is triggered at a periodic frequency.
-
Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the
MaximumExecutionFrequencyparameter.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MaximumExecutionFrequency,MaximumExecutionFrequency
-
-
configRuleState
ConfigRule.Builder configRuleState(String configRuleState)
Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.
Config sets the state of the rule to
EVALUATINGtemporarily after you use theStartConfigRulesEvaluationrequest to evaluate your resources against the Config rule.Config sets the state of the rule to
DELETING_RESULTStemporarily after you use theDeleteEvaluationResultsrequest to delete the current evaluation results for the Config rule.Config temporarily sets the state of a rule to
DELETINGafter you use theDeleteConfigRulerequest to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.- Parameters:
configRuleState- Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.Config sets the state of the rule to
EVALUATINGtemporarily after you use theStartConfigRulesEvaluationrequest to evaluate your resources against the Config rule.Config sets the state of the rule to
DELETING_RESULTStemporarily after you use theDeleteEvaluationResultsrequest to delete the current evaluation results for the Config rule.Config temporarily sets the state of a rule to
DELETINGafter you use theDeleteConfigRulerequest to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConfigRuleState,ConfigRuleState
-
configRuleState
ConfigRule.Builder configRuleState(ConfigRuleState configRuleState)
Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.
Config sets the state of the rule to
EVALUATINGtemporarily after you use theStartConfigRulesEvaluationrequest to evaluate your resources against the Config rule.Config sets the state of the rule to
DELETING_RESULTStemporarily after you use theDeleteEvaluationResultsrequest to delete the current evaluation results for the Config rule.Config temporarily sets the state of a rule to
DELETINGafter you use theDeleteConfigRulerequest to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.- Parameters:
configRuleState- Indicates whether the Config rule is active or is currently being deleted by Config. It can also indicate the evaluation status for the Config rule.Config sets the state of the rule to
EVALUATINGtemporarily after you use theStartConfigRulesEvaluationrequest to evaluate your resources against the Config rule.Config sets the state of the rule to
DELETING_RESULTStemporarily after you use theDeleteEvaluationResultsrequest to delete the current evaluation results for the Config rule.Config temporarily sets the state of a rule to
DELETINGafter you use theDeleteConfigRulerequest to delete the rule. After Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConfigRuleState,ConfigRuleState
-
createdBy
ConfigRule.Builder createdBy(String createdBy)
Service principal name of the service that created the rule.
The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.
- Parameters:
createdBy- Service principal name of the service that created the rule.The field is populated only if the service-linked rule is created by a service. The field is empty if you create your own rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationModes
ConfigRule.Builder evaluationModes(Collection<EvaluationModeConfiguration> evaluationModes)
The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.
- Parameters:
evaluationModes- The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationModes
ConfigRule.Builder evaluationModes(EvaluationModeConfiguration... evaluationModes)
The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.
- Parameters:
evaluationModes- The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationModes
ConfigRule.Builder evaluationModes(Consumer<EvaluationModeConfiguration.Builder>... evaluationModes)
The modes the Config rule can be evaluated in. The valid values are distinct objects. By default, the value is Detective evaluation mode only.
This is a convenience method that creates an instance of theEvaluationModeConfiguration.Builderavoiding the need to create one manually viaEvaluationModeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#evaluationModes(List.) - Parameters:
evaluationModes- a consumer that will call methods onEvaluationModeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#evaluationModes(java.util.Collection)
-
-