AWS CodeDeploy

2015/04/02 - AWS CodeDeploy - 7 new 5 updated api methods

BatchGetOnPremisesInstances (new) Link ¶

Gets information about one or more on-premises instances.

Request Syntax

client.batch_get_on_premises_instances(
    instanceNames=[
        'string',
    ]
)
type instanceNames

list

param instanceNames

The names of the on-premises instances to get information about.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'instanceInfos': [
        {
            'instanceName': 'string',
            'iamUserArn': 'string',
            'instanceArn': 'string',
            'registerTime': datetime(2015, 1, 1),
            'deregisterTime': datetime(2015, 1, 1),
            'tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    Represents the output of a batch get on-premises instances operation.

    • instanceInfos (list) --

      Information about the on-premises instances.

      • (dict) --

        Information about an on-premises instance.

        • instanceName (string) --

          The name of the on-premises instance.

        • iamUserArn (string) --

          The IAM user ARN associated with the on-premises instance.

        • instanceArn (string) --

          The ARN of the on-premises instance.

        • registerTime (datetime) --

          The time that the on-premises instance was registered.

        • deregisterTime (datetime) --

          If the on-premises instance was deregistered, the time that the on-premises instance was deregistered.

        • tags (list) --

          The tags that are currently associated with the on-premises instance.

          • (dict) --

            Information about a tag.

            • Key (string) --

              The tag's key.

            • Value (string) --

              The tag's value.

ListOnPremisesInstances (new) Link ¶

Gets a list of one or more on-premises instance names.

Unless otherwise specified, both registered and deregistered on-premises instance names will be listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.

Request Syntax

client.list_on_premises_instances(
    registrationStatus='Registered'|'Deregistered',
    tagFilters=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
        },
    ],
    nextToken='string'
)
type registrationStatus

string

param registrationStatus

The on-premises instances registration status:

  • Deregistered: Include in the resulting list deregistered on-premises instances.

  • Registered: Include in the resulting list registered on-premises instances.

type tagFilters

list

param tagFilters

The on-premises instance tags that will be used to restrict the corresponding on-premises instance names that are returned.

  • (dict) --

    Information about an on-premises instance tag filter.

    • Key (string) --

      The on-premises instance tag filter key.

    • Value (string) --

      The on-premises instance tag filter value.

    • Type (string) --

      The on-premises instance tag filter type:

      • KEY_ONLY: Key only.

      • VALUE_ONLY: Value only.

      • KEY_AND_VALUE: Key and value.

type nextToken

string

param nextToken

An identifier that was returned from the previous list on-premises instances call, which can be used to return the next set of on-premises instances in the list.

rtype

dict

returns

Response Syntax

