@Generated(value="software.amazon.awssdk:codegen") public final class ConfigurationItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConfigurationItem.Builder,ConfigurationItem>
A list that contains detailed configurations of a specified resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConfigurationItem.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The 12-digit AWS account ID associated with the resource.
|
String |
arn()
Amazon Resource Name (ARN) associated with the resource.
|
String |
availabilityZone()
The Availability Zone associated with the resource.
|
String |
awsRegion()
The region where the resource resides.
|
static ConfigurationItem.Builder |
builder() |
String |
configuration()
The description of the resource configuration.
|
Instant |
configurationItemCaptureTime()
The time when the configuration recording was initiated.
|
String |
configurationItemMD5Hash()
Unique MD5 hash that represents the configuration item's state.
|
ConfigurationItemStatus |
configurationItemStatus()
The configuration item status.
|
String |
configurationItemStatusAsString()
The configuration item status.
|
String |
configurationStateId()
An identifier that indicates the ordering of the configuration items of a resource.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasRelatedEvents()
Returns true if the RelatedEvents property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasRelationships()
Returns true if the Relationships property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSupplementaryConfiguration()
Returns true if the SupplementaryConfiguration property was specified by the sender (it may be empty), or false
if the sender did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
List<String> |
relatedEvents()
A list of CloudTrail event IDs.
|
List<Relationship> |
relationships()
A list of related AWS resources.
|
Instant |
resourceCreationTime()
The time stamp when the resource was created.
|
String |
resourceId()
The ID of the resource (for example,
sg-xxxxxx). |
String |
resourceName()
The custom name of the resource, if available.
|
ResourceType |
resourceType()
The type of AWS resource.
|
String |
resourceTypeAsString()
The type of AWS resource.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ConfigurationItem.Builder> |
serializableBuilderClass() |
Map<String,String> |
supplementaryConfiguration()
Configuration attributes that AWS Config returns for certain resource types to supplement the information
returned for the
configuration parameter. |
Map<String,String> |
tags()
A mapping of key value tags associated with the resource.
|
ConfigurationItem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
version()
The version number of the resource configuration.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String version()
The version number of the resource configuration.
public final String accountId()
The 12-digit AWS account ID associated with the resource.
public final Instant configurationItemCaptureTime()
The time when the configuration recording was initiated.
public final ConfigurationItemStatus configurationItemStatus()
The configuration item status. The valid values are:
OK – The resource configuration has been updated
ResourceDiscovered – The resource was newly discovered
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
ResourceDeleted – The resource was deleted
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
The CIs do not incur any cost.
If the service returns an enum value that is not available in the current SDK version,
configurationItemStatus will return ConfigurationItemStatus.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from configurationItemStatusAsString().
OK – The resource configuration has been updated
ResourceDiscovered – The resource was newly discovered
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
ResourceDeleted – The resource was deleted
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
The CIs do not incur any cost.
ConfigurationItemStatuspublic final String configurationItemStatusAsString()
The configuration item status. The valid values are:
OK – The resource configuration has been updated
ResourceDiscovered – The resource was newly discovered
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
ResourceDeleted – The resource was deleted
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
The CIs do not incur any cost.
If the service returns an enum value that is not available in the current SDK version,
configurationItemStatus will return ConfigurationItemStatus.UNKNOWN_TO_SDK_VERSION. The raw
value returned by the service is available from configurationItemStatusAsString().
OK – The resource configuration has been updated
ResourceDiscovered – The resource was newly discovered
ResourceNotRecorded – The resource was discovered but its configuration was not recorded since the recorder excludes the recording of resources of this type
ResourceDeleted – The resource was deleted
ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder excludes the recording of resources of this type
The CIs do not incur any cost.
ConfigurationItemStatuspublic final String configurationStateId()
An identifier that indicates the ordering of the configuration items of a resource.
public final String configurationItemMD5Hash()
Unique MD5 hash that represents the configuration item's state.
You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.
You can use MD5 hash to compare the states of two or more configuration items that are associated with the same resource.
public final String arn()
Amazon Resource Name (ARN) associated with the resource.
public final ResourceType resourceType()
The type of AWS resource.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String resourceTypeAsString()
The type of AWS resource.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String resourceId()
The ID of the resource (for example, sg-xxxxxx).
sg-xxxxxx).public final String resourceName()
The custom name of the resource, if available.
public final String awsRegion()
The region where the resource resides.
public final String availabilityZone()
The Availability Zone associated with the resource.
public final Instant resourceCreationTime()
The time stamp when the resource was created.
public final boolean hasTags()
public final Map<String,String> tags()
A mapping of key value tags associated with the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final boolean hasRelatedEvents()
public final List<String> relatedEvents()
A list of CloudTrail event IDs.
A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What Is AWS CloudTrail.
An empty field indicates that the current configuration was not initiated by any event. As of Version 1.3, the relatedEvents field is empty. You can access the LookupEvents API in the AWS CloudTrail API Reference to retrieve the events for the resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRelatedEvents() to see if a value was sent in this field.
A populated field indicates that the current configuration was initiated by the events recorded in the CloudTrail log. For more information about CloudTrail, see What Is AWS CloudTrail.
An empty field indicates that the current configuration was not initiated by any event. As of Version 1.3, the relatedEvents field is empty. You can access the LookupEvents API in the AWS CloudTrail API Reference to retrieve the events for the resource.
public final boolean hasRelationships()
public final List<Relationship> relationships()
A list of related AWS resources.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasRelationships() to see if a value was sent in this field.
public final String configuration()
The description of the resource configuration.
public final boolean hasSupplementaryConfiguration()
public final Map<String,String> supplementaryConfiguration()
Configuration attributes that AWS Config returns for certain resource types to supplement the information
returned for the configuration parameter.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSupplementaryConfiguration() to see if a value was sent in this field.
configuration parameter.public ConfigurationItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ConfigurationItem.Builder,ConfigurationItem>public static ConfigurationItem.Builder builder()
public static Class<? extends ConfigurationItem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.