@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) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSourceDetails()
Returns true if the SourceDetails property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final 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().
Ownerpublic final 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().
Ownerpublic final 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 final boolean hasSourceDetails()
public final 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.
You can use hasSourceDetails() to see if a value was sent in this field.
public Source.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Source.Builder,Source>public static Source.Builder builder()
public static Class<? extends Source.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.