{
    'instanceNames': [
        'string',
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    Represents the output of list on-premises instances operation.

    • instanceNames (list) --

      The list of matching on-premises instance names.

      • (string) --

    • nextToken (string) --

      If the amount of information that is returned is significantly large, an identifier will also be returned, which can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list.

RegisterOnPremisesInstance (new) Link ¶

Registers an on-premises instance.

Request Syntax

client.register_on_premises_instance(
    instanceName='string',
    iamUserArn='string'
)
type instanceName

string

param instanceName

[REQUIRED]

The name of the on-premises instance to register.

type iamUserArn

string

param iamUserArn

[REQUIRED]

The ARN of the IAM user to associate with the on-premises instance.

returns

None

AddTagsToOnPremisesInstances (new) Link ¶

Adds tags to on-premises instances.

Request Syntax

client.add_tags_to_on_premises_instances(
    tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    instanceNames=[
        'string',
    ]
)
type tags

list

param tags

[REQUIRED]

The tag key-value pairs to add to the on-premises instances.

Keys and values are both required. Keys cannot be nulls or empty strings. Value-only tags are not allowed.

  • (dict) --

    Information about a tag.

    • Key (string) --

      The tag's key.

    • Value (string) --

      The tag's value.

type instanceNames

list

param instanceNames

[REQUIRED]

The names of the on-premises instances to add tags to.

  • (string) --

returns

None

GetOnPremisesInstance (new) Link ¶

Gets information about an on-premises instance.

Request Syntax

client.get_on_premises_instance(
    instanceName='string'
)
type instanceName

string

param instanceName

[REQUIRED]

The name of the on-premises instance to get information about

rtype

dict

returns

Response Syntax

{
    'instanceInfo': {
        'instanceName': 'string',
        'iamUserArn': 'string',
        'instanceArn': 'string',
        'registerTime': datetime(2015, 1, 1),
        'deregisterTime': datetime(2015, 1, 1),
        'tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    Represents the output of a get on-premises instance operation.

    • instanceInfo (dict) --

      Information about the on-premises instance.

      • instanceName (string) --

        The name of the on-premises instance.

      • iamUserArn (string) --

        The IAM user ARN associated with the on-premises instance.

      • instanceArn (string) --

        The ARN of the on-premises instance.

      • registerTime (datetime) --

        The time that the on-premises instance was registered.

      • deregisterTime (datetime) --

        If the on-premises instance was deregistered, the time that the on-premises instance was deregistered.

      • tags (list) --

        The tags that are currently associated with the on-premises instance.

        • (dict) --

          Information about a tag.

          • Key (string) --

            The tag's key.

          • Value (string) --

            The tag's value.

DeregisterOnPremisesInstance (new) Link ¶

Deregisters an on-premises instance.

Request Syntax

client.deregister_on_premises_instance(
    instanceName='string'
)
type instanceName

string

param instanceName

[REQUIRED]

The name of the on-premises instance to deregister.

returns

None

RemoveTagsFromOnPremisesInstances (new) Link ¶

Removes one or more tags from one or more on-premises instances.

Request Syntax

client.remove_tags_from_on_premises_instances(
    tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    instanceNames=[
        'string',
    ]
)
type tags

list

param tags

[REQUIRED]

The tag key-value pairs to remove from the on-premises instances.

  • (dict) --

    Information about a tag.

    • Key (string) --

      The tag's key.

    • Value (string) --

      The tag's value.

type instanceNames

list

param instanceNames

[REQUIRED]

The names of the on-premises instances to remove tags from.

  • (string) --

returns

None

BatchGetDeployments (updated) Link ¶
Changes (response)
{'deploymentsInfo': {'errorInformation': {'code': {'NO_EC2_SUBSCRIPTION',
                                                   'THROTTLED'}}}}

Gets information about one or more deployments.

Request Syntax

client.batch_get_deployments(
    deploymentIds=[
        'string',
    ]
)
type deploymentIds

list

param deploymentIds

A list of deployment IDs, with multiple deployment IDs separated by spaces.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'deploymentsInfo': [
        {
            'applicationName': 'string',
            'deploymentGroupName': 'string',
            'deploymentConfigName': 'string',
            'deploymentId': 'string',
            'revision': {
                'revisionType': 'S3'|'GitHub',
                's3Location': {
                    'bucket': 'string',
                    'key': 'string',
                    'bundleType': 'tar'|'tgz'|'zip',
                    'version': 'string',
                    'eTag': 'string'
                },
                'gitHubLocation': {
                    'repository': 'string',
                    'commitId': 'string'
                }
            },
            'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped',
            'errorInformation': {
                'code': 'DEPLOYMENT_GROUP_MISSING'|'APPLICATION_MISSING'|'REVISION_MISSING'|'IAM_ROLE_MISSING'|'IAM_ROLE_PERMISSIONS'|'NO_EC2_SUBSCRIPTION'|'OVER_MAX_INSTANCES'|'NO_INSTANCES'|'TIMEOUT'|'HEALTH_CONSTRAINTS_INVALID'|'HEALTH_CONSTRAINTS'|'INTERNAL_ERROR'|'THROTTLED',
                'message': 'string'
            },
            'createTime': datetime(2015, 1, 1),
            'startTime': datetime(2015, 1, 1),
            'completeTime': datetime(2015, 1, 1),
            'deploymentOverview': {
                'Pending': 123,
                'InProgress': 123,
                'Succeeded': 123,
                'Failed': 123,
                'Skipped': 123
            },
            'description': 'string',
            'creator': 'user'|'autoscaling',
            'ignoreApplicationStopFailures': True|False
        },
    ]
}

Response Structure

  • (dict) --

    Represents the output of a batch get deployments operation.

    • deploymentsInfo (list) --

      Information about the deployments.

      • (dict) --

        Information about a deployment.

        • applicationName (string) --

          The application name.

        • deploymentGroupName (string) --

          The deployment group name.

        • deploymentConfigName (string) --

          The deployment configuration name.

        • deploymentId (string) --

          The deployment ID.

        • revision (dict) --

          Information about the location of application artifacts that are stored and the service to retrieve them from.

          • revisionType (string) --

            The application revision's type:

            • S3: An application revision stored in Amazon S3.

            • GitHub: An application revision stored in GitHub.

          • s3Location (dict) --

            Information about the location of application artifacts that are stored in Amazon S3.

            • bucket (string) --

              The name of the Amazon S3 bucket where the application revision is stored.

            • key (string) --

              The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

            • bundleType (string) --

              The file type of the application revision. Must be one of the following:

              • tar: A tar archive file.

              • tgz: A compressed tar archive file.

              • zip: A zip archive file.

            • version (string) --

              A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

              If the version is not specified, the system will use the most recent version by default.

            • eTag (string) --

              The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

              If the ETag is not specified as an input parameter, ETag validation of the object will be skipped.

          • gitHubLocation (dict) --

            Information about the location of application artifacts that are stored in GitHub.

            • repository (string) --

              The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.

              Specified as account/repository.

            • commitId (string) --

              The SHA1 commit ID of the GitHub commit that references the that represents the bundled artifacts for the application revision.

        • status (string) --

          The current state of the deployment as a whole.

        • errorInformation (dict) --

          Information about any error associated with this deployment.

          • code (string) --

            The error code:

            • APPLICATION_MISSING: The application was missing. Note that this error code will most likely be raised if the application is deleted after the deployment is created but before it starts.

            • DEPLOYMENT_GROUP_MISSING: The deployment group was missing. Note that this error code will most likely be raised if the deployment group is deleted after the deployment is created but before it starts.

            • HEALTH_CONSTRAINTS: The deployment failed on too many instances to be able to successfully deploy within the specified instance health constraints.

            • HEALTH_CONSTRAINTS_INVALID: The revision can never successfully deploy within the instance health constraints as specified.

            • IAM_ROLE_MISSING: The service role cannot be accessed.

            • IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.

            • INTERNAL_ERROR: There was an internal error.

            • NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon EC2 service.

            • NO_INSTANCES: No instances were specified, or no instances can be found.

            • OVER_MAX_INSTANCES: The maximum number of instances was exceeded.

            • THROTTLED: The operation was throttled because the calling account exceeded the throttling limits of one or more AWS services.

            • TIMEOUT: The deployment has timed out.

            • REVISION_MISSING: The revision ID was missing. Note that this error code will most likely be raised if the revision is deleted after the deployment is created but before it starts.

          • message (string) --

            An accompanying error message.

        • createTime (datetime) --

          A timestamp indicating when the deployment was created.

        • startTime (datetime) --

          A timestamp indicating when the deployment began deploying to the deployment group.

          Note that in some cases, the reported value of the start time may be later than the complete time. This is due to differences in the clock settings of various back-end servers that participate in the overall deployment process.

        • completeTime (datetime) --

          A timestamp indicating when the deployment was completed.

        • deploymentOverview (dict) --

          A summary of the deployment status of the instances in the deployment.

          • Pending (integer) --

            The number of instances that are pending in the deployment.

          • InProgress (integer) --

            The number of instances that are in progress in the deployment.

          • Succeeded (integer) --

            The number of instances that have succeeded in the deployment.

          • Failed (integer) --

            The number of instances that have failed in the deployment.

          • Skipped (integer) --

            The number of instances that have been skipped in the deployment.

        • description (string) --

          A comment about the deployment.

        • creator (string) --

          How the deployment was created:

          • user: A user created the deployment.

          • autoscaling: Auto Scaling created the deployment.

        • ignoreApplicationStopFailures (boolean) --

          If true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

          If false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

CreateDeploymentGroup (updated) Link ¶
Changes (request)
{'onPremisesInstanceTagFilters': [{'Key': 'string',
                                   'Type': 'KEY_ONLY | VALUE_ONLY | '
                                           'KEY_AND_VALUE',
                                   'Value': 'string'}]}

Creates a new deployment group for application revisions to be deployed to.

Request Syntax

client.create_deployment_group(
    applicationName='string',
    deploymentGroupName='string',
    deploymentConfigName='string',
    ec2TagFilters=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
        },
    ],
    onPremisesInstanceTagFilters=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
        },
    ],
    autoScalingGroups=[
        'string',
    ],
    serviceRoleArn='string'
)
type applicationName

