@Generated(value="software.amazon.awssdk:codegen") public final class Source extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Source.Builder,Source>
Provides the AWS Config rule owner (AWS or customer), the rule identifier, and the events that trigger the evaluation of your AWS resources.
Modifier and Type | Class and Description |
---|---|
static interface |
Source.Builder |
Modifier and Type | Method and Description |
---|---|
static Source.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Owner |
owner()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
String |
ownerAsString()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Source.Builder> |
serializableBuilderClass() |
List<SourceDetail> |
sourceDetails()
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
|
String |
sourceIdentifier()
For AWS Config managed rules, a predefined identifier from a list.
|
Source.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Owner owner()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
If the service returns an enum value that is not available in the current SDK version, owner
will return
Owner.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
ownerAsString()
.
Owner
public String ownerAsString()
Indicates whether AWS or the customer owns and manages the AWS Config rule.
If the service returns an enum value that is not available in the current SDK version, owner
will return
Owner.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
ownerAsString()
.
Owner
public 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
.
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> sourceDetails()
Provides the source and type of the event that causes AWS Config to evaluate your AWS resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Source.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Source.Builder,Source>
public static Source.Builder builder()
public static Class<? extends Source.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.