logo
pub struct CodeDeployClient { /* private fields */ }
Expand description

A client for the CodeDeploy API.

Implementations

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Adds tags to on-premises instances.

Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.

Gets information about one or more applications. The maximum number of applications that can be returned is 100.

Gets information about one or more deployment groups.

This method works, but is deprecated. Use BatchGetDeploymentTargets instead.

Returns an array of one or more instances associated with a deployment. This method works with EC2/On-premises and AWS Lambda compute platforms. The newer BatchGetDeploymentTargets works with all compute platforms. The maximum number of instances that can be returned is 25.

Returns an array of one or more targets associated with a deployment. This method works with all compute types and should be used instead of the deprecated BatchGetDeploymentInstances. The maximum number of targets that can be returned is 25.

The type of targets returned depends on the deployment's compute platform or deployment method:

  • EC2/On-premises: Information about EC2 instance targets.

  • AWS Lambda: Information about Lambda functions targets.

  • Amazon ECS: Information about Amazon ECS service targets.

  • CloudFormation: Information about targets of blue/green deployments initiated by a CloudFormation stack update.

Gets information about one or more deployments. The maximum number of deployments that can be returned is 25.

Gets information about one or more on-premises instances. The maximum number of on-premises instances that can be returned is 25.

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. (Traffic rerouting, which is achieved by registering instances in the replacement environment with the load balancer, can start as soon as all instances have a status of Ready.)

Creates an application.

Deploys an application revision through the specified deployment group.

Creates a deployment configuration.

Creates a deployment group to which application revisions are deployed.

Deletes an application.

Deletes a deployment configuration.

A deployment configuration cannot be deleted if it is currently in use. Predefined configurations cannot be deleted.

Deletes a deployment group.

Deletes a GitHub account connection.

Deletes resources linked to an external ID.

Deregisters an on-premises instance.

Gets information about an application.

Gets information about an application revision.

Gets information about a deployment.

The content property of the appSpecContent object in the returned revision is always null. Use GetApplicationRevision and the sha256 property of the returned appSpecContent object to get the content of the deployment’s AppSpec file.

Gets information about a deployment configuration.

Gets information about a deployment group.

Gets information about an instance as part of a deployment.

Returns information about a deployment target.

Gets information about an on-premises instance.

Lists information about revisions for an application.

Lists the applications registered with the IAM user or AWS account.

Lists the deployment configurations with the IAM user or AWS account.

Lists the deployment groups for an application registered with the IAM user or AWS account.

The newer BatchGetDeploymentTargets should be used instead because it works with all compute types. ListDeploymentInstances throws an exception if it is used with a compute platform other than EC2/On-premises or AWS Lambda.

Lists the instance for a deployment associated with the IAM user or AWS account.

Returns an array of target IDs that are associated a deployment.

Lists the deployments in a deployment group for an application registered with the IAM user or AWS account.

Lists the names of stored connections to GitHub accounts.

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

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

Returns a list of tags for the resource identified by a specified Amazon Resource Name (ARN). Tags are used to organize and categorize your CodeDeploy resources.

Sets the result of a Lambda validation function. The function validates lifecycle hooks during a deployment that uses the AWS Lambda or Amazon ECS compute platform. For AWS Lambda deployments, the available lifecycle hooks are BeforeAllowTraffic and AfterAllowTraffic. For Amazon ECS deployments, the available lifecycle hooks are BeforeInstall, AfterInstall, AfterAllowTestTraffic, BeforeAllowTraffic, and AfterAllowTraffic. Lambda validation functions return Succeeded or Failed. For more information, see AppSpec 'hooks' Section for an AWS Lambda Deployment and AppSpec 'hooks' Section for an Amazon ECS Deployment.

Registers with AWS CodeDeploy a revision for the specified application.

Registers an on-premises instance.

Only one IAM ARN (an IAM session ARN or IAM user ARN) is supported in the request. You cannot use both.

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

In a blue/green deployment, overrides any specified wait time and starts terminating instances immediately after the traffic routing is complete.

Attempts to stop an ongoing deployment.

Associates the list of tags in the input Tags parameter with the resource identified by the ResourceArn input parameter.

Disassociates a resource from a list of tags. The resource is identified by the ResourceArn input parameter. The tags are identified by the list of keys in the TagKeys input parameter.

Changes the name of an application.

Changes information about a deployment group.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more