AWS CodePipeline

2016/06/21 - AWS CodePipeline - 1 new 11 updated api methods

RetryStageExecution (new) Link ¶

Resumes the pipeline execution by retrying the last failed actions in a stage.

Request Syntax

client.retry_stage_execution(
    pipelineName='string',
    stageName='string',
    pipelineExecutionId='string',
    retryMode='FAILED_ACTIONS'
)
type pipelineName

string

param pipelineName

[REQUIRED]

The name of the pipeline that contains the failed stage.

type stageName

string

param stageName

[REQUIRED]

The name of the failed stage to be retried.

type pipelineExecutionId

string

param pipelineExecutionId

[REQUIRED]

The ID of the pipeline execution in the failed stage to be retried. Use the GetPipelineState action to retrieve the current pipelineExecutionId of the failed stage

type retryMode

string

param retryMode

[REQUIRED]

The scope of the retry attempt. Currently, the only supported value is FAILED_ACTIONS.

rtype

dict

returns

Response Syntax

{
    'pipelineExecutionId': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a retry stage execution operation.

    • pipelineExecutionId (string) --

      The ID of the current workflow execution in the failed stage.

CreateCustomActionType (updated) Link ¶
Changes (request, response)
Request
{'category': {'Approval'}}
Response
{'actionType': {'id': {'category': {'Approval'}}}}

Creates a new custom action that can be used in all pipelines associated with the AWS account. Only used for custom actions.

Request Syntax

client.create_custom_action_type(
    category='Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
    provider='string',
    version='string',
    settings={
        'thirdPartyConfigurationUrl': 'string',
        'entityUrlTemplate': 'string',
        'executionUrlTemplate': 'string',
        'revisionUrlTemplate': 'string'
    },
    configurationProperties=[
        {
            'name': 'string',
            'required': True|False,
            'key': True|False,
            'secret': True|False,
            'queryable': True|False,
            'description': 'string',
            'type': 'String'|'Number'|'Boolean'
        },
    ],
    inputArtifactDetails={
        'minimumCount': 123,
        'maximumCount': 123
    },
    outputArtifactDetails={
        'minimumCount': 123,
        'maximumCount': 123
    }
)
type category

string

param category

[REQUIRED]

The category of the custom action, such as a source action or a build action.

Note

Although Source is listed as a valid value, it is not currently functional. This value is reserved for future use.

type provider

string

param provider

[REQUIRED]

The provider of the service used in the custom action, such as AWS CodeDeploy.

type version

string

param version

[REQUIRED]

The version number of the custom action.

type settings

dict

param settings

Returns information about the settings for an action type.

  • thirdPartyConfigurationUrl (string) --

    The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service.

  • entityUrlTemplate (string) --

    The URL returned to the AWS CodePipeline console that provides a deep link to the resources of the external system, such as the configuration page for an AWS CodeDeploy deployment group. This link is provided as part of the action display within the pipeline.

  • executionUrlTemplate (string) --

    The URL returned to the AWS CodePipeline console that contains a link to the top-level landing page for the external system, such as console page for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS CodePipeline console and provides a link to the execution entity of the external action.

  • revisionUrlTemplate (string) --

    The URL returned to the AWS CodePipeline console that contains a link to the page where customers can update or change the configuration of the external action.

type configurationProperties

list

param configurationProperties

The configuration properties for the custom action.

Note

You can refer to a name in the configuration properties of the custom action within the URL templates by following the format of {Config:name}, as long as the configuration property is both required and not secret. For more information, see Create a Custom Action for a Pipeline.

  • (dict) --

    Represents information about an action configuration property.

    • name (string) -- [REQUIRED]

      The name of the action configuration property.

    • required (boolean) -- [REQUIRED]

      Whether the configuration property is a required value.

    • key (boolean) -- [REQUIRED]

      Whether the configuration property is a key.

    • secret (boolean) -- [REQUIRED]

      Whether the configuration property is secret. Secrets are hidden from all calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and PollForThirdPartyJobs.

      When updating a pipeline, passing * * * * * without changing any other values of the action will preserve the prior value of the secret.

    • queryable (boolean) --

      Indicates that the proprety will be used in conjunction with PollForJobs. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.

      If you create a pipeline with a custom action type, and that custom action contains a queryable property, the value for that configuration property is subject to additional restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens.

    • description (string) --

      The description of the action configuration property that will be displayed to users.

    • type (string) --

      The type of the configuration property.

type inputArtifactDetails

dict

param inputArtifactDetails

[REQUIRED]

Returns information about the details of an artifact.

  • minimumCount (integer) -- [REQUIRED]

    The minimum number of artifacts allowed for the action type.

  • maximumCount (integer) -- [REQUIRED]

    The maximum number of artifacts allowed for the action type.

type outputArtifactDetails

dict

param outputArtifactDetails

[REQUIRED]

Returns information about the details of an artifact.

  • minimumCount (integer) -- [REQUIRED]

    The minimum number of artifacts allowed for the action type.

  • maximumCount (integer) -- [REQUIRED]

    The maximum number of artifacts allowed for the action type.

rtype

dict

returns

Response Syntax

{
    'actionType': {
        'id': {
            'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
            'owner': 'AWS'|'ThirdParty'|'Custom',
            'provider': 'string',
            'version': 'string'
        },
        'settings': {
            'thirdPartyConfigurationUrl': 'string',
            'entityUrlTemplate': 'string',
            'executionUrlTemplate': 'string',
            'revisionUrlTemplate': 'string'
        },
        'actionConfigurationProperties': [
            {
                'name': 'string',
                'required': True|False,
                'key': True|False,
                'secret': True|False,
                'queryable': True|False,
                'description': 'string',
                'type': 'String'|'Number'|'Boolean'
            },
        ],
        'inputArtifactDetails': {
            'minimumCount': 123,
            'maximumCount': 123
        },
        'outputArtifactDetails': {
            'minimumCount': 123,
            'maximumCount': 123
        }
    }
}

Response Structure

  • (dict) --

    Represents the output of a create custom action operation.

    • actionType (dict) --

      Returns information about the details of an action type.

      • id (dict) --

        Represents information about an action type.

        • category (string) --

          A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

        • owner (string) --

          The creator of the action being called.

        • provider (string) --

          The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

        • version (string) --

          A string that identifies the action type.

      • settings (dict) --

        The settings for the action type.

        • thirdPartyConfigurationUrl (string) --

          The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service.

        • entityUrlTemplate (string) --

          The URL returned to the AWS CodePipeline console that provides a deep link to the resources of the external system, such as the configuration page for an AWS CodeDeploy deployment group. This link is provided as part of the action display within the pipeline.

        • executionUrlTemplate (string) --

          The URL returned to the AWS CodePipeline console that contains a link to the top-level landing page for the external system, such as console page for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS CodePipeline console and provides a link to the execution entity of the external action.

        • revisionUrlTemplate (string) --

          The URL returned to the AWS CodePipeline console that contains a link to the page where customers can update or change the configuration of the external action.

      • actionConfigurationProperties (list) --

        The configuration properties for the action type.

        • (dict) --

          Represents information about an action configuration property.

          • name (string) --

            The name of the action configuration property.

          • required (boolean) --

            Whether the configuration property is a required value.

          • key (boolean) --

            Whether the configuration property is a key.

          • secret (boolean) --

            Whether the configuration property is secret. Secrets are hidden from all calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and PollForThirdPartyJobs.

            When updating a pipeline, passing * * * * * without changing any other values of the action will preserve the prior value of the secret.

          • queryable (boolean) --

            Indicates that the proprety will be used in conjunction with PollForJobs. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.

            If you create a pipeline with a custom action type, and that custom action contains a queryable property, the value for that configuration property is subject to additional restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens.

          • description (string) --

            The description of the action configuration property that will be displayed to users.

          • type (string) --

            The type of the configuration property.

      • inputArtifactDetails (dict) --

        The details of the input artifact for the action, such as its commit ID.

        • minimumCount (integer) --

          The minimum number of artifacts allowed for the action type.

        • maximumCount (integer) --

          The maximum number of artifacts allowed for the action type.

      • outputArtifactDetails (dict) --

        The details of the output artifact of the action, such as its commit ID.

        • minimumCount (integer) --

          The minimum number of artifacts allowed for the action type.

        • maximumCount (integer) --

          The maximum number of artifacts allowed for the action type.

CreatePipeline (updated) Link ¶
Changes (both)
{'pipeline': {'stages': {'actions': {'actionTypeId': {'category': {'Approval'}}}}}}

Creates a pipeline.

Request Syntax

client.create_pipeline(
    pipeline={
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'stages': [
            {
                'name': 'string',
                'blockers': [
                    {
                        'name': 'string',
                        'type': 'Schedule'
                    },
                ],
                'actions': [
                    {
                        'name': 'string',
                        'actionTypeId': {
                            'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                            'owner': 'AWS'|'ThirdParty'|'Custom',
                            'provider': 'string',
                            'version': 'string'
                        },
                        'runOrder': 123,
                        'configuration': {
                            'string': 'string'
                        },
                        'outputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'inputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'roleArn': 'string'
                    },
                ]
            },
        ],
        'version': 123
    }
)
type pipeline

dict

param pipeline

[REQUIRED]

Represents the structure of actions and stages to be performed in the pipeline.

  • name (string) -- [REQUIRED]

    The name of the action to be performed.

  • roleArn (string) -- [REQUIRED]

    The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

  • artifactStore (dict) -- [REQUIRED]

    The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

    • type (string) -- [REQUIRED]

      The type of the artifact store, such as S3.

    • location (string) -- [REQUIRED]

      The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

    • encryptionKey (dict) --

      The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

      • id (string) -- [REQUIRED]

        The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

      • type (string) -- [REQUIRED]

        The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

  • stages (list) -- [REQUIRED]

    The stage in which to perform the action.

    • (dict) --

      Represents information about a stage and its definition.

      • name (string) -- [REQUIRED]

        The name of the stage.

      • blockers (list) --

        Reserved for future use.

        • (dict) --

          Reserved for future use.

          • name (string) -- [REQUIRED]

            Reserved for future use.

          • type (string) -- [REQUIRED]

            Reserved for future use.

      • actions (list) -- [REQUIRED]

        The actions included in a stage.

        • (dict) --

          Represents information about an action declaration.

          • name (string) -- [REQUIRED]

            The action declaration's name.

          • actionTypeId (dict) -- [REQUIRED]

            The configuration information for the action type.

            • category (string) -- [REQUIRED]

              A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

            • owner (string) -- [REQUIRED]

              The creator of the action being called.

            • provider (string) -- [REQUIRED]

              The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

            • version (string) -- [REQUIRED]

              A string that identifies the action type.

          • runOrder (integer) --

            The order in which actions are run.

          • configuration (dict) --

            The action declaration's configuration.

            • (string) --

              • (string) --

          • outputArtifacts (list) --

            The name or ID of the result of the action declaration, such as a test or build artifact.

            • (dict) --

              Represents information about the output of an action.

              • name (string) -- [REQUIRED]

                The name of the output of an artifact, such as "My App".

                The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

                Output artifact names must be unique within a pipeline.

          • inputArtifacts (list) --

            The name or ID of the artifact consumed by the action, such as a test or build artifact.

            • (dict) --

              Represents information about an artifact to be worked on, such as a test or build artifact.

              • name (string) -- [REQUIRED]

                The name of the artifact to be worked on, for example, "My App".

                The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

          • roleArn (string) --

            The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.

  • version (integer) --

    The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'stages': [
            {
                'name': 'string',
                'blockers': [
                    {
                        'name': 'string',
                        'type': 'Schedule'
                    },
                ],
                'actions': [
                    {
                        'name': 'string',
                        'actionTypeId': {
                            'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                            'owner': 'AWS'|'ThirdParty'|'Custom',
                            'provider': 'string',
                            'version': 'string'
                        },
                        'runOrder': 123,
                        'configuration': {
                            'string': 'string'
                        },
                        'outputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'inputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'roleArn': 'string'
                    },
                ]
            },
        ],
        'version': 123
    }
}

