Class: AWSCDK::CodeStarConnections::CfnRepositoryLinkProps

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

Overview

Properties for defining a CfnRepositoryLink.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection_arn:, owner_id:, repository_name:, encryption_key_arn: nil, tags: nil) ⇒ CfnRepositoryLinkProps

Returns a new instance of CfnRepositoryLinkProps.

Parameters:

  • connection_arn (String)

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

  • owner_id (String)

    The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.

  • repository_name (String)

    The name of the repository associated with the repository link.

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

    The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.

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

    The tags for the repository to be associated with the repository link.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'code_star_connections/cfn_repository_link_props.rb', line 14

def initialize(connection_arn:, owner_id:, repository_name:, encryption_key_arn: nil, tags: nil)
  @connection_arn = connection_arn
  Jsii::Type.check_type(@connection_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionArn")
  @owner_id = owner_id
  Jsii::Type.check_type(@owner_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ownerId")
  @repository_name = repository_name
  Jsii::Type.check_type(@repository_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "repositoryName")
  @encryption_key_arn = encryption_key_arn
  Jsii::Type.check_type(@encryption_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionKeyArn") unless @encryption_key_arn.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_arnString (readonly)

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



31
32
33
# File 'code_star_connections/cfn_repository_link_props.rb', line 31

def connection_arn
  @connection_arn
end

#encryption_key_arnString? (readonly)

The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.



46
47
48
# File 'code_star_connections/cfn_repository_link_props.rb', line 46

def encryption_key_arn
  @encryption_key_arn
end

#owner_idString (readonly)

The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.



36
37
38
# File 'code_star_connections/cfn_repository_link_props.rb', line 36

def owner_id
  @owner_id
end

#repository_nameString (readonly)

The name of the repository associated with the repository link.



41
42
43
# File 'code_star_connections/cfn_repository_link_props.rb', line 41

def repository_name
  @repository_name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

The tags for the repository to be associated with the repository link.



51
52
53
# File 'code_star_connections/cfn_repository_link_props.rb', line 51

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



53
54
55
56
57
58
59
60
61
# File 'code_star_connections/cfn_repository_link_props.rb', line 53

def self.jsii_properties
  {
    :connection_arn => "connectionArn",
    :owner_id => "ownerId",
    :repository_name => "repositoryName",
    :encryption_key_arn => "encryptionKeyArn",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



63
64
65
66
67
68
69
70
71
72
73
# File 'code_star_connections/cfn_repository_link_props.rb', line 63

def to_jsii
  result = {}
  result.merge!({
    "connectionArn" => @connection_arn,
    "ownerId" => @owner_id,
    "repositoryName" => @repository_name,
    "encryptionKeyArn" => @encryption_key_arn,
    "tags" => @tags,
  })
  result.compact
end