Class: AWSCDK::Connect::CfnSecurityKeyProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_security_key_props.rb

Overview

Properties for defining a CfnSecurityKey.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_id:, key:) ⇒ CfnSecurityKeyProps

Returns a new instance of CfnSecurityKeyProps.

Parameters:



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_idString, 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

#keyString (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_propertiesObject



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_jsiiObject



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