string

param applicationName

[REQUIRED]

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

type deploymentGroupName

string

param deploymentGroupName

[REQUIRED]

The name of an existing deployment group for the specified application.

type deploymentConfigName

string

param deploymentConfigName

If specified, the deployment configuration name must be one of the predefined values, or it can be a custom deployment configuration:

  • CodeDeployDefault.AllAtOnce deploys an application revision to up to all of the instances at once. The overall deployment succeeds if the application revision deploys to at least one of the instances. The overall deployment fails after the application revision fails to deploy to all of the instances. For example, for 9 instances, deploy to up to all 9 instances at once. The overall deployment succeeds if any of the 9 instances is successfully deployed to, and it fails if all 9 instances fail to be deployed to.

  • CodeDeployDefault.HalfAtATime deploys to up to half of the instances at a time (with fractions rounded down). The overall deployment succeeds if the application revision deploys to at least half of the instances (with fractions rounded up); otherwise, the deployment fails. For example, for 9 instances, deploy to up to 4 instances at a time. The overall deployment succeeds if 5 or more instances are successfully deployed to; otherwise, the deployment fails. Note that the deployment may successfully deploy to some instances, even if the overall deployment fails.

  • CodeDeployDefault.OneAtATime deploys the application revision to only one of the instances at a time. The overall deployment succeeds if the application revision deploys to all of the instances. The overall deployment fails after the application revision first fails to deploy to any one instances. For example, for 9 instances, deploy to one instance at a time. The overall deployment succeeds if all 9 instances are successfully deployed to, and it fails if any of one of the 9 instances fail to be deployed to. Note that the deployment may successfully deploy to some instances, even if the overall deployment fails. This is the default deployment configuration if a configuration isn't specified for either the deployment or the deployment group.

