AWS CodePipeline

2024/02/08 - AWS CodePipeline - 8 updated api methods

Changes  Add ability to execute pipelines with new parallel & queued execution modes and add support for triggers with filtering on branches and file paths.

CreatePipeline (updated) Link ¶
Changes (both)
{'pipeline': {'executionMode': 'QUEUED | SUPERSEDED | PARALLEL',
              'triggers': {'gitConfiguration': {'pullRequest': [{'branches': {'excludes': ['string'],
                                                                              'includes': ['string']},
                                                                 'events': ['OPEN '
                                                                            '| '
                                                                            'UPDATED '
                                                                            '| '
                                                                            'CLOSED'],
                                                                 'filePaths': {'excludes': ['string'],
                                                                               'includes': ['string']}}],
                                                'push': {'branches': {'excludes': ['string'],
                                                                      'includes': ['string']},
                                                         'filePaths': {'excludes': ['string'],
                                                                       'includes': ['string']}}}}}}

Creates a pipeline.

Note

In the pipeline structure, you must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

See also: AWS API Documentation

Request Syntax

client.create_pipeline(
    pipeline={
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'artifactStores': {
            'string': {
                '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',
                        'region': 'string',
                        'namespace': 'string'
                    },
                ]
            },
        ],
        'version': 123,
        'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL',
        'pipelineType': 'V1'|'V2',
        'variables': [
            {
                'name': 'string',
                'defaultValue': 'string',
                'description': 'string'
            },
        ],
        'triggers': [
            {
                'providerType': 'CodeStarSourceConnection',
                'gitConfiguration': {
                    'sourceActionName': 'string',
                    'push': [
                        {
                            'tags': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ],
                    'pullRequest': [
                        {
                            'events': [
                                'OPEN'|'UPDATED'|'CLOSED',
                            ],
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    tags=[
        {
            'key': 'string',
            'value': 'string'
        },
    ]
)
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 pipeline.

  • roleArn (string) -- [REQUIRED]

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

  • artifactStore (dict) --

    Represents information about the S3 bucket where artifacts are stored for the pipeline.

    Note

    You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

    • type (string) -- [REQUIRED]

      The type of the artifact store, such as S3.

    • location (string) -- [REQUIRED]

      The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

    • encryptionKey (dict) --

      The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service 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 Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

        Note

        Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

      • type (string) -- [REQUIRED]

        The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.

  • artifactStores (dict) --

    A mapping of artifactStore objects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.

    Note

    You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

    • (string) --

      • (dict) --

        The S3 bucket where artifacts for the pipeline are stored.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • type (string) -- [REQUIRED]

          The type of the artifact store, such as S3.

        • location (string) -- [REQUIRED]

          The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

        • encryptionKey (dict) --

          The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service 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 Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

            Note

            Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

          • type (string) -- [REQUIRED]

            The type of encryption key, such as an Amazon Web Services 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]

            Specifies the action type and the provider of the action.

            • 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 following values.

              • Source

              • Build

              • Test

              • Deploy

              • Invoke

              • Approval

            • owner (string) -- [REQUIRED]

              The creator of the action being called. There are three valid values for the Owner field in the action category section within your pipeline structure: AWS , ThirdParty , and Custom . For more information, see Valid Action Types and Providers in CodePipeline .

            • 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 CodeDeploy, which would be specified as CodeDeploy . For more information, see Valid Action Types and Providers in CodePipeline .

            • version (string) -- [REQUIRED]

              A string that describes the action version.

          • runOrder (integer) --

            The order in which actions are run.

          • configuration (dict) --

            The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide .

            The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:

            JSON:

            "Configuration" : { Key : Value },

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

                Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip

                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 performs the declared action. This is assumed through the roleArn for the pipeline.

          • region (string) --

            The action declaration's Amazon Web Services Region, such as us-east-1.

          • namespace (string) --

            The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.

  • version (integer) --

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

  • executionMode (string) --

    The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

  • pipelineType (string) --

    CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.

    • V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.

    • V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.

    Warning

    Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.

    For information about pricing for CodePipeline, see Pricing .

    For information about which type of pipeline to choose, see What type of pipeline is right for me? .

  • variables (list) --

    A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+ .

    • (dict) --

      A variable declared at the pipeline level.

      • name (string) -- [REQUIRED]

        The name of a pipeline-level variable.

      • defaultValue (string) --

        The value of a pipeline-level variable.

      • description (string) --

        The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.

  • triggers (list) --

    The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.

    Note

    When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

    • (dict) --

      Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.

      Note

      This is only supported for the CodeStarSourceConnection action type.

      Note

      When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

      • providerType (string) -- [REQUIRED]

        The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

      • gitConfiguration (dict) -- [REQUIRED]

        Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

        • sourceActionName (string) -- [REQUIRED]

          The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.

          Note

          You can only specify one trigger configuration per source action.

        • push (list) --

          The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.

          • (dict) --

            The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

            • tags (dict) --

              The field that contains the details for the Git tags trigger configuration.

              • includes (list) --

                The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.

                • (string) --

            • branches (dict) --

              The field that specifies to filter on branches for the push trigger configuration.

              • includes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

            • filePaths (dict) --

              The field that specifies to filter on file paths for the push trigger configuration.

              • includes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

        • pullRequest (list) --

          The field where the repository event that will start the pipeline is specified as pull requests.

          • (dict) --

            The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.

            • events (list) --

              The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.

              • (string) --

            • branches (dict) --

              The field that specifies to filter on branches for the pull request trigger configuration.

              • includes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

            • filePaths (dict) --

              The field that specifies to filter on file paths for the pull request trigger configuration.

              • includes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

type tags

list

param tags

The tags for the pipeline.

  • (dict) --

    A tag is a key-value pair that is used to manage the resource.

    • key (string) -- [REQUIRED]

      The tag's key.

    • value (string) -- [REQUIRED]

      The tag's value.

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'artifactStores': {
            'string': {
                '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',
                        'region': 'string',
                        'namespace': 'string'
                    },
                ]
            },
        ],
        'version': 123,
        'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL',
        'pipelineType': 'V1'|'V2',
        'variables': [
            {
                'name': 'string',
                'defaultValue': 'string',
                'description': 'string'
            },
        ],
        'triggers': [
            {
                'providerType': 'CodeStarSourceConnection',
                'gitConfiguration': {
                    'sourceActionName': 'string',
                    'push': [
                        {
                            'tags': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ],
                    'pullRequest': [
                        {
                            'events': [
                                'OPEN'|'UPDATED'|'CLOSED',
                            ],
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    'tags': [
        {
            'key': 'string',
            'value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Represents the output of a CreatePipeline action.

    • pipeline (dict) --

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

      • name (string) --

        The name of the pipeline.

      • roleArn (string) --

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

      • artifactStore (dict) --

        Represents information about the S3 bucket where artifacts are stored for the pipeline.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • type (string) --

          The type of the artifact store, such as S3.

        • location (string) --

          The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

        • encryptionKey (dict) --

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

          • id (string) --

            The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

            Note

            Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

          • type (string) --

            The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • artifactStores (dict) --

        A mapping of artifactStore objects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • (string) --

          • (dict) --

            The S3 bucket where artifacts for the pipeline are stored.

            Note

            You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

            • type (string) --

              The type of the artifact store, such as S3.

            • location (string) --

              The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

            • encryptionKey (dict) --

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

              • id (string) --

                The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

                Note

                Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

              • type (string) --

                The type of encryption key, such as an Amazon Web Services 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) --

                Specifies the action type and the provider of the action.

                • 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 following values.

                  • Source

                  • Build

                  • Test

                  • Deploy

                  • Invoke

                  • Approval

                • owner (string) --

                  The creator of the action being called. There are three valid values for the Owner field in the action category section within your pipeline structure: AWS , ThirdParty , and Custom . For more information, see Valid Action Types and Providers in CodePipeline .

                • 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 CodeDeploy, which would be specified as CodeDeploy . For more information, see Valid Action Types and Providers in CodePipeline .

                • version (string) --

                  A string that describes the action version.

              • runOrder (integer) --

                The order in which actions are run.

              • configuration (dict) --

                The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide .

                The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:

                JSON:

                "Configuration" : { Key : Value },

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

                    Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip

                    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 performs the declared action. This is assumed through the roleArn for the pipeline.

              • region (string) --

                The action declaration's Amazon Web Services Region, such as us-east-1.

              • namespace (string) --

                The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.

      • version (integer) --

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

      • executionMode (string) --

        The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

      • pipelineType (string) --

        CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.

        • V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.

        • V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.

        Warning

        Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.

        For information about pricing for CodePipeline, see Pricing .

        For information about which type of pipeline to choose, see What type of pipeline is right for me? .

      • variables (list) --

        A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+ .

        • (dict) --

          A variable declared at the pipeline level.

          • name (string) --

            The name of a pipeline-level variable.

          • defaultValue (string) --

            The value of a pipeline-level variable.

          • description (string) --

            The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.

      • triggers (list) --

        The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.

        Note

        When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

        • (dict) --

          Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.

          Note

          This is only supported for the CodeStarSourceConnection action type.

          Note

          When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

          • providerType (string) --

            The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

          • gitConfiguration (dict) --

            Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

            • sourceActionName (string) --

              The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.

              Note

              You can only specify one trigger configuration per source action.

            • push (list) --

              The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.

              • (dict) --

                The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

                • tags (dict) --

                  The field that contains the details for the Git tags trigger configuration.

                  • includes (list) --

                    The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • branches (dict) --

                  The field that specifies to filter on branches for the push trigger configuration.

                  • includes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • filePaths (dict) --

                  The field that specifies to filter on file paths for the push trigger configuration.

                  • includes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

            • pullRequest (list) --

              The field where the repository event that will start the pipeline is specified as pull requests.

              • (dict) --

                The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.

                • events (list) --

                  The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.

                  • (string) --

                • branches (dict) --

                  The field that specifies to filter on branches for the pull request trigger configuration.

                  • includes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • filePaths (dict) --

                  The field that specifies to filter on file paths for the pull request trigger configuration.

                  • includes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

    • tags (list) --

      Specifies the tags applied to the pipeline.

      • (dict) --

        A tag is a key-value pair that is used to manage the resource.

        • key (string) --

          The tag's key.

        • value (string) --

          The tag's value.

GetPipeline (updated) Link ¶
Changes (response)
{'pipeline': {'executionMode': 'QUEUED | SUPERSEDED | PARALLEL',
              'triggers': {'gitConfiguration': {'pullRequest': [{'branches': {'excludes': ['string'],
                                                                              'includes': ['string']},
                                                                 'events': ['OPEN '
                                                                            '| '
                                                                            'UPDATED '
                                                                            '| '
                                                                            'CLOSED'],
                                                                 'filePaths': {'excludes': ['string'],
                                                                               'includes': ['string']}}],
                                                'push': {'branches': {'excludes': ['string'],
                                                                      'includes': ['string']},
                                                         'filePaths': {'excludes': ['string'],
                                                                       'includes': ['string']}}}}}}

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 .

See also: AWS API Documentation

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 in an Amazon Web Services account.

type version

integer

param version

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

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'artifactStores': {
            'string': {
                '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',
                        'region': 'string',
                        'namespace': 'string'
                    },
                ]
            },
        ],
        'version': 123,
        'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL',
        'pipelineType': 'V1'|'V2',
        'variables': [
            {
                'name': 'string',
                'defaultValue': 'string',
                'description': 'string'
            },
        ],
        'triggers': [
            {
                'providerType': 'CodeStarSourceConnection',
                'gitConfiguration': {
                    'sourceActionName': 'string',
                    'push': [
                        {
                            'tags': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ],
                    'pullRequest': [
                        {
                            'events': [
                                'OPEN'|'UPDATED'|'CLOSED',
                            ],
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    },
    'metadata': {
        'pipelineArn': 'string',
        'created': datetime(2015, 1, 1),
        'updated': datetime(2015, 1, 1),
        'pollingDisabledAt': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    Represents the output of a GetPipeline action.

    • pipeline (dict) --

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

      • name (string) --

        The name of the pipeline.

      • roleArn (string) --

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

      • artifactStore (dict) --

        Represents information about the S3 bucket where artifacts are stored for the pipeline.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • type (string) --

          The type of the artifact store, such as S3.

        • location (string) --

          The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

        • encryptionKey (dict) --

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

          • id (string) --

            The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

            Note

            Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

          • type (string) --

            The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • artifactStores (dict) --

        A mapping of artifactStore objects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • (string) --

          • (dict) --

            The S3 bucket where artifacts for the pipeline are stored.

            Note

            You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

            • type (string) --

              The type of the artifact store, such as S3.

            • location (string) --

              The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

            • encryptionKey (dict) --

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

              • id (string) --

                The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

                Note

                Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

              • type (string) --

                The type of encryption key, such as an Amazon Web Services 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) --

                Specifies the action type and the provider of the action.

                • 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 following values.

                  • Source

                  • Build

                  • Test

                  • Deploy

                  • Invoke

                  • Approval

                • owner (string) --

                  The creator of the action being called. There are three valid values for the Owner field in the action category section within your pipeline structure: AWS , ThirdParty , and Custom . For more information, see Valid Action Types and Providers in CodePipeline .

                • 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 CodeDeploy, which would be specified as CodeDeploy . For more information, see Valid Action Types and Providers in CodePipeline .

                • version (string) --

                  A string that describes the action version.

              • runOrder (integer) --

                The order in which actions are run.

              • configuration (dict) --

                The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide .

                The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:

                JSON:

                "Configuration" : { Key : Value },

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

                    Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip

                    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 performs the declared action. This is assumed through the roleArn for the pipeline.

              • region (string) --

                The action declaration's Amazon Web Services Region, such as us-east-1.

              • namespace (string) --

                The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.

      • version (integer) --

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

      • executionMode (string) --

        The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

      • pipelineType (string) --

        CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.

        • V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.

        • V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.

        Warning

        Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.

        For information about pricing for CodePipeline, see Pricing .

        For information about which type of pipeline to choose, see What type of pipeline is right for me? .

      • variables (list) --

        A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+ .

        • (dict) --

          A variable declared at the pipeline level.

          • name (string) --

            The name of a pipeline-level variable.

          • defaultValue (string) --

            The value of a pipeline-level variable.

          • description (string) --

            The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.

      • triggers (list) --

        The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.

        Note

        When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

        • (dict) --

          Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.

          Note

          This is only supported for the CodeStarSourceConnection action type.

          Note

          When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

          • providerType (string) --

            The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

          • gitConfiguration (dict) --

            Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

            • sourceActionName (string) --

              The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.

              Note

              You can only specify one trigger configuration per source action.

            • push (list) --

              The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.

              • (dict) --

                The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

                • tags (dict) --

                  The field that contains the details for the Git tags trigger configuration.

                  • includes (list) --

                    The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • branches (dict) --

                  The field that specifies to filter on branches for the push trigger configuration.

                  • includes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • filePaths (dict) --

                  The field that specifies to filter on file paths for the push trigger configuration.

                  • includes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

            • pullRequest (list) --

              The field where the repository event that will start the pipeline is specified as pull requests.

              • (dict) --

                The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.

                • events (list) --

                  The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.

                  • (string) --

                • branches (dict) --

                  The field that specifies to filter on branches for the pull request trigger configuration.

                  • includes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • filePaths (dict) --

                  The field that specifies to filter on file paths for the pull request trigger configuration.

                  • includes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

    • metadata (dict) --

      Represents the pipeline metadata information returned as part of the output of a GetPipeline action.

      • pipelineArn (string) --

        The Amazon Resource Name (ARN) of the pipeline.

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

      • pollingDisabledAt (datetime) --

        The date and time that polling for source changes (periodic checks) was stopped for the pipeline, in timestamp format. You can migrate (update) a polling pipeline to use event-based change detection. For example, for a pipeline with a CodeCommit source, we recommend you migrate (update) your pipeline to use CloudWatch Events. To learn more, see Migrate polling pipelines to use event-based change detection in the CodePipeline User Guide.

GetPipelineExecution (updated) Link ¶
Changes (response)
{'pipelineExecution': {'executionMode': 'QUEUED | SUPERSEDED | PARALLEL'}}

Returns information about an execution of a pipeline, including details about artifacts, the pipeline execution ID, and the name, version, and status of the pipeline.

See also: AWS API Documentation

Request Syntax

client.get_pipeline_execution(
    pipelineName='string',
    pipelineExecutionId='string'
)
type pipelineName

string

param pipelineName

[REQUIRED]

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

type pipelineExecutionId

string

param pipelineExecutionId

[REQUIRED]

The ID of the pipeline execution about which you want to get execution details.

rtype

dict

returns

Response Syntax

{
    'pipelineExecution': {
        'pipelineName': 'string',
        'pipelineVersion': 123,
        'pipelineExecutionId': 'string',
        'status': 'Cancelled'|'InProgress'|'Stopped'|'Stopping'|'Succeeded'|'Superseded'|'Failed',
        'statusSummary': 'string',
        'artifactRevisions': [
            {
                'name': 'string',
                'revisionId': 'string',
                'revisionChangeIdentifier': 'string',
                'revisionSummary': 'string',
                'created': datetime(2015, 1, 1),
                'revisionUrl': 'string'
            },
        ],
        'variables': [
            {
                'name': 'string',
                'resolvedValue': 'string'
            },
        ],
        'trigger': {
            'triggerType': 'CreatePipeline'|'StartPipelineExecution'|'PollForSourceChanges'|'Webhook'|'CloudWatchEvent'|'PutActionRevision'|'WebhookV2',
            'triggerDetail': 'string'
        },
        'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL'
    }
}

Response Structure

  • (dict) --

    Represents the output of a GetPipelineExecution action.

    • pipelineExecution (dict) --

      Represents information about the execution of a pipeline.

      • pipelineName (string) --

        The name of the pipeline with the specified pipeline execution.

      • pipelineVersion (integer) --

        The version number of the pipeline with the specified pipeline execution.

      • pipelineExecutionId (string) --

        The ID of the pipeline execution.

      • status (string) --

        The status of the pipeline execution.

        • Cancelled: The pipeline’s definition was updated before the pipeline execution could be completed.

        • InProgress: The pipeline execution is currently running.

        • Stopped: The pipeline execution was manually stopped. For more information, see Stopped Executions .

        • Stopping: The pipeline execution received a request to be manually stopped. Depending on the selected stop mode, the execution is either completing or abandoning in-progress actions. For more information, see Stopped Executions .

        • Succeeded: The pipeline execution was completed successfully.

        • Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead. For more information, see Superseded Executions .

        • Failed: The pipeline execution was not completed successfully.

      • statusSummary (string) --

        A summary that contains a description of the pipeline execution status.

      • artifactRevisions (list) --

        A list of ArtifactRevision objects included in a pipeline execution.

        • (dict) --

          Represents revision details of an artifact.

          • name (string) --

            The name of an artifact. This name might be system-generated, such as "MyApp", or defined by the user when an action is created.

          • revisionId (string) --

            The revision ID of the artifact.

          • revisionChangeIdentifier (string) --

            An additional identifier for a revision, such as a commit date or, for artifacts stored in Amazon S3 buckets, the ETag value.

          • revisionSummary (string) --

            Summary information about the most recent revision of the artifact. For GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary key specified in the object metadata.

          • created (datetime) --

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

          • revisionUrl (string) --

            The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit repositories, the commit ID is linked to a commit details page.

      • variables (list) --

        A list of pipeline variables used for the pipeline execution.

        • (dict) --

          A pipeline-level variable used for a pipeline execution.

          • name (string) --

            The name of a pipeline-level variable.

          • resolvedValue (string) --

            The resolved value of a pipeline-level variable.

      • trigger (dict) --

        The interaction or event that started a pipeline execution.

        • triggerType (string) --

          The type of change-detection method, command, or user interaction that started a pipeline execution.

        • triggerDetail (string) --

          Detail related to the event that started a pipeline execution, such as the webhook ARN of the webhook that triggered the pipeline execution or the user ARN for a user-initiated start-pipeline-execution CLI command.

      • executionMode (string) --

        The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

GetPipelineState (updated) Link ¶
Changes (response)
{'stageStates': {'inboundExecutions': [{'pipelineExecutionId': 'string',
                                        'status': 'Cancelled | InProgress | '
                                                  'Failed | Stopped | Stopping '
                                                  '| Succeeded'}]}}

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

Note

Values returned in the revisionId and revisionUrl fields indicate the source revision information, such as the commit ID, for the current state.

See also: AWS API Documentation

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',
            'inboundExecution': {
                'pipelineExecutionId': 'string',
                'status': 'Cancelled'|'InProgress'|'Failed'|'Stopped'|'Stopping'|'Succeeded'
            },
            'inboundExecutions': [
                {
                    'pipelineExecutionId': 'string',
                    'status': 'Cancelled'|'InProgress'|'Failed'|'Stopped'|'Stopping'|'Succeeded'
                },
            ],
            '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': {
                        'actionExecutionId': 'string',
                        'status': 'InProgress'|'Abandoned'|'Succeeded'|'Failed',
                        'summary': 'string',
                        'lastStatusChange': datetime(2015, 1, 1),
                        'token': 'string',
                        'lastUpdatedBy': 'string',
                        'externalExecutionId': 'string',
                        'externalExecutionUrl': 'string',
                        'percentComplete': 123,
                        'errorDetails': {
                            'code': 'string',
                            'message': 'string'
                        }
                    },
                    'entityUrl': 'string',
                    'revisionUrl': 'string'
                },
            ],
            'latestExecution': {
                'pipelineExecutionId': 'string',
                'status': 'Cancelled'|'InProgress'|'Failed'|'Stopped'|'Stopping'|'Succeeded'
            }
        },
    ],
    'created': datetime(2015, 1, 1),
    'updated': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    Represents the output of a GetPipelineState 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.

        • inboundExecution (dict) --

          Represents information about the run of a stage.

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

            Note

            A status of cancelled means that the pipeline’s definition was updated before the stage execution could be completed.

        • inboundExecutions (list) --

          The inbound executions for a stage.

          • (dict) --

            Represents information about the run of a stage.

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

              Note

              A status of cancelled means that the pipeline’s definition was updated before the stage execution could be completed.

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

              • actionExecutionId (string) --

                ID of the workflow action execution in the current stage. Use the GetPipelineState action to retrieve the current action execution details of the current stage.

                Note

                For older executions, this field might be empty. The action execution ID is available for executions run on or after March 2020.

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

              • token (string) --

                The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState command. It is used to validate that the approval request corresponding to this token is still valid.

              • lastUpdatedBy (string) --

                The ARN of the user who last changed the pipeline.

              • externalExecutionId (string) --

                The external ID of the run of the action.

              • externalExecutionUrl (string) --

                The URL of a resource external to Amazon Web Services that is 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 Amazon Web Services.

                • code (string) --

                  The system ID or 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.

            Note

            A status of cancelled means that the pipeline’s definition was updated before the stage execution could be completed.

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

ListActionExecutions (updated) Link ¶
Changes (request, response)
Request
{'filter': {'latestInPipelineExecution': {'pipelineExecutionId': 'string',
                                          'startTimeRange': 'Latest | All'}}}
Response
{'actionExecutionDetails': {'output': {'executionResult': {'errorDetails': {'code': 'string',
                                                                            'message': 'string'}}},
                            'updatedBy': 'string'}}

Lists the action executions that have occurred in a pipeline.

See also: AWS API Documentation

Request Syntax

client.list_action_executions(
    pipelineName='string',
    filter={
        'pipelineExecutionId': 'string',
        'latestInPipelineExecution': {
            'pipelineExecutionId': 'string',
            'startTimeRange': 'Latest'|'All'
        }
    },
    maxResults=123,
    nextToken='string'
)
type pipelineName

string

param pipelineName

[REQUIRED]

The name of the pipeline for which you want to list action execution history.

type filter

dict

param filter

Input information used to filter action execution history.

  • pipelineExecutionId (string) --

    The pipeline execution ID used to filter action execution history.

  • latestInPipelineExecution (dict) --

    The latest execution in the pipeline.

    Note

    Filtering on the latest execution is available for executions run on or after February 08, 2024.

    • pipelineExecutionId (string) -- [REQUIRED]

      The execution ID for the latest execution in the pipeline.

    • startTimeRange (string) -- [REQUIRED]

      The start time to filter on for the latest execution in the pipeline. Valid options:

      • All

      • Latest

type maxResults

integer

param maxResults

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Action execution history is retained for up to 12 months, based on action execution start times. Default value is 100.

Note

Detailed execution history is available for executions run on or after February 21, 2019.

type nextToken

string

param nextToken

The token that was returned from the previous ListActionExecutions call, which can be used to return the next set of action executions in the list.

rtype

dict

returns

Response Syntax

{
    'actionExecutionDetails': [
        {
            'pipelineExecutionId': 'string',
            'actionExecutionId': 'string',
            'pipelineVersion': 123,
            'stageName': 'string',
            'actionName': 'string',
            'startTime': datetime(2015, 1, 1),
            'lastUpdateTime': datetime(2015, 1, 1),
            'updatedBy': 'string',
            'status': 'InProgress'|'Abandoned'|'Succeeded'|'Failed',
            'input': {
                'actionTypeId': {
                    'category': 'Source'|'Build'|'Deploy'|'Test'|'Invoke'|'Approval',
                    'owner': 'AWS'|'ThirdParty'|'Custom',
                    'provider': 'string',
                    'version': 'string'
                },
                'configuration': {
                    'string': 'string'
                },
                'resolvedConfiguration': {
                    'string': 'string'
                },
                'roleArn': 'string',
                'region': 'string',
                'inputArtifacts': [
                    {
                        'name': 'string',
                        's3location': {
                            'bucket': 'string',
                            'key': 'string'
                        }
                    },
                ],
                'namespace': 'string'
            },
            'output': {
                'outputArtifacts': [
                    {
                        'name': 'string',
                        's3location': {
                            'bucket': 'string',
                            'key': 'string'
                        }
                    },
                ],
                'executionResult': {
                    'externalExecutionId': 'string',
                    'externalExecutionSummary': 'string',
                    'externalExecutionUrl': 'string',
                    'errorDetails': {
                        'code': 'string',
                        'message': 'string'
                    }
                },
                'outputVariables': {
                    'string': 'string'
                }
            }
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • actionExecutionDetails (list) --

      The details for a list of recent executions, such as action execution ID.

      • (dict) --

        Returns information about an execution of an action, including the action execution ID, and the name, version, and timing of the action.

        • pipelineExecutionId (string) --

          The pipeline execution ID for the action execution.

        • actionExecutionId (string) --

          The action execution ID.

        • pipelineVersion (integer) --

          The version of the pipeline where the action was run.

        • stageName (string) --

          The name of the stage that contains the action.

        • actionName (string) --

          The name of the action.

        • startTime (datetime) --

          The start time of the action execution.

        • lastUpdateTime (datetime) --

          The last update time of the action execution.

        • updatedBy (string) --

          The ARN of the user who changed the pipeline execution details.

        • status (string) --

          The status of the action execution. Status categories are InProgress , Succeeded , and Failed .

        • input (dict) --

          Input details for the action execution, such as role ARN, Region, and input artifacts.

          • 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 following values.

              • Source

              • Build

              • Test

              • Deploy

              • Invoke

              • Approval

            • owner (string) --

              The creator of the action being called. There are three valid values for the Owner field in the action category section within your pipeline structure: AWS , ThirdParty , and Custom . For more information, see Valid Action Types and Providers in CodePipeline .

            • 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 CodeDeploy, which would be specified as CodeDeploy . For more information, see Valid Action Types and Providers in CodePipeline .

            • version (string) --

              A string that describes the action version.

          • configuration (dict) --

            Configuration data for an action execution.

            • (string) --

              • (string) --

          • resolvedConfiguration (dict) --

            Configuration data for an action execution with all variable references replaced with their real values for the execution.

            • (string) --

              • (string) --

          • roleArn (string) --

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

          • region (string) --

            The Amazon Web Services Region for the action, such as us-east-1.

          • inputArtifacts (list) --

            Details of input artifacts of the action that correspond to the action execution.

            • (dict) --

              Artifact details for the action execution, such as the artifact location.

              • name (string) --

                The artifact object name for the action execution.

              • s3location (dict) --

                The Amazon S3 artifact location for the action execution.

                • bucket (string) --

                  The Amazon S3 artifact bucket for an action's artifacts.

                • key (string) --

                  The artifact name.

          • namespace (string) --

            The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.

        • output (dict) --

          Output details for the action execution, such as the action execution result.

          • outputArtifacts (list) --

            Details of output artifacts of the action that correspond to the action execution.

            • (dict) --

              Artifact details for the action execution, such as the artifact location.

              • name (string) --

                The artifact object name for the action execution.

              • s3location (dict) --

                The Amazon S3 artifact location for the action execution.

                • bucket (string) --

                  The Amazon S3 artifact bucket for an action's artifacts.

                • key (string) --

                  The artifact name.

          • executionResult (dict) --

            Execution result information listed in the output details for an action execution.

            • externalExecutionId (string) --

              The action provider's external ID for the action execution.

            • externalExecutionSummary (string) --

              The action provider's summary for the action execution.

            • externalExecutionUrl (string) --

              The deepest external link to the external resource (for example, a repository URL or deployment endpoint) that is used when running the action.

            • errorDetails (dict) --

              Represents information about an error in CodePipeline.

              • code (string) --

                The system ID or number code of the error.

              • message (string) --

                The text of the error message.

          • outputVariables (dict) --

            The outputVariables field shows the key-value pairs that were output as part of that execution.

            • (string) --

              • (string) --

    • nextToken (string) --

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

ListPipelineExecutions (updated) Link ¶
Changes (response)
{'pipelineExecutionSummaries': {'executionMode': 'QUEUED | SUPERSEDED | '
                                                 'PARALLEL'}}

Gets a summary of the most recent executions for a pipeline.

See also: AWS API Documentation

Request Syntax

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

string

param pipelineName

[REQUIRED]

The name of the pipeline for which you want to get execution summary information.

type maxResults

integer

param maxResults

The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned nextToken value. Pipeline history is limited to the most recent 12 months, based on pipeline execution start times. Default value is 100.

type nextToken

string

param nextToken

The token that was returned from the previous ListPipelineExecutions call, which can be used to return the next set of pipeline executions in the list.

rtype

dict

returns

Response Syntax

{
    'pipelineExecutionSummaries': [
        {
            'pipelineExecutionId': 'string',
            'status': 'Cancelled'|'InProgress'|'Stopped'|'Stopping'|'Succeeded'|'Superseded'|'Failed',
            'startTime': datetime(2015, 1, 1),
            'lastUpdateTime': datetime(2015, 1, 1),
            'sourceRevisions': [
                {
                    'actionName': 'string',
                    'revisionId': 'string',
                    'revisionSummary': 'string',
                    'revisionUrl': 'string'
                },
            ],
            'trigger': {
                'triggerType': 'CreatePipeline'|'StartPipelineExecution'|'PollForSourceChanges'|'Webhook'|'CloudWatchEvent'|'PutActionRevision'|'WebhookV2',
                'triggerDetail': 'string'
            },
            'stopTrigger': {
                'reason': 'string'
            },
            'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a ListPipelineExecutions action.

    • pipelineExecutionSummaries (list) --

      A list of executions in the history of a pipeline.

      • (dict) --

        Summary information about a pipeline execution.

        • pipelineExecutionId (string) --

          The ID of the pipeline execution.

        • status (string) --

          The status of the pipeline execution.

          • InProgress: The pipeline execution is currently running.

          • Stopped: The pipeline execution was manually stopped. For more information, see Stopped Executions .

          • Stopping: The pipeline execution received a request to be manually stopped. Depending on the selected stop mode, the execution is either completing or abandoning in-progress actions. For more information, see Stopped Executions .

          • Succeeded: The pipeline execution was completed successfully.

          • Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead. For more information, see Superseded Executions .

          • Failed: The pipeline execution was not completed successfully.

        • startTime (datetime) --

          The date and time when the pipeline execution began, in timestamp format.

        • lastUpdateTime (datetime) --

          The date and time of the last change to the pipeline execution, in timestamp format.

        • sourceRevisions (list) --

          A list of the source artifact revisions that initiated a pipeline execution.

          • (dict) --

            Information about the version (or revision) of a source artifact that initiated a pipeline execution.

            • actionName (string) --

              The name of the action that processed the revision to the source artifact.

            • revisionId (string) --

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

            • revisionSummary (string) --

              Summary information about the most recent revision of the artifact. For GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or actions, the user-provided content of a codepipeline-artifact-revision-summary key specified in the object metadata.

            • revisionUrl (string) --

              The commit ID for the artifact revision. For artifacts stored in GitHub or CodeCommit repositories, the commit ID is linked to a commit details page.

        • trigger (dict) --

          The interaction or event that started a pipeline execution, such as automated change detection or a StartPipelineExecution API call.

          • triggerType (string) --

            The type of change-detection method, command, or user interaction that started a pipeline execution.

          • triggerDetail (string) --

            Detail related to the event that started a pipeline execution, such as the webhook ARN of the webhook that triggered the pipeline execution or the user ARN for a user-initiated start-pipeline-execution CLI command.

        • stopTrigger (dict) --

          The interaction that stopped a pipeline execution.

          • reason (string) --

            The user-specified reason the pipeline was stopped.

        • executionMode (string) --

          The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

    • nextToken (string) --

      A token that can be used in the next ListPipelineExecutions call. To view all items in the list, continue to call this operation with each subsequent token until no more nextToken values are returned.

ListPipelines (updated) Link ¶
Changes (response)
{'pipelines': {'executionMode': 'QUEUED | SUPERSEDED | PARALLEL'}}

Gets a summary of all of the pipelines associated with your account.

See also: AWS API Documentation

Request Syntax

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

string

param nextToken

An identifier that was returned from the previous list pipelines call. It can be used to return the next set of pipelines in the list.

type maxResults

integer

param maxResults

The maximum number of pipelines to return in a single call. To retrieve the remaining pipelines, make another call with the returned nextToken value. The minimum value you can specify is 1. The maximum accepted value is 1000.

rtype

dict

returns

Response Syntax

{
    'pipelines': [
        {
            'name': 'string',
            'version': 123,
            'pipelineType': 'V1'|'V2',
            'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL',
            'created': datetime(2015, 1, 1),
            'updated': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a ListPipelines action.

    • pipelines (list) --

      The list of pipelines.

      • (dict) --

        Returns a summary of a pipeline.

        • name (string) --

          The name of the pipeline.

        • version (integer) --

          The version number of the pipeline.

        • pipelineType (string) --

          CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.

          • V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.

          • V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.

          Warning

          Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.

          For information about pricing for CodePipeline, see Pricing .

          For information about which type of pipeline to choose, see What type of pipeline is right for me? .

        • executionMode (string) --

          The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

        • created (datetime) --

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

        • updated (datetime) --

          The date and time of the last update to the pipeline, in timestamp format.

    • nextToken (string) --

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

UpdatePipeline (updated) Link ¶
Changes (both)
{'pipeline': {'executionMode': 'QUEUED | SUPERSEDED | PARALLEL',
              'triggers': {'gitConfiguration': {'pullRequest': [{'branches': {'excludes': ['string'],
                                                                              'includes': ['string']},
                                                                 'events': ['OPEN '
                                                                            '| '
                                                                            'UPDATED '
                                                                            '| '
                                                                            'CLOSED'],
                                                                 'filePaths': {'excludes': ['string'],
                                                                               'includes': ['string']}}],
                                                'push': {'branches': {'excludes': ['string'],
                                                                      'includes': ['string']},
                                                         'filePaths': {'excludes': ['string'],
                                                                       'includes': ['string']}}}}}}

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

See also: AWS API Documentation

Request Syntax

client.update_pipeline(
    pipeline={
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'artifactStores': {
            'string': {
                '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',
                        'region': 'string',
                        'namespace': 'string'
                    },
                ]
            },
        ],
        'version': 123,
        'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL',
        'pipelineType': 'V1'|'V2',
        'variables': [
            {
                'name': 'string',
                'defaultValue': 'string',
                'description': 'string'
            },
        ],
        'triggers': [
            {
                'providerType': 'CodeStarSourceConnection',
                'gitConfiguration': {
                    'sourceActionName': 'string',
                    'push': [
                        {
                            'tags': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ],
                    'pullRequest': [
                        {
                            'events': [
                                'OPEN'|'UPDATED'|'CLOSED',
                            ],
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    }
)
type pipeline

dict

param pipeline

[REQUIRED]

The name of the pipeline to be updated.

  • name (string) -- [REQUIRED]

    The name of the pipeline.

  • roleArn (string) -- [REQUIRED]

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

  • artifactStore (dict) --

    Represents information about the S3 bucket where artifacts are stored for the pipeline.

    Note

    You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

    • type (string) -- [REQUIRED]

      The type of the artifact store, such as S3.

    • location (string) -- [REQUIRED]

      The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

    • encryptionKey (dict) --

      The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service 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 Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

        Note

        Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

      • type (string) -- [REQUIRED]

        The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.

  • artifactStores (dict) --

    A mapping of artifactStore objects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.

    Note

    You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

    • (string) --

      • (dict) --

        The S3 bucket where artifacts for the pipeline are stored.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • type (string) -- [REQUIRED]

          The type of the artifact store, such as S3.

        • location (string) -- [REQUIRED]

          The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

        • encryptionKey (dict) --

          The encryption key used to encrypt the data in the artifact store, such as an Amazon Web Services Key Management Service 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 Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

            Note

            Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

          • type (string) -- [REQUIRED]

            The type of encryption key, such as an Amazon Web Services 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]

            Specifies the action type and the provider of the action.

            • 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 following values.

              • Source

              • Build

              • Test

              • Deploy

              • Invoke

              • Approval

            • owner (string) -- [REQUIRED]

              The creator of the action being called. There are three valid values for the Owner field in the action category section within your pipeline structure: AWS , ThirdParty , and Custom . For more information, see Valid Action Types and Providers in CodePipeline .

            • 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 CodeDeploy, which would be specified as CodeDeploy . For more information, see Valid Action Types and Providers in CodePipeline .

            • version (string) -- [REQUIRED]

              A string that describes the action version.

          • runOrder (integer) --

            The order in which actions are run.

          • configuration (dict) --

            The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide .

            The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:

            JSON:

            "Configuration" : { Key : Value },

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

                Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip

                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 performs the declared action. This is assumed through the roleArn for the pipeline.

          • region (string) --

            The action declaration's Amazon Web Services Region, such as us-east-1.

          • namespace (string) --

            The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.

  • version (integer) --

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

  • executionMode (string) --

    The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

  • pipelineType (string) --

    CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.

    • V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.

    • V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.

    Warning

    Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.

    For information about pricing for CodePipeline, see Pricing .

    For information about which type of pipeline to choose, see What type of pipeline is right for me? .

  • variables (list) --

    A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+ .

    • (dict) --

      A variable declared at the pipeline level.

      • name (string) -- [REQUIRED]

        The name of a pipeline-level variable.

      • defaultValue (string) --

        The value of a pipeline-level variable.

      • description (string) --

        The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.

  • triggers (list) --

    The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.

    Note

    When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

    • (dict) --

      Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.

      Note

      This is only supported for the CodeStarSourceConnection action type.

      Note

      When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

      • providerType (string) -- [REQUIRED]

        The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

      • gitConfiguration (dict) -- [REQUIRED]

        Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

        • sourceActionName (string) -- [REQUIRED]

          The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.

          Note

          You can only specify one trigger configuration per source action.

        • push (list) --

          The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.

          • (dict) --

            The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

            • tags (dict) --

              The field that contains the details for the Git tags trigger configuration.

              • includes (list) --

                The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.

                • (string) --

            • branches (dict) --

              The field that specifies to filter on branches for the push trigger configuration.

              • includes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

            • filePaths (dict) --

              The field that specifies to filter on file paths for the push trigger configuration.

              • includes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

        • pullRequest (list) --

          The field where the repository event that will start the pipeline is specified as pull requests.

          • (dict) --

            The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.

            • events (list) --

              The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.

              • (string) --

            • branches (dict) --

              The field that specifies to filter on branches for the pull request trigger configuration.

              • includes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

            • filePaths (dict) --

              The field that specifies to filter on file paths for the pull request trigger configuration.

              • includes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                • (string) --

              • excludes (list) --

                The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                • (string) --

rtype

dict

returns

Response Syntax

{
    'pipeline': {
        'name': 'string',
        'roleArn': 'string',
        'artifactStore': {
            'type': 'S3',
            'location': 'string',
            'encryptionKey': {
                'id': 'string',
                'type': 'KMS'
            }
        },
        'artifactStores': {
            'string': {
                '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',
                        'region': 'string',
                        'namespace': 'string'
                    },
                ]
            },
        ],
        'version': 123,
        'executionMode': 'QUEUED'|'SUPERSEDED'|'PARALLEL',
        'pipelineType': 'V1'|'V2',
        'variables': [
            {
                'name': 'string',
                'defaultValue': 'string',
                'description': 'string'
            },
        ],
        'triggers': [
            {
                'providerType': 'CodeStarSourceConnection',
                'gitConfiguration': {
                    'sourceActionName': 'string',
                    'push': [
                        {
                            'tags': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ],
                    'pullRequest': [
                        {
                            'events': [
                                'OPEN'|'UPDATED'|'CLOSED',
                            ],
                            'branches': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            },
                            'filePaths': {
                                'includes': [
                                    'string',
                                ],
                                'excludes': [
                                    'string',
                                ]
                            }
                        },
                    ]
                }
            },
        ]
    }
}

Response Structure

  • (dict) --

    Represents the output of an UpdatePipeline action.

    • pipeline (dict) --

      The structure of the updated pipeline.

      • name (string) --

        The name of the pipeline.

      • roleArn (string) --

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

      • artifactStore (dict) --

        Represents information about the S3 bucket where artifacts are stored for the pipeline.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • type (string) --

          The type of the artifact store, such as S3.

        • location (string) --

          The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

        • encryptionKey (dict) --

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

          • id (string) --

            The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

            Note

            Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

          • type (string) --

            The type of encryption key, such as an Amazon Web Services KMS key. When creating or updating a pipeline, the value must be set to 'KMS'.

      • artifactStores (dict) --

        A mapping of artifactStore objects and their corresponding Amazon Web Services Regions. There must be an artifact store for the pipeline Region and for each cross-region action in the pipeline.

        Note

        You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

        • (string) --

          • (dict) --

            The S3 bucket where artifacts for the pipeline are stored.

            Note

            You must include either artifactStore or artifactStores in your pipeline, but you cannot use both. If you create a cross-region action in your pipeline, you must use artifactStores .

            • type (string) --

              The type of the artifact store, such as S3.

            • location (string) --

              The S3 bucket used for storing the artifacts for a pipeline. You can specify the name of an S3 bucket but not a folder in the bucket. A folder to contain the pipeline artifacts is created for you based on the name of the pipeline. You can use any S3 bucket in the same Amazon Web Services Region as the pipeline to store your pipeline artifacts.

            • encryptionKey (dict) --

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

              • id (string) --

                The ID used to identify the key. For an Amazon Web Services KMS key, you can use the key ID, the key ARN, or the alias ARN.

                Note

                Aliases are recognized only in the account that created the KMS key. For cross-account actions, you can only use the key ID or key ARN to identify the key. Cross-account actions involve using the role from the other account (AccountB), so specifying the key ID will use the key from the other account (AccountB).

              • type (string) --

                The type of encryption key, such as an Amazon Web Services 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) --

                Specifies the action type and the provider of the action.

                • 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 following values.

                  • Source

                  • Build

                  • Test

                  • Deploy

                  • Invoke

                  • Approval

                • owner (string) --

                  The creator of the action being called. There are three valid values for the Owner field in the action category section within your pipeline structure: AWS , ThirdParty , and Custom . For more information, see Valid Action Types and Providers in CodePipeline .

                • 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 CodeDeploy, which would be specified as CodeDeploy . For more information, see Valid Action Types and Providers in CodePipeline .

                • version (string) --

                  A string that describes the action version.

              • runOrder (integer) --

                The order in which actions are run.

              • configuration (dict) --

                The action's configuration. These are key-value pairs that specify input values for an action. For more information, see Action Structure Requirements in CodePipeline . For the list of configuration properties for the CloudFormation action type in CodePipeline, see Configuration Properties Reference in the CloudFormation User Guide . For template snippets with examples, see Using Parameter Override Functions with CodePipeline Pipelines in the CloudFormation User Guide .

                The values can be represented in either JSON or YAML format. For example, the JSON configuration item format is as follows:

                JSON:

                "Configuration" : { Key : Value },

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

                    Artifacts are the files that are worked on by actions in the pipeline. See the action configuration for each action for details about artifact parameters. For example, the S3 source action input artifact is a file name (or file path), and the files are generally provided as a ZIP file. Example artifact name: SampleApp_Windows.zip

                    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 performs the declared action. This is assumed through the roleArn for the pipeline.

              • region (string) --

                The action declaration's Amazon Web Services Region, such as us-east-1.

              • namespace (string) --

                The variable namespace associated with the action. All variables produced as output by this action fall under this namespace.

      • version (integer) --

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

      • executionMode (string) --

        The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.

      • pipelineType (string) --

        CodePipeline provides the following pipeline types, which differ in characteristics and price, so that you can tailor your pipeline features and cost to the needs of your applications.

        • V1 type pipelines have a JSON structure that contains standard pipeline, stage, and action-level parameters.

        • V2 type pipelines have the same structure as a V1 type, along with additional parameters for release safety and trigger configuration.

        Warning

        Including V2 parameters, such as triggers on Git tags, in the pipeline JSON when creating or updating a pipeline will result in the pipeline having the V2 type of pipeline and the associated costs.

        For information about pricing for CodePipeline, see Pricing .

        For information about which type of pipeline to choose, see What type of pipeline is right for me? .

      • variables (list) --

        A list that defines the pipeline variables for a pipeline resource. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9@\-_]+ .

        • (dict) --

          A variable declared at the pipeline level.

          • name (string) --

            The name of a pipeline-level variable.

          • defaultValue (string) --

            The value of a pipeline-level variable.

          • description (string) --

            The description of a pipeline-level variable. It's used to add additional context about the variable, and not being used at time when pipeline executes.

      • triggers (list) --

        The trigger configuration specifying a type of event, such as Git tags, that starts the pipeline.

        Note

        When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

        • (dict) --

          Represents information about the specified trigger configuration, such as the filter criteria and the source stage for the action that contains the trigger.

          Note

          This is only supported for the CodeStarSourceConnection action type.

          Note

          When a trigger configuration is specified, default change detection for repository and branch commits is disabled.

          • providerType (string) --

            The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

          • gitConfiguration (dict) --

            Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

            • sourceActionName (string) --

              The name of the pipeline source action where the trigger configuration, such as Git tags, is specified. The trigger configuration will start the pipeline upon the specified change only.

              Note

              You can only specify one trigger configuration per source action.

            • push (list) --

              The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.

              • (dict) --

                The event criteria that specify when a specified repository event will start the pipeline for the specified trigger configuration, such as the lists of Git tags to include and exclude.

                • tags (dict) --

                  The field that contains the details for the Git tags trigger configuration.

                  • includes (list) --

                    The list of patterns of Git tags that, when pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git tags that, when pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • branches (dict) --

                  The field that specifies to filter on branches for the push trigger configuration.

                  • includes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • filePaths (dict) --

                  The field that specifies to filter on file paths for the push trigger configuration.

                  • includes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

            • pullRequest (list) --

              The field where the repository event that will start the pipeline is specified as pull requests.

              • (dict) --

                The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.

                • events (list) --

                  The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.

                  • (string) --

                • branches (dict) --

                  The field that specifies to filter on branches for the pull request trigger configuration.

                  • includes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git branches that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --

                • filePaths (dict) --

                  The field that specifies to filter on file paths for the pull request trigger configuration.

                  • includes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be included as criteria that starts the pipeline.

                    • (string) --

                  • excludes (list) --

                    The list of patterns of Git repository file paths that, when a commit is pushed, are to be excluded from starting the pipeline.

                    • (string) --