Class: AWSCDK::IVS::CfnPlaybackKeyPairProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IVS::CfnPlaybackKeyPairProps
- Defined in:
- ivs/cfn_playback_key_pair_props.rb
Overview
Properties for defining a CfnPlaybackKeyPair.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
Playback-key-pair name.
-
#public_key_material ⇒ String?
readonly
The public portion of a customer-generated key pair.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
An array of key-value pairs to apply to this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, public_key_material: nil, tags: nil) ⇒ CfnPlaybackKeyPairProps
constructor
A new instance of CfnPlaybackKeyPairProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, public_key_material: nil, tags: nil) ⇒ CfnPlaybackKeyPairProps
Returns a new instance of CfnPlaybackKeyPairProps.
12 13 14 15 16 17 18 19 |
# File 'ivs/cfn_playback_key_pair_props.rb', line 12 def initialize(name: nil, public_key_material: nil, tags: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @public_key_material = public_key_material Jsii::Type.check_type(@public_key_material, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "publicKeyMaterial") unless @public_key_material.nil? @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
#name ⇒ String? (readonly)
Playback-key-pair name.
The value does not need to be unique.
27 28 29 |
# File 'ivs/cfn_playback_key_pair_props.rb', line 27 def name @name end |
#public_key_material ⇒ String? (readonly)
The public portion of a customer-generated key pair.
Note that this field is required to create the AWS::IVS::PlaybackKeyPair resource.
34 35 36 |
# File 'ivs/cfn_playback_key_pair_props.rb', line 34 def public_key_material @public_key_material end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
An array of key-value pairs to apply to this resource.
For more information, see Tag .
41 42 43 |
# File 'ivs/cfn_playback_key_pair_props.rb', line 41 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
43 44 45 46 47 48 49 |
# File 'ivs/cfn_playback_key_pair_props.rb', line 43 def self.jsii_properties { :name => "name", :public_key_material => "publicKeyMaterial", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
51 52 53 54 55 56 57 58 59 |
# File 'ivs/cfn_playback_key_pair_props.rb', line 51 def to_jsii result = {} result.merge!({ "name" => @name, "publicKeyMaterial" => @public_key_material, "tags" => @tags, }) result.compact end |