Class: AWSCDK::DataPipeline::CfnPipeline::PipelineTagProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_pipeline/cfn_pipeline.rb

Overview

A list of arbitrary tags (key-value pairs) to associate with the pipeline, which you can use to control permissions.

For more information, see Controlling Access to Pipelines and Resources in the AWS Data Pipeline Developer Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key:, value:) ⇒ PipelineTagProperty

Returns a new instance of PipelineTagProperty.

Parameters:

  • key (String)

    The key name of a tag.

  • value (String)

    The value to associate with the key name.



883
884
885
886
887
888
# File 'data_pipeline/cfn_pipeline.rb', line 883

def initialize(key:, value:)
  @key = key
  Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#keyString (readonly)

The key name of a tag.



894
895
896
# File 'data_pipeline/cfn_pipeline.rb', line 894

def key
  @key
end

#valueString (readonly)

The value to associate with the key name.



899
900
901
# File 'data_pipeline/cfn_pipeline.rb', line 899

def value
  @value
end

Class Method Details

.jsii_propertiesObject



901
902
903
904
905
906
# File 'data_pipeline/cfn_pipeline.rb', line 901

def self.jsii_properties
  {
    :key => "key",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



908
909
910
911
912
913
914
915
# File 'data_pipeline/cfn_pipeline.rb', line 908

def to_jsii
  result = {}
  result.merge!({
    "key" => @key,
    "value" => @value,
  })
  result.compact
end