Interface ResourceTargetDefinition.Builder

  • Method Details

    • attribute

      Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.

      Parameters:
      attribute - Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attribute

      Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.

      Parameters:
      attribute - Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • name

      If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.

      Parameters:
      name - If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • requiresRecreation

      ResourceTargetDefinition.Builder requiresRecreation(String requiresRecreation)

      If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always, or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the Amazon Web Services resource and property types reference in the CloudFormation User Guide.

      Parameters:
      requiresRecreation - If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always , or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the Amazon Web Services resource and property types reference in the CloudFormation User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • requiresRecreation

      ResourceTargetDefinition.Builder requiresRecreation(RequiresRecreation requiresRecreation)

      If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always, or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the Amazon Web Services resource and property types reference in the CloudFormation User Guide.

      Parameters:
      requiresRecreation - If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always , or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property in the Amazon Web Services resource and property types reference in the CloudFormation User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • path

      The property path of the property.

      Parameters:
      path - The property path of the property.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beforeValue

      ResourceTargetDefinition.Builder beforeValue(String beforeValue)

      The value of the property before the change is executed. Large values can be truncated.

      Parameters:
      beforeValue - The value of the property before the change is executed. Large values can be truncated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • afterValue

      ResourceTargetDefinition.Builder afterValue(String afterValue)

      The value of the property after the change is executed. Large values can be truncated.

      Parameters:
      afterValue - The value of the property after the change is executed. Large values can be truncated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beforeValueFrom

      ResourceTargetDefinition.Builder beforeValueFrom(String beforeValueFrom)

      Indicates the source of the before value. Valid values:

      • ACTUAL_STATE – The before value represents current actual state.

      • PREVIOUS_DEPLOYMENT_STATE – The before value represents the previous CloudFormation deployment state.

      Only present for drift-aware change sets.

      Parameters:
      beforeValueFrom - Indicates the source of the before value. Valid values:

      • ACTUAL_STATE – The before value represents current actual state.

      • PREVIOUS_DEPLOYMENT_STATE – The before value represents the previous CloudFormation deployment state.

      Only present for drift-aware change sets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • beforeValueFrom

      ResourceTargetDefinition.Builder beforeValueFrom(BeforeValueFrom beforeValueFrom)

      Indicates the source of the before value. Valid values:

      • ACTUAL_STATE – The before value represents current actual state.

      • PREVIOUS_DEPLOYMENT_STATE – The before value represents the previous CloudFormation deployment state.

      Only present for drift-aware change sets.

      Parameters:
      beforeValueFrom - Indicates the source of the before value. Valid values:

      • ACTUAL_STATE – The before value represents current actual state.

      • PREVIOUS_DEPLOYMENT_STATE – The before value represents the previous CloudFormation deployment state.

      Only present for drift-aware change sets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • afterValueFrom

      ResourceTargetDefinition.Builder afterValueFrom(String afterValueFrom)

      Indicates the source of the after value. Valid value:

      • TEMPLATE – The after value comes from the new template.

      Only present for drift-aware change sets.

      Parameters:
      afterValueFrom - Indicates the source of the after value. Valid value:

      • TEMPLATE – The after value comes from the new template.

      Only present for drift-aware change sets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • afterValueFrom

      ResourceTargetDefinition.Builder afterValueFrom(AfterValueFrom afterValueFrom)

      Indicates the source of the after value. Valid value:

      • TEMPLATE – The after value comes from the new template.

      Only present for drift-aware change sets.

      Parameters:
      afterValueFrom - Indicates the source of the after value. Valid value:

      • TEMPLATE – The after value comes from the new template.

      Only present for drift-aware change sets.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • drift

      Detailed drift information for the resource property, including actual values, previous deployment values, and drift detection timestamps.

      Parameters:
      drift - Detailed drift information for the resource property, including actual values, previous deployment values, and drift detection timestamps.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • drift

      Detailed drift information for the resource property, including actual values, previous deployment values, and drift detection timestamps.

      This is a convenience method that creates an instance of the LiveResourceDrift.Builder avoiding the need to create one manually via LiveResourceDrift.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to drift(LiveResourceDrift).

      Parameters:
      drift - a consumer that will call methods on LiveResourceDrift.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attributeChangeType

      ResourceTargetDefinition.Builder attributeChangeType(String attributeChangeType)

      The type of change to be made to the property if the change is executed.

      • Add The item will be added.

      • Remove The item will be removed.

      • Modify The item will be modified.

      • SyncWithActual The drift status of this item will be reset but the item will not be modified.

      Parameters:
      attributeChangeType - The type of change to be made to the property if the change is executed.

      • Add The item will be added.

      • Remove The item will be removed.

      • Modify The item will be modified.

      • SyncWithActual The drift status of this item will be reset but the item will not be modified.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attributeChangeType

      ResourceTargetDefinition.Builder attributeChangeType(AttributeChangeType attributeChangeType)

      The type of change to be made to the property if the change is executed.

      • Add The item will be added.

      • Remove The item will be removed.

      • Modify The item will be modified.

      • SyncWithActual The drift status of this item will be reset but the item will not be modified.

      Parameters:
      attributeChangeType - The type of change to be made to the property if the change is executed.

      • Add The item will be added.

      • Remove The item will be removed.

      • Modify The item will be modified.

      • SyncWithActual The drift status of this item will be reset but the item will not be modified.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: