@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Source extends Object implements Serializable, Cloneable, StructuredPojo
Provides the CustomPolicyDetails, the rule owner (Amazon Web Services
for managed rules,
CUSTOM_POLICY
for Custom Policy rules, and CUSTOM_LAMBDA
for Custom Lambda rules), the rule
identifier, and the events that cause the evaluation of your Amazon Web Services resources.
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
boolean |
equals(Object obj) |
CustomPolicyDetails |
getCustomPolicyDetails()
Provides the runtime system, policy definition, and whether debug logging is enabled.
|
String |
getOwner()
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
|
List<SourceDetail> |
getSourceDetails()
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources
against a rule.
|
String |
getSourceIdentifier()
For Config Managed rules, a predefined identifier from a list.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCustomPolicyDetails(CustomPolicyDetails customPolicyDetails)
Provides the runtime system, policy definition, and whether debug logging is enabled.
|
void |
setOwner(Owner owner)
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
|
void |
setOwner(String owner)
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
|
void |
setSourceDetails(Collection<SourceDetail> sourceDetails)
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources
against a rule.
|
void |
setSourceIdentifier(String sourceIdentifier)
For Config Managed rules, a predefined identifier from a list.
|
String |
toString()
Returns a string representation of this object.
|
Source |
withCustomPolicyDetails(CustomPolicyDetails customPolicyDetails)
Provides the runtime system, policy definition, and whether debug logging is enabled.
|
Source |
withOwner(Owner owner)
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
|
Source |
withOwner(String owner)
Indicates whether Amazon Web Services or the customer owns and manages the Config rule.
|
Source |
withSourceDetails(Collection<SourceDetail> sourceDetails)
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources
against a rule.
|
Source |
withSourceDetails(SourceDetail... sourceDetails)
Provides the source and the message types that cause Config to evaluate your Amazon Web Services resources
against a rule.
|
Source |
withSourceIdentifier(String sourceIdentifier)
For Config Managed rules, a predefined identifier from a list.
|
public void setOwner(String 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.
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.
Owner
public String getOwner()
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.
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.
Owner
public Source withOwner(String 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.
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.
Owner
public void setOwner(Owner 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.
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.
Owner
public Source withOwner(Owner 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.
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.
Owner
public void setSourceIdentifier(String 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.
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.
public String getSourceIdentifier()
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.
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.
public Source withSourceIdentifier(String 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.
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.
public List<SourceDetail> getSourceDetails()
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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
If the owner is set to CUSTOM_POLICY
, the only acceptable values for the Config rule trigger
message type are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
public void setSourceDetails(Collection<SourceDetail> 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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
public Source withSourceDetails(SourceDetail... 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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
NOTE: This method appends the values to the existing list (if any). Use
setSourceDetails(java.util.Collection)
or withSourceDetails(java.util.Collection)
if you want
to override the existing values.
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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
public Source withSourceDetails(Collection<SourceDetail> 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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
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 are ConfigurationItemChangeNotification
and
OversizedConfigurationItemChangeNotification
.
public void setCustomPolicyDetails(CustomPolicyDetails customPolicyDetails)
Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set
to CUSTOM_POLICY
.
customPolicyDetails
- Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner
is set to CUSTOM_POLICY
.public CustomPolicyDetails getCustomPolicyDetails()
Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set
to CUSTOM_POLICY
.
CUSTOM_POLICY
.public Source withCustomPolicyDetails(CustomPolicyDetails customPolicyDetails)
Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner is set
to CUSTOM_POLICY
.
customPolicyDetails
- Provides the runtime system, policy definition, and whether debug logging is enabled. Required when owner
is set to CUSTOM_POLICY
.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.