To create a custom deployment configuration, call the create deployment configuration operation.

type ec2TagFilters

list

param ec2TagFilters

The Amazon EC2 tags to filter on.

  • (dict) --

    Information about a tag filter.

    • Key (string) --

      The tag filter key.

    • Value (string) --

      The tag filter value.

    • Type (string) --

      The tag filter type:

      • KEY_ONLY: Key only.

      • VALUE_ONLY: Value only.

      • KEY_AND_VALUE: Key and value.

type onPremisesInstanceTagFilters

list

param onPremisesInstanceTagFilters

The on-premises instance tags to filter on.

  • (dict) --

    Information about an on-premises instance tag filter.

    • Key (string) --

      The on-premises instance tag filter key.

    • Value (string) --

      The on-premises instance tag filter value.

    • Type (string) --

      The on-premises instance tag filter type:

      • KEY_ONLY: Key only.

      • VALUE_ONLY: Value only.

      • KEY_AND_VALUE: Key and value.

type autoScalingGroups

list

param autoScalingGroups

A list of associated Auto Scaling groups.

  • (string) --

type serviceRoleArn

string

param serviceRoleArn

[REQUIRED]

A service role ARN that allows AWS CodeDeploy to act on the user's behalf when interacting with AWS services.

rtype

dict

returns

Response Syntax

{
    'deploymentGroupId': 'string'
}

Response Structure

  • (dict) --

    Represents the output of a create deployment group operation.

    • deploymentGroupId (string) --

      A unique deployment group ID.

GetDeployment (updated) Link ¶
Changes (response)
{'deploymentInfo': {'errorInformation': {'code': {'NO_EC2_SUBSCRIPTION',
                                                  'THROTTLED'}}}}

Gets information about a deployment.

Request Syntax

client.get_deployment(
    deploymentId='string'
)
type deploymentId

string

param deploymentId

[REQUIRED]

An existing deployment ID associated with the applicable IAM user or AWS account.

rtype

dict

returns

Response Syntax

