Struct CodeDeployClient

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

A client for the CodeDeploy API.

Implementations§

Source§

impl CodeDeployClient

Source

pub fn new(region: Region) -> CodeDeployClient

Creates a client backed by the default tokio event loop.

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

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> CodeDeployClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client(client: Client, region: Region) -> CodeDeployClient

Trait Implementations§

Source§

impl Clone for CodeDeployClient

Source§

fn clone(&self) -> CodeDeployClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CodeDeploy for CodeDeployClient

Source§

fn add_tags_to_on_premises_instances<'life0, 'async_trait>( &'life0 self, input: AddTagsToOnPremisesInstancesInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<AddTagsToOnPremisesInstancesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Adds tags to on-premises instances.

Source§

fn batch_get_application_revisions<'life0, 'async_trait>( &'life0 self, input: BatchGetApplicationRevisionsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetApplicationRevisionsOutput, RusotoError<BatchGetApplicationRevisionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn batch_get_applications<'life0, 'async_trait>( &'life0 self, input: BatchGetApplicationsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetApplicationsOutput, RusotoError<BatchGetApplicationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn batch_get_deployment_groups<'life0, 'async_trait>( &'life0 self, input: BatchGetDeploymentGroupsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetDeploymentGroupsOutput, RusotoError<BatchGetDeploymentGroupsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about one or more deployment groups.

Source§

fn batch_get_deployment_instances<'life0, 'async_trait>( &'life0 self, input: BatchGetDeploymentInstancesInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetDeploymentInstancesOutput, RusotoError<BatchGetDeploymentInstancesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn batch_get_deployment_targets<'life0, 'async_trait>( &'life0 self, input: BatchGetDeploymentTargetsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetDeploymentTargetsOutput, RusotoError<BatchGetDeploymentTargetsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn batch_get_deployments<'life0, 'async_trait>( &'life0 self, input: BatchGetDeploymentsInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetDeploymentsOutput, RusotoError<BatchGetDeploymentsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn batch_get_on_premises_instances<'life0, 'async_trait>( &'life0 self, input: BatchGetOnPremisesInstancesInput, ) -> Pin<Box<dyn Future<Output = Result<BatchGetOnPremisesInstancesOutput, RusotoError<BatchGetOnPremisesInstancesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn continue_deployment<'life0, 'async_trait>( &'life0 self, input: ContinueDeploymentInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<ContinueDeploymentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn create_application<'life0, 'async_trait>( &'life0 self, input: CreateApplicationInput, ) -> Pin<Box<dyn Future<Output = Result<CreateApplicationOutput, RusotoError<CreateApplicationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates an application.

Source§

fn create_deployment<'life0, 'async_trait>( &'life0 self, input: CreateDeploymentInput, ) -> Pin<Box<dyn Future<Output = Result<CreateDeploymentOutput, RusotoError<CreateDeploymentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deploys an application revision through the specified deployment group.

Source§

fn create_deployment_config<'life0, 'async_trait>( &'life0 self, input: CreateDeploymentConfigInput, ) -> Pin<Box<dyn Future<Output = Result<CreateDeploymentConfigOutput, RusotoError<CreateDeploymentConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a deployment configuration.

Source§

fn create_deployment_group<'life0, 'async_trait>( &'life0 self, input: CreateDeploymentGroupInput, ) -> Pin<Box<dyn Future<Output = Result<CreateDeploymentGroupOutput, RusotoError<CreateDeploymentGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a deployment group to which application revisions are deployed.

Source§

fn delete_application<'life0, 'async_trait>( &'life0 self, input: DeleteApplicationInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteApplicationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes an application.

Source§

fn delete_deployment_config<'life0, 'async_trait>( &'life0 self, input: DeleteDeploymentConfigInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteDeploymentConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a deployment configuration.

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

Source§

fn delete_deployment_group<'life0, 'async_trait>( &'life0 self, input: DeleteDeploymentGroupInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteDeploymentGroupOutput, RusotoError<DeleteDeploymentGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a deployment group.

Source§

fn delete_git_hub_account_token<'life0, 'async_trait>( &'life0 self, input: DeleteGitHubAccountTokenInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteGitHubAccountTokenOutput, RusotoError<DeleteGitHubAccountTokenError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a GitHub account connection.

Source§

fn delete_resources_by_external_id<'life0, 'async_trait>( &'life0 self, input: DeleteResourcesByExternalIdInput, ) -> Pin<Box<dyn Future<Output = Result<DeleteResourcesByExternalIdOutput, RusotoError<DeleteResourcesByExternalIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes resources linked to an external ID.

Source§

fn deregister_on_premises_instance<'life0, 'async_trait>( &'life0 self, input: DeregisterOnPremisesInstanceInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeregisterOnPremisesInstanceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deregisters an on-premises instance.

Source§

fn get_application<'life0, 'async_trait>( &'life0 self, input: GetApplicationInput, ) -> Pin<Box<dyn Future<Output = Result<GetApplicationOutput, RusotoError<GetApplicationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about an application.

Source§

fn get_application_revision<'life0, 'async_trait>( &'life0 self, input: GetApplicationRevisionInput, ) -> Pin<Box<dyn Future<Output = Result<GetApplicationRevisionOutput, RusotoError<GetApplicationRevisionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about an application revision.

Source§

fn get_deployment<'life0, 'async_trait>( &'life0 self, input: GetDeploymentInput, ) -> Pin<Box<dyn Future<Output = Result<GetDeploymentOutput, RusotoError<GetDeploymentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn get_deployment_config<'life0, 'async_trait>( &'life0 self, input: GetDeploymentConfigInput, ) -> Pin<Box<dyn Future<Output = Result<GetDeploymentConfigOutput, RusotoError<GetDeploymentConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about a deployment configuration.

Source§

fn get_deployment_group<'life0, 'async_trait>( &'life0 self, input: GetDeploymentGroupInput, ) -> Pin<Box<dyn Future<Output = Result<GetDeploymentGroupOutput, RusotoError<GetDeploymentGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about a deployment group.

Source§

fn get_deployment_instance<'life0, 'async_trait>( &'life0 self, input: GetDeploymentInstanceInput, ) -> Pin<Box<dyn Future<Output = Result<GetDeploymentInstanceOutput, RusotoError<GetDeploymentInstanceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about an instance as part of a deployment.

Source§

fn get_deployment_target<'life0, 'async_trait>( &'life0 self, input: GetDeploymentTargetInput, ) -> Pin<Box<dyn Future<Output = Result<GetDeploymentTargetOutput, RusotoError<GetDeploymentTargetError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns information about a deployment target.

Source§

fn get_on_premises_instance<'life0, 'async_trait>( &'life0 self, input: GetOnPremisesInstanceInput, ) -> Pin<Box<dyn Future<Output = Result<GetOnPremisesInstanceOutput, RusotoError<GetOnPremisesInstanceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about an on-premises instance.

Source§

fn list_application_revisions<'life0, 'async_trait>( &'life0 self, input: ListApplicationRevisionsInput, ) -> Pin<Box<dyn Future<Output = Result<ListApplicationRevisionsOutput, RusotoError<ListApplicationRevisionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists information about revisions for an application.

Source§

fn list_applications<'life0, 'async_trait>( &'life0 self, input: ListApplicationsInput, ) -> Pin<Box<dyn Future<Output = Result<ListApplicationsOutput, RusotoError<ListApplicationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn list_deployment_configs<'life0, 'async_trait>( &'life0 self, input: ListDeploymentConfigsInput, ) -> Pin<Box<dyn Future<Output = Result<ListDeploymentConfigsOutput, RusotoError<ListDeploymentConfigsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn list_deployment_groups<'life0, 'async_trait>( &'life0 self, input: ListDeploymentGroupsInput, ) -> Pin<Box<dyn Future<Output = Result<ListDeploymentGroupsOutput, RusotoError<ListDeploymentGroupsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn list_deployment_instances<'life0, 'async_trait>( &'life0 self, input: ListDeploymentInstancesInput, ) -> Pin<Box<dyn Future<Output = Result<ListDeploymentInstancesOutput, RusotoError<ListDeploymentInstancesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn list_deployment_targets<'life0, 'async_trait>( &'life0 self, input: ListDeploymentTargetsInput, ) -> Pin<Box<dyn Future<Output = Result<ListDeploymentTargetsOutput, RusotoError<ListDeploymentTargetsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn list_deployments<'life0, 'async_trait>( &'life0 self, input: ListDeploymentsInput, ) -> Pin<Box<dyn Future<Output = Result<ListDeploymentsOutput, RusotoError<ListDeploymentsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn list_git_hub_account_token_names<'life0, 'async_trait>( &'life0 self, input: ListGitHubAccountTokenNamesInput, ) -> Pin<Box<dyn Future<Output = Result<ListGitHubAccountTokenNamesOutput, RusotoError<ListGitHubAccountTokenNamesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists the names of stored connections to GitHub accounts.

Source§

fn list_on_premises_instances<'life0, 'async_trait>( &'life0 self, input: ListOnPremisesInstancesInput, ) -> Pin<Box<dyn Future<Output = Result<ListOnPremisesInstancesOutput, RusotoError<ListOnPremisesInstancesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn list_tags_for_resource<'life0, 'async_trait>( &'life0 self, input: ListTagsForResourceInput, ) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceOutput, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn put_lifecycle_event_hook_execution_status<'life0, 'async_trait>( &'life0 self, input: PutLifecycleEventHookExecutionStatusInput, ) -> Pin<Box<dyn Future<Output = Result<PutLifecycleEventHookExecutionStatusOutput, RusotoError<PutLifecycleEventHookExecutionStatusError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn register_application_revision<'life0, 'async_trait>( &'life0 self, input: RegisterApplicationRevisionInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<RegisterApplicationRevisionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers with AWS CodeDeploy a revision for the specified application.

Source§

fn register_on_premises_instance<'life0, 'async_trait>( &'life0 self, input: RegisterOnPremisesInstanceInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<RegisterOnPremisesInstanceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn remove_tags_from_on_premises_instances<'life0, 'async_trait>( &'life0 self, input: RemoveTagsFromOnPremisesInstancesInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<RemoveTagsFromOnPremisesInstancesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn skip_wait_time_for_instance_termination<'life0, 'async_trait>( &'life0 self, input: SkipWaitTimeForInstanceTerminationInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<SkipWaitTimeForInstanceTerminationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn stop_deployment<'life0, 'async_trait>( &'life0 self, input: StopDeploymentInput, ) -> Pin<Box<dyn Future<Output = Result<StopDeploymentOutput, RusotoError<StopDeploymentError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Attempts to stop an ongoing deployment.

Source§

fn tag_resource<'life0, 'async_trait>( &'life0 self, input: TagResourceInput, ) -> Pin<Box<dyn Future<Output = Result<TagResourceOutput, RusotoError<TagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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

Source§

fn untag_resource<'life0, 'async_trait>( &'life0 self, input: UntagResourceInput, ) -> Pin<Box<dyn Future<Output = Result<UntagResourceOutput, RusotoError<UntagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

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.

Source§

fn update_application<'life0, 'async_trait>( &'life0 self, input: UpdateApplicationInput, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UpdateApplicationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Changes the name of an application.

Source§

fn update_deployment_group<'life0, 'async_trait>( &'life0 self, input: UpdateDeploymentGroupInput, ) -> Pin<Box<dyn Future<Output = Result<UpdateDeploymentGroupOutput, RusotoError<UpdateDeploymentGroupError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Changes information about a deployment group.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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