AWS Proton

2021/06/09 - AWS Proton - 49 new api methods

Changes  This is the initial SDK release for AWS Proton

DeleteServiceTemplate (new) Link ¶

If no other major or minor versions of the service template exist, delete the service template.

See also: AWS API Documentation

Request Syntax

client.delete_service_template(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the service template to delete.

rtype

dict

returns

Response Syntax

{
    'serviceTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipelineProvisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplate (dict) --

      The service template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service template.

      • createdAt (datetime) --

        The time when the service template was created.

      • description (string) --

        A description of the service template.

      • displayName (string) --

        The service template name as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided service template encryption key that's used to encrypt data.

      • lastModifiedAt (datetime) --

        The time when the service template was last modified.

      • name (string) --

        The name of the service template.

      • pipelineProvisioning (string) --

        If pipelineProvisioning is true , a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template.

      • recommendedVersion (string) --

        The ID of the recommended version of the service template.

UpdateServiceTemplate (new) Link ¶

Update a service template.

See also: AWS API Documentation

Request Syntax

client.update_service_template(
    description='string',
    displayName='string',
    name='string'
)
type description

string

param description

A description of the service template update.

type displayName

string

param displayName

The name of the service template to update as displayed in the developer interface.

type name

string

param name

[REQUIRED]

The name of the service template to update.

rtype

dict

returns

Response Syntax

{
    'serviceTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipelineProvisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplate (dict) --

      The service template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service template.

      • createdAt (datetime) --

        The time when the service template was created.

      • description (string) --

        A description of the service template.

      • displayName (string) --

        The service template name as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided service template encryption key that's used to encrypt data.

      • lastModifiedAt (datetime) --

        The time when the service template was last modified.

      • name (string) --

        The name of the service template.

      • pipelineProvisioning (string) --

        If pipelineProvisioning is true , a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template.

      • recommendedVersion (string) --

        The ID of the recommended version of the service template.

GetEnvironmentTemplateVersion (new) Link ¶

View detail data for a major or minor version of an environment template.

See also: AWS API Documentation

Request Syntax

client.get_environment_template_version(
    majorVersion='string',
    minorVersion='string',
    templateName='string'
)
type majorVersion

string

param majorVersion

[REQUIRED]

To view environment template major version detail data, include majorVersion .

type minorVersion

string

param minorVersion

[REQUIRED]

To view environment template minor version detail data, include minorVersion .

type templateName

string

param templateName

[REQUIRED]

The name of the environment template.

rtype

dict

returns

Response Syntax

{
    'environmentTemplateVersion': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplateVersion (dict) --

      The environment template version detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of an environment template.

      • createdAt (datetime) --

        The time when the version of an environment template was created.

      • description (string) --

        A description of the minor version of an environment template.

      • lastModifiedAt (datetime) --

        The time when the version of an environment template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of an environment template.

      • minorVersion (string) --

        The ID of the minor version of an environment template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the environment template.

      • schema (string) --

        The schema of the version of an environment template.

      • status (string) --

        The status of the version of an environment template.

      • statusMessage (string) --

        The status message of the version of an environment template.

      • templateName (string) --

        The name of the version of an environment template.

CancelServicePipelineDeployment (new) Link ¶

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is IN_PROGRESS . For more information, see Update a service pipeline in the AWS Proton Administration guide or the AWS Proton User guide.

The following list includes potential cancellation scenarios.

  • If the cancellation attempt succeeds, the resulting deployment state is CANCELLED .

  • If the cancellation attempt fails, the resulting deployment state is FAILED .

  • If the current UpdateServicePipeline action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED and the cancellation attempt has no effect.

See also: AWS API Documentation

Request Syntax

client.cancel_service_pipeline_deployment(
    serviceName='string'
)
type serviceName

string

param serviceName

[REQUIRED]

The name of the service with the service pipeline deployment to cancel.

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • pipeline (dict) --

      The service pipeline detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service pipeline.

      • createdAt (datetime) --

        The time when the service pipeline was created.

      • deploymentStatus (string) --

        The deployment status of the service pipeline.

      • deploymentStatusMessage (string) --

        A service pipeline deployment status message.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the service pipeline was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the service pipeline was last deployed successfully.

      • spec (string) --

        The service spec that was used to create the service pipeline.

      • templateMajorVersion (string) --

        The ID of the major version of the service template that was used to create the service pipeline.

      • templateMinorVersion (string) --

        The ID of the minor version of the service template that was used to create the service pipeline.

      • templateName (string) --

        The name of the service template that was used to create the service pipeline.

GetEnvironmentTemplate (new) Link ¶

Get detail data for an environment template.

See also: AWS API Documentation

Request Syntax

client.get_environment_template(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the environment template that you want to get the detail data for.

rtype

dict

returns

Response Syntax

{
    'environmentTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplate (dict) --

      The environment template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment template.

      • createdAt (datetime) --

        The time when the environment template was created.

      • description (string) --

        A description of the environment template.

      • displayName (string) --

        The name of the environment template as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided encryption key for the environment template.

      • lastModifiedAt (datetime) --

        The time when the environment template was last modified.

      • name (string) --

        The name of the environment template.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • recommendedVersion (string) --

        The ID of the recommended version of the environment template.

CreateEnvironmentAccountConnection (new) Link ¶

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in the environment account from the management account.

An environment account connection is a secure bi-directional connection between a management account and an environment account that maintains authorization and permissions. For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.create_environment_account_connection(
    clientToken='string',
    environmentName='string',
    managementAccountId='string',
    roleArn='string'
)
type clientToken

string

param clientToken

When included, if two identicial requests are made with the same client token, AWS Proton returns the environment account connection that the first request created.

This field is autopopulated if not provided.

type environmentName

string

param environmentName

[REQUIRED]

The name of the AWS Proton environment that's created in the associated management account.

type managementAccountId

string

param managementAccountId

[REQUIRED]

The ID of the management account that accepts or rejects the environment account connection. You create an manage the AWS Proton environment in this account. If the management account accepts the environment account connection, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

type roleArn

string

param roleArn

[REQUIRED]

The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. AWS Proton uses this role to provision infrastructure resources in the associated environment account.

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnection': {
        'arn': 'string',
        'environmentAccountId': 'string',
        'environmentName': 'string',
        'id': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'managementAccountId': 'string',
        'requestedAt': datetime(2015, 1, 1),
        'roleArn': 'string',
        'status': 'PENDING'|'CONNECTED'|'REJECTED'
    }
}

Response Structure

  • (dict) --

    • environmentAccountConnection (dict) --

      The environment account connection detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment account connection.

      • environmentAccountId (string) --

        The environment account that's connected to the environment account connection.

      • environmentName (string) --

        The name of the environment that's associated with the environment account connection.

      • id (string) --

        The ID of the environment account connection.

      • lastModifiedAt (datetime) --

        The time when the environment account connection was last modified.

      • managementAccountId (string) --

        The ID of the management account that's connected to the environment account connection.

      • requestedAt (datetime) --

        The time when the environment account connection request was made.

      • roleArn (string) --

        The IAM service role that's associated with the environment account connection.

      • status (string) --

        The status of the environment account connection.

GetServiceInstance (new) Link ¶

Get detail data for a service instance. A service instance is an instantiation of service template, which is running in a specific environment.

See also: AWS API Documentation

Request Syntax

client.get_service_instance(
    name='string',
    serviceName='string'
)
type name

string

param name

[REQUIRED]

The name of a service instance that you want to get the detail data for.

type serviceName

string

param serviceName

[REQUIRED]

The name of the service that the service instance belongs to.

rtype

dict

returns

Response Syntax

{
    'serviceInstance': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'environmentName': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'serviceName': 'string',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceInstance (dict) --

      The service instance detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service instance.

      • createdAt (datetime) --

        The time when the service instance was created.

      • deploymentStatus (string) --

        The service instance deployment status.

      • deploymentStatusMessage (string) --

        A service instance deployment status message.

      • environmentName (string) --

        The name of the environment that the service instance was deployed into.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the service instance was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the service instance was last deployed successfully.

      • name (string) --

        The name of the service instance.

      • serviceName (string) --

        The name of the service that the service instance belongs to.

      • spec (string) --

        The service spec that was used to create the service instance.

      • templateMajorVersion (string) --

        The ID of the major version of the service template that was used to create the service instance.

      • templateMinorVersion (string) --

        The ID of the minor version of the service template that was used to create the service instance.

      • templateName (string) --

        The name of the service template that was used to create the service instance.

RejectEnvironmentAccountConnection (new) Link ¶

In a management account, reject an environment account connection from another environment account.

After you reject an environment account connection request, you won’t be able to accept or use the rejected environment account connection.

You can’t reject an environment account connection that is connected to an environment.

For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.reject_environment_account_connection(
    id='string'
)
type id

string

param id

[REQUIRED]

The ID of the environment account connection to reject.

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnection': {
        'arn': 'string',
        'environmentAccountId': 'string',
        'environmentName': 'string',
        'id': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'managementAccountId': 'string',
        'requestedAt': datetime(2015, 1, 1),
        'roleArn': 'string',
        'status': 'PENDING'|'CONNECTED'|'REJECTED'
    }
}

Response Structure

  • (dict) --

    • environmentAccountConnection (dict) --

      The environment connection account detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment account connection.

      • environmentAccountId (string) --

        The environment account that's connected to the environment account connection.

      • environmentName (string) --

        The name of the environment that's associated with the environment account connection.

      • id (string) --

        The ID of the environment account connection.

      • lastModifiedAt (datetime) --

        The time when the environment account connection was last modified.

      • managementAccountId (string) --

        The ID of the management account that's connected to the environment account connection.

      • requestedAt (datetime) --

        The time when the environment account connection request was made.

      • roleArn (string) --

        The IAM service role that's associated with the environment account connection.

      • status (string) --

        The status of the environment account connection.

ListEnvironmentAccountConnections (new) Link ¶

View a list of environment account connections.

For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.list_environment_account_connections(
    environmentName='string',
    maxResults=123,
    nextToken='string',
    requestedBy='MANAGEMENT_ACCOUNT'|'ENVIRONMENT_ACCOUNT',
    statuses=[
        'PENDING'|'CONNECTED'|'REJECTED',
    ]
)
type environmentName

string

param environmentName

The environment name that's associated with each listed environment account connection.

type maxResults

integer

param maxResults

The maximum number of environment account connections to list.

type nextToken

string

param nextToken

A token to indicate the location of the next environment account connection in the array of environment account connections, after the list of environment account connections that was previously requested.

type requestedBy

string

param requestedBy

[REQUIRED]

The type of account making the ListEnvironmentAccountConnections request.

type statuses

list

param statuses

The status details for each listed environment account connection.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnections': [
        {
            'arn': 'string',
            'environmentAccountId': 'string',
            'environmentName': 'string',
            'id': 'string',
            'lastModifiedAt': datetime(2015, 1, 1),
            'managementAccountId': 'string',
            'requestedAt': datetime(2015, 1, 1),
            'roleArn': 'string',
            'status': 'PENDING'|'CONNECTED'|'REJECTED'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • environmentAccountConnections (list) --

      An array of environment account connections with details that's returned by AWS Proton.

      • (dict) --

        A summary of the environment account connection detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the environment account connection.

        • environmentAccountId (string) --

          The ID of the environment account that's connected to the environment account connection.

        • environmentName (string) --

          The name of the environment that's associated with the environment account connection.

        • id (string) --

          The ID of the environment account connection.

        • lastModifiedAt (datetime) --

          The time when the environment account connection was last modified.

        • managementAccountId (string) --

          The ID of the management account that's connected to the environment account connection.

        • requestedAt (datetime) --

          The time when the environment account connection request was made.

        • roleArn (string) --

          The IAM service role that's associated with the environment account connection.

        • status (string) --

          The status of the environment account connection.

    • nextToken (string) --

      A token to indicate the location of the next environment account connection in the array of environment account connections, after the current requested list of environment account connections.

GetServiceTemplate (new) Link ¶

Get detail data for a service template.

See also: AWS API Documentation

Request Syntax

client.get_service_template(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the service template that you want to get detail data for.

rtype

dict

returns

Response Syntax

{
    'serviceTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipelineProvisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplate (dict) --

      The service template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service template.

      • createdAt (datetime) --

        The time when the service template was created.

      • description (string) --

        A description of the service template.

      • displayName (string) --

        The service template name as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided service template encryption key that's used to encrypt data.

      • lastModifiedAt (datetime) --

        The time when the service template was last modified.

      • name (string) --

        The name of the service template.

      • pipelineProvisioning (string) --

        If pipelineProvisioning is true , a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template.

      • recommendedVersion (string) --

        The ID of the recommended version of the service template.

DeleteServiceTemplateVersion (new) Link ¶

If no other minor versions of a service template exist, delete a major version of the service template if it's not the Recommended version. Delete the Recommended version of the service template if no other major versions or minor versions of the service template exist. A major version of a service template is a version that isn't backwards compatible.

Delete a minor version of a service template if it's not the Recommended version. Delete a Recommended minor version of the service template if no other minor versions of the service template exist. A minor version of a service template is a version that's backwards compatible.

See also: AWS API Documentation

Request Syntax

client.delete_service_template_version(
    majorVersion='string',
    minorVersion='string',
    templateName='string'
)
type majorVersion

string

param majorVersion

[REQUIRED]

The service template major version to delete.

type minorVersion

string

param minorVersion

[REQUIRED]

The service template minor version to delete.

type templateName

string

param templateName

[REQUIRED]

The name of the service template.

rtype

dict

returns

Response Syntax

{
    'serviceTemplateVersion': {
        'arn': 'string',
        'compatibleEnvironmentTemplates': [
            {
                'majorVersion': 'string',
                'templateName': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplateVersion (dict) --

      The service template version detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of a service template.

      • compatibleEnvironmentTemplates (list) --

        An array of compatible environment template names for the major version of a service template.

        • (dict) --

          Compatible environment template data.

          • majorVersion (string) --

            The major version of the compatible environment template.

          • templateName (string) --

            The compatible environment template name.

      • createdAt (datetime) --

        The time when the version of a service template was created.

      • description (string) --

        A description of the version of a service template.

      • lastModifiedAt (datetime) --

        The time when the version of a service template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of a service template.

      • minorVersion (string) --

        The ID of the minor version of a service template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the service template.

      • schema (string) --

        The schema of the version of a service template.

      • status (string) --

        The service template version status.

      • statusMessage (string) --

        A service template version status message.

      • templateName (string) --

        The name of the version of a service template.

ListEnvironmentTemplateVersions (new) Link ¶

List major or minor versions of an environment template with detail data.

See also: AWS API Documentation

Request Syntax

client.list_environment_template_versions(
    majorVersion='string',
    maxResults=123,
    nextToken='string',
    templateName='string'
)
type majorVersion

string

param majorVersion

To view a list of minor of versions under a major version of an environment template, include majorVersion .

To view a list of major versions of an environment template, exclude majorVersion .

type maxResults

integer

param maxResults

The maximum number of major or minor versions of an environment template to list.

type nextToken

string

param nextToken

A token to indicate the location of the next major or minor version in the array of major or minor versions of an environment template, after the list of major or minor versions that was previously requested.

type templateName

string

param templateName

[REQUIRED]

The name of the environment template.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'templateVersions': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'description': 'string',
            'lastModifiedAt': datetime(2015, 1, 1),
            'majorVersion': 'string',
            'minorVersion': 'string',
            'recommendedMinorVersion': 'string',
            'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
            'statusMessage': 'string',
            'templateName': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next major or minor version in the array of major or minor versions of an environment template, after the list of major or minor versions that was previously requested.

    • templateVersions (list) --

      An array of major or minor versions of an environment template detail data.

      • (dict) --

        A summary of the version of an environment template detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the version of an environment template.

        • createdAt (datetime) --

          The time when the version of an environment template was created.

        • description (string) --

          A description of the version of an environment template.

        • lastModifiedAt (datetime) --

          The time when the version of an environment template was last modified.

        • majorVersion (string) --

          The ID of the latest major version that's associated with the version of an environment template.

        • minorVersion (string) --

          The ID of the version of an environment template.

        • recommendedMinorVersion (string) --

          The ID of the recommended minor version of the environment template.

        • status (string) --

          The status of the version of an environment template.

        • statusMessage (string) --

          The status message of the version of an environment template.

        • templateName (string) --

          The name of the version of an environment template.

UntagResource (new) Link ¶

Remove a tag from a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
type resourceArn

string

param resourceArn

[REQUIRED]

The Amazon Resource Name (ARN) of the resource that the tag is to be removed from.

type tagKeys

list

param tagKeys

[REQUIRED]

An array of tag keys indicating the resource tags to be removed from the resource.

  • (string) --

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

UpdateService (new) Link ¶

Edit a service description or use a spec to add and delete service instances.

Note

Existing service instances and the service pipeline can't be edited using this API. They can only be deleted.

Use the description parameter to modify the description.

Edit the spec parameter to add or delete instances.

See also: AWS API Documentation

Request Syntax

client.update_service(
    description='string',
    name='string',
    spec='string'
)
type description

string

param description

The edited service description.

type name

string

param name

[REQUIRED]

The name of the service to edit.

type spec

string

param spec

Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the AWS Proton Administration Guide or the AWS Proton User Guide.

rtype

dict

returns

Response Syntax

{
    'service': {
        'arn': 'string',
        'branchName': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipeline': {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
            'deploymentStatusMessage': 'string',
            'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
            'lastDeploymentSucceededAt': datetime(2015, 1, 1),
            'spec': 'string',
            'templateMajorVersion': 'string',
            'templateMinorVersion': 'string',
            'templateName': 'string'
        },
        'repositoryConnectionArn': 'string',
        'repositoryId': 'string',
        'spec': 'string',
        'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_COMPLETE'|'CREATE_FAILED_CLEANUP_FAILED'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_COMPLETE'|'UPDATE_FAILED_CLEANUP_FAILED'|'UPDATE_FAILED'|'UPDATE_COMPLETE_CLEANUP_FAILED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • service (dict) --

      The service detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service.

      • branchName (string) --

        The name of the code repository branch that holds the code that's deployed in AWS Proton.

      • createdAt (datetime) --

        The time when the service was created.

      • description (string) --

        A description of a service.

      • lastModifiedAt (datetime) --

        The time when the service was last modified.

      • name (string) --

        The name of the service.

      • pipeline (dict) --

        The service pipeline detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service pipeline.

        • createdAt (datetime) --

          The time when the service pipeline was created.

        • deploymentStatus (string) --

          The deployment status of the service pipeline.

        • deploymentStatusMessage (string) --

          A service pipeline deployment status message.

        • lastDeploymentAttemptedAt (datetime) --

          The time when a deployment of the service pipeline was last attempted.

        • lastDeploymentSucceededAt (datetime) --

          The time when the service pipeline was last deployed successfully.

        • spec (string) --

          The service spec that was used to create the service pipeline.

        • templateMajorVersion (string) --

          The ID of the major version of the service template that was used to create the service pipeline.

        • templateMinorVersion (string) --

          The ID of the minor version of the service template that was used to create the service pipeline.

        • templateName (string) --

          The name of the service template that was used to create the service pipeline.

      • repositoryConnectionArn (string) --

        The ARN of the repository connection. For more information, see Set up a repository connection in the AWS Proton Administration Guide and Getting started in the AWS Proton User Guide .

      • repositoryId (string) --

        The ID of the code repository.

      • spec (string) --

        The formatted specification that defines the service.

      • status (string) --

        The status of the service.

      • statusMessage (string) --

        A service status message.

      • templateName (string) --

        The name of the service template.

CreateEnvironmentTemplateVersion (new) Link ¶

Create a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards compatible within its major version.

See also: AWS API Documentation

Request Syntax

client.create_environment_template_version(
    clientToken='string',
    description='string',
    majorVersion='string',
    source={
        's3': {
            'bucket': 'string',
            'key': 'string'
        }
    },
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    templateName='string'
)
type clientToken

string

param clientToken

When included, if two identicial requests are made with the same client token, AWS Proton returns the environment template version that the first request created.

This field is autopopulated if not provided.

type description

string

param description

A description of the new version of an environment template.

type majorVersion

string

param majorVersion

To create a new minor version of the environment template, include a majorVersion .

To create a new major and minor version of the environment template, exclude majorVersion .

type source

dict

param source

[REQUIRED]

An object that includes the template bundle S3 bucket path and name for the new version of an template.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: s3.

  • s3 (dict) --

    An S3 source object that includes the template bundle S3 path and name for a template minor version.

    • bucket (string) -- [REQUIRED]

      The name of the S3 bucket that contains a template bundle.

    • key (string) -- [REQUIRED]

      The path to the S3 bucket that contains a template bundle.

type tags

list

param tags

Create tags for a new version of an environment template.

  • (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.

type templateName

string

param templateName

[REQUIRED]

The name of the environment template.

rtype

dict

returns

Response Syntax

{
    'environmentTemplateVersion': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplateVersion (dict) --

      The environment template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of an environment template.

      • createdAt (datetime) --

        The time when the version of an environment template was created.

      • description (string) --

        A description of the minor version of an environment template.

      • lastModifiedAt (datetime) --

        The time when the version of an environment template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of an environment template.

      • minorVersion (string) --

        The ID of the minor version of an environment template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the environment template.

      • schema (string) --

        The schema of the version of an environment template.

      • status (string) --

        The status of the version of an environment template.

      • statusMessage (string) --

        The status message of the version of an environment template.

      • templateName (string) --

        The name of the version of an environment template.

ListEnvironmentTemplates (new) Link ¶

List environment templates.

See also: AWS API Documentation

Request Syntax

client.list_environment_templates(
    maxResults=123,
    nextToken='string'
)
type maxResults

integer

param maxResults

The maximum number of environment templates to list.

type nextToken

string

param nextToken

A token to indicate the location of the next environment template in the array of environment templates, after the list of environment templates that was previously requested.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'templates': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'description': 'string',
            'displayName': 'string',
            'lastModifiedAt': datetime(2015, 1, 1),
            'name': 'string',
            'provisioning': 'CUSTOMER_MANAGED',
            'recommendedVersion': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next environment template in the array of environment templates, after the current requested list of environment templates.

    • templates (list) --

      An array of environment templates with detail data.

      • (dict) --

        The environment template data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the environment template.

        • createdAt (datetime) --

          The time when the environment template was created.

        • description (string) --

          A description of the environment template.

        • displayName (string) --

          The name of the environment template as displayed in the developer interface.

        • lastModifiedAt (datetime) --

          The time when the environment template was last modified.

        • name (string) --

          The name of the environment template.

        • provisioning (string) --

          When included, indicates that the environment template is for customer provisioned and managed infrastructure.

        • recommendedVersion (string) --

          The ID of the recommended version of the environment template.

ListServiceTemplateVersions (new) Link ¶

List major or minor versions of a service template with detail data.

See also: AWS API Documentation

Request Syntax

client.list_service_template_versions(
    majorVersion='string',
    maxResults=123,
    nextToken='string',
    templateName='string'
)
type majorVersion

string

param majorVersion

To view a list of minor of versions under a major version of a service template, include majorVersion .

To view a list of major versions of a service template, exclude majorVersion .

type maxResults

integer

param maxResults

The maximum number of major or minor versions of a service template to list.

type nextToken

string

param nextToken

A token to indicate the location of the next major or minor version in the array of major or minor versions of a service template, after the list of major or minor versions that was previously requested.

type templateName

string

param templateName

[REQUIRED]

The name of the service template.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'templateVersions': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'description': 'string',
            'lastModifiedAt': datetime(2015, 1, 1),
            'majorVersion': 'string',
            'minorVersion': 'string',
            'recommendedMinorVersion': 'string',
            'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
            'statusMessage': 'string',
            'templateName': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next major or minor version in the array of major or minor versions of a service template, after the list of major or minor versions that was previously requested.

    • templateVersions (list) --

      An array of major or minor versions of a service template with detail data.

      • (dict) --

        A summary of the service template version detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the version of a service template.

        • createdAt (datetime) --

          The time when the version of a service template was created.

        • description (string) --

          A description of the version of a service template.

        • lastModifiedAt (datetime) --

          The time when the version of a service template was last modified.

        • majorVersion (string) --

          The ID of the latest major version that's associated with the version of a service template.

        • minorVersion (string) --

          The ID of the minor version of a service template.

        • recommendedMinorVersion (string) --

          The ID of the recommended minor version of the service template.

        • status (string) --

          The service template minor version status.

        • statusMessage (string) --

          A service template minor version status message.

        • templateName (string) --

          The name of the service template.

UpdateAccountSettings (new) Link ¶

Update the AWS Proton pipeline service account settings.

See also: AWS API Documentation

Request Syntax

client.update_account_settings(
    pipelineServiceRoleArn='string'
)
type pipelineServiceRoleArn

string

param pipelineServiceRoleArn

The Amazon Resource Name (ARN) of the AWS Proton pipeline service role.

rtype

dict

returns

Response Syntax

{
    'accountSettings': {
        'pipelineServiceRoleArn': 'string'
    }
}

Response Structure

  • (dict) --

    • accountSettings (dict) --

      The AWS Proton pipeline service role detail data that's returned by AWS Proton.

      • pipelineServiceRoleArn (string) --

        The Amazon Resource Name (ARN) of the AWS Proton pipeline service role.

GetService (new) Link ¶

Get detail data for a service.

See also: AWS API Documentation

Request Syntax

client.get_service(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the service that you want to get the detail data for.

rtype

dict

returns

Response Syntax

{
    'service': {
        'arn': 'string',
        'branchName': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipeline': {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
            'deploymentStatusMessage': 'string',
            'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
            'lastDeploymentSucceededAt': datetime(2015, 1, 1),
            'spec': 'string',
            'templateMajorVersion': 'string',
            'templateMinorVersion': 'string',
            'templateName': 'string'
        },
        'repositoryConnectionArn': 'string',
        'repositoryId': 'string',
        'spec': 'string',
        'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_COMPLETE'|'CREATE_FAILED_CLEANUP_FAILED'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_COMPLETE'|'UPDATE_FAILED_CLEANUP_FAILED'|'UPDATE_FAILED'|'UPDATE_COMPLETE_CLEANUP_FAILED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • service (dict) --

      The service detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service.

      • branchName (string) --

        The name of the code repository branch that holds the code that's deployed in AWS Proton.

      • createdAt (datetime) --

        The time when the service was created.

      • description (string) --

        A description of a service.

      • lastModifiedAt (datetime) --

        The time when the service was last modified.

      • name (string) --

        The name of the service.

      • pipeline (dict) --

        The service pipeline detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service pipeline.

        • createdAt (datetime) --

          The time when the service pipeline was created.

        • deploymentStatus (string) --

          The deployment status of the service pipeline.

        • deploymentStatusMessage (string) --

          A service pipeline deployment status message.

        • lastDeploymentAttemptedAt (datetime) --

          The time when a deployment of the service pipeline was last attempted.

        • lastDeploymentSucceededAt (datetime) --

          The time when the service pipeline was last deployed successfully.

        • spec (string) --

          The service spec that was used to create the service pipeline.

        • templateMajorVersion (string) --

          The ID of the major version of the service template that was used to create the service pipeline.

        • templateMinorVersion (string) --

          The ID of the minor version of the service template that was used to create the service pipeline.

        • templateName (string) --

          The name of the service template that was used to create the service pipeline.

      • repositoryConnectionArn (string) --

        The ARN of the repository connection. For more information, see Set up a repository connection in the AWS Proton Administration Guide and Getting started in the AWS Proton User Guide .

      • repositoryId (string) --

        The ID of the code repository.

      • spec (string) --

        The formatted specification that defines the service.

      • status (string) --

        The status of the service.

      • statusMessage (string) --

        A service status message.

      • templateName (string) --

        The name of the service template.

ListEnvironments (new) Link ¶

List environments with detail data summaries.

See also: AWS API Documentation

Request Syntax

client.list_environments(
    environmentTemplates=[
        {
            'majorVersion': 'string',
            'templateName': 'string'
        },
    ],
    maxResults=123,
    nextToken='string'
)
type environmentTemplates

list

param environmentTemplates

An array of the versions of the environment template.

  • (dict) --

    A search filter for environment templates.

    • majorVersion (string) -- [REQUIRED]

      Include majorVersion to filter search for a major version.

    • templateName (string) -- [REQUIRED]

      Include templateName to filter search for a template name.

type maxResults

integer

param maxResults

The maximum number of environments to list.

type nextToken

string

param nextToken

A token to indicate the location of the next environment in the array of environments, after the list of environments that was previously requested.

rtype

dict

returns

Response Syntax

{
    'environments': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
            'deploymentStatusMessage': 'string',
            'description': 'string',
            'environmentAccountConnectionId': 'string',
            'environmentAccountId': 'string',
            'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
            'lastDeploymentSucceededAt': datetime(2015, 1, 1),
            'name': 'string',
            'protonServiceRoleArn': 'string',
            'provisioning': 'CUSTOMER_MANAGED',
            'templateMajorVersion': 'string',
            'templateMinorVersion': 'string',
            'templateName': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • environments (list) --

      An array of environment detail data summaries.

      • (dict) --

        A summary of the environment detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the environment.

        • createdAt (datetime) --

          The time when the environment was created.

        • deploymentStatus (string) --

          The environment deployment status.

        • deploymentStatusMessage (string) --

          An environment deployment status message.

        • description (string) --

          The description of the environment.

        • environmentAccountConnectionId (string) --

          The ID of the environment account connection that the environment is associated with.

        • environmentAccountId (string) --

          The ID of the environment account that the environment infrastructure resources are provisioned in.

        • lastDeploymentAttemptedAt (datetime) --

          The time when a deployment of the environment was last attempted.

        • lastDeploymentSucceededAt (datetime) --

          The time when the environment was last deployed successfully.

        • name (string) --

          The name of the environment.

        • protonServiceRoleArn (string) --

          The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

        • provisioning (string) --

          When included, indicates that the environment template is for customer provisioned and managed infrastructure.

        • templateMajorVersion (string) --

          The ID of the major version of the environment template.

        • templateMinorVersion (string) --

          The ID of the minor version of the environment template.

        • templateName (string) --

          The name of the environment template.

    • nextToken (string) --

      A token to indicate the location of the next environment in the array of environments, after the current requested list of environments.

DeleteService (new) Link ¶

Delete a service.

See also: AWS API Documentation

Request Syntax

client.delete_service(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the service to delete.

rtype

dict

returns

Response Syntax

{
    'service': {
        'arn': 'string',
        'branchName': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipeline': {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
            'deploymentStatusMessage': 'string',
            'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
            'lastDeploymentSucceededAt': datetime(2015, 1, 1),
            'spec': 'string',
            'templateMajorVersion': 'string',
            'templateMinorVersion': 'string',
            'templateName': 'string'
        },
        'repositoryConnectionArn': 'string',
        'repositoryId': 'string',
        'spec': 'string',
        'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_COMPLETE'|'CREATE_FAILED_CLEANUP_FAILED'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_COMPLETE'|'UPDATE_FAILED_CLEANUP_FAILED'|'UPDATE_FAILED'|'UPDATE_COMPLETE_CLEANUP_FAILED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • service (dict) --

      The service detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service.

      • branchName (string) --

        The name of the code repository branch that holds the code that's deployed in AWS Proton.

      • createdAt (datetime) --

        The time when the service was created.

      • description (string) --

        A description of a service.

      • lastModifiedAt (datetime) --

        The time when the service was last modified.

      • name (string) --

        The name of the service.

      • pipeline (dict) --

        The service pipeline detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service pipeline.

        • createdAt (datetime) --

          The time when the service pipeline was created.

        • deploymentStatus (string) --

          The deployment status of the service pipeline.

        • deploymentStatusMessage (string) --

          A service pipeline deployment status message.

        • lastDeploymentAttemptedAt (datetime) --

          The time when a deployment of the service pipeline was last attempted.

        • lastDeploymentSucceededAt (datetime) --

          The time when the service pipeline was last deployed successfully.

        • spec (string) --

          The service spec that was used to create the service pipeline.

        • templateMajorVersion (string) --

          The ID of the major version of the service template that was used to create the service pipeline.

        • templateMinorVersion (string) --

          The ID of the minor version of the service template that was used to create the service pipeline.

        • templateName (string) --

          The name of the service template that was used to create the service pipeline.

      • repositoryConnectionArn (string) --

        The ARN of the repository connection. For more information, see Set up a repository connection in the AWS Proton Administration Guide and Getting started in the AWS Proton User Guide .

      • repositoryId (string) --

        The ID of the code repository.

      • spec (string) --

        The formatted specification that defines the service.

      • status (string) --

        The status of the service.

      • statusMessage (string) --

        A service status message.

      • templateName (string) --

        The name of the service template.

UpdateEnvironmentAccountConnection (new) Link ¶

In an environment account, update an environment account connection to use a new IAM role.

For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.update_environment_account_connection(
    id='string',
    roleArn='string'
)
type id

string

param id

[REQUIRED]

The ID of the environment account connection to update.

type roleArn

string

param roleArn

[REQUIRED]

The Amazon Resource Name (ARN) of the IAM service role that is associated with the environment account connection to update.

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnection': {
        'arn': 'string',
        'environmentAccountId': 'string',
        'environmentName': 'string',
        'id': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'managementAccountId': 'string',
        'requestedAt': datetime(2015, 1, 1),
        'roleArn': 'string',
        'status': 'PENDING'|'CONNECTED'|'REJECTED'
    }
}

Response Structure

  • (dict) --

    • environmentAccountConnection (dict) --

      The environment account connection detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment account connection.

      • environmentAccountId (string) --

        The environment account that's connected to the environment account connection.

      • environmentName (string) --

        The name of the environment that's associated with the environment account connection.

      • id (string) --

        The ID of the environment account connection.

      • lastModifiedAt (datetime) --

        The time when the environment account connection was last modified.

      • managementAccountId (string) --

        The ID of the management account that's connected to the environment account connection.

      • requestedAt (datetime) --

        The time when the environment account connection request was made.

      • roleArn (string) --

        The IAM service role that's associated with the environment account connection.

      • status (string) --

        The status of the environment account connection.

CreateServiceTemplateVersion (new) Link ¶

Create a new major or minor version of a service template. A major version of a service template is a version that isn't backwards compatible. A minor version of a service template is a version that's backwards compatible within its major version.

See also: AWS API Documentation

Request Syntax

client.create_service_template_version(
    clientToken='string',
    compatibleEnvironmentTemplates=[
        {
            'majorVersion': 'string',
            'templateName': 'string'
        },
    ],
    description='string',
    majorVersion='string',
    source={
        's3': {
            'bucket': 'string',
            'key': 'string'
        }
    },
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    templateName='string'
)
type clientToken

string

param clientToken

When included, if two identicial requests are made with the same client token, AWS Proton returns the service template version that the first request created.

This field is autopopulated if not provided.

type compatibleEnvironmentTemplates

list

param compatibleEnvironmentTemplates

[REQUIRED]

An array of compatible environment template objects for the new version of a service template.

  • (dict) --

    Compatible environment template data.

    • majorVersion (string) -- [REQUIRED]

      The major version of the compatible environment template.

    • templateName (string) -- [REQUIRED]

      The compatible environment template name.

type description

string

param description

A description of the new version of a service template.

type majorVersion

string

param majorVersion

To create a new minor version of the service template, include a majorVersion .

To create a new major and minor version of the service template, exclude majorVersion .

type source

dict

param source

[REQUIRED]

An object that includes the template bundle S3 bucket path and name for the new version of a service template.

Note

This is a Tagged Union structure. Only one of the following top level keys can be set: s3.

  • s3 (dict) --

    An S3 source object that includes the template bundle S3 path and name for a template minor version.

    • bucket (string) -- [REQUIRED]

      The name of the S3 bucket that contains a template bundle.

    • key (string) -- [REQUIRED]

      The path to the S3 bucket that contains a template bundle.

type tags

list

param tags

Create tags for a new version of a service template.

  • (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.

type templateName

string

param templateName

[REQUIRED]

The name of the service template.

rtype

dict

returns

Response Syntax

{
    'serviceTemplateVersion': {
        'arn': 'string',
        'compatibleEnvironmentTemplates': [
            {
                'majorVersion': 'string',
                'templateName': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplateVersion (dict) --

      The service template version summary of detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of a service template.

      • compatibleEnvironmentTemplates (list) --

        An array of compatible environment template names for the major version of a service template.

        • (dict) --

          Compatible environment template data.

          • majorVersion (string) --

            The major version of the compatible environment template.

          • templateName (string) --

            The compatible environment template name.

      • createdAt (datetime) --

        The time when the version of a service template was created.

      • description (string) --

        A description of the version of a service template.

      • lastModifiedAt (datetime) --

        The time when the version of a service template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of a service template.

      • minorVersion (string) --

        The ID of the minor version of a service template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the service template.

      • schema (string) --

        The schema of the version of a service template.

      • status (string) --

        The service template version status.

      • statusMessage (string) --

        A service template version status message.

      • templateName (string) --

        The name of the version of a service template.

DeleteEnvironmentAccountConnection (new) Link ¶

In an environment account, delete an environment account connection.

After you delete an environment account connection that’s in use by an AWS Proton environment, AWS Proton can’t manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.

For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.delete_environment_account_connection(
    id='string'
)
type id

string

param id

[REQUIRED]

The ID of the environment account connection to delete.

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnection': {
        'arn': 'string',
        'environmentAccountId': 'string',
        'environmentName': 'string',
        'id': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'managementAccountId': 'string',
        'requestedAt': datetime(2015, 1, 1),
        'roleArn': 'string',
        'status': 'PENDING'|'CONNECTED'|'REJECTED'
    }
}

Response Structure

  • (dict) --

    • environmentAccountConnection (dict) --

      The environment account connection detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment account connection.

      • environmentAccountId (string) --

        The environment account that's connected to the environment account connection.

      • environmentName (string) --

        The name of the environment that's associated with the environment account connection.

      • id (string) --

        The ID of the environment account connection.

      • lastModifiedAt (datetime) --

        The time when the environment account connection was last modified.

      • managementAccountId (string) --

        The ID of the management account that's connected to the environment account connection.

      • requestedAt (datetime) --

        The time when the environment account connection request was made.

      • roleArn (string) --

        The IAM service role that's associated with the environment account connection.

      • status (string) --

        The status of the environment account connection.

GetEnvironment (new) Link ¶

Get detail data for an environment.

See also: AWS API Documentation

Request Syntax

client.get_environment(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the environment that you want to get the detail data for.

rtype

dict

returns

Response Syntax

{
    'environment': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'description': 'string',
        'environmentAccountConnectionId': 'string',
        'environmentAccountId': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'protonServiceRoleArn': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environment (dict) --

      The environment detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment.

      • createdAt (datetime) --

        The time when the environment was created.

      • deploymentStatus (string) --

        The environment deployment status.

      • deploymentStatusMessage (string) --

        An environment deployment status message.

      • description (string) --

        The description of the environment.

      • environmentAccountConnectionId (string) --

        The ID of the environment account connection that's used to provision infrastructure resources in an environment account.

      • environmentAccountId (string) --

        The ID of the environment account that the environment infrastructure resources are provisioned in.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the environment was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the environment was last deployed successfully.

      • name (string) --

        The name of the environment.

      • protonServiceRoleArn (string) --

        The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • spec (string) --

        The environment spec.

      • templateMajorVersion (string) --

        The ID of the major version of the environment template.

      • templateMinorVersion (string) --

        The ID of the minor version of the environment template.

      • templateName (string) --

        The ARN of the environment template.

CancelEnvironmentDeployment (new) Link ¶

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS . For more information, see Update an environment in the AWS Proton Administration guide .

The following list includes potential cancellation scenarios.

  • If the cancellation attempt succeeds, the resulting deployment state is CANCELLED .

  • If the cancellation attempt fails, the resulting deployment state is FAILED .

  • If the current UpdateEnvironment action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED and the cancellation attempt has no effect.

See also: AWS API Documentation

Request Syntax

client.cancel_environment_deployment(
    environmentName='string'
)
type environmentName

string

param environmentName

[REQUIRED]

The name of the environment with the deployment to cancel.

rtype

dict

returns

Response Syntax

{
    'environment': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'description': 'string',
        'environmentAccountConnectionId': 'string',
        'environmentAccountId': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'protonServiceRoleArn': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environment (dict) --

      The environment summary data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment.

      • createdAt (datetime) --

        The time when the environment was created.

      • deploymentStatus (string) --

        The environment deployment status.

      • deploymentStatusMessage (string) --

        An environment deployment status message.

      • description (string) --

        The description of the environment.

      • environmentAccountConnectionId (string) --

        The ID of the environment account connection that's used to provision infrastructure resources in an environment account.

      • environmentAccountId (string) --

        The ID of the environment account that the environment infrastructure resources are provisioned in.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the environment was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the environment was last deployed successfully.

      • name (string) --

        The name of the environment.

      • protonServiceRoleArn (string) --

        The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • spec (string) --

        The environment spec.

      • templateMajorVersion (string) --

        The ID of the major version of the environment template.

      • templateMinorVersion (string) --

        The ID of the minor version of the environment template.

      • templateName (string) --

        The ARN of the environment template.

ListServices (new) Link ¶

List services with summaries of detail data.

See also: AWS API Documentation

Request Syntax

client.list_services(
    maxResults=123,
    nextToken='string'
)
type maxResults

integer

param maxResults

The maximum number of services to list.

type nextToken

string

param nextToken

A token to indicate the location of the next service in the array of services, after the list of services that was previously requested.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'services': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'description': 'string',
            'lastModifiedAt': datetime(2015, 1, 1),
            'name': 'string',
            'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_COMPLETE'|'CREATE_FAILED_CLEANUP_FAILED'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_COMPLETE'|'UPDATE_FAILED_CLEANUP_FAILED'|'UPDATE_FAILED'|'UPDATE_COMPLETE_CLEANUP_FAILED',
            'statusMessage': 'string',
            'templateName': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next service in the array of services, after the current requested list of services.

    • services (list) --

      An array of services with summaries of detail data.

      • (dict) --

        A summary of the service detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service.

        • createdAt (datetime) --

          The time when the service was created.

        • description (string) --

          A description of the service.

        • lastModifiedAt (datetime) --

          The time when the service was last modified.

        • name (string) --

          The name of the service.

        • status (string) --

          The status of the service.

        • statusMessage (string) --

          A service status message.

        • templateName (string) --

          The name of the service template.

AcceptEnvironmentAccountConnection (new) Link ¶

In a management account, an environment account connection request is accepted. When the environment account connection request is accepted, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.accept_environment_account_connection(
    id='string'
)
type id

string

param id

[REQUIRED]

The ID of the environment account connection.

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnection': {
        'arn': 'string',
        'environmentAccountId': 'string',
        'environmentName': 'string',
        'id': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'managementAccountId': 'string',
        'requestedAt': datetime(2015, 1, 1),
        'roleArn': 'string',
        'status': 'PENDING'|'CONNECTED'|'REJECTED'
    }
}

Response Structure

  • (dict) --

    • environmentAccountConnection (dict) --

      The environment account connection data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment account connection.

      • environmentAccountId (string) --

        The environment account that's connected to the environment account connection.

      • environmentName (string) --

        The name of the environment that's associated with the environment account connection.

      • id (string) --

        The ID of the environment account connection.

      • lastModifiedAt (datetime) --

        The time when the environment account connection was last modified.

      • managementAccountId (string) --

        The ID of the management account that's connected to the environment account connection.

      • requestedAt (datetime) --

        The time when the environment account connection request was made.

      • roleArn (string) --

        The IAM service role that's associated with the environment account connection.

      • status (string) --

        The status of the environment account connection.

CreateService (new) Link ¶

Create an AWS Proton service. An AWS Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the AWS Proton Administration Guide and Services in the AWS Proton User Guide .

See also: AWS API Documentation

Request Syntax

client.create_service(
    branchName='string',
    description='string',
    name='string',
    repositoryConnectionArn='string',
    repositoryId='string',
    spec='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    templateMajorVersion='string',
    templateMinorVersion='string',
    templateName='string'
)
type branchName

string

param branchName

The name of the code repository branch that holds the code that's deployed in AWS Proton. Don't include this parameter if your service template doesn't include a service pipeline.

type description

string

param description

A description of the AWS Proton service.

type name

string

param name

[REQUIRED]

The service name.

type repositoryConnectionArn

string

param repositoryConnectionArn

The ARN of the repository connection. For more information, see Set up repository connection in the AWS Proton Administration Guide and Getting started in the AWS Proton User Guide . Don't include this parameter if your service template doesn't include a service pipeline.

type repositoryId

string

param repositoryId

The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.

type spec

string

param spec

[REQUIRED]

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the AWS Proton Administration Guide and Create a service in the AWS Proton User Guide .

type tags

list

param tags

Create tags for your service. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS 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.

type templateMajorVersion

string

param templateMajorVersion

[REQUIRED]

The ID of the major version of the service template that was used to create the service.

type templateMinorVersion

string

param templateMinorVersion

The ID of the minor version of the service template that was used to create the service.

type templateName

string

param templateName

[REQUIRED]

The name of the service template that's used to create the service.

rtype

dict

returns

Response Syntax

{
    'service': {
        'arn': 'string',
        'branchName': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipeline': {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
            'deploymentStatusMessage': 'string',
            'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
            'lastDeploymentSucceededAt': datetime(2015, 1, 1),
            'spec': 'string',
            'templateMajorVersion': 'string',
            'templateMinorVersion': 'string',
            'templateName': 'string'
        },
        'repositoryConnectionArn': 'string',
        'repositoryId': 'string',
        'spec': 'string',
        'status': 'CREATE_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_IN_PROGRESS'|'CREATE_FAILED_CLEANUP_COMPLETE'|'CREATE_FAILED_CLEANUP_FAILED'|'CREATE_FAILED'|'ACTIVE'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_IN_PROGRESS'|'UPDATE_FAILED_CLEANUP_COMPLETE'|'UPDATE_FAILED_CLEANUP_FAILED'|'UPDATE_FAILED'|'UPDATE_COMPLETE_CLEANUP_FAILED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • service (dict) --

      The service detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service.

      • branchName (string) --

        The name of the code repository branch that holds the code that's deployed in AWS Proton.

      • createdAt (datetime) --

        The time when the service was created.

      • description (string) --

        A description of a service.

      • lastModifiedAt (datetime) --

        The time when the service was last modified.

      • name (string) --

        The name of the service.

      • pipeline (dict) --

        The service pipeline detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service pipeline.

        • createdAt (datetime) --

          The time when the service pipeline was created.

        • deploymentStatus (string) --

          The deployment status of the service pipeline.

        • deploymentStatusMessage (string) --

          A service pipeline deployment status message.

        • lastDeploymentAttemptedAt (datetime) --

          The time when a deployment of the service pipeline was last attempted.

        • lastDeploymentSucceededAt (datetime) --

          The time when the service pipeline was last deployed successfully.

        • spec (string) --

          The service spec that was used to create the service pipeline.

        • templateMajorVersion (string) --

          The ID of the major version of the service template that was used to create the service pipeline.

        • templateMinorVersion (string) --

          The ID of the minor version of the service template that was used to create the service pipeline.

        • templateName (string) --

          The name of the service template that was used to create the service pipeline.

      • repositoryConnectionArn (string) --

        The ARN of the repository connection. For more information, see Set up a repository connection in the AWS Proton Administration Guide and Getting started in the AWS Proton User Guide .

      • repositoryId (string) --

        The ID of the code repository.

      • spec (string) --

        The formatted specification that defines the service.

      • status (string) --

        The status of the service.

      • statusMessage (string) --

        A service status message.

      • templateName (string) --

        The name of the service template.

ListServiceTemplates (new) Link ¶

List service templates with detail data.

See also: AWS API Documentation

Request Syntax

client.list_service_templates(
    maxResults=123,
    nextToken='string'
)
type maxResults

integer

param maxResults

The maximum number of service templates to list.

type nextToken

string

param nextToken

A token to indicate the location of the next service template in the array of service templates, after the list of service templates previously requested.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'templates': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'description': 'string',
            'displayName': 'string',
            'lastModifiedAt': datetime(2015, 1, 1),
            'name': 'string',
            'pipelineProvisioning': 'CUSTOMER_MANAGED',
            'recommendedVersion': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next service template in the array of service templates, after the current requested list of service templates.

    • templates (list) --

      An array of service templates with detail data.

      • (dict) --

        The service template summary data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service template.

        • createdAt (datetime) --

          The time when the service template was created.

        • description (string) --

          A description of the service template.

        • displayName (string) --

          The service template name as displayed in the developer interface.

        • lastModifiedAt (datetime) --

          The time when the service template was last modified.

        • name (string) --

          The name of the service template.

        • pipelineProvisioning (string) --

          If pipelineProvisioning is true , a service pipeline is included in the service template, otherwise a service pipeline isn't included in the service template.

        • recommendedVersion (string) --

          The ID of the recommended version of the service template.

CreateEnvironmentTemplate (new) Link ¶

Create an environment template for AWS Proton. For more information, see Environment Templates in the AWS Proton Administration Guide .

You can create an environment template in one of the two following ways:

  • Register and publish a standard environment template that instructs AWS Proton to deploy and manage environment infrastructure.

  • Register and publish a customer managed environment template that connects AWS Proton to your existing provisioned infrastructure that you manage. AWS Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the provisioning parameter and set the value to CUSTOMER_MANAGED . For more information, see Register and publish an environment template in the AWS Proton Administration Guide .

See also: AWS API Documentation

Request Syntax

client.create_environment_template(
    description='string',
    displayName='string',
    encryptionKey='string',
    name='string',
    provisioning='CUSTOMER_MANAGED',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type description

string

param description

A description of the environment template.

type displayName

string

param displayName

The environment template name as displayed in the developer interface.

type encryptionKey

string

param encryptionKey

A customer provided encryption key that AWS Proton uses to encrypt data.

type name

string

param name

[REQUIRED]

The name of the environment template.

type provisioning

string

param provisioning

When included, indicates that the environment template is for customer provisioned and managed infrastructure.

type tags

list

param tags

Create tags for your environment template. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS 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

{
    'environmentTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplate (dict) --

      The environment template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment template.

      • createdAt (datetime) --

        The time when the environment template was created.

      • description (string) --

        A description of the environment template.

      • displayName (string) --

        The name of the environment template as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided encryption key for the environment template.

      • lastModifiedAt (datetime) --

        The time when the environment template was last modified.

      • name (string) --

        The name of the environment template.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • recommendedVersion (string) --

        The ID of the recommended version of the environment template.

DeleteEnvironmentTemplate (new) Link ¶

If no other major or minor versions of an environment template exist, delete the environment template.

See also: AWS API Documentation

Request Syntax

client.delete_environment_template(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the environment template to delete.

rtype

dict

returns

Response Syntax

{
    'environmentTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplate (dict) --

      The environment template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment template.

      • createdAt (datetime) --

        The time when the environment template was created.

      • description (string) --

        A description of the environment template.

      • displayName (string) --

        The name of the environment template as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided encryption key for the environment template.

      • lastModifiedAt (datetime) --

        The time when the environment template was last modified.

      • name (string) --

        The name of the environment template.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • recommendedVersion (string) --

        The ID of the recommended version of the environment template.

CancelServiceInstanceDeployment (new) Link ¶

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is IN_PROGRESS . For more information, see Update a service instance in the AWS Proton Administration guide or the AWS Proton User guide.

The following list includes potential cancellation scenarios.

  • If the cancellation attempt succeeds, the resulting deployment state is CANCELLED .

  • If the cancellation attempt fails, the resulting deployment state is FAILED .

  • If the current UpdateServiceInstance action succeeds before the cancellation attempt starts, the resulting deployment state is SUCCEEDED and the cancellation attempt has no effect.

See also: AWS API Documentation

Request Syntax

client.cancel_service_instance_deployment(
    serviceInstanceName='string',
    serviceName='string'
)
type serviceInstanceName

string

param serviceInstanceName

[REQUIRED]

The name of the service instance with the deployment to cancel.

type serviceName

string

param serviceName

[REQUIRED]

The name of the service with the service instance deployment to cancel.

rtype

dict

returns

Response Syntax

{
    'serviceInstance': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'environmentName': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'serviceName': 'string',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceInstance (dict) --

      The service instance summary data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service instance.

      • createdAt (datetime) --

        The time when the service instance was created.

      • deploymentStatus (string) --

        The service instance deployment status.

      • deploymentStatusMessage (string) --

        A service instance deployment status message.

      • environmentName (string) --

        The name of the environment that the service instance was deployed into.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the service instance was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the service instance was last deployed successfully.

      • name (string) --

        The name of the service instance.

      • serviceName (string) --

        The name of the service that the service instance belongs to.

      • spec (string) --

        The service spec that was used to create the service instance.

      • templateMajorVersion (string) --

        The ID of the major version of the service template that was used to create the service instance.

      • templateMinorVersion (string) --

        The ID of the minor version of the service template that was used to create the service instance.

      • templateName (string) --

        The name of the service template that was used to create the service instance.

UpdateServiceTemplateVersion (new) Link ¶

Update a major or minor version of a service template.

See also: AWS API Documentation

Request Syntax

client.update_service_template_version(
    compatibleEnvironmentTemplates=[
        {
            'majorVersion': 'string',
            'templateName': 'string'
        },
    ],
    description='string',
    majorVersion='string',
    minorVersion='string',
    status='REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
    templateName='string'
)
type compatibleEnvironmentTemplates

list

param compatibleEnvironmentTemplates

An array of compatible environment names for a service template major or minor version to update.

  • (dict) --

    Compatible environment template data.

    • majorVersion (string) -- [REQUIRED]

      The major version of the compatible environment template.

    • templateName (string) -- [REQUIRED]

      The compatible environment template name.

type description

string

param description

A description of a service template version to update.

type majorVersion

string

param majorVersion

[REQUIRED]

To update a major version of a service template, include majorVersion .

type minorVersion

string

param minorVersion

[REQUIRED]

To update a minor version of a service template, include minorVersion .

type status

string

param status

The status of the service template minor version to update.

type templateName

string

param templateName

[REQUIRED]

The name of the service template.

rtype

dict

returns

Response Syntax

{
    'serviceTemplateVersion': {
        'arn': 'string',
        'compatibleEnvironmentTemplates': [
            {
                'majorVersion': 'string',
                'templateName': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplateVersion (dict) --

      The service template version detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of a service template.

      • compatibleEnvironmentTemplates (list) --

        An array of compatible environment template names for the major version of a service template.

        • (dict) --

          Compatible environment template data.

          • majorVersion (string) --

            The major version of the compatible environment template.

          • templateName (string) --

            The compatible environment template name.

      • createdAt (datetime) --

        The time when the version of a service template was created.

      • description (string) --

        A description of the version of a service template.

      • lastModifiedAt (datetime) --

        The time when the version of a service template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of a service template.

      • minorVersion (string) --

        The ID of the minor version of a service template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the service template.

      • schema (string) --

        The schema of the version of a service template.

      • status (string) --

        The service template version status.

      • statusMessage (string) --

        A service template version status message.

      • templateName (string) --

        The name of the version of a service template.

ListServiceInstances (new) Link ¶

List service instances with summaries of detail data.

See also: AWS API Documentation

Request Syntax

client.list_service_instances(
    maxResults=123,
    nextToken='string',
    serviceName='string'
)
type maxResults

integer

param maxResults

The maximum number of service instances to list.

type nextToken

string

param nextToken

A token to indicate the location of the next service in the array of service instances, after the list of service instances that was previously requested.

type serviceName

string

param serviceName

The name of the service that the service instance belongs to.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'serviceInstances': [
        {
            'arn': 'string',
            'createdAt': datetime(2015, 1, 1),
            'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
            'deploymentStatusMessage': 'string',
            'environmentName': 'string',
            'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
            'lastDeploymentSucceededAt': datetime(2015, 1, 1),
            'name': 'string',
            'serviceName': 'string',
            'templateMajorVersion': 'string',
            'templateMinorVersion': 'string',
            'templateName': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next service instance in the array of service instances, after the current requested list of service instances.

    • serviceInstances (list) --

      An array of service instances with summaries of detail data.

      • (dict) --

        A summary of the service instance detail data.

        • arn (string) --

          The Amazon Resource Name (ARN) of the service instance.

        • createdAt (datetime) --

          The time when the service instance was created.

        • deploymentStatus (string) --

          The service instance deployment status.

        • deploymentStatusMessage (string) --

          A service instance deployment status message.

        • environmentName (string) --

          The name of the environment that the service instance was deployed into.

        • lastDeploymentAttemptedAt (datetime) --

          The time when a deployment of the service was last attempted.

        • lastDeploymentSucceededAt (datetime) --

          The time when the service was last deployed successfully.

        • name (string) --

          The name of the service instance.

        • serviceName (string) --

          The name of the service that the service instance belongs to.

        • templateMajorVersion (string) --

          The ID of the major version of a service template.

        • templateMinorVersion (string) --

          The ID of the minor version of a service template.

        • templateName (string) --

          The name of the service template.

CreateEnvironment (new) Link ¶

Deploy a new environment. An AWS Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services. For more information, see the Environments in the AWS Proton Administration Guide.

See also: AWS API Documentation

Request Syntax

client.create_environment(
    description='string',
    environmentAccountConnectionId='string',
    name='string',
    protonServiceRoleArn='string',
    spec='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ],
    templateMajorVersion='string',
    templateMinorVersion='string',
    templateName='string'
)
type description

string

param description

A description of the environment that's being created and deployed.

type environmentAccountConnectionId

string

param environmentAccountConnectionId

The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an environment account. You must include either the environmentAccountConnectionId or protonServiceRoleArn parameter and value. For more information, see Environment account connections in the AWS Proton Administration guide .

type name

string

param name

[REQUIRED]

The name of the environment.

type protonServiceRoleArn

string

param protonServiceRoleArn

The Amazon Resource Name (ARN) of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf. You must include either the environmentAccountConnectionId or protonServiceRoleArn parameter and value.

type spec

string

param spec

[REQUIRED]

A link to a YAML formatted spec file that provides inputs as defined in the environment template bundle schema file. For more information, see Environments in the AWS Proton Administration Guide .

type tags

list

param tags

Create tags for your environment. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS 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.

type templateMajorVersion

string

param templateMajorVersion

[REQUIRED]

The ID of the major version of the environment template.

type templateMinorVersion

string

param templateMinorVersion

The ID of the minor version of the environment template.

type templateName

string

param templateName

[REQUIRED]

The name of the environment template. For more information, see Environment Templates in the AWS Proton Administration Guide .

rtype

dict

returns

Response Syntax

{
    'environment': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'description': 'string',
        'environmentAccountConnectionId': 'string',
        'environmentAccountId': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'protonServiceRoleArn': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environment (dict) --

      The environment detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment.

      • createdAt (datetime) --

        The time when the environment was created.

      • deploymentStatus (string) --

        The environment deployment status.

      • deploymentStatusMessage (string) --

        An environment deployment status message.

      • description (string) --

        The description of the environment.

      • environmentAccountConnectionId (string) --

        The ID of the environment account connection that's used to provision infrastructure resources in an environment account.

      • environmentAccountId (string) --

        The ID of the environment account that the environment infrastructure resources are provisioned in.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the environment was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the environment was last deployed successfully.

      • name (string) --

        The name of the environment.

      • protonServiceRoleArn (string) --

        The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • spec (string) --

        The environment spec.

      • templateMajorVersion (string) --

        The ID of the major version of the environment template.

      • templateMinorVersion (string) --

        The ID of the minor version of the environment template.

      • templateName (string) --

        The ARN of the environment template.

GetEnvironmentAccountConnection (new) Link ¶

In an environment account, view the detail data for an environment account connection.

For more information, see Environment account connections in the AWS Proton Administration guide .

See also: AWS API Documentation

Request Syntax

client.get_environment_account_connection(
    id='string'
)
type id

string

param id

[REQUIRED]

The ID of the environment account connection.

rtype

dict

returns

Response Syntax

{
    'environmentAccountConnection': {
        'arn': 'string',
        'environmentAccountId': 'string',
        'environmentName': 'string',
        'id': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'managementAccountId': 'string',
        'requestedAt': datetime(2015, 1, 1),
        'roleArn': 'string',
        'status': 'PENDING'|'CONNECTED'|'REJECTED'
    }
}

Response Structure

  • (dict) --

    • environmentAccountConnection (dict) --

      The environment account connection detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment account connection.

      • environmentAccountId (string) --

        The environment account that's connected to the environment account connection.

      • environmentName (string) --

        The name of the environment that's associated with the environment account connection.

      • id (string) --

        The ID of the environment account connection.

      • lastModifiedAt (datetime) --

        The time when the environment account connection was last modified.

      • managementAccountId (string) --

        The ID of the management account that's connected to the environment account connection.

      • requestedAt (datetime) --

        The time when the environment account connection request was made.

      • roleArn (string) --

        The IAM service role that's associated with the environment account connection.

      • status (string) --

        The status of the environment account connection.

UpdateServicePipeline (new) Link ¶

Update the service pipeline.

There are four modes for updating a service pipeline as described in the following. The deploymentType field defines the mode.

NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

CURRENT_VERSION

In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type .

MINOR_VERSION

In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

MAJOR_VERSION

In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

See also: AWS API Documentation

Request Syntax

client.update_service_pipeline(
    deploymentType='NONE'|'CURRENT_VERSION'|'MINOR_VERSION'|'MAJOR_VERSION',
    serviceName='string',
    spec='string',
    templateMajorVersion='string',
    templateMinorVersion='string'
)
type deploymentType

string

param deploymentType

[REQUIRED]

The deployment type.

There are four modes for updating a service pipeline as described in the following. The deploymentType field defines the mode.

NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

CURRENT_VERSION

In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type .

MINOR_VERSION

In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

MAJOR_VERSION

In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

type serviceName

string

param serviceName

[REQUIRED]

The name of the service to that the pipeline is associated with.

type spec

string

param spec

[REQUIRED]

The spec for the service pipeline to update.

type templateMajorVersion

string

param templateMajorVersion

The major version of the service template that was used to create the service that the pipeline is associated with.

type templateMinorVersion

string

param templateMinorVersion

The minor version of the service template that was used to create the service that the pipeline is associated with.

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • pipeline (dict) --

      The pipeline details returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service pipeline.

      • createdAt (datetime) --

        The time when the service pipeline was created.

      • deploymentStatus (string) --

        The deployment status of the service pipeline.

      • deploymentStatusMessage (string) --

        A service pipeline deployment status message.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the service pipeline was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the service pipeline was last deployed successfully.

      • spec (string) --

        The service spec that was used to create the service pipeline.

      • templateMajorVersion (string) --

        The ID of the major version of the service template that was used to create the service pipeline.

      • templateMinorVersion (string) --

        The ID of the minor version of the service template that was used to create the service pipeline.

      • templateName (string) --

        The name of the service template that was used to create the service pipeline.

GetAccountSettings (new) Link ¶

Get detail data for the AWS Proton pipeline service role.

See also: AWS API Documentation

Request Syntax

client.get_account_settings()
rtype

dict

returns

Response Syntax

{
    'accountSettings': {
        'pipelineServiceRoleArn': 'string'
    }
}

Response Structure

  • (dict) --

    • accountSettings (dict) --

      The AWS Proton pipeline service role detail data that's returned by AWS Proton.

      • pipelineServiceRoleArn (string) --

        The Amazon Resource Name (ARN) of the AWS Proton pipeline service role.

UpdateEnvironment (new) Link ¶

Update an environment.

If the environment is associated with an environment account connection, don't update or include the protonServiceRoleArn parameter to update or connect to an environment account connection.

You can only update to a new environment account connection if it was created in the same environment account that the current environment account connection was created in and associated with the current environment.

If the environment isn't associated with an environment account connection, don't update or include the environmentAccountConnectionId parameter to update or connect to an environment account connection.

You can update either the environmentAccountConnectionId or protonServiceRoleArn parameter and value. You can’t update both.

There are four modes for updating an environment as described in the following. The deploymentType field defines the mode.

NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

CURRENT_VERSION

In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type .

MINOR_VERSION

In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

MAJOR_VERSION

In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that's higher than the major version in use and a minor version (optional).

See also: AWS API Documentation

Request Syntax

client.update_environment(
    deploymentType='NONE'|'CURRENT_VERSION'|'MINOR_VERSION'|'MAJOR_VERSION',
    description='string',
    environmentAccountConnectionId='string',
    name='string',
    protonServiceRoleArn='string',
    spec='string',
    templateMajorVersion='string',
    templateMinorVersion='string'
)
type deploymentType

string

param deploymentType

[REQUIRED]

There are four modes for updating an environment as described in the following. The deploymentType field defines the mode.

NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

CURRENT_VERSION

In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type .

MINOR_VERSION

In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

MAJOR_VERSION

In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

type description

string

param description

A description of the environment update.

type environmentAccountConnectionId

string

param environmentAccountConnectionId

The ID of the environment account connection.

You can only update to a new environment account connection if it was created in the same environment account that the current environment account connection was created in and associated with the current environment.

type name

string

param name

[REQUIRED]

The name of the environment to update.

type protonServiceRoleArn

string

param protonServiceRoleArn

The ARN of the AWS Proton service role that allows AWS Proton to make API calls to other services your behalf.

type spec

string

param spec

The formatted specification that defines the update.

type templateMajorVersion

string

param templateMajorVersion

The ID of the major version of the environment to update.

type templateMinorVersion

string

param templateMinorVersion

The ID of the minor version of the environment to update.

rtype

dict

returns

Response Syntax

{
    'environment': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'description': 'string',
        'environmentAccountConnectionId': 'string',
        'environmentAccountId': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'protonServiceRoleArn': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environment (dict) --

      The environment detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment.

      • createdAt (datetime) --

        The time when the environment was created.

      • deploymentStatus (string) --

        The environment deployment status.

      • deploymentStatusMessage (string) --

        An environment deployment status message.

      • description (string) --

        The description of the environment.

      • environmentAccountConnectionId (string) --

        The ID of the environment account connection that's used to provision infrastructure resources in an environment account.

      • environmentAccountId (string) --

        The ID of the environment account that the environment infrastructure resources are provisioned in.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the environment was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the environment was last deployed successfully.

      • name (string) --

        The name of the environment.

      • protonServiceRoleArn (string) --

        The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • spec (string) --

        The environment spec.

      • templateMajorVersion (string) --

        The ID of the major version of the environment template.

      • templateMinorVersion (string) --

        The ID of the minor version of the environment template.

      • templateName (string) --

        The ARN of the environment template.

UpdateServiceInstance (new) Link ¶

Update a service instance.

There are four modes for updating a service instance as described in the following. The deploymentType field defines the mode.

NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

CURRENT_VERSION

In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type .

MINOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

MAJOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

See also: AWS API Documentation

Request Syntax

client.update_service_instance(
    deploymentType='NONE'|'CURRENT_VERSION'|'MINOR_VERSION'|'MAJOR_VERSION',
    name='string',
    serviceName='string',
    spec='string',
    templateMajorVersion='string',
    templateMinorVersion='string'
)
type deploymentType

string

param deploymentType

[REQUIRED]

The deployment type.

There are four modes for updating a service instance as described in the following. The deploymentType field defines the mode.

NONE

In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.

CURRENT_VERSION

In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this deployment-type .

MINOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.

MAJOR_VERSION

In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).

type name

string

param name

[REQUIRED]

The name of the service instance to update.

type serviceName

string

param serviceName

[REQUIRED]

The name of the service that the service instance belongs to.

type spec

string

param spec

The formatted specification that defines the service instance update.

type templateMajorVersion

string

param templateMajorVersion

The major version of the service template to update.

type templateMinorVersion

string

param templateMinorVersion

The minor version of the service template to update.

rtype

dict

returns

Response Syntax

{
    'serviceInstance': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'environmentName': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'serviceName': 'string',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceInstance (dict) --

      The service instance summary data returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service instance.

      • createdAt (datetime) --

        The time when the service instance was created.

      • deploymentStatus (string) --

        The service instance deployment status.

      • deploymentStatusMessage (string) --

        A service instance deployment status message.

      • environmentName (string) --

        The name of the environment that the service instance was deployed into.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the service instance was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the service instance was last deployed successfully.

      • name (string) --

        The name of the service instance.

      • serviceName (string) --

        The name of the service that the service instance belongs to.

      • spec (string) --

        The service spec that was used to create the service instance.

      • templateMajorVersion (string) --

        The ID of the major version of the service template that was used to create the service instance.

      • templateMinorVersion (string) --

        The ID of the minor version of the service template that was used to create the service instance.

      • templateName (string) --

        The name of the service template that was used to create the service instance.

TagResource (new) Link ¶

Tag a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    resourceArn='string',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type resourceArn

string

param resourceArn

[REQUIRED]

The Amazon Resource Name (ARN) of the resource that the resource tag is applied to.

type tags

list

param tags

[REQUIRED]

An array of resource tags to apply to a resource.

  • (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

{}

Response Structure

  • (dict) --

UpdateEnvironmentTemplateVersion (new) Link ¶

Update a major or minor version of an environment template.

See also: AWS API Documentation

Request Syntax

client.update_environment_template_version(
    description='string',
    majorVersion='string',
    minorVersion='string',
    status='REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
    templateName='string'
)
type description

string

param description

A description of environment template version to update.

type majorVersion

string

param majorVersion

[REQUIRED]

To update a major version of an environment template, include majorVersion .

type minorVersion

string

param minorVersion

[REQUIRED]

To update a minor version of an environment template, include minorVersion .

type status

string

param status

The status of the environment template minor version to update.

type templateName

string

param templateName

[REQUIRED]

The name of the environment template.

rtype

dict

returns

Response Syntax

{
    'environmentTemplateVersion': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplateVersion (dict) --

      The environment template version detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of an environment template.

      • createdAt (datetime) --

        The time when the version of an environment template was created.

      • description (string) --

        A description of the minor version of an environment template.

      • lastModifiedAt (datetime) --

        The time when the version of an environment template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of an environment template.

      • minorVersion (string) --

        The ID of the minor version of an environment template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the environment template.

      • schema (string) --

        The schema of the version of an environment template.

      • status (string) --

        The status of the version of an environment template.

      • statusMessage (string) --

        The status message of the version of an environment template.

      • templateName (string) --

        The name of the version of an environment template.

CreateServiceTemplate (new) Link ¶

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CICD service pipeline. Developers, in turn, select the service template from AWS Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. AWS Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Service Templates in the AWS Proton Administration Guide .

See also: AWS API Documentation

Request Syntax

client.create_service_template(
    description='string',
    displayName='string',
    encryptionKey='string',
    name='string',
    pipelineProvisioning='CUSTOMER_MANAGED',
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
type description

string

param description

A description of the service template.

type displayName

string

param displayName

The name of the service template as displayed in the developer interface.

type encryptionKey

string

param encryptionKey

A customer provided encryption key that's used to encrypt data.

type name

string

param name

[REQUIRED]

The name of the service template.

type pipelineProvisioning

string

param pipelineProvisioning

AWS Proton includes a service pipeline for your service by default. When included, this parameter indicates that an AWS Proton service pipeline won't be included for your service. Once specified, this parameter can't be changed. For more information, see Service template bundles in the AWS Proton Administration Guide .

type tags

list

param tags

Create tags for your service template. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS 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

{
    'serviceTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'pipelineProvisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplate (dict) --

      The service template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the service template.

      • createdAt (datetime) --

        The time when the service template was created.

      • description (string) --

        A description of the service template.

      • displayName (string) --

        The service template name as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided service template encryption key that's used to encrypt data.

      • lastModifiedAt (datetime) --

        The time when the service template was last modified.

      • name (string) --

        The name of the service template.

      • pipelineProvisioning (string) --

        If pipelineProvisioning is true , a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template.

      • recommendedVersion (string) --

        The ID of the recommended version of the service template.

DeleteEnvironmentTemplateVersion (new) Link ¶

If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended version. Delete the Recommended version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backwards compatible.

Delete a minor version of an environment template if it isn't the Recommended version. Delete a Recommended minor version of the environment template if no other minor versions of the environment template exist. A minor version of an environment template is a version that's backwards compatible.

See also: AWS API Documentation

Request Syntax

client.delete_environment_template_version(
    majorVersion='string',
    minorVersion='string',
    templateName='string'
)
type majorVersion

string

param majorVersion

[REQUIRED]

The environment template major version to delete.

type minorVersion

string

param minorVersion

[REQUIRED]

The environment template minor version to delete.

type templateName

string

param templateName

[REQUIRED]

The name of the environment template.

rtype

dict

returns

Response Syntax

{
    'environmentTemplateVersion': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplateVersion (dict) --

      The environment template version detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of an environment template.

      • createdAt (datetime) --

        The time when the version of an environment template was created.

      • description (string) --

        A description of the minor version of an environment template.

      • lastModifiedAt (datetime) --

        The time when the version of an environment template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of an environment template.

      • minorVersion (string) --

        The ID of the minor version of an environment template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the environment template.

      • schema (string) --

        The schema of the version of an environment template.

      • status (string) --

        The status of the version of an environment template.

      • statusMessage (string) --

        The status message of the version of an environment template.

      • templateName (string) --

        The name of the version of an environment template.

ListTagsForResource (new) Link ¶

List tags for a resource. For more information, see AWS Proton resources and tagging in the AWS Proton Administration Guide or AWS Proton User Guide.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    maxResults=123,
    nextToken='string',
    resourceArn='string'
)
type maxResults

integer

param maxResults

The maximum number of tags to list.

type nextToken

string

param nextToken

A token to indicate the location of the next resource tag in the array of resource tags, after the list of resource tags that was previously requested.

type resourceArn

string

param resourceArn

[REQUIRED]

The ARN of the resource for the listed tags.

rtype

dict

returns

Response Syntax

{
    'nextToken': 'string',
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A token to indicate the location of the next resource tag in the array of resource tags, after the current requested list of resource tags.

    • tags (list) --

      An array of resource tags with detail data.

      • (dict) --

        A description of a resource tag.

        • key (string) --

          The key of the resource tag.

        • value (string) --

          The value of the resource tag.

GetServiceTemplateVersion (new) Link ¶

View detail data for a major or minor version of a service template.

See also: AWS API Documentation

Request Syntax

client.get_service_template_version(
    majorVersion='string',
    minorVersion='string',
    templateName='string'
)
type majorVersion

string

param majorVersion

[REQUIRED]

To view service template major version detail data, include majorVersion .

type minorVersion

string

param minorVersion

[REQUIRED]

To view service template minor version detail data, include minorVersion .

type templateName

string

param templateName

[REQUIRED]

The name of the service template.

rtype

dict

returns

Response Syntax

{
    'serviceTemplateVersion': {
        'arn': 'string',
        'compatibleEnvironmentTemplates': [
            {
                'majorVersion': 'string',
                'templateName': 'string'
            },
        ],
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'majorVersion': 'string',
        'minorVersion': 'string',
        'recommendedMinorVersion': 'string',
        'schema': 'string',
        'status': 'REGISTRATION_IN_PROGRESS'|'REGISTRATION_FAILED'|'DRAFT'|'PUBLISHED',
        'statusMessage': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • serviceTemplateVersion (dict) --

      The service template version detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the version of a service template.

      • compatibleEnvironmentTemplates (list) --

        An array of compatible environment template names for the major version of a service template.

        • (dict) --

          Compatible environment template data.

          • majorVersion (string) --

            The major version of the compatible environment template.

          • templateName (string) --

            The compatible environment template name.

      • createdAt (datetime) --

        The time when the version of a service template was created.

      • description (string) --

        A description of the version of a service template.

      • lastModifiedAt (datetime) --

        The time when the version of a service template was last modified.

      • majorVersion (string) --

        The ID of the latest major version that's associated with the version of a service template.

      • minorVersion (string) --

        The ID of the minor version of a service template.

      • recommendedMinorVersion (string) --

        The ID of the recommended minor version of the service template.

      • schema (string) --

        The schema of the version of a service template.

      • status (string) --

        The service template version status.

      • statusMessage (string) --

        A service template version status message.

      • templateName (string) --

        The name of the version of a service template.

DeleteEnvironment (new) Link ¶

Delete an environment.

See also: AWS API Documentation

Request Syntax

client.delete_environment(
    name='string'
)
type name

string

param name

[REQUIRED]

The name of the environment to delete.

rtype

dict

returns

Response Syntax

{
    'environment': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'deploymentStatus': 'IN_PROGRESS'|'FAILED'|'SUCCEEDED'|'DELETE_IN_PROGRESS'|'DELETE_FAILED'|'DELETE_COMPLETE'|'CANCELLING'|'CANCELLED',
        'deploymentStatusMessage': 'string',
        'description': 'string',
        'environmentAccountConnectionId': 'string',
        'environmentAccountId': 'string',
        'lastDeploymentAttemptedAt': datetime(2015, 1, 1),
        'lastDeploymentSucceededAt': datetime(2015, 1, 1),
        'name': 'string',
        'protonServiceRoleArn': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'spec': 'string',
        'templateMajorVersion': 'string',
        'templateMinorVersion': 'string',
        'templateName': 'string'
    }
}

Response Structure

  • (dict) --

    • environment (dict) --

      The environment detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment.

      • createdAt (datetime) --

        The time when the environment was created.

      • deploymentStatus (string) --

        The environment deployment status.

      • deploymentStatusMessage (string) --

        An environment deployment status message.

      • description (string) --

        The description of the environment.

      • environmentAccountConnectionId (string) --

        The ID of the environment account connection that's used to provision infrastructure resources in an environment account.

      • environmentAccountId (string) --

        The ID of the environment account that the environment infrastructure resources are provisioned in.

      • lastDeploymentAttemptedAt (datetime) --

        The time when a deployment of the environment was last attempted.

      • lastDeploymentSucceededAt (datetime) --

        The time when the environment was last deployed successfully.

      • name (string) --

        The name of the environment.

      • protonServiceRoleArn (string) --

        The ARN of the AWS Proton service role that allows AWS Proton to make calls to other services on your behalf.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • spec (string) --

        The environment spec.

      • templateMajorVersion (string) --

        The ID of the major version of the environment template.

      • templateMinorVersion (string) --

        The ID of the minor version of the environment template.

      • templateName (string) --

        The ARN of the environment template.

UpdateEnvironmentTemplate (new) Link ¶

Update an environment template.

See also: AWS API Documentation

Request Syntax

client.update_environment_template(
    description='string',
    displayName='string',
    name='string'
)
type description

string

param description

A description of the environment template update.

type displayName

string

param displayName

The name of the environment template to update as displayed in the developer interface.

type name

string

param name

[REQUIRED]

The name of the environment template to update.

rtype

dict

returns

Response Syntax

{
    'environmentTemplate': {
        'arn': 'string',
        'createdAt': datetime(2015, 1, 1),
        'description': 'string',
        'displayName': 'string',
        'encryptionKey': 'string',
        'lastModifiedAt': datetime(2015, 1, 1),
        'name': 'string',
        'provisioning': 'CUSTOMER_MANAGED',
        'recommendedVersion': 'string'
    }
}

Response Structure

  • (dict) --

    • environmentTemplate (dict) --

      The environment template detail data that's returned by AWS Proton.

      • arn (string) --

        The Amazon Resource Name (ARN) of the environment template.

      • createdAt (datetime) --

        The time when the environment template was created.

      • description (string) --

        A description of the environment template.

      • displayName (string) --

        The name of the environment template as displayed in the developer interface.

      • encryptionKey (string) --

        The customer provided encryption key for the environment template.

      • lastModifiedAt (datetime) --

        The time when the environment template was last modified.

      • name (string) --

        The name of the environment template.

      • provisioning (string) --

        When included, indicates that the environment template is for customer provisioned and managed infrastructure.

      • recommendedVersion (string) --

        The ID of the recommended version of the environment template.