{
    'deploymentInfo': {
        'applicationName': 'string',
        'deploymentGroupName': 'string',
        'deploymentConfigName': 'string',
        'deploymentId': 'string',
        'revision': {
            'revisionType': 'S3'|'GitHub',
            's3Location': {
                'bucket': 'string',
                'key': 'string',
                'bundleType': 'tar'|'tgz'|'zip',
                'version': 'string',
                'eTag': 'string'
            },
            'gitHubLocation': {
                'repository': 'string',
                'commitId': 'string'
            }
        },
        'status': 'Created'|'Queued'|'InProgress'|'Succeeded'|'Failed'|'Stopped',
        'errorInformation': {
            'code': 'DEPLOYMENT_GROUP_MISSING'|'APPLICATION_MISSING'|'REVISION_MISSING'|'IAM_ROLE_MISSING'|'IAM_ROLE_PERMISSIONS'|'NO_EC2_SUBSCRIPTION'|'OVER_MAX_INSTANCES'|'NO_INSTANCES'|'TIMEOUT'|'HEALTH_CONSTRAINTS_INVALID'|'HEALTH_CONSTRAINTS'|'INTERNAL_ERROR'|'THROTTLED',
            'message': 'string'
        },
        'createTime': datetime(2015, 1, 1),
        'startTime': datetime(2015, 1, 1),
        'completeTime': datetime(2015, 1, 1),
        'deploymentOverview': {
            'Pending': 123,
            'InProgress': 123,
            'Succeeded': 123,
            'Failed': 123,
            'Skipped': 123
        },
        'description': 'string',
        'creator': 'user'|'autoscaling',
        'ignoreApplicationStopFailures': True|False
    }
}

Response Structure

  • (dict) --

    Represents the output of a get deployment operation.

    • deploymentInfo (dict) --

      Information about the deployment.

      • applicationName (string) --

        The application name.

      • deploymentGroupName (string) --

        The deployment group name.

      • deploymentConfigName (string) --

        The deployment configuration name.

      • deploymentId (string) --

        The deployment ID.

      • revision (dict) --

        Information about the location of application artifacts that are stored and the service to retrieve them from.

        • revisionType (string) --

          The application revision's type:

          • S3: An application revision stored in Amazon S3.

          • GitHub: An application revision stored in GitHub.

        • s3Location (dict) --

          Information about the location of application artifacts that are stored in Amazon S3.

          • bucket (string) --

            The name of the Amazon S3 bucket where the application revision is stored.

          • key (string) --

            The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

          • bundleType (string) --

            The file type of the application revision. Must be one of the following:

            • tar: A tar archive file.

            • tgz: A compressed tar archive file.

            • zip: A zip archive file.

          • version (string) --

            A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

            If the version is not specified, the system will use the most recent version by default.

          • eTag (string) --

            The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

            If the ETag is not specified as an input parameter, ETag validation of the object will be skipped.

        • gitHubLocation (dict) --

          Information about the location of application artifacts that are stored in GitHub.

          • repository (string) --

            The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.

            Specified as account/repository.

          • commitId (string) --

            The SHA1 commit ID of the GitHub commit that references the that represents the bundled artifacts for the application revision.

      • status (string) --

        The current state of the deployment as a whole.

      • errorInformation (dict) --

        Information about any error associated with this deployment.

        • code (string) --

          The error code:

          • APPLICATION_MISSING: The application was missing. Note that this error code will most likely be raised if the application is deleted after the deployment is created but before it starts.

          • DEPLOYMENT_GROUP_MISSING: The deployment group was missing. Note that this error code will most likely be raised if the deployment group is deleted after the deployment is created but before it starts.

          • HEALTH_CONSTRAINTS: The deployment failed on too many instances to be able to successfully deploy within the specified instance health constraints.

          • HEALTH_CONSTRAINTS_INVALID: The revision can never successfully deploy within the instance health constraints as specified.

          • IAM_ROLE_MISSING: The service role cannot be accessed.

          • IAM_ROLE_PERMISSIONS: The service role does not have the correct permissions.

          • INTERNAL_ERROR: There was an internal error.

          • NO_EC2_SUBSCRIPTION: The calling account is not subscribed to the Amazon EC2 service.

          • NO_INSTANCES: No instances were specified, or no instances can be found.

          • OVER_MAX_INSTANCES: The maximum number of instances was exceeded.

          • THROTTLED: The operation was throttled because the calling account exceeded the throttling limits of one or more AWS services.

          • TIMEOUT: The deployment has timed out.

          • REVISION_MISSING: The revision ID was missing. Note that this error code will most likely be raised if the revision is deleted after the deployment is created but before it starts.

        • message (string) --

          An accompanying error message.

      • createTime (datetime) --

        A timestamp indicating when the deployment was created.

      • startTime (datetime) --

        A timestamp indicating when the deployment began deploying to the deployment group.

        Note that in some cases, the reported value of the start time may be later than the complete time. This is due to differences in the clock settings of various back-end servers that participate in the overall deployment process.

      • completeTime (datetime) --

        A timestamp indicating when the deployment was completed.

      • deploymentOverview (dict) --

        A summary of the deployment status of the instances in the deployment.

        • Pending (integer) --

          The number of instances that are pending in the deployment.

        • InProgress (integer) --

          The number of instances that are in progress in the deployment.

        • Succeeded (integer) --

          The number of instances that have succeeded in the deployment.

        • Failed (integer) --

          The number of instances that have failed in the deployment.

        • Skipped (integer) --

          The number of instances that have been skipped in the deployment.

      • description (string) --

        A comment about the deployment.

      • creator (string) --

        How the deployment was created:

        • user: A user created the deployment.

        • autoscaling: Auto Scaling created the deployment.

      • ignoreApplicationStopFailures (boolean) --

        If true, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will not be considered to have failed to that instance at that point and will continue on to the BeforeInstall deployment lifecycle event.

        If false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to a specific instance, the deployment will stop to that instance, and the deployment to that instance will be considered to have failed.

