Class: AWSCDK::Connect::CfnQuickConnectProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnQuickConnectProps
- Defined in:
- connect/cfn_quick_connect_props.rb
Overview
Properties for defining a CfnQuickConnect.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the quick connect.
-
#instance_arn ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef
readonly
The Amazon Resource Name (ARN) of the instance.
-
#name ⇒ String
readonly
The name of the quick connect.
-
#quick_connect_config ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnQuickConnect::QuickConnectConfigProperty
readonly
Contains information about the quick connect.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for this resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_arn:, name:, quick_connect_config:, description: nil, tags: nil) ⇒ CfnQuickConnectProps
constructor
A new instance of CfnQuickConnectProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_arn:, name:, quick_connect_config:, description: nil, tags: nil) ⇒ CfnQuickConnectProps
Returns a new instance of CfnQuickConnectProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'connect/cfn_quick_connect_props.rb', line 14 def initialize(instance_arn:, name:, quick_connect_config:, description: nil, tags: nil) @instance_arn = instance_arn Jsii::Type.check_type(@instance_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb25uZWN0LklJbnN0YW5jZVJlZiJ9XX19")), "instanceArn") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @quick_connect_config = quick_connect_config.is_a?(Hash) ? ::AWSCDK::Connect::CfnQuickConnect::QuickConnectConfigProperty.new(**quick_connect_config.transform_keys(&:to_sym)) : quick_connect_config Jsii::Type.check_type(@quick_connect_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmblF1aWNrQ29ubmVjdC5RdWlja0Nvbm5lY3RDb25maWdQcm9wZXJ0eSJ9XX19")), "quickConnectConfig") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.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
#description ⇒ String? (readonly)
The description of the quick connect.
46 47 48 |
# File 'connect/cfn_quick_connect_props.rb', line 46 def description @description end |
#instance_arn ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef (readonly)
The Amazon Resource Name (ARN) of the instance.
31 32 33 |
# File 'connect/cfn_quick_connect_props.rb', line 31 def instance_arn @instance_arn end |
#name ⇒ String (readonly)
The name of the quick connect.
36 37 38 |
# File 'connect/cfn_quick_connect_props.rb', line 36 def name @name end |
#quick_connect_config ⇒ AWSCDK::IResolvable, AWSCDK::Connect::CfnQuickConnect::QuickConnectConfigProperty (readonly)
Contains information about the quick connect.
41 42 43 |
# File 'connect/cfn_quick_connect_props.rb', line 41 def quick_connect_config @quick_connect_config end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags used to organize, track, or control access for this resource.
For example, { "Tags": "key2":"value2" }.
53 54 55 |
# File 'connect/cfn_quick_connect_props.rb', line 53 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
55 56 57 58 59 60 61 62 63 |
# File 'connect/cfn_quick_connect_props.rb', line 55 def self.jsii_properties { :instance_arn => "instanceArn", :name => "name", :quick_connect_config => "quickConnectConfig", :description => "description", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'connect/cfn_quick_connect_props.rb', line 65 def to_jsii result = {} result.merge!({ "instanceArn" => @instance_arn, "name" => @name, "quickConnectConfig" => @quick_connect_config, "description" => @description, "tags" => @tags, }) result.compact end |