Response Structure

  • (dict) --

    Represents the output of a create pipeline action.

    • pipeline (dict) --

      Represents the structure of actions and stages to be performed in the pipeline.

      • name (string) --

        The name of the action to be performed.

      • roleArn (string) --

        The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

      • artifactStore (dict) --

        The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

        • type (string) --

          The type of the artifact store, such as S3.

        • location (string) --

          The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

        • encryptionKey (dict) --

          The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

          • id (string) --

            The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

          • type (string) --

            The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • stages (list) --

        The stage in which to perform the action.

        • (dict) --

          Represents information about a stage and its definition.

          • name (string) --

            The name of the stage.

          • blockers (list) --

            Reserved for future use.

            • (dict) --

              Reserved for future use.

              • name (string) --

                Reserved for future use.

              • type (string) --

                Reserved for future use.

          • actions (list) --

            The actions included in a stage.

            • (dict) --

              Represents information about an action declaration.

              • name (string) --

                The action declaration's name.

              • actionTypeId (dict) --

                The configuration information for the action type.

                • category (string) --

                  A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

                • owner (string) --

                  The creator of the action being called.

                • provider (string) --

                  The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

                • version (string) --

                  A string that identifies the action type.

              • runOrder (integer) --

                The order in which actions are run.

              • configuration (dict) --

                The action declaration's configuration.

                • (string) --

                  • (string) --

              • outputArtifacts (list) --

                The name or ID of the result of the action declaration, such as a test or build artifact.

                • (dict) --

                  Represents information about the output of an action.

                  • name (string) --

                    The name of the output of an artifact, such as "My App".

                    The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

                    Output artifact names must be unique within a pipeline.

              • inputArtifacts (list) --

                The name or ID of the artifact consumed by the action, such as a test or build artifact.

                • (dict) --

                  Represents information about an artifact to be worked on, such as a test or build artifact.

                  • name (string) --

                    The name of the artifact to be worked on, for example, "My App".

                    The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

              • roleArn (string) --

                The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.

      • version (integer) --

        The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

