Class ConfigurationItem
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<ConfigurationItem.Builder,- ConfigurationItem> 
A list that contains detailed configurations of a specified resource.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionfinal StringThe 12-digit Amazon Web Services account ID associated with the resource.final Stringarn()Amazon Resource Name (ARN) associated with the resource.final StringThe Availability Zone associated with the resource.final StringThe region where the resource resides.static ConfigurationItem.Builderbuilder()final StringA JSON-encoded string that contains the contents for the resource configuration.final InstantThe time when the recording of configuration changes was initiated for the resource.final InstantThe time when configuration changes for the resource were delivered.final StringUnique MD5 hash that represents the configuration item's state.final ConfigurationItemStatusThe configuration item status.final StringThe configuration item status.final StringAn identifier that indicates the ordering of the configuration items of a resource.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the RelatedEvents property.final booleanFor responses, this returns true if the service returned a value for the Relationships property.final booleanFor responses, this returns true if the service returned a value for the SupplementaryConfiguration property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final RecordingFrequencyThe recording frequency that Config uses to record configuration changes for the resource.final StringThe recording frequency that Config uses to record configuration changes for the resource.A list of CloudTrail event IDs.final List<Relationship> A list of related Amazon Web Services resources.final InstantThe time stamp when the resource was created.final StringThe ID of the resource (for example,sg-xxxxxx).final StringThe custom name of the resource, if available.final ResourceTypeThe type of Amazon Web Services resource.final StringThe type of Amazon Web Services resource.static Class<? extends ConfigurationItem.Builder> A string to string map that contains additional contents for the resource configuration.Config returns this field for certain resource types to supplement the information returned for theconfigurationfield.tags()A mapping of key value tags associated with the resource.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final Stringversion()The version number of the resource configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
versionThe version number of the resource configuration. - Returns:
- The version number of the resource configuration.
 
- 
accountIdThe 12-digit Amazon Web Services account ID associated with the resource. - Returns:
- The 12-digit Amazon Web Services account ID associated with the resource.
 
- 
configurationItemCaptureTimeThe time when the recording of configuration changes was initiated for the resource. - Returns:
- The time when the recording of configuration changes was initiated for the resource.
 
- 
configurationItemStatusThe configuration item status. Valid values include: - 
 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 doesn't record resources of this type 
- 
 ResourceDeleted – The resource was deleted 
- 
 ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder doesn't record resources of this type 
 If the service returns an enum value that is not available in the current SDK version, configurationItemStatuswill returnConfigurationItemStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfigurationItemStatusAsString().- Returns:
- The configuration item status. Valid values include:
         - 
         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 doesn't record resources of this type 
- 
         ResourceDeleted – The resource was deleted 
- 
         ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder doesn't record resources of this type 
 
- 
         
- See Also:
 
- 
 
- 
configurationItemStatusAsStringThe configuration item status. Valid values include: - 
 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 doesn't record resources of this type 
- 
 ResourceDeleted – The resource was deleted 
- 
 ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder doesn't record resources of this type 
 If the service returns an enum value that is not available in the current SDK version, configurationItemStatuswill returnConfigurationItemStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfigurationItemStatusAsString().- Returns:
- The configuration item status. Valid values include:
         - 
         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 doesn't record resources of this type 
- 
         ResourceDeleted – The resource was deleted 
- 
         ResourceDeletedNotRecorded – The resource was deleted but its configuration was not recorded since the recorder doesn't record resources of this type 
 
- 
         
- See Also:
 
- 
 
- 
configurationStateIdAn identifier that indicates the ordering of the configuration items of a resource. - Returns:
- An identifier that indicates the ordering of the configuration items of a resource.
 
- 
configurationItemMD5HashUnique 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. - Returns:
- 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. 
 
- 
arnAmazon Resource Name (ARN) associated with the resource. - Returns:
- Amazon Resource Name (ARN) associated with the resource.
 
- 
resourceTypeThe type of Amazon Web Services resource. If the service returns an enum value that is not available in the current SDK version, resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of Amazon Web Services resource.
- See Also:
 
- 
resourceTypeAsStringThe type of Amazon Web Services resource. If the service returns an enum value that is not available in the current SDK version, resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of Amazon Web Services resource.
- See Also:
 
- 
resourceIdThe ID of the resource (for example, sg-xxxxxx).- Returns:
- The ID of the resource (for example, sg-xxxxxx).
 
