public class ConfigRule extends Object implements Serializable, Cloneable
An AWS Lambda function that evaluates configuration items to assess
whether your AWS resources comply with your desired configurations.
This function can run when AWS Config detects a configuration change
or delivers a configuration snapshot. This function can evaluate any
resource in the recording group. To define which of these are
evaluated, specify a value for the Scope
key.
For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide .
Constructor and Description |
---|
ConfigRule() |
Modifier and Type | Method and Description |
---|---|
ConfigRule |
clone() |
boolean |
equals(Object obj) |
String |
getConfigRuleArn()
The Amazon Resource Name (ARN) of the AWS Config rule.
|
String |
getConfigRuleId()
The ID of the AWS Config rule.
|
String |
getConfigRuleName()
The name that you assign to the AWS Config rule.
|
String |
getConfigRuleState()
Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config.
|
String |
getDescription()
The description that you provide for the AWS Config rule.
|
String |
getInputParameters()
A string in JSON format that is passed to the AWS Config rule Lambda
function.
|
String |
getMaximumExecutionFrequency()
The maximum frequency at which the AWS Config rule runs evaluations.
|
Scope |
getScope()
Defines which resources the AWS Config rule evaluates.
|
Source |
getSource()
Provides the rule owner (AWS or customer), the rule identifier, and
the events that cause the function to evaluate your AWS resources.
|
int |
hashCode() |
void |
setConfigRuleArn(String configRuleArn)
The Amazon Resource Name (ARN) of the AWS Config rule.
|
void |
setConfigRuleId(String configRuleId)
The ID of the AWS Config rule.
|
void |
setConfigRuleName(String configRuleName)
The name that you assign to the AWS Config rule.
|
void |
setConfigRuleState(ConfigRuleState configRuleState)
Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config.
|
void |
setConfigRuleState(String configRuleState)
Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config.
|
void |
setDescription(String description)
The description that you provide for the AWS Config rule.
|
void |
setInputParameters(String inputParameters)
A string in JSON format that is passed to the AWS Config rule Lambda
function.
|
void |
setMaximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
The maximum frequency at which the AWS Config rule runs evaluations.
|
void |
setMaximumExecutionFrequency(String maximumExecutionFrequency)
The maximum frequency at which the AWS Config rule runs evaluations.
|
void |
setScope(Scope scope)
Defines which resources the AWS Config rule evaluates.
|
void |
setSource(Source source)
Provides the rule owner (AWS or customer), the rule identifier, and
the events that cause the function to evaluate your AWS resources.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ConfigRule |
withConfigRuleArn(String configRuleArn)
The Amazon Resource Name (ARN) of the AWS Config rule.
|
ConfigRule |
withConfigRuleId(String configRuleId)
The ID of the AWS Config rule.
|
ConfigRule |
withConfigRuleName(String configRuleName)
The name that you assign to the AWS Config rule.
|
ConfigRule |
withConfigRuleState(ConfigRuleState configRuleState)
Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config.
|
ConfigRule |
withConfigRuleState(String configRuleState)
Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config.
|
ConfigRule |
withDescription(String description)
The description that you provide for the AWS Config rule.
|
ConfigRule |
withInputParameters(String inputParameters)
A string in JSON format that is passed to the AWS Config rule Lambda
function.
|
ConfigRule |
withMaximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
The maximum frequency at which the AWS Config rule runs evaluations.
|
ConfigRule |
withMaximumExecutionFrequency(String maximumExecutionFrequency)
The maximum frequency at which the AWS Config rule runs evaluations.
|
ConfigRule |
withScope(Scope scope)
Defines which resources the AWS Config rule evaluates.
|
ConfigRule |
withSource(Source source)
Provides the rule owner (AWS or customer), the rule identifier, and
the events that cause the function to evaluate your AWS resources.
|
public String getConfigRuleName()
Constraints:
Length: 1 - 64
public void setConfigRuleName(String configRuleName)
Constraints:
Length: 1 - 64
configRuleName
- The name that you assign to the AWS Config rule. The name is required
if you are adding a new rule.public ConfigRule withConfigRuleName(String configRuleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
configRuleName
- The name that you assign to the AWS Config rule. The name is required
if you are adding a new rule.public String getConfigRuleArn()
public void setConfigRuleArn(String configRuleArn)
configRuleArn
- The Amazon Resource Name (ARN) of the AWS Config rule.public ConfigRule withConfigRuleArn(String configRuleArn)
Returns a reference to this object so that method calls can be chained together.
configRuleArn
- The Amazon Resource Name (ARN) of the AWS Config rule.public String getConfigRuleId()
public void setConfigRuleId(String configRuleId)
configRuleId
- The ID of the AWS Config rule.public ConfigRule withConfigRuleId(String configRuleId)
Returns a reference to this object so that method calls can be chained together.
configRuleId
- The ID of the AWS Config rule.public String getDescription()
Constraints:
Length: 0 - 256
public void setDescription(String description)
Constraints:
Length: 0 - 256
description
- The description that you provide for the AWS Config rule.public ConfigRule withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 256
description
- The description that you provide for the AWS Config rule.public Scope getScope()
public void setScope(Scope scope)
scope
- Defines which resources the AWS Config rule evaluates. The scope can
include one or more resource types, a combination of a tag key and
value, or a combination of one resource type and one or more resource
IDs. Specify a scope to constrain the resources that are evaluated. If
you do not specify a scope, the AWS Config Rule evaluates all
resources in the recording group.public ConfigRule withScope(Scope scope)
Returns a reference to this object so that method calls can be chained together.
scope
- Defines which resources the AWS Config rule evaluates. The scope can
include one or more resource types, a combination of a tag key and
value, or a combination of one resource type and one or more resource
IDs. Specify a scope to constrain the resources that are evaluated. If
you do not specify a scope, the AWS Config Rule evaluates all
resources in the recording group.public Source getSource()
public void setSource(Source source)
source
- Provides the rule owner (AWS or customer), the rule identifier, and
the events that cause the function to evaluate your AWS resources.public ConfigRule withSource(Source source)
Returns a reference to this object so that method calls can be chained together.
source
- Provides the rule owner (AWS or customer), the rule identifier, and
the events that cause the function to evaluate your AWS resources.public String getInputParameters()
Constraints:
Length: 1 - 256
public void setInputParameters(String inputParameters)
Constraints:
Length: 1 - 256
inputParameters
- A string in JSON format that is passed to the AWS Config rule Lambda
function.public ConfigRule withInputParameters(String inputParameters)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
inputParameters
- A string in JSON format that is passed to the AWS Config rule Lambda
function.public String getMaximumExecutionFrequency()
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
Constraints:
Allowed Values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
MaximumExecutionFrequency
public void setMaximumExecutionFrequency(String maximumExecutionFrequency)
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
Constraints:
Allowed Values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations.
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
MaximumExecutionFrequency
public ConfigRule withMaximumExecutionFrequency(String maximumExecutionFrequency)
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations.
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
MaximumExecutionFrequency
public void setMaximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
Constraints:
Allowed Values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations.
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
MaximumExecutionFrequency
public ConfigRule withMaximumExecutionFrequency(MaximumExecutionFrequency maximumExecutionFrequency)
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
maximumExecutionFrequency
- The maximum frequency at which the AWS Config rule runs evaluations.
If your rule is periodic, meaning it runs an evaluation when AWS
Config delivers a configuration snapshot, then it cannot run
evaluations more frequently than AWS Config delivers the snapshots.
For periodic rules, set the value of the
MaximumExecutionFrequency
key to be equal to or greater
than the value of the deliveryFrequency
key, which is
part of ConfigSnapshotDeliveryProperties
. To update the
frequency with which AWS Config delivers your snapshots, use the
PutDeliveryChannel
action.
MaximumExecutionFrequency
public String getConfigRuleState()
AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
Constraints:
Allowed Values: ACTIVE, DELETING
AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
ConfigRuleState
public void setConfigRuleState(String configRuleState)
AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
Constraints:
Allowed Values: ACTIVE, DELETING
configRuleState
- Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config. AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
ConfigRuleState
public ConfigRule withConfigRuleState(String configRuleState)
AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, DELETING
configRuleState
- Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config. AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
ConfigRuleState
public void setConfigRuleState(ConfigRuleState configRuleState)
AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
Constraints:
Allowed Values: ACTIVE, DELETING
configRuleState
- Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config. AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
ConfigRuleState
public ConfigRule withConfigRuleState(ConfigRuleState configRuleState)
AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: ACTIVE, DELETING
configRuleState
- Indicates whether the AWS Config rule is active or currently being
deleted by AWS Config. AWS Config sets the state of a rule to
DELETING
temporarily after you use the
DeleteConfigRule
request to delete the rule. After AWS
Config finishes deleting a rule, the rule and all of its evaluations
are erased and no longer available.
You cannot add a rule to AWS
Config that has the state set to DELETING
. If you want to
delete a rule, you must use the DeleteConfigRule
request.
ConfigRuleState
public String toString()
toString
in class Object
Object.toString()
public ConfigRule clone()
Copyright © 2015. All rights reserved.