Class: AWSCDK::RemoveTag

Inherits:
Jsii::Object
  • Object
show all
Includes:
IAspect
Defined in:
remove_tag.rb

Overview

The RemoveTag Aspect will handle removing tags from this node and children.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, props = nil) ⇒ RemoveTag

Returns a new instance of RemoveTag.

Parameters:

  • key (String)

    The string key for the tag.

  • props (AWSCDK::TagProps, nil) (defaults to: nil)


11
12
13
14
15
16
# File 'remove_tag.rb', line 11

def initialize(key, props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::TagProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5UYWdQcm9wcyJ9")), "props") unless props.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(key, props)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
23
24
25
26
# File 'remove_tag.rb', line 18

def self.jsii_overridable_methods
  {
    :key => { kind: :property, name: "key", is_optional: false },
    :props => { kind: :property, name: "props", is_optional: false },
    :apply_tag => { kind: :method, name: "applyTag", is_optional: false },
    :apply_tag_v2 => { kind: :method, name: "applyTagV2", is_optional: false },
    :visit => { kind: :method, name: "visit", is_optional: false },
  }
end

Instance Method Details

#apply_tag(resource) ⇒ void

This method returns an undefined value.

Parameters:



42
43
44
45
# File 'remove_tag.rb', line 42

def apply_tag(resource)
  Jsii::Type.check_type(resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JVGFnZ2FibGUifQ==")), "resource")
  jsii_call_method("applyTag", [resource])
end

#apply_tag_v2(resource) ⇒ void

This method returns an undefined value.

Parameters:



49
50
51
52
# File 'remove_tag.rb', line 49

def apply_tag_v2(resource)
  Jsii::Type.check_type(resource, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5JVGFnZ2FibGVWMiJ9")), "resource")
  jsii_call_method("applyTagV2", [resource])
end

#keyString

The string key for the tag.

Returns:

  • (String)


31
32
33
# File 'remove_tag.rb', line 31

def key()
  jsii_get_property("key")
end

#propsAWSCDK::TagProps

Returns:



36
37
38
# File 'remove_tag.rb', line 36

def props()
  jsii_get_property("props")
end

#visit(construct) ⇒ void

This method returns an undefined value.

All aspects can visit an IConstruct.

Parameters:

  • construct (Constructs::IConstruct)


58
59
60
61
# File 'remove_tag.rb', line 58

def visit(construct)
  Jsii::Type.check_type(construct, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "construct")
  jsii_call_method("visit", [construct])
end