CodeDeployClient#
Index > CodeDeploy > CodeDeployClient
Auto-generated documentation for CodeDeploy type annotations stubs module mypy-boto3-codedeploy.
CodeDeployClient#
Type annotations and code completion for boto3.client("codedeploy")
.
boto3 documentation
# CodeDeployClient usage example
from boto3.session import Session
from mypy_boto3_codedeploy.client import CodeDeployClient
def get_codedeploy_client() -> CodeDeployClient:
return Session().client("codedeploy")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("codedeploy").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("codedeploy")
try:
do_something(client)
except (
client.exceptions.AlarmsLimitExceededException,
client.exceptions.ApplicationAlreadyExistsException,
client.exceptions.ApplicationDoesNotExistException,
client.exceptions.ApplicationLimitExceededException,
client.exceptions.ApplicationNameRequiredException,
client.exceptions.ArnNotSupportedException,
client.exceptions.BatchLimitExceededException,
client.exceptions.BucketNameFilterRequiredException,
client.exceptions.ClientError,
client.exceptions.DeploymentAlreadyCompletedException,
client.exceptions.DeploymentAlreadyStartedException,
client.exceptions.DeploymentConfigAlreadyExistsException,
client.exceptions.DeploymentConfigDoesNotExistException,
client.exceptions.DeploymentConfigInUseException,
client.exceptions.DeploymentConfigLimitExceededException,
client.exceptions.DeploymentConfigNameRequiredException,
client.exceptions.DeploymentDoesNotExistException,
client.exceptions.DeploymentGroupAlreadyExistsException,
client.exceptions.DeploymentGroupDoesNotExistException,
client.exceptions.DeploymentGroupLimitExceededException,
client.exceptions.DeploymentGroupNameRequiredException,
client.exceptions.DeploymentIdRequiredException,
client.exceptions.DeploymentIsNotInReadyStateException,
client.exceptions.DeploymentLimitExceededException,
client.exceptions.DeploymentNotStartedException,
client.exceptions.DeploymentTargetDoesNotExistException,
client.exceptions.DeploymentTargetIdRequiredException,
client.exceptions.DeploymentTargetListSizeExceededException,
client.exceptions.DescriptionTooLongException,
client.exceptions.ECSServiceMappingLimitExceededException,
client.exceptions.GitHubAccountTokenDoesNotExistException,
client.exceptions.GitHubAccountTokenNameRequiredException,
client.exceptions.IamArnRequiredException,
client.exceptions.IamSessionArnAlreadyRegisteredException,
client.exceptions.IamUserArnAlreadyRegisteredException,
client.exceptions.IamUserArnRequiredException,
client.exceptions.InstanceDoesNotExistException,
client.exceptions.InstanceIdRequiredException,
client.exceptions.InstanceLimitExceededException,
client.exceptions.InstanceNameAlreadyRegisteredException,
client.exceptions.InstanceNameRequiredException,
client.exceptions.InstanceNotRegisteredException,
client.exceptions.InvalidAlarmConfigException,
client.exceptions.InvalidApplicationNameException,
client.exceptions.InvalidArnException,
client.exceptions.InvalidAutoRollbackConfigException,
client.exceptions.InvalidAutoScalingGroupException,
client.exceptions.InvalidBlueGreenDeploymentConfigurationException,
client.exceptions.InvalidBucketNameFilterException,
client.exceptions.InvalidComputePlatformException,
client.exceptions.InvalidDeployedStateFilterException,
client.exceptions.InvalidDeploymentConfigNameException,
client.exceptions.InvalidDeploymentGroupNameException,
client.exceptions.InvalidDeploymentIdException,
client.exceptions.InvalidDeploymentInstanceTypeException,
client.exceptions.InvalidDeploymentStatusException,
client.exceptions.InvalidDeploymentStyleException,
client.exceptions.InvalidDeploymentTargetIdException,
client.exceptions.InvalidDeploymentWaitTypeException,
client.exceptions.InvalidEC2TagCombinationException,
client.exceptions.InvalidEC2TagException,
client.exceptions.InvalidECSServiceException,
client.exceptions.InvalidExternalIdException,
client.exceptions.InvalidFileExistsBehaviorException,
client.exceptions.InvalidGitHubAccountTokenException,
client.exceptions.InvalidGitHubAccountTokenNameException,
client.exceptions.InvalidIamSessionArnException,
client.exceptions.InvalidIamUserArnException,
client.exceptions.InvalidIgnoreApplicationStopFailuresValueException,
client.exceptions.InvalidInputException,
client.exceptions.InvalidInstanceIdException,
client.exceptions.InvalidInstanceNameException,
client.exceptions.InvalidInstanceStatusException,
client.exceptions.InvalidInstanceTypeException,
client.exceptions.InvalidKeyPrefixFilterException,
client.exceptions.InvalidLifecycleEventHookExecutionIdException,
client.exceptions.InvalidLifecycleEventHookExecutionStatusException,
client.exceptions.InvalidLoadBalancerInfoException,
client.exceptions.InvalidMinimumHealthyHostValueException,
client.exceptions.InvalidNextTokenException,
client.exceptions.InvalidOnPremisesTagCombinationException,
client.exceptions.InvalidOperationException,
client.exceptions.InvalidRegistrationStatusException,
client.exceptions.InvalidRevisionException,
client.exceptions.InvalidRoleException,
client.exceptions.InvalidSortByException,
client.exceptions.InvalidSortOrderException,
client.exceptions.InvalidTagException,
client.exceptions.InvalidTagFilterException,
client.exceptions.InvalidTagsToAddException,
client.exceptions.InvalidTargetException,
client.exceptions.InvalidTargetFilterNameException,
client.exceptions.InvalidTargetGroupPairException,
client.exceptions.InvalidTargetInstancesException,
client.exceptions.InvalidTimeRangeException,
client.exceptions.InvalidTrafficRoutingConfigurationException,
client.exceptions.InvalidTriggerConfigException,
client.exceptions.InvalidUpdateOutdatedInstancesOnlyValueException,
client.exceptions.InvalidZonalDeploymentConfigurationException,
client.exceptions.LifecycleEventAlreadyCompletedException,
client.exceptions.LifecycleHookLimitExceededException,
client.exceptions.MultipleIamArnsProvidedException,
client.exceptions.OperationNotSupportedException,
client.exceptions.ResourceArnRequiredException,
client.exceptions.ResourceValidationException,
client.exceptions.RevisionDoesNotExistException,
client.exceptions.RevisionRequiredException,
client.exceptions.RoleRequiredException,
client.exceptions.TagLimitExceededException,
client.exceptions.TagRequiredException,
client.exceptions.TagSetListLimitExceededException,
client.exceptions.ThrottlingException,
client.exceptions.TriggerTargetsLimitExceededException,
client.exceptions.UnsupportedActionForDeploymentTypeException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_codedeploy.client import Exceptions
def handle_error(exc: Exceptions.AlarmsLimitExceededException) -> None:
...
Methods#
add_tags_to_on_premises_instances#
Adds tags to on-premises instances.
Type annotations and code completion for boto3.client("codedeploy").add_tags_to_on_premises_instances
method.
boto3 documentation
# add_tags_to_on_premises_instances method definition
def add_tags_to_on_premises_instances(
self,
*,
tags: Sequence[TagTypeDef], # (1)
instanceNames: Sequence[str],
) -> EmptyResponseMetadataTypeDef: # (2)
...
# add_tags_to_on_premises_instances method usage example with argument unpacking
kwargs: AddTagsToOnPremisesInstancesInputRequestTypeDef = { # (1)
"tags": ...,
"instanceNames": ...,
}
parent.add_tags_to_on_premises_instances(**kwargs)
batch_get_application_revisions#
Gets information about one or more application revisions.
Type annotations and code completion for boto3.client("codedeploy").batch_get_application_revisions
method.
boto3 documentation
# batch_get_application_revisions method definition
def batch_get_application_revisions(
self,
*,
applicationName: str,
revisions: Sequence[RevisionLocationTypeDef], # (1)
) -> BatchGetApplicationRevisionsOutputTypeDef: # (2)
...
# batch_get_application_revisions method usage example with argument unpacking
kwargs: BatchGetApplicationRevisionsInputRequestTypeDef = { # (1)
"applicationName": ...,
"revisions": ...,
}
parent.batch_get_application_revisions(**kwargs)
batch_get_applications#
Gets information about one or more applications.
Type annotations and code completion for boto3.client("codedeploy").batch_get_applications
method.
boto3 documentation
# batch_get_applications method definition
def batch_get_applications(
self,
*,
applicationNames: Sequence[str],
) -> BatchGetApplicationsOutputTypeDef: # (1)
...
# batch_get_applications method usage example with argument unpacking
kwargs: BatchGetApplicationsInputRequestTypeDef = { # (1)
"applicationNames": ...,
}
parent.batch_get_applications(**kwargs)
batch_get_deployment_groups#
Gets information about one or more deployment groups.
Type annotations and code completion for boto3.client("codedeploy").batch_get_deployment_groups
method.
boto3 documentation
# batch_get_deployment_groups method definition
def batch_get_deployment_groups(
self,
*,
applicationName: str,
deploymentGroupNames: Sequence[str],
) -> BatchGetDeploymentGroupsOutputTypeDef: # (1)
...
# batch_get_deployment_groups method usage example with argument unpacking
kwargs: BatchGetDeploymentGroupsInputRequestTypeDef = { # (1)
"applicationName": ...,
"deploymentGroupNames": ...,
}
parent.batch_get_deployment_groups(**kwargs)
batch_get_deployment_instances#
.
Type annotations and code completion for boto3.client("codedeploy").batch_get_deployment_instances
method.
boto3 documentation
# batch_get_deployment_instances method definition
def batch_get_deployment_instances(
self,
*,
deploymentId: str,
instanceIds: Sequence[str],
) -> BatchGetDeploymentInstancesOutputTypeDef: # (1)
...
# batch_get_deployment_instances method usage example with argument unpacking
kwargs: BatchGetDeploymentInstancesInputRequestTypeDef = { # (1)
"deploymentId": ...,
"instanceIds": ...,
}
parent.batch_get_deployment_instances(**kwargs)
batch_get_deployment_targets#
Returns an array of one or more targets associated with a deployment.
Type annotations and code completion for boto3.client("codedeploy").batch_get_deployment_targets
method.
boto3 documentation
# batch_get_deployment_targets method definition
def batch_get_deployment_targets(
self,
*,
deploymentId: str,
targetIds: Sequence[str],
) -> BatchGetDeploymentTargetsOutputTypeDef: # (1)
...
# batch_get_deployment_targets method usage example with argument unpacking
kwargs: BatchGetDeploymentTargetsInputRequestTypeDef = { # (1)
"deploymentId": ...,
"targetIds": ...,
}
parent.batch_get_deployment_targets(**kwargs)
batch_get_deployments#
Gets information about one or more deployments.
Type annotations and code completion for boto3.client("codedeploy").batch_get_deployments
method.
boto3 documentation
# batch_get_deployments method definition
def batch_get_deployments(
self,
*,
deploymentIds: Sequence[str],
) -> BatchGetDeploymentsOutputTypeDef: # (1)
...
# batch_get_deployments method usage example with argument unpacking
kwargs: BatchGetDeploymentsInputRequestTypeDef = { # (1)
"deploymentIds": ...,
}
parent.batch_get_deployments(**kwargs)
batch_get_on_premises_instances#
Gets information about one or more on-premises instances.
Type annotations and code completion for boto3.client("codedeploy").batch_get_on_premises_instances
method.
boto3 documentation
# batch_get_on_premises_instances method definition
def batch_get_on_premises_instances(
self,
*,
instanceNames: Sequence[str],
) -> BatchGetOnPremisesInstancesOutputTypeDef: # (1)
...
# batch_get_on_premises_instances method usage example with argument unpacking
kwargs: BatchGetOnPremisesInstancesInputRequestTypeDef = { # (1)
"instanceNames": ...,
}
parent.batch_get_on_premises_instances(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("codedeploy").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("codedeploy").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
continue_deployment#
For a blue/green deployment, starts the process of rerouting traffic from instances in the original environment to instances in the replacement environment without waiting for a specified wait time to elapse.
Type annotations and code completion for boto3.client("codedeploy").continue_deployment
method.
boto3 documentation
# continue_deployment method definition
def continue_deployment(
self,
*,
deploymentId: str = ...,
deploymentWaitType: DeploymentWaitTypeType = ..., # (1)
) -> EmptyResponseMetadataTypeDef: # (2)
...
# continue_deployment method usage example with argument unpacking
kwargs: ContinueDeploymentInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.continue_deployment(**kwargs)
create_application#
Creates an application.
Type annotations and code completion for boto3.client("codedeploy").create_application
method.
boto3 documentation
# create_application method definition
def create_application(
self,
*,
applicationName: str,
computePlatform: ComputePlatformType = ..., # (1)
tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateApplicationOutputTypeDef: # (3)
...
# create_application method usage example with argument unpacking
kwargs: CreateApplicationInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.create_application(**kwargs)
create_deployment#
Deploys an application revision through the specified deployment group.
Type annotations and code completion for boto3.client("codedeploy").create_deployment
method.
boto3 documentation
# create_deployment method definition
def create_deployment(
self,
*,
applicationName: str,
deploymentGroupName: str = ...,
revision: RevisionLocationTypeDef = ..., # (1)
deploymentConfigName: str = ...,
description: str = ...,
ignoreApplicationStopFailures: bool = ...,
targetInstances: TargetInstancesTypeDef = ..., # (2)
autoRollbackConfiguration: AutoRollbackConfigurationTypeDef = ..., # (3)
updateOutdatedInstancesOnly: bool = ...,
fileExistsBehavior: FileExistsBehaviorType = ..., # (4)
overrideAlarmConfiguration: AlarmConfigurationTypeDef = ..., # (5)
) -> CreateDeploymentOutputTypeDef: # (6)
...
- See RevisionLocationTypeDef
- See TargetInstancesTypeDef
- See AutoRollbackConfigurationTypeDef
- See FileExistsBehaviorType
- See AlarmConfigurationTypeDef
- See CreateDeploymentOutputTypeDef
# create_deployment method usage example with argument unpacking
kwargs: CreateDeploymentInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.create_deployment(**kwargs)
create_deployment_config#
Creates a deployment configuration.
Type annotations and code completion for boto3.client("codedeploy").create_deployment_config
method.
boto3 documentation
# create_deployment_config method definition
def create_deployment_config(
self,
*,
deploymentConfigName: str,
minimumHealthyHosts: MinimumHealthyHostsTypeDef = ..., # (1)
trafficRoutingConfig: TrafficRoutingConfigTypeDef = ..., # (2)
computePlatform: ComputePlatformType = ..., # (3)
zonalConfig: ZonalConfigTypeDef = ..., # (4)
) -> CreateDeploymentConfigOutputTypeDef: # (5)
...
- See MinimumHealthyHostsTypeDef
- See TrafficRoutingConfigTypeDef
- See ComputePlatformType
- See ZonalConfigTypeDef
- See CreateDeploymentConfigOutputTypeDef
# create_deployment_config method usage example with argument unpacking
kwargs: CreateDeploymentConfigInputRequestTypeDef = { # (1)
"deploymentConfigName": ...,
}
parent.create_deployment_config(**kwargs)
create_deployment_group#
Creates a deployment group to which application revisions are deployed.
Type annotations and code completion for boto3.client("codedeploy").create_deployment_group
method.
boto3 documentation
# create_deployment_group method definition
def create_deployment_group(
self,
*,
applicationName: str,
deploymentGroupName: str,
serviceRoleArn: str,
deploymentConfigName: str = ...,
ec2TagFilters: Sequence[EC2TagFilterTypeDef] = ..., # (1)
onPremisesInstanceTagFilters: Sequence[TagFilterTypeDef] = ..., # (2)
autoScalingGroups: Sequence[str] = ...,
triggerConfigurations: Sequence[TriggerConfigUnionTypeDef] = ..., # (3)
alarmConfiguration: AlarmConfigurationTypeDef = ..., # (4)
autoRollbackConfiguration: AutoRollbackConfigurationTypeDef = ..., # (5)
outdatedInstancesStrategy: OutdatedInstancesStrategyType = ..., # (6)
deploymentStyle: DeploymentStyleTypeDef = ..., # (7)
blueGreenDeploymentConfiguration: BlueGreenDeploymentConfigurationTypeDef = ..., # (8)
loadBalancerInfo: LoadBalancerInfoTypeDef = ..., # (9)
ec2TagSet: EC2TagSetTypeDef = ..., # (10)
ecsServices: Sequence[ECSServiceTypeDef] = ..., # (11)
onPremisesTagSet: OnPremisesTagSetTypeDef = ..., # (12)
tags: Sequence[TagTypeDef] = ..., # (13)
terminationHookEnabled: bool = ...,
) -> CreateDeploymentGroupOutputTypeDef: # (14)
...
- See EC2TagFilterTypeDef
- See TagFilterTypeDef
- See TriggerConfigTypeDef TriggerConfigOutputTypeDef
- See AlarmConfigurationTypeDef
- See AutoRollbackConfigurationTypeDef
- See OutdatedInstancesStrategyType
- See DeploymentStyleTypeDef
- See BlueGreenDeploymentConfigurationTypeDef
- See LoadBalancerInfoTypeDef
- See EC2TagSetTypeDef
- See ECSServiceTypeDef
- See OnPremisesTagSetTypeDef
- See TagTypeDef
- See CreateDeploymentGroupOutputTypeDef
# create_deployment_group method usage example with argument unpacking
kwargs: CreateDeploymentGroupInputRequestTypeDef = { # (1)
"applicationName": ...,
"deploymentGroupName": ...,
"serviceRoleArn": ...,
}
parent.create_deployment_group(**kwargs)
delete_application#
Deletes an application.
Type annotations and code completion for boto3.client("codedeploy").delete_application
method.
boto3 documentation
# delete_application method definition
def delete_application(
self,
*,
applicationName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_application method usage example with argument unpacking
kwargs: DeleteApplicationInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.delete_application(**kwargs)
delete_deployment_config#
Deletes a deployment configuration.
Type annotations and code completion for boto3.client("codedeploy").delete_deployment_config
method.
boto3 documentation
# delete_deployment_config method definition
def delete_deployment_config(
self,
*,
deploymentConfigName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# delete_deployment_config method usage example with argument unpacking
kwargs: DeleteDeploymentConfigInputRequestTypeDef = { # (1)
"deploymentConfigName": ...,
}
parent.delete_deployment_config(**kwargs)
delete_deployment_group#
Deletes a deployment group.
Type annotations and code completion for boto3.client("codedeploy").delete_deployment_group
method.
boto3 documentation
# delete_deployment_group method definition
def delete_deployment_group(
self,
*,
applicationName: str,
deploymentGroupName: str,
) -> DeleteDeploymentGroupOutputTypeDef: # (1)
...
# delete_deployment_group method usage example with argument unpacking
kwargs: DeleteDeploymentGroupInputRequestTypeDef = { # (1)
"applicationName": ...,
"deploymentGroupName": ...,
}
parent.delete_deployment_group(**kwargs)
delete_git_hub_account_token#
Deletes a GitHub account connection.
Type annotations and code completion for boto3.client("codedeploy").delete_git_hub_account_token
method.
boto3 documentation
# delete_git_hub_account_token method definition
def delete_git_hub_account_token(
self,
*,
tokenName: str = ...,
) -> DeleteGitHubAccountTokenOutputTypeDef: # (1)
...
# delete_git_hub_account_token method usage example with argument unpacking
kwargs: DeleteGitHubAccountTokenInputRequestTypeDef = { # (1)
"tokenName": ...,
}
parent.delete_git_hub_account_token(**kwargs)
delete_resources_by_external_id#
Deletes resources linked to an external ID.
Type annotations and code completion for boto3.client("codedeploy").delete_resources_by_external_id
method.
boto3 documentation
# delete_resources_by_external_id method definition
def delete_resources_by_external_id(
self,
*,
externalId: str = ...,
) -> Dict[str, Any]:
...
# delete_resources_by_external_id method usage example with argument unpacking
kwargs: DeleteResourcesByExternalIdInputRequestTypeDef = { # (1)
"externalId": ...,
}
parent.delete_resources_by_external_id(**kwargs)
deregister_on_premises_instance#
Deregisters an on-premises instance.
Type annotations and code completion for boto3.client("codedeploy").deregister_on_premises_instance
method.
boto3 documentation
# deregister_on_premises_instance method definition
def deregister_on_premises_instance(
self,
*,
instanceName: str,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# deregister_on_premises_instance method usage example with argument unpacking
kwargs: DeregisterOnPremisesInstanceInputRequestTypeDef = { # (1)
"instanceName": ...,
}
parent.deregister_on_premises_instance(**kwargs)
generate_presigned_url#
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("codedeploy").generate_presigned_url
method.
boto3 documentation
# generate_presigned_url method definition
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_application#
Gets information about an application.
Type annotations and code completion for boto3.client("codedeploy").get_application
method.
boto3 documentation
# get_application method definition
def get_application(
self,
*,
applicationName: str,
) -> GetApplicationOutputTypeDef: # (1)
...
# get_application method usage example with argument unpacking
kwargs: GetApplicationInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.get_application(**kwargs)
get_application_revision#
Gets information about an application revision.
Type annotations and code completion for boto3.client("codedeploy").get_application_revision
method.
boto3 documentation
# get_application_revision method definition
def get_application_revision(
self,
*,
applicationName: str,
revision: RevisionLocationTypeDef, # (1)
) -> GetApplicationRevisionOutputTypeDef: # (2)
...
# get_application_revision method usage example with argument unpacking
kwargs: GetApplicationRevisionInputRequestTypeDef = { # (1)
"applicationName": ...,
"revision": ...,
}
parent.get_application_revision(**kwargs)
get_deployment#
Gets information about a deployment.
Type annotations and code completion for boto3.client("codedeploy").get_deployment
method.
boto3 documentation
# get_deployment method definition
def get_deployment(
self,
*,
deploymentId: str,
) -> GetDeploymentOutputTypeDef: # (1)
...
# get_deployment method usage example with argument unpacking
kwargs: GetDeploymentInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.get_deployment(**kwargs)
get_deployment_config#
Gets information about a deployment configuration.
Type annotations and code completion for boto3.client("codedeploy").get_deployment_config
method.
boto3 documentation
# get_deployment_config method definition
def get_deployment_config(
self,
*,
deploymentConfigName: str,
) -> GetDeploymentConfigOutputTypeDef: # (1)
...
# get_deployment_config method usage example with argument unpacking
kwargs: GetDeploymentConfigInputRequestTypeDef = { # (1)
"deploymentConfigName": ...,
}
parent.get_deployment_config(**kwargs)
get_deployment_group#
Gets information about a deployment group.
Type annotations and code completion for boto3.client("codedeploy").get_deployment_group
method.
boto3 documentation
# get_deployment_group method definition
def get_deployment_group(
self,
*,
applicationName: str,
deploymentGroupName: str,
) -> GetDeploymentGroupOutputTypeDef: # (1)
...
# get_deployment_group method usage example with argument unpacking
kwargs: GetDeploymentGroupInputRequestTypeDef = { # (1)
"applicationName": ...,
"deploymentGroupName": ...,
}
parent.get_deployment_group(**kwargs)
get_deployment_instance#
Gets information about an instance as part of a deployment.
Type annotations and code completion for boto3.client("codedeploy").get_deployment_instance
method.
boto3 documentation
# get_deployment_instance method definition
def get_deployment_instance(
self,
*,
deploymentId: str,
instanceId: str,
) -> GetDeploymentInstanceOutputTypeDef: # (1)
...
# get_deployment_instance method usage example with argument unpacking
kwargs: GetDeploymentInstanceInputRequestTypeDef = { # (1)
"deploymentId": ...,
"instanceId": ...,
}
parent.get_deployment_instance(**kwargs)
get_deployment_target#
Returns information about a deployment target.
Type annotations and code completion for boto3.client("codedeploy").get_deployment_target
method.
boto3 documentation
# get_deployment_target method definition
def get_deployment_target(
self,
*,
deploymentId: str,
targetId: str,
) -> GetDeploymentTargetOutputTypeDef: # (1)
...
# get_deployment_target method usage example with argument unpacking
kwargs: GetDeploymentTargetInputRequestTypeDef = { # (1)
"deploymentId": ...,
"targetId": ...,
}
parent.get_deployment_target(**kwargs)
get_on_premises_instance#
Gets information about an on-premises instance.
Type annotations and code completion for boto3.client("codedeploy").get_on_premises_instance
method.
boto3 documentation
# get_on_premises_instance method definition
def get_on_premises_instance(
self,
*,
instanceName: str,
) -> GetOnPremisesInstanceOutputTypeDef: # (1)
...
# get_on_premises_instance method usage example with argument unpacking
kwargs: GetOnPremisesInstanceInputRequestTypeDef = { # (1)
"instanceName": ...,
}
parent.get_on_premises_instance(**kwargs)
list_application_revisions#
Lists information about revisions for an application.
Type annotations and code completion for boto3.client("codedeploy").list_application_revisions
method.
boto3 documentation
# list_application_revisions method definition
def list_application_revisions(
self,
*,
applicationName: str,
sortBy: ApplicationRevisionSortByType = ..., # (1)
sortOrder: SortOrderType = ..., # (2)
s3Bucket: str = ...,
s3KeyPrefix: str = ...,
deployed: ListStateFilterActionType = ..., # (3)
nextToken: str = ...,
) -> ListApplicationRevisionsOutputTypeDef: # (4)
...
- See ApplicationRevisionSortByType
- See SortOrderType
- See ListStateFilterActionType
- See ListApplicationRevisionsOutputTypeDef
# list_application_revisions method usage example with argument unpacking
kwargs: ListApplicationRevisionsInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.list_application_revisions(**kwargs)
list_applications#
Lists the applications registered with the user or Amazon Web Services account.
Type annotations and code completion for boto3.client("codedeploy").list_applications
method.
boto3 documentation
# list_applications method definition
def list_applications(
self,
*,
nextToken: str = ...,
) -> ListApplicationsOutputTypeDef: # (1)
...
# list_applications method usage example with argument unpacking
kwargs: ListApplicationsInputRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_applications(**kwargs)
list_deployment_configs#
Lists the deployment configurations with the user or Amazon Web Services account.
Type annotations and code completion for boto3.client("codedeploy").list_deployment_configs
method.
boto3 documentation
# list_deployment_configs method definition
def list_deployment_configs(
self,
*,
nextToken: str = ...,
) -> ListDeploymentConfigsOutputTypeDef: # (1)
...
# list_deployment_configs method usage example with argument unpacking
kwargs: ListDeploymentConfigsInputRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_deployment_configs(**kwargs)
list_deployment_groups#
Lists the deployment groups for an application registered with the Amazon Web Services user or Amazon Web Services account.
Type annotations and code completion for boto3.client("codedeploy").list_deployment_groups
method.
boto3 documentation
# list_deployment_groups method definition
def list_deployment_groups(
self,
*,
applicationName: str,
nextToken: str = ...,
) -> ListDeploymentGroupsOutputTypeDef: # (1)
...
# list_deployment_groups method usage example with argument unpacking
kwargs: ListDeploymentGroupsInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.list_deployment_groups(**kwargs)
list_deployment_instances#
.
Type annotations and code completion for boto3.client("codedeploy").list_deployment_instances
method.
boto3 documentation
# list_deployment_instances method definition
def list_deployment_instances(
self,
*,
deploymentId: str,
nextToken: str = ...,
instanceStatusFilter: Sequence[InstanceStatusType] = ..., # (1)
instanceTypeFilter: Sequence[InstanceTypeType] = ..., # (2)
) -> ListDeploymentInstancesOutputTypeDef: # (3)
...
# list_deployment_instances method usage example with argument unpacking
kwargs: ListDeploymentInstancesInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.list_deployment_instances(**kwargs)
list_deployment_targets#
Returns an array of target IDs that are associated a deployment.
Type annotations and code completion for boto3.client("codedeploy").list_deployment_targets
method.
boto3 documentation
# list_deployment_targets method definition
def list_deployment_targets(
self,
*,
deploymentId: str,
nextToken: str = ...,
targetFilters: Mapping[TargetFilterNameType, Sequence[str]] = ..., # (1)
) -> ListDeploymentTargetsOutputTypeDef: # (2)
...
# list_deployment_targets method usage example with argument unpacking
kwargs: ListDeploymentTargetsInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.list_deployment_targets(**kwargs)
list_deployments#
Lists the deployments in a deployment group for an application registered with the user or Amazon Web Services account.
Type annotations and code completion for boto3.client("codedeploy").list_deployments
method.
boto3 documentation
# list_deployments method definition
def list_deployments(
self,
*,
applicationName: str = ...,
deploymentGroupName: str = ...,
externalId: str = ...,
includeOnlyStatuses: Sequence[DeploymentStatusType] = ..., # (1)
createTimeRange: TimeRangeTypeDef = ..., # (2)
nextToken: str = ...,
) -> ListDeploymentsOutputTypeDef: # (3)
...
# list_deployments method usage example with argument unpacking
kwargs: ListDeploymentsInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.list_deployments(**kwargs)
list_git_hub_account_token_names#
Lists the names of stored connections to GitHub accounts.
Type annotations and code completion for boto3.client("codedeploy").list_git_hub_account_token_names
method.
boto3 documentation
# list_git_hub_account_token_names method definition
def list_git_hub_account_token_names(
self,
*,
nextToken: str = ...,
) -> ListGitHubAccountTokenNamesOutputTypeDef: # (1)
...
# list_git_hub_account_token_names method usage example with argument unpacking
kwargs: ListGitHubAccountTokenNamesInputRequestTypeDef = { # (1)
"nextToken": ...,
}
parent.list_git_hub_account_token_names(**kwargs)
list_on_premises_instances#
Gets a list of names for one or more on-premises instances.
Type annotations and code completion for boto3.client("codedeploy").list_on_premises_instances
method.
boto3 documentation
# list_on_premises_instances method definition
def list_on_premises_instances(
self,
*,
registrationStatus: RegistrationStatusType = ..., # (1)
tagFilters: Sequence[TagFilterTypeDef] = ..., # (2)
nextToken: str = ...,
) -> ListOnPremisesInstancesOutputTypeDef: # (3)
...
# list_on_premises_instances method usage example with argument unpacking
kwargs: ListOnPremisesInstancesInputRequestTypeDef = { # (1)
"registrationStatus": ...,
}
parent.list_on_premises_instances(**kwargs)
list_tags_for_resource#
Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN).
Type annotations and code completion for boto3.client("codedeploy").list_tags_for_resource
method.
boto3 documentation
# list_tags_for_resource method definition
def list_tags_for_resource(
self,
*,
ResourceArn: str,
NextToken: str = ...,
) -> ListTagsForResourceOutputTypeDef: # (1)
...
# list_tags_for_resource method usage example with argument unpacking
kwargs: ListTagsForResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
}
parent.list_tags_for_resource(**kwargs)
put_lifecycle_event_hook_execution_status#
Sets the result of a Lambda validation function.
Type annotations and code completion for boto3.client("codedeploy").put_lifecycle_event_hook_execution_status
method.
boto3 documentation
# put_lifecycle_event_hook_execution_status method definition
def put_lifecycle_event_hook_execution_status(
self,
*,
deploymentId: str = ...,
lifecycleEventHookExecutionId: str = ...,
status: LifecycleEventStatusType = ..., # (1)
) -> PutLifecycleEventHookExecutionStatusOutputTypeDef: # (2)
...
# put_lifecycle_event_hook_execution_status method usage example with argument unpacking
kwargs: PutLifecycleEventHookExecutionStatusInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.put_lifecycle_event_hook_execution_status(**kwargs)
register_application_revision#
Registers with CodeDeploy a revision for the specified application.
Type annotations and code completion for boto3.client("codedeploy").register_application_revision
method.
boto3 documentation
# register_application_revision method definition
def register_application_revision(
self,
*,
applicationName: str,
revision: RevisionLocationTypeDef, # (1)
description: str = ...,
) -> EmptyResponseMetadataTypeDef: # (2)
...
# register_application_revision method usage example with argument unpacking
kwargs: RegisterApplicationRevisionInputRequestTypeDef = { # (1)
"applicationName": ...,
"revision": ...,
}
parent.register_application_revision(**kwargs)
register_on_premises_instance#
Registers an on-premises instance.
Type annotations and code completion for boto3.client("codedeploy").register_on_premises_instance
method.
boto3 documentation
# register_on_premises_instance method definition
def register_on_premises_instance(
self,
*,
instanceName: str,
iamSessionArn: str = ...,
iamUserArn: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# register_on_premises_instance method usage example with argument unpacking
kwargs: RegisterOnPremisesInstanceInputRequestTypeDef = { # (1)
"instanceName": ...,
}
parent.register_on_premises_instance(**kwargs)
remove_tags_from_on_premises_instances#
Removes one or more tags from one or more on-premises instances.
Type annotations and code completion for boto3.client("codedeploy").remove_tags_from_on_premises_instances
method.
boto3 documentation
# remove_tags_from_on_premises_instances method definition
def remove_tags_from_on_premises_instances(
self,
*,
tags: Sequence[TagTypeDef], # (1)
instanceNames: Sequence[str],
) -> EmptyResponseMetadataTypeDef: # (2)
...
# remove_tags_from_on_premises_instances method usage example with argument unpacking
kwargs: RemoveTagsFromOnPremisesInstancesInputRequestTypeDef = { # (1)
"tags": ...,
"instanceNames": ...,
}
parent.remove_tags_from_on_premises_instances(**kwargs)
skip_wait_time_for_instance_termination#
In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.
Type annotations and code completion for boto3.client("codedeploy").skip_wait_time_for_instance_termination
method.
boto3 documentation
# skip_wait_time_for_instance_termination method definition
def skip_wait_time_for_instance_termination(
self,
*,
deploymentId: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# skip_wait_time_for_instance_termination method usage example with argument unpacking
kwargs: SkipWaitTimeForInstanceTerminationInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.skip_wait_time_for_instance_termination(**kwargs)
stop_deployment#
Attempts to stop an ongoing deployment.
Type annotations and code completion for boto3.client("codedeploy").stop_deployment
method.
boto3 documentation
# stop_deployment method definition
def stop_deployment(
self,
*,
deploymentId: str,
autoRollbackEnabled: bool = ...,
) -> StopDeploymentOutputTypeDef: # (1)
...
# stop_deployment method usage example with argument unpacking
kwargs: StopDeploymentInputRequestTypeDef = { # (1)
"deploymentId": ...,
}
parent.stop_deployment(**kwargs)
tag_resource#
Associates the list of tags in the input Tags
parameter with the resource
identified by the ResourceArn
input parameter.
Type annotations and code completion for boto3.client("codedeploy").tag_resource
method.
boto3 documentation
# tag_resource method definition
def tag_resource(
self,
*,
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
) -> Dict[str, Any]:
...
- See TagTypeDef
# tag_resource method usage example with argument unpacking
kwargs: TagResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
"Tags": ...,
}
parent.tag_resource(**kwargs)
untag_resource#
Disassociates a resource from a list of tags.
Type annotations and code completion for boto3.client("codedeploy").untag_resource
method.
boto3 documentation
# untag_resource method definition
def untag_resource(
self,
*,
ResourceArn: str,
TagKeys: Sequence[str],
) -> Dict[str, Any]:
...
# untag_resource method usage example with argument unpacking
kwargs: UntagResourceInputRequestTypeDef = { # (1)
"ResourceArn": ...,
"TagKeys": ...,
}
parent.untag_resource(**kwargs)
update_application#
Changes the name of an application.
Type annotations and code completion for boto3.client("codedeploy").update_application
method.
boto3 documentation
# update_application method definition
def update_application(
self,
*,
applicationName: str = ...,
newApplicationName: str = ...,
) -> EmptyResponseMetadataTypeDef: # (1)
...
# update_application method usage example with argument unpacking
kwargs: UpdateApplicationInputRequestTypeDef = { # (1)
"applicationName": ...,
}
parent.update_application(**kwargs)
update_deployment_group#
Changes information about a deployment group.
Type annotations and code completion for boto3.client("codedeploy").update_deployment_group
method.
boto3 documentation
# update_deployment_group method definition
def update_deployment_group(
self,
*,
applicationName: str,
currentDeploymentGroupName: str,
newDeploymentGroupName: str = ...,
deploymentConfigName: str = ...,
ec2TagFilters: Sequence[EC2TagFilterTypeDef] = ..., # (1)
onPremisesInstanceTagFilters: Sequence[TagFilterTypeDef] = ..., # (2)
autoScalingGroups: Sequence[str] = ...,
serviceRoleArn: str = ...,
triggerConfigurations: Sequence[TriggerConfigTypeDef] = ..., # (3)
alarmConfiguration: AlarmConfigurationTypeDef = ..., # (4)
autoRollbackConfiguration: AutoRollbackConfigurationTypeDef = ..., # (5)
outdatedInstancesStrategy: OutdatedInstancesStrategyType = ..., # (6)
deploymentStyle: DeploymentStyleTypeDef = ..., # (7)
blueGreenDeploymentConfiguration: BlueGreenDeploymentConfigurationTypeDef = ..., # (8)
loadBalancerInfo: LoadBalancerInfoTypeDef = ..., # (9)
ec2TagSet: EC2TagSetTypeDef = ..., # (10)
ecsServices: Sequence[ECSServiceTypeDef] = ..., # (11)
onPremisesTagSet: OnPremisesTagSetTypeDef = ..., # (12)
terminationHookEnabled: bool = ...,
) -> UpdateDeploymentGroupOutputTypeDef: # (13)
...
- See EC2TagFilterTypeDef
- See TagFilterTypeDef
- See TriggerConfigTypeDef
- See AlarmConfigurationTypeDef
- See AutoRollbackConfigurationTypeDef
- See OutdatedInstancesStrategyType
- See DeploymentStyleTypeDef
- See BlueGreenDeploymentConfigurationTypeDef
- See LoadBalancerInfoTypeDef
- See EC2TagSetTypeDef
- See ECSServiceTypeDef
- See OnPremisesTagSetTypeDef
- See UpdateDeploymentGroupOutputTypeDef
# update_deployment_group method usage example with argument unpacking
kwargs: UpdateDeploymentGroupInputRequestTypeDef = { # (1)
"applicationName": ...,
"currentDeploymentGroupName": ...,
}
parent.update_deployment_group(**kwargs)
get_paginator#
Type annotations and code completion for boto3.client("codedeploy").get_paginator
method with overloads.
client.get_paginator("list_application_revisions")
-> ListApplicationRevisionsPaginatorclient.get_paginator("list_applications")
-> ListApplicationsPaginatorclient.get_paginator("list_deployment_configs")
-> ListDeploymentConfigsPaginatorclient.get_paginator("list_deployment_groups")
-> ListDeploymentGroupsPaginatorclient.get_paginator("list_deployment_instances")
-> ListDeploymentInstancesPaginatorclient.get_paginator("list_deployment_targets")
-> ListDeploymentTargetsPaginatorclient.get_paginator("list_deployments")
-> ListDeploymentsPaginatorclient.get_paginator("list_git_hub_account_token_names")
-> ListGitHubAccountTokenNamesPaginatorclient.get_paginator("list_on_premises_instances")
-> ListOnPremisesInstancesPaginator
get_waiter#
Type annotations and code completion for boto3.client("codedeploy").get_waiter
method with overloads.
client.get_waiter("deployment_successful")
-> DeploymentSuccessfulWaiter