@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Source extends Object implements Serializable, Cloneable, StructuredPojo
Provides the AWS Config rule owner (AWS or customer), the rule identifier, and the events that trigger the evaluation of your AWS resources.
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
boolean |
equals(Object obj) |
String |
getOwner()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
List<SourceDetail> |
getSourceDetails()
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
|
String |
getSourceIdentifier()
For AWS Config managed rules, a predefined identifier from a list.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
void |
setOwner(String owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
void |
setSourceDetails(Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
|
void |
setSourceIdentifier(String sourceIdentifier)
For AWS Config managed rules, a predefined identifier from a list.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Source |
withOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
Source |
withOwner(String owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
Source |
withSourceDetails(Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
|
Source |
withSourceDetails(SourceDetail... sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
|
Source |
withSourceIdentifier(String sourceIdentifier)
For AWS Config managed rules, a predefined identifier from a list.
|
public void setOwner(String owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS Config rule.Owner
public String getOwner()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
Owner
public Source withOwner(String owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS Config rule.Owner
public void setOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS Config rule.Owner
public Source withOwner(Owner owner)
Indicates whether AWS or the customer owns and manages the AWS Config rule.
owner
- Indicates whether AWS or the customer owns and manages the AWS Config rule.Owner
public void setSourceIdentifier(String sourceIdentifier)
For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see Using AWS
Managed Config Rules.
For custom 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
.
sourceIdentifier
- For AWS Config managed rules, a predefined identifier from a list. For example,
IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.
For custom 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
.
public String getSourceIdentifier()
For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see Using AWS
Managed Config Rules.
For custom 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
.
IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.
For custom 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
.
public Source withSourceIdentifier(String sourceIdentifier)
For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see Using AWS
Managed Config Rules.
For custom 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
.
sourceIdentifier
- For AWS Config managed rules, a predefined identifier from a list. For example,
IAM_PASSWORD_POLICY
is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules.
For custom 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
.
public List<SourceDetail> getSourceDetails()
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
public void setSourceDetails(Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
sourceDetails
- Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.public Source withSourceDetails(SourceDetail... sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
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 type of the event that causes AWS Config to evaluate your AWS resources.public Source withSourceDetails(Collection<SourceDetail> sourceDetails)
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
sourceDetails
- Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.