DeleteCustomActionType (updated) Link ¶
Changes (request)
{'category': {'Approval'}}

Marks a custom action as deleted. PollForJobs for the custom action will fail after the action is marked for deletion. Only used for custom actions.

Warning

You cannot recreate a custom action after it has been deleted unless you increase the version number of the action.

Request Syntax

client.delete_custom_action_type(
    category='Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
    provider='string',
    version='string'
)
type category

string

param category

[REQUIRED]

The category of the custom action that you want to delete, such as source or deploy.

type provider

string

param provider

[REQUIRED]

The provider of the service used in the custom action, such as AWS CodeDeploy.

type version

string

param version

[REQUIRED]

The version of the custom action to delete.

returns

None

GetJobDetails (updated) Link ¶
Changes (response)
{'jobDetails': {'data': {'actionTypeId': {'category': {'Approval'}}}}}

Returns information about a job. Only used for custom actions.

Warning

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

Request Syntax

client.get_job_details(
    jobId='string'
)
type jobId

string

param jobId

[REQUIRED]

The unique system-generated ID for the job.

rtype

dict

returns

Response Syntax

{
    'jobDetails': {
        'id': 'string',
        'data': {
            'actionTypeId': {
                'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                'owner': 'AWS'|'ThirdParty'|'Custom',
                'provider': 'string',
                'version': 'string'
            },
            'actionConfiguration': {
                'configuration': {
                    'string': 'string'
                }
            },
            'pipelineContext': {
                'pipelineName': 'string',
                'stage': {
                    'name': 'string'
                },
                'action': {
                    'name': 'string'
                }
            },
            'inputArtifacts': [
                {
                    'name': 'string',
                    'revision': 'string',
                    'location': {
                        'type': 'S3',
                        's3Location': {
                            'bucketName': 'string',
                            'objectKey': 'string'
                        }
                    }
                },
            ],
            'outputArtifacts': [
                {
                    'name': 'string',
                    'revision': 'string',
                    'location': {
                        'type': 'S3',
                        's3Location': {
                            'bucketName': 'string',
                            'objectKey': 'string'
                        }
                    }
                },
            ],
            'artifactCredentials': {
                'accessKeyId': 'string',
                'secretAccessKey': 'string',
                'sessionToken': 'string'
            },
            'continuationToken': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'accountId': 'string'
    }
}

Response Structure

  • (dict) --

    Represents the output of a get job details action.

    • jobDetails (dict) --

      The details of the job.

      Note

      If AWSSessionCredentials is used, a long-running job can call GetJobDetails again to obtain new credentials.

      • id (string) --

        The unique system-generated ID of the job.

      • data (dict) --

        Represents additional information about a job required for a job worker to complete the job.

        • actionTypeId (dict) --

          Represents information about an action type.

          • category (string) --

            A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

          • owner (string) --

            The creator of the action being called.

          • provider (string) --

            The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

          • version (string) --

            A string that identifies the action type.

        • actionConfiguration (dict) --

          Represents information about an action configuration.

          • configuration (dict) --

            The configuration data for the action.

            • (string) --

              • (string) --

        • pipelineContext (dict) --

          Represents information about a pipeline to a job worker.

          • pipelineName (string) --

            The name of the pipeline. This is a user-specified value. Pipeline names must be unique across all pipeline names under an Amazon Web Services account.

          • stage (dict) --

            The stage of the pipeline.

            • name (string) --

              The name of the stage.

          • action (dict) --

            Represents the context of an action within the stage of a pipeline to a job worker.

            • name (string) --

              The name of the action within the context of a job.

        • inputArtifacts (list) --

          The artifact supplied to the job.

          • (dict) --

            Represents information about an artifact that will be worked upon by actions in the pipeline.

            • name (string) --

              The artifact's name.

            • revision (string) --

              The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

            • location (dict) --

              The location of an artifact.

              • type (string) --

                The type of artifact in the location.

              • s3Location (dict) --

                The Amazon S3 bucket that contains the artifact.

                • bucketName (string) --

                  The name of the Amazon S3 bucket.

                • objectKey (string) --

                  The key of the object in the Amazon S3 bucket, which uniquely identifies the object in the bucket.

        • outputArtifacts (list) --

          The output of the job.

          • (dict) --

            Represents information about an artifact that will be worked upon by actions in the pipeline.

            • name (string) --

              The artifact's name.

            • revision (string) --

              The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

            • location (dict) --

              The location of an artifact.

              • type (string) --

                The type of artifact in the location.

              • s3Location (dict) --

                The Amazon S3 bucket that contains the artifact.

                • bucketName (string) --

                  The name of the Amazon S3 bucket.

                • objectKey (string) --

                  The key of the object in the Amazon S3 bucket, which uniquely identifies the object in the bucket.

        • artifactCredentials (dict) --

          Represents an AWS session credentials object. These credentials are temporary credentials that are issued by AWS Secure Token Service (STS). They can be used to access input and output artifacts in the Amazon S3 bucket used to store artifact for the pipeline in AWS CodePipeline.

          • accessKeyId (string) --

            The access key for the session.

          • secretAccessKey (string) --

            The secret access key for the session.

          • sessionToken (string) --

            The token for the session.

        • continuationToken (string) --

          A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.

        • encryptionKey (dict) --

          Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.

          • id (string) --

            The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

          • type (string) --

            The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • accountId (string) --

        The AWS account ID associated with the job.

GetPipeline (updated) Link ¶
Changes (response)
{'pipeline': {'stages': {'actions': {'actionTypeId': {'category': {'Approval'}}}}}}

Returns the metadata, structure, stages, and actions of a pipeline. Can be used to return the entire structure of a pipeline in JSON format, which can then be modified and used to update the pipeline structure with UpdatePipeline.

Request Syntax

client.get_pipeline(
    name='string',
    version=123
)
type name

string

param name

[REQUIRED]

The name of the pipeline for which you want to get information. Pipeline names must be unique under an Amazon Web Services (AWS) user account.

type version

integer

param version

The version number of the pipeline. If you do not specify a version, defaults to the most current version.

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'stages': [
            {
                'name': 'string',
                'blockers': [
                    {
                        'name': 'string',
                        'type': 'Schedule'
                    },
                ],
                'actions': [
                    {
                        'name': 'string',
                        'actionTypeId': {
                            'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                            'owner': 'AWS'|'ThirdParty'|'Custom',
                            'provider': 'string',
                            'version': 'string'
                        },
                        'runOrder': 123,
                        'configuration': {
                            'string': 'string'
                        },
                        'outputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'inputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'roleArn': 'string'
                    },
                ]
            },
        ],
        'version': 123
    }
}