GetDeploymentGroup (updated) Link ¶
Changes (response)
{'deploymentGroupInfo': {'onPremisesInstanceTagFilters': [{'Key': 'string',
                                                           'Type': 'KEY_ONLY | '
                                                                   'VALUE_ONLY '
                                                                   '| '
                                                                   'KEY_AND_VALUE',
                                                           'Value': 'string'}]}}

Gets information about a deployment group.

Request Syntax

client.get_deployment_group(
    applicationName='string',
    deploymentGroupName='string'
)
type applicationName

string

param applicationName

[REQUIRED]

The name of an existing AWS CodeDeploy application associated with the applicable IAM user or AWS account.

type deploymentGroupName

string

param deploymentGroupName

[REQUIRED]

The name of an existing deployment group for the specified application.

rtype

dict

returns

Response Syntax

{
    'deploymentGroupInfo': {
        'applicationName': 'string',
        'deploymentGroupId': 'string',
        'deploymentGroupName': 'string',
        'deploymentConfigName': 'string',
        'ec2TagFilters': [
            {
                'Key': 'string',
                'Value': 'string',
                'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
            },
        ],
        'onPremisesInstanceTagFilters': [
            {
                'Key': 'string',
                'Value': 'string',
                'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
            },
        ],
        'autoScalingGroups': [
            {
                'name': 'string',
                'hook': 'string'
            },
        ],
        'serviceRoleArn': 'string',
        'targetRevision': {
            'revisionType': 'S3'|'GitHub',
            's3Location': {
                'bucket': 'string',
                'key': 'string',
                'bundleType': 'tar'|'tgz'|'zip',
                'version': 'string',
                'eTag': 'string'
            },
            'gitHubLocation': {
                'repository': 'string',
                'commitId': 'string'
            }
        }
    }
}

Response Structure

  • (dict) --

    Represents the output of a get deployment group operation.

    • deploymentGroupInfo (dict) --

      Information about the deployment group.

      • applicationName (string) --

        The application name.

      • deploymentGroupId (string) --

        The deployment group ID.

      • deploymentGroupName (string) --

        The deployment group name.

      • deploymentConfigName (string) --

        The deployment configuration name.

      • ec2TagFilters (list) --

        The Amazon EC2 tags to filter on.

        • (dict) --

          Information about a tag filter.

          • Key (string) --

            The tag filter key.

          • Value (string) --

            The tag filter value.

          • Type (string) --

            The tag filter type:

            • KEY_ONLY: Key only.

            • VALUE_ONLY: Value only.

            • KEY_AND_VALUE: Key and value.

      • onPremisesInstanceTagFilters (list) --

        The on-premises instance tags to filter on.

        • (dict) --

          Information about an on-premises instance tag filter.

          • Key (string) --

            The on-premises instance tag filter key.

          • Value (string) --

            The on-premises instance tag filter value.

          • Type (string) --

            The on-premises instance tag filter type:

            • KEY_ONLY: Key only.

            • VALUE_ONLY: Value only.

            • KEY_AND_VALUE: Key and value.

      • autoScalingGroups (list) --

        A list of associated Auto Scaling groups.

        • (dict) --

          Information about an Auto Scaling group.

          • name (string) --

            The Auto Scaling group name.

          • hook (string) --

            An Auto Scaling lifecycle event hook name.

      • serviceRoleArn (string) --

        A service role ARN.

      • targetRevision (dict) --

        Information about the deployment group's target revision, including the revision's type and its location.

        • revisionType (string) --

          The application revision's type:

          • S3: An application revision stored in Amazon S3.

          • GitHub: An application revision stored in GitHub.

        • s3Location (dict) --

          Information about the location of application artifacts that are stored in Amazon S3.

          • bucket (string) --

            The name of the Amazon S3 bucket where the application revision is stored.

          • key (string) --

            The name of the Amazon S3 object that represents the bundled artifacts for the application revision.

          • bundleType (string) --

            The file type of the application revision. Must be one of the following:

            • tar: A tar archive file.

            • tgz: A compressed tar archive file.

            • zip: A zip archive file.

          • version (string) --

            A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.

            If the version is not specified, the system will use the most recent version by default.

          • eTag (string) --

            The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.

            If the ETag is not specified as an input parameter, ETag validation of the object will be skipped.

        • gitHubLocation (dict) --

          Information about the location of application artifacts that are stored in GitHub.

          • repository (string) --

            The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.

            Specified as account/repository.

          • commitId (string) --

            The SHA1 commit ID of the GitHub commit that references the that represents the bundled artifacts for the application revision.

