Class: AWSCDK::CodeStarConnections::CfnConnectionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CodeStarConnections::CfnConnectionProps
- Defined in:
- code_star_connections/cfn_connection_props.rb
Overview
Properties for defining a CfnConnection.
Instance Attribute Summary collapse
-
#connection_name ⇒ String
readonly
The name of the connection.
-
#host_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the host associated with the connection.
-
#provider_type ⇒ String?
readonly
The name of the external provider where your third-party code repository is configured.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
Specifies the tags applied to the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_name:, host_arn: nil, provider_type: nil, tags: nil) ⇒ CfnConnectionProps
constructor
A new instance of CfnConnectionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_name:, host_arn: nil, provider_type: nil, tags: nil) ⇒ CfnConnectionProps
Returns a new instance of CfnConnectionProps.
13 14 15 16 17 18 19 20 21 22 |
# File 'code_star_connections/cfn_connection_props.rb', line 13 def initialize(connection_name:, host_arn: nil, provider_type: nil, tags: nil) @connection_name = connection_name Jsii::Type.check_type(@connection_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionName") @host_arn = host_arn Jsii::Type.check_type(@host_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hostArn") unless @host_arn.nil? @provider_type = provider_type Jsii::Type.check_type(@provider_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "providerType") unless @provider_type.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
#connection_name ⇒ String (readonly)
The name of the connection.
Connection names must be unique in an AWS account .
30 31 32 |
# File 'code_star_connections/cfn_connection_props.rb', line 30 def connection_name @connection_name end |
#host_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the host associated with the connection.
35 36 37 |
# File 'code_star_connections/cfn_connection_props.rb', line 35 def host_arn @host_arn end |
#provider_type ⇒ String? (readonly)
The name of the external provider where your third-party code repository is configured.
40 41 42 |
# File 'code_star_connections/cfn_connection_props.rb', line 40 def provider_type @provider_type end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
Specifies the tags applied to the resource.
45 46 47 |
# File 'code_star_connections/cfn_connection_props.rb', line 45 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'code_star_connections/cfn_connection_props.rb', line 47 def self.jsii_properties { :connection_name => "connectionName", :host_arn => "hostArn", :provider_type => "providerType", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'code_star_connections/cfn_connection_props.rb', line 56 def to_jsii result = {} result.merge!({ "connectionName" => @connection_name, "hostArn" => @host_arn, "providerType" => @provider_type, "tags" => @tags, }) result.compact end |