Response Structure

  • (dict) --

    Represents the output of a get pipeline action.

    • pipeline (dict) --

      Represents the structure of actions and stages to be performed in the pipeline.

      • name (string) --

        The name of the action to be performed.

      • roleArn (string) --

        The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

      • artifactStore (dict) --

        The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

        • type (string) --

          The type of the artifact store, such as S3.

        • location (string) --

          The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

        • encryptionKey (dict) --

          The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

          • id (string) --

            The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

          • type (string) --

            The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • stages (list) --

        The stage in which to perform the action.

        • (dict) --

          Represents information about a stage and its definition.

          • name (string) --

            The name of the stage.

          • blockers (list) --

            Reserved for future use.

            • (dict) --

              Reserved for future use.

              • name (string) --

                Reserved for future use.

              • type (string) --

                Reserved for future use.

          • actions (list) --

            The actions included in a stage.

            • (dict) --

              Represents information about an action declaration.

              • name (string) --

                The action declaration's name.

              • actionTypeId (dict) --

                The configuration information for the action type.

                • category (string) --

                  A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

                • owner (string) --

                  The creator of the action being called.

                • provider (string) --

                  The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

                • version (string) --

                  A string that identifies the action type.

              • runOrder (integer) --

                The order in which actions are run.

              • configuration (dict) --

                The action declaration's configuration.

                • (string) --

                  • (string) --

              • outputArtifacts (list) --

                The name or ID of the result of the action declaration, such as a test or build artifact.

                • (dict) --

                  Represents information about the output of an action.

                  • name (string) --

                    The name of the output of an artifact, such as "My App".

                    The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

                    Output artifact names must be unique within a pipeline.

              • inputArtifacts (list) --

                The name or ID of the artifact consumed by the action, such as a test or build artifact.

                • (dict) --

                  Represents information about an artifact to be worked on, such as a test or build artifact.

                  • name (string) --

                    The name of the artifact to be worked on, for example, "My App".

                    The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

              • roleArn (string) --

                The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.

      • version (integer) --

        The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

GetPipelineState (updated) Link ¶
Changes (response)
{'stageStates': {'latestExecution': {'pipelineExecutionId': 'string',
                                     'status': 'InProgress | Failed | '
                                               'Succeeded'}}}

Returns information about the state of a pipeline, including the stages and actions.

Request Syntax

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

string

param name

[REQUIRED]

The name of the pipeline about which you want to get information.

rtype

dict

returns

Response Syntax