UpdateDeploymentGroup (updated) Link ¶
Changes (request)
{'onPremisesInstanceTagFilters': [{'Key': 'string',
                                   'Type': 'KEY_ONLY | VALUE_ONLY | '
                                           'KEY_AND_VALUE',
                                   'Value': 'string'}]}

Changes information about an existing deployment group.

Request Syntax

client.update_deployment_group(
    applicationName='string',
    currentDeploymentGroupName='string',
    newDeploymentGroupName='string',
    deploymentConfigName='string',
    ec2TagFilters=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
        },
    ],
    onPremisesInstanceTagFilters=[
        {
            'Key': 'string',
            'Value': 'string',
            'Type': 'KEY_ONLY'|'VALUE_ONLY'|'KEY_AND_VALUE'
        },
    ],
    autoScalingGroups=[
        'string',
    ],
    serviceRoleArn='string'
)
type applicationName

string

param applicationName

[REQUIRED]

The application name corresponding to the deployment group to update.

type currentDeploymentGroupName

string

param currentDeploymentGroupName

[REQUIRED]

The current name of the existing deployment group.

type newDeploymentGroupName

string

param newDeploymentGroupName

The new name of the deployment group, if you want to change it.

type deploymentConfigName

string

param deploymentConfigName

The replacement deployment configuration name to use, if you want to change it.

type ec2TagFilters

list

param ec2TagFilters

The replacement set of Amazon EC2 tags to filter on, if you want to change them.

  • (dict) --

    Information about a tag filter.

    • Key (string) --

      The tag filter key.

    • Value (string) --

      The tag filter value.

    • Type (string) --

      The tag filter type:

      • KEY_ONLY: Key only.

      • VALUE_ONLY: Value only.

      • KEY_AND_VALUE: Key and value.

type onPremisesInstanceTagFilters

list

param onPremisesInstanceTagFilters

The replacement set of on-premises instance tags for filter on, if you want to change them.

  • (dict) --

    Information about an on-premises instance tag filter.

    • Key (string) --

      The on-premises instance tag filter key.

    • Value (string) --

      The on-premises instance tag filter value.

    • Type (string) --

      The on-premises instance tag filter type:

      • KEY_ONLY: Key only.

      • VALUE_ONLY: Value only.

      • KEY_AND_VALUE: Key and value.

type autoScalingGroups

list

param autoScalingGroups

The replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them.

  • (string) --

type serviceRoleArn

string

param serviceRoleArn

A replacement service role's ARN, if you want to change it.

rtype

dict

returns

Response Syntax

{
    'hooksNotCleanedUp': [
        {
            'name': 'string',
            'hook': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Represents the output of an update deployment group operation.

    • hooksNotCleanedUp (list) --

      If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, AWS CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the AWS account. If the output does contain data, AWS CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the AWS account.

      • (dict) --

        Information about an Auto Scaling group.

        • name (string) --

          The Auto Scaling group name.

        • hook (string) --

          An Auto Scaling lifecycle event hook name.