class Amazonite::CloudFormation::ResourceTargetDefinition

Overview

The field that CloudFormation will change, such as the name of a resource's property, and whether the resource will be recreated.

Defined in:

cloudformation/resource_target_definition.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_xml(node : XML::Node) : self #

[View source]
def self.new(attribute : ResourceAttribute | Nil = nil, name : String | Nil = nil, requires_recreation : RequiresRecreation | Nil = nil, path : String | Nil = nil, before_value : String | Nil = nil, after_value : String | Nil = nil, before_value_from : BeforeValueFrom | Nil = nil, after_value_from : AfterValueFrom | Nil = nil, drift : LiveResourceDrift | Nil = nil, attribute_change_type : AttributeChangeType | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def after_value : String | Nil #

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


[View source]
def after_value=(after_value : String | Nil) #

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


[View source]
def after_value_from : AfterValueFrom | Nil #

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.


[View source]
def after_value_from=(after_value_from : AfterValueFrom | Nil) #

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.


[View source]
def attribute : ResourceAttribute | Nil #

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


[View source]
def attribute=(attribute : ResourceAttribute | Nil) #

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


[View source]
def attribute_change_type : AttributeChangeType | Nil #

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.


[View source]
def attribute_change_type=(attribute_change_type : AttributeChangeType | Nil) #

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.


[View source]
def before_value : String | Nil #

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


[View source]
def before_value=(before_value : String | Nil) #

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


[View source]
def before_value_from : BeforeValueFrom | Nil #

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.


[View source]
def before_value_from=(before_value_from : BeforeValueFrom | Nil) #

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.


[View source]
def drift : LiveResourceDrift | Nil #

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


[View source]
def drift=(drift : LiveResourceDrift | Nil) #

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


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def name : String | Nil #

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


[View source]
def name=(name : String | Nil) #

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


[View source]
def path : String | Nil #

The property path of the property.


[View source]
def path=(path : String | Nil) #

The property path of the property.


[View source]
def requires_recreation : RequiresRecreation | Nil #

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.


[View source]
def requires_recreation=(requires_recreation : RequiresRecreation | Nil) #

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.


[View source]
def to_query_params(prefix : String) : Array(Tuple(String, String)) #

[View source]
def validate! : Nil #

[View source]