{
    'pipelineName': 'string',
    'pipelineVersion': 123,
    'stageStates': [
        {
            'stageName': 'string',
            'inboundTransitionState': {
                'enabled': True|False,
                'lastChangedBy': 'string',
                'lastChangedAt': datetime(2015, 1, 1),
                'disabledReason': 'string'
            },
            'actionStates': [
                {
                    'actionName': 'string',
                    'currentRevision': {
                        'revisionId': 'string',
                        'revisionChangeId': 'string',
                        'created': datetime(2015, 1, 1)
                    },
                    'latestExecution': {
                        'status': 'InProgress'|'Succeeded'|'Failed',
                        'summary': 'string',
                        'lastStatusChange': datetime(2015, 1, 1),
                        'externalExecutionId': 'string',
                        'externalExecutionUrl': 'string',
                        'percentComplete': 123,
                        'errorDetails': {
                            'code': 'string',
                            'message': 'string'
                        }
                    },
                    'entityUrl': 'string',
                    'revisionUrl': 'string'
                },
            ],
            'latestExecution': {
                'pipelineExecutionId': 'string',
                'status': 'InProgress'|'Failed'|'Succeeded'
            }
        },
    ],
    'created': datetime(2015, 1, 1),
    'updated': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Represents the output of a get pipeline state action.

    • pipelineName (string) --

      The name of the pipeline for which you want to get the state.

    • pipelineVersion (integer) --

      The version number of the pipeline.

      Note

      A newly-created pipeline is always assigned a version number of 1 .

    • stageStates (list) --

      A list of the pipeline stage output information, including stage name, state, most recent run details, whether the stage is disabled, and other data.

      • (dict) --

        Represents information about the state of the stage.

        • stageName (string) --

          The name of the stage.

        • inboundTransitionState (dict) --

          The state of the inbound transition, which is either enabled or disabled.

          • enabled (boolean) --

            Whether the transition between stages is enabled (true) or disabled (false).

          • lastChangedBy (string) --

            The ID of the user who last changed the transition state.

          • lastChangedAt (datetime) --

            The timestamp when the transition state was last changed.

          • disabledReason (string) --

            The user-specified reason why the transition between two stages of a pipeline was disabled.

        • actionStates (list) --

          The state of the stage.

          • (dict) --

            Represents information about the state of an action.

            • actionName (string) --

              The name of the action.

            • currentRevision (dict) --

              Represents information about the version (or revision) of an action.

              • revisionId (string) --

                The system-generated unique ID that identifies the revision number of the action.

              • revisionChangeId (string) --

                The unique identifier of the change that set the state to this revision, for example a deployment ID or timestamp.

              • created (datetime) --

                The date and time when the most recent version of the action was created, in timestamp format.

            • latestExecution (dict) --

              Represents information about the run of an action.

              • status (string) --

                The status of the action, or for a completed action, the last status of the action.

              • summary (string) --

                A summary of the run of the action.

              • lastStatusChange (datetime) --

                The last status change of the action.

              • externalExecutionId (string) --

                The external ID of the run of the action.

              • externalExecutionUrl (string) --

                The URL of a resource external to AWS that will be used when running the action, for example an external repository URL.

              • percentComplete (integer) --

                A percentage of completeness of the action as it runs.

              • errorDetails (dict) --

                The details of an error returned by a URL external to AWS.

                • code (string) --

                  The system ID or error number code of the error.

                • message (string) --

                  The text of the error message.

            • entityUrl (string) --

              A URL link for more information about the state of the action, such as a deployment group details page.

            • revisionUrl (string) --

              A URL link for more information about the revision, such as a commit details page.

        • latestExecution (dict) --

          Information about the latest execution in the stage, including its ID and status.

          • pipelineExecutionId (string) --

            The ID of the pipeline execution associated with the stage.

          • status (string) --

            The status of the stage, or for a completed stage, the last status of the stage.

    • created (datetime) --

      The date and time the pipeline was created, in timestamp format.

    • updated (datetime) --

      The date and time the pipeline was last updated, in timestamp format.

GetThirdPartyJobDetails (updated) Link ¶
Changes (response)
{'jobDetails': {'data': {'actionTypeId': {'category': {'Approval'}}}}}

Requests the details of a job for a third party action. Only used for partner actions.

Warning

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

Request Syntax

client.get_third_party_job_details(
    jobId='string',
    clientToken='string'
)
type jobId

string

param jobId

[REQUIRED]

The unique system-generated ID used for identifying the job.

type clientToken

string

param clientToken

[REQUIRED]

The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.

rtype

dict

returns

Response Syntax

{
    'jobDetails': {
        'id': 'string',
        'data': {
            'actionTypeId': {
                'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                'owner': 'AWS'|'ThirdParty'|'Custom',
                'provider': 'string',
                'version': 'string'
            },
            'actionConfiguration': {
                'configuration': {
                    'string': 'string'
                }
            },
            'pipelineContext': {
                'pipelineName': 'string',
                'stage': {
                    'name': 'string'
                },
                'action': {
                    'name': 'string'
                }
            },
            'inputArtifacts': [
                {
                    'name': 'string',
                    'revision': 'string',
                    'location': {
                        'type': 'S3',
                        's3Location': {
                            'bucketName': 'string',
                            'objectKey': 'string'
                        }
                    }
                },
            ],
            'outputArtifacts': [
                {
                    'name': 'string',
                    'revision': 'string',
                    'location': {
                        'type': 'S3',
                        's3Location': {
                            'bucketName': 'string',
                            'objectKey': 'string'
                        }
                    }
                },
            ],
            'artifactCredentials': {
                'accessKeyId': 'string',
                'secretAccessKey': 'string',
                'sessionToken': 'string'
            },
            'continuationToken': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'nonce': 'string'
    }
}

Response Structure

  • (dict) --

    Represents the output of a get third party job details action.

    • jobDetails (dict) --

      The details of the job, including any protected values defined for the job.

      • id (string) --

        The identifier used to identify the job details in AWS CodePipeline.

      • data (dict) --

        The data to be returned by the third party job worker.

        • actionTypeId (dict) --

          Represents information about an action type.

          • category (string) --

            A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

          • owner (string) --

            The creator of the action being called.

          • provider (string) --

            The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

          • version (string) --

            A string that identifies the action type.

        • actionConfiguration (dict) --

          Represents information about an action configuration.

          • configuration (dict) --

            The configuration data for the action.

            • (string) --

              • (string) --

        • pipelineContext (dict) --

          Represents information about a pipeline to a job worker.

          • pipelineName (string) --

            The name of the pipeline. This is a user-specified value. Pipeline names must be unique across all pipeline names under an Amazon Web Services account.

          • stage (dict) --

            The stage of the pipeline.

            • name (string) --

              The name of the stage.

          • action (dict) --

            Represents the context of an action within the stage of a pipeline to a job worker.

            • name (string) --

              The name of the action within the context of a job.

        • inputArtifacts (list) --

          The name of the artifact that will be worked upon by the action, if any. This name might be system-generated, such as "MyApp", or might be defined by the user when the action is created. The input artifact name must match the name of an output artifact generated by an action in an earlier action or stage of the pipeline.

          • (dict) --

            Represents information about an artifact that will be worked upon by actions in the pipeline.

            • name (string) --

              The artifact's name.

            • revision (string) --

              The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

            • location (dict) --

              The location of an artifact.

              • type (string) --

                The type of artifact in the location.

              • s3Location (dict) --

                The Amazon S3 bucket that contains the artifact.

                • bucketName (string) --

                  The name of the Amazon S3 bucket.

                • objectKey (string) --

                  The key of the object in the Amazon S3 bucket, which uniquely identifies the object in the bucket.

        • outputArtifacts (list) --

          The name of the artifact that will be the result of the action, if any. This name might be system-generated, such as "MyBuiltApp", or might be defined by the user when the action is created.

          • (dict) --

            Represents information about an artifact that will be worked upon by actions in the pipeline.

            • name (string) --

              The artifact's name.

            • revision (string) --

              The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

            • location (dict) --

              The location of an artifact.

              • type (string) --

                The type of artifact in the location.

              • s3Location (dict) --

                The Amazon S3 bucket that contains the artifact.

                • bucketName (string) --

                  The name of the Amazon S3 bucket.

                • objectKey (string) --

                  The key of the object in the Amazon S3 bucket, which uniquely identifies the object in the bucket.

        • artifactCredentials (dict) --

          Represents an AWS session credentials object. These credentials are temporary credentials that are issued by AWS Secure Token Service (STS). They can be used to access input and output artifacts in the Amazon S3 bucket used to store artifact for the pipeline in AWS CodePipeline.

          • accessKeyId (string) --

            The access key for the session.

          • secretAccessKey (string) --

            The secret access key for the session.

          • sessionToken (string) --

            The token for the session.

        • continuationToken (string) --

          A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.

        • encryptionKey (dict) --

          The encryption key used to encrypt and decrypt data in the artifact store for the pipeline, such as an AWS Key Management Service (AWS KMS) key. This is optional and might not be present.

          • id (string) --

            The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

          • type (string) --

            The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • nonce (string) --

        A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.

ListActionTypes (updated) Link ¶
Changes (response)
{'actionTypes': {'id': {'category': {'Approval'}}}}

Gets a summary of all AWS CodePipeline action types associated with your account.

Request Syntax

client.list_action_types(
    actionOwnerFilter='AWS'|'ThirdParty'|'Custom',
    nextToken='string'
)
type actionOwnerFilter

string

param actionOwnerFilter

Filters the list of action types to those created by a specified entity.

type nextToken

string

param nextToken

An identifier that was returned from the previous list action types call, which can be used to return the next set of action types in the list.

rtype

dict

returns

Response Syntax

{
    'actionTypes': [
        {
            'id': {
                'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                'owner': 'AWS'|'ThirdParty'|'Custom',
                'provider': 'string',
                'version': 'string'
            },
            'settings': {
                'thirdPartyConfigurationUrl': 'string',
                'entityUrlTemplate': 'string',
                'executionUrlTemplate': 'string',
                'revisionUrlTemplate': 'string'
            },
            'actionConfigurationProperties': [
                {
                    'name': 'string',
                    'required': True|False,
                    'key': True|False,
                    'secret': True|False,
                    'queryable': True|False,
                    'description': 'string',
                    'type': 'String'|'Number'|'Boolean'
                },
            ],
            'inputArtifactDetails': {
                'minimumCount': 123,
                'maximumCount': 123
            },
            'outputArtifactDetails': {
                'minimumCount': 123,
                'maximumCount': 123
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a list action types action.

    • actionTypes (list) --

      Provides details of the action types.

      • (dict) --

        Returns information about the details of an action type.

        • id (dict) --

          Represents information about an action type.

          • category (string) --

            A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

          • owner (string) --

            The creator of the action being called.

          • provider (string) --

            The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

          • version (string) --

            A string that identifies the action type.

        • settings (dict) --

          The settings for the action type.

          • thirdPartyConfigurationUrl (string) --

            The URL of a sign-up page where users can sign up for an external service and perform initial configuration of the action provided by that service.

          • entityUrlTemplate (string) --

            The URL returned to the AWS CodePipeline console that provides a deep link to the resources of the external system, such as the configuration page for an AWS CodeDeploy deployment group. This link is provided as part of the action display within the pipeline.

          • executionUrlTemplate (string) --

            The URL returned to the AWS CodePipeline console that contains a link to the top-level landing page for the external system, such as console page for AWS CodeDeploy. This link is shown on the pipeline view page in the AWS CodePipeline console and provides a link to the execution entity of the external action.

          • revisionUrlTemplate (string) --

            The URL returned to the AWS CodePipeline console that contains a link to the page where customers can update or change the configuration of the external action.

        • actionConfigurationProperties (list) --

          The configuration properties for the action type.

          • (dict) --

            Represents information about an action configuration property.

            • name (string) --

              The name of the action configuration property.

            • required (boolean) --

              Whether the configuration property is a required value.

            • key (boolean) --

              Whether the configuration property is a key.

            • secret (boolean) --

              Whether the configuration property is secret. Secrets are hidden from all calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and PollForThirdPartyJobs.

              When updating a pipeline, passing * * * * * without changing any other values of the action will preserve the prior value of the secret.

            • queryable (boolean) --

              Indicates that the proprety will be used in conjunction with PollForJobs. When creating a custom action, an action can have up to one queryable property. If it has one, that property must be both required and not secret.

              If you create a pipeline with a custom action type, and that custom action contains a queryable property, the value for that configuration property is subject to additional restrictions. The value must be less than or equal to twenty (20) characters. The value can contain only alphanumeric characters, underscores, and hyphens.

            • description (string) --

              The description of the action configuration property that will be displayed to users.

            • type (string) --

              The type of the configuration property.

        • inputArtifactDetails (dict) --

          The details of the input artifact for the action, such as its commit ID.

          • minimumCount (integer) --

            The minimum number of artifacts allowed for the action type.

          • maximumCount (integer) --

            The maximum number of artifacts allowed for the action type.

        • outputArtifactDetails (dict) --

          The details of the output artifact of the action, such as its commit ID.

          • minimumCount (integer) --

            The minimum number of artifacts allowed for the action type.

          • maximumCount (integer) --

            The maximum number of artifacts allowed for the action type.

    • nextToken (string) --

      If the amount of returned information is significantly large, an identifier is also returned which can be used in a subsequent list action types call to return the next set of action types in the list.

PollForJobs (updated) Link ¶
Changes (request, response)
Request
{'actionTypeId': {'category': {'Approval'}}}
Response
{'jobs': {'data': {'actionTypeId': {'category': {'Approval'}}}}}

Returns information about any jobs for AWS CodePipeline to act upon.

Warning

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts. Additionally, this API returns any secret values defined for the action.

Request Syntax

client.poll_for_jobs(
    actionTypeId={
        'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
        'owner': 'AWS'|'ThirdParty'|'Custom',
        'provider': 'string',
        'version': 'string'
    },
    maxBatchSize=123,
    queryParam={
        'string': 'string'
    }
)
type actionTypeId

dict

param actionTypeId

[REQUIRED]

Represents information about an action type.

  • category (string) -- [REQUIRED]

    A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

  • owner (string) -- [REQUIRED]

    The creator of the action being called.

  • provider (string) -- [REQUIRED]

    The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

  • version (string) -- [REQUIRED]

    A string that identifies the action type.

type maxBatchSize

integer

param maxBatchSize

The maximum number of jobs to return in a poll for jobs call.

type queryParam

dict

param queryParam

A map of property names and values. For an action type with no queryable properties, this value must be null or an empty map. For an action type with a queryable property, you must supply that property as a key in the map. Only jobs whose action configuration matches the mapped value will be returned.

  • (string) --

    • (string) --

rtype

dict

returns

Response Syntax

{
    'jobs': [
        {
            'id': 'string',
            'data': {
                'actionTypeId': {
                    'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                    'owner': 'AWS'|'ThirdParty'|'Custom',
                    'provider': 'string',
                    'version': 'string'
                },
                'actionConfiguration': {
                    'configuration': {
                        'string': 'string'
                    }
                },
                'pipelineContext': {
                    'pipelineName': 'string',
                    'stage': {
                        'name': 'string'
                    },
                    'action': {
                        'name': 'string'
                    }
                },
                'inputArtifacts': [
                    {
                        'name': 'string',
                        'revision': 'string',
                        'location': {
                            'type': 'S3',
                            's3Location': {
                                'bucketName': 'string',
                                'objectKey': 'string'
                            }
                        }
                    },
                ],
                'outputArtifacts': [
                    {
                        'name': 'string',
                        'revision': 'string',
                        'location': {
                            'type': 'S3',
                            's3Location': {
                                'bucketName': 'string',
                                'objectKey': 'string'
                            }
                        }
                    },
                ],
                'artifactCredentials': {
                    'accessKeyId': 'string',
                    'secretAccessKey': 'string',
                    'sessionToken': 'string'
                },
                'continuationToken': 'string',
                'encryptionKey': {
                    'id': 'string',
                    'type': 'KMS'
                }
            },
            'nonce': 'string',
            'accountId': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Represents the output of a poll for jobs action.

    • jobs (list) --

      Information about the jobs to take action on.

      • (dict) --

        Represents information about a job.

        • id (string) --

          The unique system-generated ID of the job.

        • data (dict) --

          Additional data about a job.

          • actionTypeId (dict) --

            Represents information about an action type.

            • category (string) --

              A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

            • owner (string) --

              The creator of the action being called.

            • provider (string) --

              The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

            • version (string) --

              A string that identifies the action type.

          • actionConfiguration (dict) --

            Represents information about an action configuration.

            • configuration (dict) --

              The configuration data for the action.

              • (string) --

                • (string) --

          • pipelineContext (dict) --

            Represents information about a pipeline to a job worker.

            • pipelineName (string) --

              The name of the pipeline. This is a user-specified value. Pipeline names must be unique across all pipeline names under an Amazon Web Services account.

            • stage (dict) --

              The stage of the pipeline.

              • name (string) --

                The name of the stage.

            • action (dict) --

              Represents the context of an action within the stage of a pipeline to a job worker.

              • name (string) --

                The name of the action within the context of a job.

          • inputArtifacts (list) --

            The artifact supplied to the job.

            • (dict) --

              Represents information about an artifact that will be worked upon by actions in the pipeline.

              • name (string) --

                The artifact's name.

              • revision (string) --

                The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

              • location (dict) --

                The location of an artifact.

                • type (string) --

                  The type of artifact in the location.

                • s3Location (dict) --

                  The Amazon S3 bucket that contains the artifact.

                  • bucketName (string) --

                    The name of the Amazon S3 bucket.

                  • objectKey (string) --

                    The key of the object in the Amazon S3 bucket, which uniquely identifies the object in the bucket.

          • outputArtifacts (list) --

            The output of the job.

            • (dict) --

              Represents information about an artifact that will be worked upon by actions in the pipeline.

              • name (string) --

                The artifact's name.

              • revision (string) --

                The artifact's revision ID. Depending on the type of object, this could be a commit ID (GitHub) or a revision ID (Amazon S3).

              • location (dict) --

                The location of an artifact.

                • type (string) --

                  The type of artifact in the location.

                • s3Location (dict) --

                  The Amazon S3 bucket that contains the artifact.

                  • bucketName (string) --

                    The name of the Amazon S3 bucket.

                  • objectKey (string) --

                    The key of the object in the Amazon S3 bucket, which uniquely identifies the object in the bucket.

          • artifactCredentials (dict) --

            Represents an AWS session credentials object. These credentials are temporary credentials that are issued by AWS Secure Token Service (STS). They can be used to access input and output artifacts in the Amazon S3 bucket used to store artifact for the pipeline in AWS CodePipeline.

            • accessKeyId (string) --

              The access key for the session.

            • secretAccessKey (string) --

              The secret access key for the session.

            • sessionToken (string) --

              The token for the session.

          • continuationToken (string) --

            A system-generated token, such as a AWS CodeDeploy deployment ID, that a job requires in order to continue the job asynchronously.

          • encryptionKey (dict) --

            Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.

            • id (string) --

              The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

            • type (string) --

              The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

        • nonce (string) --

          A system-generated random number that AWS CodePipeline uses to ensure that the job is being worked on by only one job worker. This number must be returned in the response.

        • accountId (string) --

          The ID of the AWS account to use when performing the job.

PollForThirdPartyJobs (updated) Link ¶
Changes (request)
{'actionTypeId': {'category': {'Approval'}}}

Determines whether there are any third party jobs for a job worker to act on. Only used for partner actions.

Warning

When this API is called, AWS CodePipeline returns temporary credentials for the Amazon S3 bucket used to store artifacts for the pipeline, if the action requires access to that Amazon S3 bucket for input or output artifacts.

Request Syntax

client.poll_for_third_party_jobs(
    actionTypeId={
        'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
        'owner': 'AWS'|'ThirdParty'|'Custom',
        'provider': 'string',
        'version': 'string'
    },
    maxBatchSize=123
)
type actionTypeId

dict

param actionTypeId

[REQUIRED]

Represents information about an action type.

  • category (string) -- [REQUIRED]

    A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

  • owner (string) -- [REQUIRED]

    The creator of the action being called.

  • provider (string) -- [REQUIRED]

    The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

  • version (string) -- [REQUIRED]

    A string that identifies the action type.

type maxBatchSize

integer

param maxBatchSize

The maximum number of jobs to return in a poll for jobs call.

rtype

dict

returns

Response Syntax

{
    'jobs': [
        {
            'clientId': 'string',
            'jobId': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Represents the output of a poll for third party jobs action.

    • jobs (list) --

      Information about the jobs to take action on.

      • (dict) --

        A response to a PollForThirdPartyJobs request returned by AWS CodePipeline when there is a job to be worked upon by a partner action.

        • clientId (string) --

          The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.

        • jobId (string) --

          The identifier used to identify the job in AWS CodePipeline.

UpdatePipeline (updated) Link ¶
Changes (both)
{'pipeline': {'stages': {'actions': {'actionTypeId': {'category': {'Approval'}}}}}}

Updates a specified pipeline with edits or changes to its structure. Use a JSON file with the pipeline structure in conjunction with UpdatePipeline to provide the full structure of the pipeline. Updating the pipeline increases the version number of the pipeline by 1.

Request Syntax

client.update_pipeline(
    pipeline={
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'stages': [
            {
                'name': 'string',
                'blockers': [
                    {
                        'name': 'string',
                        'type': 'Schedule'
                    },
                ],
                'actions': [
                    {
                        'name': 'string',
                        'actionTypeId': {
                            'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                            'owner': 'AWS'|'ThirdParty'|'Custom',
                            'provider': 'string',
                            'version': 'string'
                        },
                        'runOrder': 123,
                        'configuration': {
                            'string': 'string'
                        },
                        'outputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'inputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'roleArn': 'string'
                    },
                ]
            },
        ],
        'version': 123
    }
)
type pipeline

dict

param pipeline

[REQUIRED]

The name of the pipeline to be updated.

  • name (string) -- [REQUIRED]

    The name of the action to be performed.

  • roleArn (string) -- [REQUIRED]

    The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

  • artifactStore (dict) -- [REQUIRED]

    The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

    • type (string) -- [REQUIRED]

      The type of the artifact store, such as S3.

    • location (string) -- [REQUIRED]

      The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

    • encryptionKey (dict) --

      The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

      • id (string) -- [REQUIRED]

        The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

      • type (string) -- [REQUIRED]

        The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

  • stages (list) -- [REQUIRED]

    The stage in which to perform the action.

    • (dict) --

      Represents information about a stage and its definition.

      • name (string) -- [REQUIRED]

        The name of the stage.

      • blockers (list) --

        Reserved for future use.

        • (dict) --

          Reserved for future use.

          • name (string) -- [REQUIRED]

            Reserved for future use.

          • type (string) -- [REQUIRED]

            Reserved for future use.

      • actions (list) -- [REQUIRED]

        The actions included in a stage.

        • (dict) --

          Represents information about an action declaration.

          • name (string) -- [REQUIRED]

            The action declaration's name.

          • actionTypeId (dict) -- [REQUIRED]

            The configuration information for the action type.

            • category (string) -- [REQUIRED]

              A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

            • owner (string) -- [REQUIRED]

              The creator of the action being called.

            • provider (string) -- [REQUIRED]

              The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

            • version (string) -- [REQUIRED]

              A string that identifies the action type.

          • runOrder (integer) --

            The order in which actions are run.

          • configuration (dict) --

            The action declaration's configuration.

            • (string) --

              • (string) --

          • outputArtifacts (list) --

            The name or ID of the result of the action declaration, such as a test or build artifact.

            • (dict) --

              Represents information about the output of an action.

              • name (string) -- [REQUIRED]

                The name of the output of an artifact, such as "My App".

                The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

                Output artifact names must be unique within a pipeline.

          • inputArtifacts (list) --

            The name or ID of the artifact consumed by the action, such as a test or build artifact.

            • (dict) --

              Represents information about an artifact to be worked on, such as a test or build artifact.

              • name (string) -- [REQUIRED]

                The name of the artifact to be worked on, for example, "My App".

                The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

          • roleArn (string) --

            The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.

  • version (integer) --

    The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'stages': [
            {
                'name': 'string',
                'blockers': [
                    {
                        'name': 'string',
                        'type': 'Schedule'
                    },
                ],
                'actions': [
                    {
                        'name': 'string',
                        'actionTypeId': {
                            'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                            'owner': 'AWS'|'ThirdParty'|'Custom',
                            'provider': 'string',
                            'version': 'string'
                        },
                        'runOrder': 123,
                        'configuration': {
                            'string': 'string'
                        },
                        'outputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'inputArtifacts': [
                            {
                                'name': 'string'
                            },
                        ],
                        'roleArn': 'string'
                    },
                ]
            },
        ],
        'version': 123
    }
}

Response Structure

  • (dict) --

    Represents the output of an update pipeline action.

    • pipeline (dict) --

      The structure of the updated pipeline.

      • name (string) --

        The name of the action to be performed.

      • roleArn (string) --

        The Amazon Resource Name (ARN) for AWS CodePipeline to use to either perform actions with no actionRoleArn, or to use to assume roles for actions with an actionRoleArn.

      • artifactStore (dict) --

        The Amazon S3 location where artifacts are stored for the pipeline. If this Amazon S3 bucket is created manually, it must meet the requirements for AWS CodePipeline. For more information, see the Concepts.

        • type (string) --

          The type of the artifact store, such as S3.

        • location (string) --

          The location for storing the artifacts for a pipeline, such as an S3 bucket or folder.

        • encryptionKey (dict) --

          The encryption key used to encrypt the data in the artifact store, such as an AWS Key Management Service (AWS KMS) key. If this is undefined, the default key for Amazon S3 is used.

          • id (string) --

            The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.

          • type (string) --

            The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • stages (list) --

        The stage in which to perform the action.

        • (dict) --

          Represents information about a stage and its definition.

          • name (string) --

            The name of the stage.

          • blockers (list) --

            Reserved for future use.

            • (dict) --

              Reserved for future use.

              • name (string) --

                Reserved for future use.

              • type (string) --

                Reserved for future use.

          • actions (list) --

            The actions included in a stage.

            • (dict) --

              Represents information about an action declaration.

              • name (string) --

                The action declaration's name.

              • actionTypeId (dict) --

                The configuration information for the action type.

                • category (string) --

                  A category defines what kind of action can be taken in the stage, and constrains the provider type for the action. Valid categories are limited to one of the values below.

                • owner (string) --

                  The creator of the action being called.

                • provider (string) --

                  The provider of the service being called by the action. Valid providers are determined by the action category. For example, an action in the Deploy category type might have a provider of AWS CodeDeploy, which would be specified as CodeDeploy.

                • version (string) --

                  A string that identifies the action type.

              • runOrder (integer) --

                The order in which actions are run.

              • configuration (dict) --

                The action declaration's configuration.

                • (string) --

                  • (string) --

              • outputArtifacts (list) --

                The name or ID of the result of the action declaration, such as a test or build artifact.

                • (dict) --

                  Represents information about the output of an action.

                  • name (string) --

                    The name of the output of an artifact, such as "My App".

                    The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

                    Output artifact names must be unique within a pipeline.

              • inputArtifacts (list) --

                The name or ID of the artifact consumed by the action, such as a test or build artifact.

                • (dict) --

                  Represents information about an artifact to be worked on, such as a test or build artifact.

                  • name (string) --

                    The name of the artifact to be worked on, for example, "My App".

                    The input artifact of an action must exactly match the output artifact declared in a preceding action, but the input artifact does not have to be the next action in strict sequence from the action that provided the output artifact. Actions in parallel can declare different output artifacts, which are in turn consumed by different following actions.

              • roleArn (string) --

                The ARN of the IAM service role that will perform the declared action. This is assumed through the roleArn for the pipeline.

      • version (integer) --

        The version number of the pipeline. A new pipeline always has a version number of 1. This number is automatically incremented when a pipeline is updated.