Interface StackResourceDrift.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<StackResourceDrift.Builder,
,StackResourceDrift> SdkBuilder<StackResourceDrift.Builder,
,StackResourceDrift> SdkPojo
- Enclosing class:
StackResourceDrift
-
Method Summary
Modifier and TypeMethodDescriptionactualProperties
(String actualProperties) A JSON structure that contains the actual property values of the stack resource.driftStatusReason
(String driftStatusReason) The reason for the drift status.expectedProperties
(String expectedProperties) A JSON structure that contains the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.logicalResourceId
(String logicalResourceId) The logical name of the resource specified in the template.default StackResourceDrift.Builder
moduleInfo
(Consumer<ModuleInfo.Builder> moduleInfo) Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.moduleInfo
(ModuleInfo moduleInfo) Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.physicalResourceId
(String physicalResourceId) The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.physicalResourceIdContext
(Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext) Context information that enables CloudFormation to uniquely identify a resource.physicalResourceIdContext
(Consumer<PhysicalResourceIdContextKeyValuePair.Builder>... physicalResourceIdContext) Context information that enables CloudFormation to uniquely identify a resource.physicalResourceIdContext
(PhysicalResourceIdContextKeyValuePair... physicalResourceIdContext) Context information that enables CloudFormation to uniquely identify a resource.propertyDifferences
(Collection<PropertyDifference> propertyDifferences) A collection of the resource properties whose actual values differ from their expected values.propertyDifferences
(Consumer<PropertyDifference.Builder>... propertyDifferences) A collection of the resource properties whose actual values differ from their expected values.propertyDifferences
(PropertyDifference... propertyDifferences) A collection of the resource properties whose actual values differ from their expected values.resourceType
(String resourceType) The type of the resource.The ID of the stack.stackResourceDriftStatus
(String stackResourceDriftStatus) Status of the resource's actual configuration compared to its expected configuration.stackResourceDriftStatus
(StackResourceDriftStatus stackResourceDriftStatus) Status of the resource's actual configuration compared to its expected configuration.Time at which CloudFormation performed drift detection on the stack resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
stackId
The ID of the stack.
- Parameters:
stackId
- The ID of the stack.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logicalResourceId
The logical name of the resource specified in the template.
- Parameters:
logicalResourceId
- The logical name of the resource specified in the template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceId
The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.
- Parameters:
physicalResourceId
- The name or unique identifier that corresponds to a physical instance ID of a resource supported by CloudFormation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceIdContext
StackResourceDrift.Builder physicalResourceIdContext(Collection<PhysicalResourceIdContextKeyValuePair> physicalResourceIdContext) Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
- Parameters:
physicalResourceIdContext
- Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceIdContext
StackResourceDrift.Builder physicalResourceIdContext(PhysicalResourceIdContextKeyValuePair... physicalResourceIdContext) Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
- Parameters:
physicalResourceIdContext
- Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
physicalResourceIdContext
StackResourceDrift.Builder physicalResourceIdContext(Consumer<PhysicalResourceIdContextKeyValuePair.Builder>... physicalResourceIdContext) Context information that enables CloudFormation to uniquely identify a resource. CloudFormation uses context key-value pairs in cases where a resource's logical and physical IDs aren't enough to uniquely identify that resource. Each context key-value pair specifies a unique resource that contains the targeted resource.
This is a convenience method that creates an instance of thePhysicalResourceIdContextKeyValuePair.Builder
avoiding the need to create one manually viaPhysicalResourceIdContextKeyValuePair.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tophysicalResourceIdContext(List<PhysicalResourceIdContextKeyValuePair>)
.- Parameters:
physicalResourceIdContext
- a consumer that will call methods onPhysicalResourceIdContextKeyValuePair.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The type of the resource.
- Parameters:
resourceType
- The type of the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedProperties
A JSON structure that contains the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.
For resources whose
StackResourceDriftStatus
isDELETED
, this structure will not be present.- Parameters:
expectedProperties
- A JSON structure that contains the expected property values of the stack resource, as defined in the stack template and any values specified as template parameters.For resources whose
StackResourceDriftStatus
isDELETED
, this structure will not be present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actualProperties
A JSON structure that contains the actual property values of the stack resource.
For resources whose
StackResourceDriftStatus
isDELETED
, this structure will not be present.- Parameters:
actualProperties
- A JSON structure that contains the actual property values of the stack resource.For resources whose
StackResourceDriftStatus
isDELETED
, this structure will not be present.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
propertyDifferences
A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whose
StackResourceDriftStatus
isMODIFIED
.- Parameters:
propertyDifferences
- A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whoseStackResourceDriftStatus
isMODIFIED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
propertyDifferences
A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whose
StackResourceDriftStatus
isMODIFIED
.- Parameters:
propertyDifferences
- A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whoseStackResourceDriftStatus
isMODIFIED
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
propertyDifferences
StackResourceDrift.Builder propertyDifferences(Consumer<PropertyDifference.Builder>... propertyDifferences) A collection of the resource properties whose actual values differ from their expected values. These will be present only for resources whose
This is a convenience method that creates an instance of theStackResourceDriftStatus
isMODIFIED
.PropertyDifference.Builder
avoiding the need to create one manually viaPropertyDifference.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topropertyDifferences(List<PropertyDifference>)
.- Parameters:
propertyDifferences
- a consumer that will call methods onPropertyDifference.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
stackResourceDriftStatus
Status of the resource's actual configuration compared to its expected configuration.
-
DELETED
: The resource differs from its expected template configuration because the resource has been deleted. -
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack template and any values specified as template parameters). -
IN_SYNC
: The resource's actual configuration matches its expected template configuration. -
NOT_CHECKED
: CloudFormation does not currently return this value. -
UNKNOWN
: CloudFormation could not run drift detection for the resource. See theDriftStatusReason
for details.
- Parameters:
stackResourceDriftStatus
- Status of the resource's actual configuration compared to its expected configuration.-
DELETED
: The resource differs from its expected template configuration because the resource has been deleted. -
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack template and any values specified as template parameters). -
IN_SYNC
: The resource's actual configuration matches its expected template configuration. -
NOT_CHECKED
: CloudFormation does not currently return this value. -
UNKNOWN
: CloudFormation could not run drift detection for the resource. See theDriftStatusReason
for details.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
stackResourceDriftStatus
StackResourceDrift.Builder stackResourceDriftStatus(StackResourceDriftStatus stackResourceDriftStatus) Status of the resource's actual configuration compared to its expected configuration.
-
DELETED
: The resource differs from its expected template configuration because the resource has been deleted. -
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack template and any values specified as template parameters). -
IN_SYNC
: The resource's actual configuration matches its expected template configuration. -
NOT_CHECKED
: CloudFormation does not currently return this value. -
UNKNOWN
: CloudFormation could not run drift detection for the resource. See theDriftStatusReason
for details.
- Parameters:
stackResourceDriftStatus
- Status of the resource's actual configuration compared to its expected configuration.-
DELETED
: The resource differs from its expected template configuration because the resource has been deleted. -
MODIFIED
: One or more resource properties differ from their expected values (as defined in the stack template and any values specified as template parameters). -
IN_SYNC
: The resource's actual configuration matches its expected template configuration. -
NOT_CHECKED
: CloudFormation does not currently return this value. -
UNKNOWN
: CloudFormation could not run drift detection for the resource. See theDriftStatusReason
for details.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
timestamp
Time at which CloudFormation performed drift detection on the stack resource.
- Parameters:
timestamp
- Time at which CloudFormation performed drift detection on the stack resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moduleInfo
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
- Parameters:
moduleInfo
- Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
moduleInfo
Contains information about the module from which the resource was created, if the resource was created from a module included in the stack template.
This is a convenience method that creates an instance of theModuleInfo.Builder
avoiding the need to create one manually viaModuleInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomoduleInfo(ModuleInfo)
.- Parameters:
moduleInfo
- a consumer that will call methods onModuleInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
driftStatusReason
The reason for the drift status.
- Parameters:
driftStatusReason
- The reason for the drift status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-