- 
resourceNameThe custom name of the resource, if available. - Returns:
- The custom name of the resource, if available.
 
- 
awsRegionThe region where the resource resides. - Returns:
- The region where the resource resides.
 
- 
availabilityZoneThe Availability Zone associated with the resource. - Returns:
- The Availability Zone associated with the resource.
 
- 
resourceCreationTimeThe time stamp when the resource was created. - Returns:
- The time stamp when the resource was created.
 
- 
hasTagspublic final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
tagsA mapping of key value tags associated with the resource. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTags()method.- Returns:
- A mapping of key value tags associated with the resource.
 
- 
hasRelatedEventspublic final boolean hasRelatedEvents()For responses, this returns true if the service returned a value for the RelatedEvents property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
hasRelationshipspublic final boolean hasRelationships()For responses, this returns true if the service returned a value for the Relationships property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
relationshipsA list of related Amazon Web Services resources. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasRelationships()method.- Returns:
- A list of related Amazon Web Services resources.
 
- 
configurationA JSON-encoded string that contains the contents for the resource configuration. This string needs to be deserialized using json.loads()before you can access the contents.- Returns:
- A JSON-encoded string that contains the contents for the resource configuration. This string needs to be
         deserialized using json.loads()before you can access the contents.
 
- 
hasSupplementaryConfigurationpublic final boolean hasSupplementaryConfiguration()For responses, this returns true if the service returned a value for the SupplementaryConfiguration property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
supplementaryConfigurationA string to string map that contains additional contents for the resource configuration.Config returns this field for certain resource types to supplement the information returned for the configurationfield.This string to string map needs to be deserialized using json.loads()before you can accessing the contents.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasSupplementaryConfiguration()method.- Returns:
- A string to string map that contains additional contents for the resource configuration.Config returns
         this field for certain resource types to supplement the information returned for the
         configurationfield.This string to string map needs to be deserialized using json.loads()before you can accessing the contents.
 
- 
recordingFrequencyThe recording frequency that Config uses to record configuration changes for the resource. This field only appears in the API response when DAILYrecording is enabled for a resource type. If this field is not present,CONTINUOUSrecording is enabled for that resource type. For more information on daily recording and continuous recording, see Recording Frequency in the Config Developer Guide.If the service returns an enum value that is not available in the current SDK version, recordingFrequencywill returnRecordingFrequency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecordingFrequencyAsString().- Returns:
- The recording frequency that Config uses to record configuration changes for the resource. This field only appears in the API response when DAILYrecording is enabled for a resource type. If this field is not present,CONTINUOUSrecording is enabled for that resource type. For more information on daily recording and continuous recording, see Recording Frequency in the Config Developer Guide.
- See Also:
 
- 
recordingFrequencyAsStringThe recording frequency that Config uses to record configuration changes for the resource. This field only appears in the API response when DAILYrecording is enabled for a resource type. If this field is not present,CONTINUOUSrecording is enabled for that resource type. For more information on daily recording and continuous recording, see Recording Frequency in the Config Developer Guide.If the service returns an enum value that is not available in the current SDK version, recordingFrequencywill returnRecordingFrequency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromrecordingFrequencyAsString().- Returns:
- The recording frequency that Config uses to record configuration changes for the resource. This field only appears in the API response when DAILYrecording is enabled for a resource type. If this field is not present,CONTINUOUSrecording is enabled for that resource type. For more information on daily recording and continuous recording, see Recording Frequency in the Config Developer Guide.
- See Also:
 
- 
configurationItemDeliveryTimeThe time when configuration changes for the resource were delivered. This field is optional and is not guaranteed to be present in a configuration item (CI). If you are using daily recording, this field will be populated. However, if you are using continuous recording, this field will be omitted since the delivery time is instantaneous as the CI is available right away. For more information on daily recording and continuous recording, see Recording Frequency in the Config Developer Guide. - Returns:
- The time when configuration changes for the resource were delivered. This field is optional and is not guaranteed to be present in a configuration item (CI). If you are using daily recording, this field will be populated. However, if you are using continuous recording, this field will be omitted since the delivery time is instantaneous as the CI is available right away. For more information on daily recording and continuous recording, see Recording Frequency in the Config Developer Guide. 
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<ConfigurationItem.Builder,- ConfigurationItem> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-