Class: AWSCDK::GameLift::CfnLocationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::GameLift::CfnLocationProps
- Defined in:
- game_lift/cfn_location_props.rb
Overview
Properties for defining a CfnLocation.
Instance Attribute Summary collapse
-
#location_name ⇒ String
readonly
A descriptive name for the custom location.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A list of labels to assign to the new resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location_name:, tags: nil) ⇒ CfnLocationProps
constructor
A new instance of CfnLocationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(location_name:, tags: nil) ⇒ CfnLocationProps
Returns a new instance of CfnLocationProps.
11 12 13 14 15 16 |
# File 'game_lift/cfn_location_props.rb', line 11 def initialize(location_name:, tags: nil) @location_name = location_name Jsii::Type.check_type(@location_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "locationName") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#location_name ⇒ String (readonly)
A descriptive name for the custom location.
22 23 24 |
# File 'game_lift/cfn_location_props.rb', line 22 def location_name @location_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A list of labels to assign to the new resource.
Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management, and cost allocation. For more information, see Tagging AWS Resources in the AWS General Rareference .
29 30 31 |
# File 'game_lift/cfn_location_props.rb', line 29 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
31 32 33 34 35 36 |
# File 'game_lift/cfn_location_props.rb', line 31 def self.jsii_properties { :location_name => "locationName", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
38 39 40 41 42 43 44 45 |
# File 'game_lift/cfn_location_props.rb', line 38 def to_jsii result = {} result.merge!({ "locationName" => @location_name, "tags" => @tags, }) result.compact end |