Class: AWSCDK::CodeStarConnections::CfnConnectionProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
code_star_connections/cfn_connection_props.rb

Overview

Properties for defining a CfnConnection.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_name:, host_arn: nil, provider_type: nil, tags: nil) ⇒ CfnConnectionProps

Returns a new instance of CfnConnectionProps.

Parameters:

  • connection_name (String)

    The name of the connection.

  • host_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (ARN) of the host associated with the connection.

  • provider_type (String, nil) (defaults to: nil)

    The name of the external provider where your third-party code repository is configured.

  • tags (Array<AWSCDK::CfnTag>, nil) (defaults to: nil)

    Specifies the tags applied to the resource.



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#connection_nameString (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_arnString? (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_typeString? (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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