AWS Proton

2022/04/04 - AWS Proton - 1 updated api methods

Changes  SDK release to support tagging for AWS Proton Repository resource

CreateRepository (updated) Link ΒΆ
Changes (request)
{'tags': [{'key': 'string', 'value': 'string'}]}

Create and register a link to a repository that can be used with self-managed provisioning (infrastructure or pipelines) or for template sync configurations. When you create a repository link, Proton creates a service-linked role for you.

For more information, see Self-managed provisioning , Template bundles , and Template sync configurations in the Proton Administrator Guide .

See also: AWS API Documentation

Request Syntax

client.create_repository(
    connectionArn='string',
    encryptionKey='string',
    name='string',
    provider='GITHUB'|'GITHUB_ENTERPRISE'|'BITBUCKET',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type connectionArn

string

param connectionArn

[REQUIRED]

The Amazon Resource Name (ARN) of your Amazon Web Services CodeStar connection. For more information, see Setting up for Proton in the Proton Administrator Guide .

type encryptionKey

string

param encryptionKey

The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.

type name

string

param name

[REQUIRED]

The repository name (for example, myrepos/myrepo ).

type provider

string

param provider

[REQUIRED]

The repository provider.

type tags

list

param tags

An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.

For more information, see Proton resources and tagging in the Proton Administrator Guide or Proton User Guide .

  • (dict) --

    A description of a resource tag.

    • key (string) -- [REQUIRED]

      The key of the resource tag.

    • value (string) -- [REQUIRED]

      The value of the resource tag.

rtype

dict

returns

Response Syntax

{
    'repository': {
        'arn': 'string',
        'connectionArn': 'string',
        'encryptionKey': 'string',
        'name': 'string',
        'provider': 'GITHUB'|'GITHUB_ENTERPRISE'|'BITBUCKET'
    }
}

Response Structure

  • (dict) --

    • repository (dict) --

      The repository detail data that's returned by Proton.

      • arn (string) --

        The repository Amazon Resource Name (ARN).

      • connectionArn (string) --

        The repository Amazon Web Services CodeStar connection that connects Proton to your repository.

      • encryptionKey (string) --

        Your customer Amazon Web Services KMS encryption key.

      • name (string) --

        The repository name.

      • provider (string) --

        The repository provider.