Class: AWSCDK::Connect::CfnSecurityKeyProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnSecurityKeyProps
- Defined in:
- connect/cfn_security_key_props.rb
Overview
Properties for defining a CfnSecurityKey.
Instance Attribute Summary collapse
-
#instance_id ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef
readonly
The Amazon Resource Name (ARN) of the instance.
-
#key ⇒ String
readonly
A valid security key in PEM format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_id:, key:) ⇒ CfnSecurityKeyProps
constructor
A new instance of CfnSecurityKeyProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_id:, key:) ⇒ CfnSecurityKeyProps
Returns a new instance of CfnSecurityKeyProps.
11 12 13 14 15 16 |
# File 'connect/cfn_security_key_props.rb', line 11 def initialize(instance_id:, key:) @instance_id = instance_id Jsii::Type.check_type(@instance_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb25uZWN0LklJbnN0YW5jZVJlZiJ9XX19")), "instanceId") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") end |
Instance Attribute Details
#instance_id ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef (readonly)
The Amazon Resource Name (ARN) of the instance.
Minimum : 1
Maximum : 100
26 27 28 |
# File 'connect/cfn_security_key_props.rb', line 26 def instance_id @instance_id end |
#key ⇒ String (readonly)
A valid security key in PEM format. For example:.
"-----BEGIN PUBLIC KEY-----\ [a lot of characters] ----END PUBLIC KEY-----"
Minimum : 1
Maximum : 1024
37 38 39 |
# File 'connect/cfn_security_key_props.rb', line 37 def key @key end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 |
# File 'connect/cfn_security_key_props.rb', line 39 def self.jsii_properties { :instance_id => "instanceId", :key => "key", } end |
Instance Method Details
#to_jsii ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'connect/cfn_security_key_props.rb', line 46 def to_jsii result = {} result.merge!({ "instanceId" => @instance_id, "key" => @key, }) result.compact end |