pub struct Client { /* private fields */ }Expand description
Client for AWS CodeDeploy
Client for invoking operations on AWS CodeDeploy. Each operation on AWS CodeDeploy is a method on this
this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.
§Constructing a Client
A Config is required to construct a client. For most use cases, the aws-config
crate should be used to automatically resolve this config using
aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared
across multiple different AWS SDK clients. This config resolution process can be customized
by calling aws_config::from_env() instead, which returns a ConfigLoader that uses
the builder pattern to customize the default config.
In the simplest case, creating a client looks as follows:
let config = aws_config::load_from_env().await;
let client = aws_sdk_codedeploy::Client::new(&config);Occasionally, SDKs may have additional service-specific values that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Builder struct implements From<&SdkConfig>, so setting these specific settings can be
done as follows:
let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_codedeploy::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();See the aws-config docs and Config for more information on customizing configuration.
Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.
§Using the Client
A client has a function for every operation that can be performed by the service.
For example, the BatchGetApplicationRevisions operation has
a Client::batch_get_application_revisions, function which returns a builder for that operation.
The fluent builder ultimately has a send() function that returns an async future that
returns a result, as illustrated below:
let result = client.batch_get_application_revisions()
    .application_name("example")
    .send()
    .await;The underlying HTTP requests that get made by this can be modified with the customize_operation
function on the fluent builder. See the customize module for more
information.
§Waiters
This client provides wait_until methods behind the Waiters trait.
To use them, simply import the trait, and then call one of the wait_until methods. This will
return a waiter fluent builder that takes various parameters, which are documented on the builder
type. Once parameters have been provided, the wait method can be called to initiate waiting.
For example, if there was a wait_until_thing method, it could look like:
let result = client.wait_until_thing()
    .thing_id("someId")
    .wait(Duration::from_secs(120))
    .await;Implementations§
Source§impl Client
 
impl Client
Constructs a fluent builder for the AddTagsToOnPremisesInstances operation.
- The fluent builder is configurable:
- tags(Tag)/- set_tags(Option<Vec::<Tag>>):
 required: true- The tag key-value pairs to add to the on-premises instances. - Keys and values are both required. Keys cannot be null or empty strings. Value-only tags are not allowed. 
- instance_names(impl Into<String>)/- set_instance_names(Option<Vec::<String>>):
 required: true- The names of the on-premises instances to which to add tags. 
 
- On success, responds with AddTagsToOnPremisesInstancesOutput
- On failure, responds with SdkError<AddTagsToOnPremisesInstancesError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_application_revisions(
    &self,
) -> BatchGetApplicationRevisionsFluentBuilder
 
pub fn batch_get_application_revisions( &self, ) -> BatchGetApplicationRevisionsFluentBuilder
Constructs a fluent builder for the BatchGetApplicationRevisions operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application about which to get revision information. 
- revisions(RevisionLocation)/- set_revisions(Option<Vec::<RevisionLocation>>):
 required: true- An array of - RevisionLocationobjects that specify information to get about the application revisions, including type and location. The maximum number of- RevisionLocationobjects you can specify is 25.
 
- On success, responds with BatchGetApplicationRevisionsOutputwith field(s):- application_name(Option<String>):- The name of the application that corresponds to the revisions. 
- error_message(Option<String>):- Information about errors that might have occurred during the API call. 
- revisions(Option<Vec::<RevisionInfo>>):- Additional information about the revisions, including the type and location. 
 
- On failure, responds with SdkError<BatchGetApplicationRevisionsError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_applications(&self) -> BatchGetApplicationsFluentBuilder
 
pub fn batch_get_applications(&self) -> BatchGetApplicationsFluentBuilder
Constructs a fluent builder for the BatchGetApplications operation.
- The fluent builder is configurable:
- application_names(impl Into<String>)/- set_application_names(Option<Vec::<String>>):
 required: true- A list of application names separated by spaces. The maximum number of application names you can specify is 100. 
 
- On success, responds with BatchGetApplicationsOutputwith field(s):- applications_info(Option<Vec::<ApplicationInfo>>):- Information about the applications. 
 
- On failure, responds with SdkError<BatchGetApplicationsError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_deployment_groups(
    &self,
) -> BatchGetDeploymentGroupsFluentBuilder
 
pub fn batch_get_deployment_groups( &self, ) -> BatchGetDeploymentGroupsFluentBuilder
Constructs a fluent builder for the BatchGetDeploymentGroups operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the applicable user or Amazon Web Services account. 
- deployment_group_names(impl Into<String>)/- set_deployment_group_names(Option<Vec::<String>>):
 required: true- The names of the deployment groups. 
 
- On success, responds with BatchGetDeploymentGroupsOutputwith field(s):- deployment_groups_info(Option<Vec::<DeploymentGroupInfo>>):- Information about the deployment groups. 
- error_message(Option<String>):- Information about errors that might have occurred during the API call. 
 
- On failure, responds with SdkError<BatchGetDeploymentGroupsError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_deployment_instances(
    &self,
) -> BatchGetDeploymentInstancesFluentBuilder
 👎Deprecated: This operation is deprecated, use BatchGetDeploymentTargets instead.
pub fn batch_get_deployment_instances( &self, ) -> BatchGetDeploymentInstancesFluentBuilder
Constructs a fluent builder for the BatchGetDeploymentInstances operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- instance_ids(impl Into<String>)/- set_instance_ids(Option<Vec::<String>>):
 required: true- The unique IDs of instances used in the deployment. The maximum number of instance IDs you can specify is 25. 
 
- On success, responds with BatchGetDeploymentInstancesOutputwith field(s):- instances_summary(Option<Vec::<InstanceSummary>>):- Information about the instance. 
- error_message(Option<String>):- Information about errors that might have occurred during the API call. 
 
- On failure, responds with SdkError<BatchGetDeploymentInstancesError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_deployment_targets(
    &self,
) -> BatchGetDeploymentTargetsFluentBuilder
 
pub fn batch_get_deployment_targets( &self, ) -> BatchGetDeploymentTargetsFluentBuilder
Constructs a fluent builder for the BatchGetDeploymentTargets operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- target_ids(impl Into<String>)/- set_target_ids(Option<Vec::<String>>):
 required: true- The unique IDs of the deployment targets. The compute platform of the deployment determines the type of the targets and their formats. The maximum number of deployment target IDs you can specify is 25. -    For deployments that use the EC2/On-premises compute platform, the target IDs are Amazon EC2 or on-premises instances IDs, and their target type is instanceTarget.
-    For deployments that use the Lambda compute platform, the target IDs are the names of Lambda functions, and their target type is instanceTarget.
-    For deployments that use the Amazon ECS compute platform, the target IDs are pairs of Amazon ECS clusters and services specified using the format : ecsTarget.
-    For deployments that are deployed with CloudFormation, the target IDs are CloudFormation stack IDs. Their target type is cloudFormationTarget.
 
-    
 
- On success, responds with BatchGetDeploymentTargetsOutputwith field(s):- deployment_targets(Option<Vec::<DeploymentTarget>>):- A list of target objects for a deployment. Each target object contains details about the target, such as its status and lifecycle events. The type of the target objects depends on the deployment’ compute platform. -    EC2/On-premises: Each target object is an Amazon EC2 or on-premises instance. 
-    Lambda: The target object is a specific version of an Lambda function. 
-    Amazon ECS: The target object is an Amazon ECS service. 
-    CloudFormation: The target object is an CloudFormation blue/green deployment. 
 
-    
 
- On failure, responds with SdkError<BatchGetDeploymentTargetsError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_deployments(&self) -> BatchGetDeploymentsFluentBuilder
 
pub fn batch_get_deployments(&self) -> BatchGetDeploymentsFluentBuilder
Constructs a fluent builder for the BatchGetDeployments operation.
- The fluent builder is configurable:
- deployment_ids(impl Into<String>)/- set_deployment_ids(Option<Vec::<String>>):
 required: true- A list of deployment IDs, separated by spaces. The maximum number of deployment IDs you can specify is 25. 
 
- On success, responds with BatchGetDeploymentsOutputwith field(s):- deployments_info(Option<Vec::<DeploymentInfo>>):- Information about the deployments. 
 
- On failure, responds with SdkError<BatchGetDeploymentsError>
Source§impl Client
 
impl Client
Sourcepub fn batch_get_on_premises_instances(
    &self,
) -> BatchGetOnPremisesInstancesFluentBuilder
 
pub fn batch_get_on_premises_instances( &self, ) -> BatchGetOnPremisesInstancesFluentBuilder
Constructs a fluent builder for the BatchGetOnPremisesInstances operation.
- The fluent builder is configurable:
- instance_names(impl Into<String>)/- set_instance_names(Option<Vec::<String>>):
 required: true- The names of the on-premises instances about which to get information. The maximum number of instance names you can specify is 25. 
 
- On success, responds with BatchGetOnPremisesInstancesOutputwith field(s):- instance_infos(Option<Vec::<InstanceInfo>>):- Information about the on-premises instances. 
 
- On failure, responds with SdkError<BatchGetOnPremisesInstancesError>
Source§impl Client
 
impl Client
Sourcepub fn continue_deployment(&self) -> ContinueDeploymentFluentBuilder
 
pub fn continue_deployment(&self) -> ContinueDeploymentFluentBuilder
Constructs a fluent builder for the ContinueDeployment operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: false- The unique ID of a blue/green deployment for which you want to start rerouting traffic to the replacement environment. 
- deployment_wait_type(DeploymentWaitType)/- set_deployment_wait_type(Option<DeploymentWaitType>):
 required: false- The status of the deployment’s waiting period. - READY_WAITindicates that the deployment is ready to start shifting traffic.- TERMINATION_WAITindicates that the traffic is shifted, but the original target is not terminated.
 
- On success, responds with ContinueDeploymentOutput
- On failure, responds with SdkError<ContinueDeploymentError>
Source§impl Client
 
impl Client
Sourcepub fn create_application(&self) -> CreateApplicationFluentBuilder
 
pub fn create_application(&self) -> CreateApplicationFluentBuilder
Constructs a fluent builder for the CreateApplication operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of the application. This name must be unique with the applicable user or Amazon Web Services account. 
- compute_platform(ComputePlatform)/- set_compute_platform(Option<ComputePlatform>):
 required: false- The destination platform type for the deployment ( - Lambda,- Server, or- ECS).
- tags(Tag)/- set_tags(Option<Vec::<Tag>>):
 required: false- The metadata that you apply to CodeDeploy applications to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define. 
 
- On success, responds with CreateApplicationOutputwith field(s):- application_id(Option<String>):- A unique application ID. 
 
- On failure, responds with SdkError<CreateApplicationError>
Source§impl Client
 
impl Client
Sourcepub fn create_deployment(&self) -> CreateDeploymentFluentBuilder
 
pub fn create_deployment(&self) -> CreateDeploymentFluentBuilder
Constructs a fluent builder for the CreateDeployment operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- deployment_group_name(impl Into<String>)/- set_deployment_group_name(Option<String>):
 required: false- The name of the deployment group. 
- revision(RevisionLocation)/- set_revision(Option<RevisionLocation>):
 required: false- The type and location of the revision to deploy. 
- deployment_config_name(impl Into<String>)/- set_deployment_config_name(Option<String>):
 required: false- The name of a deployment configuration associated with the user or Amazon Web Services account. - If not specified, the value configured in the deployment group is used as the default. If the deployment group does not have a deployment configuration associated with it, - CodeDeployDefault.- OneAtATimeis used by default.
- description(impl Into<String>)/- set_description(Option<String>):
 required: false- A comment about the deployment. 
- ignore_application_stop_failures(bool)/- set_ignore_application_stop_failures(Option<bool>):
 required: false- If true, then if an - ApplicationStop,- BeforeBlockTraffic, or- AfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if- ApplicationStopfails, the deployment continues with- DownloadBundle. If- BeforeBlockTrafficfails, the deployment continues with- BlockTraffic. If- AfterBlockTrafficfails, the deployment continues with- ApplicationStop.- If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted. - During a deployment, the CodeDeploy agent runs the scripts specified for - ApplicationStop,- BeforeBlockTraffic, and- AfterBlockTrafficin the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.- If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use - ignoreApplicationStopFailuresto specify that the- ApplicationStop,- BeforeBlockTraffic, and- AfterBlockTrafficfailures should be ignored.
- target_instances(TargetInstances)/- set_target_instances(Option<TargetInstances>):
 required: false- Information about the instances that belong to the replacement environment in a blue/green deployment. 
- auto_rollback_configuration(AutoRollbackConfiguration)/- set_auto_rollback_configuration(Option<AutoRollbackConfiguration>):
 required: false- Configuration information for an automatic rollback that is added when a deployment is created. 
- update_outdated_instances_only(bool)/- set_update_outdated_instances_only(Option<bool>):
 required: false- Indicates whether to deploy to all instances or only to instances that are not running the latest application revision. 
- file_exists_behavior(FileExistsBehavior)/- set_file_exists_behavior(Option<FileExistsBehavior>):
 required: false- Information about how CodeDeploy handles files that already exist in a deployment target location but weren’t part of the previous successful deployment. - The - fileExistsBehaviorparameter takes any of the following values:-    DISALLOW: The deployment fails. This is also the default behavior if no option is specified. 
-    OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance. 
-    RETAIN: The version of the file already on the instance is kept and used as part of the new deployment. 
 
-    
- override_alarm_configuration(AlarmConfiguration)/- set_override_alarm_configuration(Option<AlarmConfiguration>):
 required: false- Allows you to specify information about alarms associated with a deployment. The alarm configuration that you specify here will override the alarm configuration at the deployment group level. Consider overriding the alarm configuration if you have set up alarms at the deployment group level that are causing deployment failures. In this case, you would call - CreateDeploymentto create a new deployment that uses a previous application revision that is known to work, and set its alarm configuration to turn off alarm polling. Turning off alarm polling ensures that the new deployment proceeds without being blocked by the alarm that was generated by the previous, failed, deployment.- If you specify an - overrideAlarmConfiguration, you need the- UpdateDeploymentGroupIAM permission when calling- CreateDeployment.
 
- On success, responds with CreateDeploymentOutputwith field(s):- deployment_id(Option<String>):- The unique ID of a deployment. 
 
- On failure, responds with SdkError<CreateDeploymentError>
Source§impl Client
 
impl Client
Sourcepub fn create_deployment_config(&self) -> CreateDeploymentConfigFluentBuilder
 
pub fn create_deployment_config(&self) -> CreateDeploymentConfigFluentBuilder
Constructs a fluent builder for the CreateDeploymentConfig operation.
- The fluent builder is configurable:
- deployment_config_name(impl Into<String>)/- set_deployment_config_name(Option<String>):
 required: true- The name of the deployment configuration to create. 
- minimum_healthy_hosts(MinimumHealthyHosts)/- set_minimum_healthy_hosts(Option<MinimumHealthyHosts>):
 required: false- The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value. - The type parameter takes either of the following values: -    HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value. 
-    FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, CodeDeploy converts the percentage to the equivalent number of instances and rounds up fractional instances. 
 - The value parameter takes an integer. - For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95. 
-    
- traffic_routing_config(TrafficRoutingConfig)/- set_traffic_routing_config(Option<TrafficRoutingConfig>):
 required: false- The configuration that specifies how the deployment traffic is routed. 
- compute_platform(ComputePlatform)/- set_compute_platform(Option<ComputePlatform>):
 required: false- The destination platform type for the deployment ( - Lambda,- Server, or- ECS).
- zonal_config(ZonalConfig)/- set_zonal_config(Option<ZonalConfig>):
 required: false- Configure the - ZonalConfigobject if you want CodeDeploy to deploy your application to one Availability Zone at a time, within an Amazon Web Services Region.- For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide. 
 
- On success, responds with CreateDeploymentConfigOutputwith field(s):- deployment_config_id(Option<String>):- A unique deployment configuration ID. 
 
- On failure, responds with SdkError<CreateDeploymentConfigError>
Source§impl Client
 
impl Client
Sourcepub fn create_deployment_group(&self) -> CreateDeploymentGroupFluentBuilder
 
pub fn create_deployment_group(&self) -> CreateDeploymentGroupFluentBuilder
Constructs a fluent builder for the CreateDeploymentGroup operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- deployment_group_name(impl Into<String>)/- set_deployment_group_name(Option<String>):
 required: true- The name of a new deployment group for the specified application. 
- deployment_config_name(impl Into<String>)/- set_deployment_config_name(Option<String>):
 required: false- If specified, the deployment configuration name can be either one of the predefined configurations provided with CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration operation. - CodeDeployDefault.OneAtATimeis the default deployment configuration. It is used if a configuration isn’t specified for the deployment or deployment group.- For more information about the predefined deployment configurations in CodeDeploy, see Working with Deployment Configurations in CodeDeploy in the CodeDeploy User Guide. 
- ec2_tag_filters(Ec2TagFilter)/- set_ec2_tag_filters(Option<Vec::<Ec2TagFilter>>):
 required: false- The Amazon EC2 tags on which to filter. The deployment group includes Amazon EC2 instances with any of the specified tags. Cannot be used in the same call as ec2TagSet. 
- on_premises_instance_tag_filters(TagFilter)/- set_on_premises_instance_tag_filters(Option<Vec::<TagFilter>>):
 required: false- The on-premises instance tags on which to filter. The deployment group includes on-premises instances with any of the specified tags. Cannot be used in the same call as - OnPremisesTagSet.
- auto_scaling_groups(impl Into<String>)/- set_auto_scaling_groups(Option<Vec::<String>>):
 required: false- A list of associated Amazon EC2 Auto Scaling groups. 
- service_role_arn(impl Into<String>)/- set_service_role_arn(Option<String>):
 required: true- A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user’s behalf when interacting with Amazon Web Services services. 
- trigger_configurations(TriggerConfig)/- set_trigger_configurations(Option<Vec::<TriggerConfig>>):
 required: false- Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an CodeDeploy Event in the CodeDeploy User Guide. 
- alarm_configuration(AlarmConfiguration)/- set_alarm_configuration(Option<AlarmConfiguration>):
 required: false- Information to add about Amazon CloudWatch alarms when the deployment group is created. 
- auto_rollback_configuration(AutoRollbackConfiguration)/- set_auto_rollback_configuration(Option<AutoRollbackConfiguration>):
 required: false- Configuration information for an automatic rollback that is added when a deployment group is created. 
- outdated_instances_strategy(OutdatedInstancesStrategy)/- set_outdated_instances_strategy(Option<OutdatedInstancesStrategy>):
 required: false- Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision. - If this option is set to - UPDATEor is unspecified, CodeDeploy initiates one or more ‘auto-update outdated instances’ deployments to apply the deployed application revision to the new Amazon EC2 instances.- If this option is set to - IGNORE, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.
- deployment_style(DeploymentStyle)/- set_deployment_style(Option<DeploymentStyle>):
 required: false- Information about the type of deployment, in-place or blue/green, that you want to run and whether to route deployment traffic behind a load balancer. 
- blue_green_deployment_configuration(BlueGreenDeploymentConfiguration)/- set_blue_green_deployment_configuration(Option<BlueGreenDeploymentConfiguration>):
 required: false- Information about blue/green deployment options for a deployment group. 
- load_balancer_info(LoadBalancerInfo)/- set_load_balancer_info(Option<LoadBalancerInfo>):
 required: false- Information about the load balancer used in a deployment. 
- ec2_tag_set(Ec2TagSet)/- set_ec2_tag_set(Option<Ec2TagSet>):
 required: false- Information about groups of tags applied to Amazon EC2 instances. The deployment group includes only Amazon EC2 instances identified by all the tag groups. Cannot be used in the same call as - ec2TagFilters.
- ecs_services(EcsService)/- set_ecs_services(Option<Vec::<EcsService>>):
 required: false- The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name pair using the format - : 
- on_premises_tag_set(OnPremisesTagSet)/- set_on_premises_tag_set(Option<OnPremisesTagSet>):
 required: false- Information about groups of tags applied to on-premises instances. The deployment group includes only on-premises instances identified by all of the tag groups. Cannot be used in the same call as - onPremisesInstanceTagFilters.
- tags(Tag)/- set_tags(Option<Vec::<Tag>>):
 required: false- The metadata that you apply to CodeDeploy deployment groups to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define. 
- termination_hook_enabled(bool)/- set_termination_hook_enabled(Option<bool>):
 required: false- This parameter only applies if you are using CodeDeploy with Amazon EC2 Auto Scaling. For more information, see Integrating CodeDeploy with Amazon EC2 Auto Scaling in the CodeDeploy User Guide. - Set - terminationHookEnabledto- trueto have CodeDeploy install a termination hook into your Auto Scaling group when you create a deployment group. When this hook is installed, CodeDeploy will perform termination deployments.- For information about termination deployments, see Enabling termination deployments during Auto Scaling scale-in events in the CodeDeploy User Guide. - For more information about Auto Scaling scale-in events, see the Scale in topic in the Amazon EC2 Auto Scaling User Guide. 
 
- On success, responds with CreateDeploymentGroupOutputwith field(s):- deployment_group_id(Option<String>):- A unique deployment group ID. 
 
- On failure, responds with SdkError<CreateDeploymentGroupError>
Source§impl Client
 
impl Client
Sourcepub fn delete_application(&self) -> DeleteApplicationFluentBuilder
 
pub fn delete_application(&self) -> DeleteApplicationFluentBuilder
Constructs a fluent builder for the DeleteApplication operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
 
- On success, responds with DeleteApplicationOutput
- On failure, responds with SdkError<DeleteApplicationError>
Source§impl Client
 
impl Client
Sourcepub fn delete_deployment_config(&self) -> DeleteDeploymentConfigFluentBuilder
 
pub fn delete_deployment_config(&self) -> DeleteDeploymentConfigFluentBuilder
Constructs a fluent builder for the DeleteDeploymentConfig operation.
- The fluent builder is configurable:
- deployment_config_name(impl Into<String>)/- set_deployment_config_name(Option<String>):
 required: true- The name of a deployment configuration associated with the user or Amazon Web Services account. 
 
- On success, responds with DeleteDeploymentConfigOutput
- On failure, responds with SdkError<DeleteDeploymentConfigError>
Source§impl Client
 
impl Client
Sourcepub fn delete_deployment_group(&self) -> DeleteDeploymentGroupFluentBuilder
 
pub fn delete_deployment_group(&self) -> DeleteDeploymentGroupFluentBuilder
Constructs a fluent builder for the DeleteDeploymentGroup operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- deployment_group_name(impl Into<String>)/- set_deployment_group_name(Option<String>):
 required: true- The name of a deployment group for the specified application. 
 
- On success, responds with DeleteDeploymentGroupOutputwith field(s):- hooks_not_cleaned_up(Option<Vec::<AutoScalingGroup>>):- If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the Amazon EC2 instances in the Auto Scaling group. If the output contains data, CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the Amazon EC2 instances in the Auto Scaling group. 
 
- On failure, responds with SdkError<DeleteDeploymentGroupError>
Source§impl Client
 
impl Client
Sourcepub fn delete_git_hub_account_token(
    &self,
) -> DeleteGitHubAccountTokenFluentBuilder
 
pub fn delete_git_hub_account_token( &self, ) -> DeleteGitHubAccountTokenFluentBuilder
Constructs a fluent builder for the DeleteGitHubAccountToken operation.
- The fluent builder is configurable:
- token_name(impl Into<String>)/- set_token_name(Option<String>):
 required: false- The name of the GitHub account connection to delete. 
 
- On success, responds with DeleteGitHubAccountTokenOutputwith field(s):- token_name(Option<String>):- The name of the GitHub account connection that was deleted. 
 
- On failure, responds with SdkError<DeleteGitHubAccountTokenError>
Source§impl Client
 
impl Client
Sourcepub fn delete_resources_by_external_id(
    &self,
) -> DeleteResourcesByExternalIdFluentBuilder
 
pub fn delete_resources_by_external_id( &self, ) -> DeleteResourcesByExternalIdFluentBuilder
Constructs a fluent builder for the DeleteResourcesByExternalId operation.
- The fluent builder is configurable:
- external_id(impl Into<String>)/- set_external_id(Option<String>):
 required: false- The unique ID of an external resource (for example, a CloudFormation stack ID) that is linked to one or more CodeDeploy resources. 
 
- On success, responds with DeleteResourcesByExternalIdOutput
- On failure, responds with SdkError<DeleteResourcesByExternalIdError>
Source§impl Client
 
impl Client
Sourcepub fn deregister_on_premises_instance(
    &self,
) -> DeregisterOnPremisesInstanceFluentBuilder
 
pub fn deregister_on_premises_instance( &self, ) -> DeregisterOnPremisesInstanceFluentBuilder
Constructs a fluent builder for the DeregisterOnPremisesInstance operation.
- The fluent builder is configurable:
- instance_name(impl Into<String>)/- set_instance_name(Option<String>):
 required: true- The name of the on-premises instance to deregister. 
 
- On success, responds with DeregisterOnPremisesInstanceOutput
- On failure, responds with SdkError<DeregisterOnPremisesInstanceError>
Source§impl Client
 
impl Client
Sourcepub fn get_application(&self) -> GetApplicationFluentBuilder
 
pub fn get_application(&self) -> GetApplicationFluentBuilder
Constructs a fluent builder for the GetApplication operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
 
- On success, responds with GetApplicationOutputwith field(s):- application(Option<ApplicationInfo>):- Information about the application. 
 
- On failure, responds with SdkError<GetApplicationError>
Source§impl Client
 
impl Client
Sourcepub fn get_application_revision(&self) -> GetApplicationRevisionFluentBuilder
 
pub fn get_application_revision(&self) -> GetApplicationRevisionFluentBuilder
Constructs a fluent builder for the GetApplicationRevision operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of the application that corresponds to the revision. 
- revision(RevisionLocation)/- set_revision(Option<RevisionLocation>):
 required: true- Information about the application revision to get, including type and location. 
 
- On success, responds with GetApplicationRevisionOutputwith field(s):- application_name(Option<String>):- The name of the application that corresponds to the revision. 
- revision(Option<RevisionLocation>):- Additional information about the revision, including type and location. 
- revision_info(Option<GenericRevisionInfo>):- General information about the revision. 
 
- On failure, responds with SdkError<GetApplicationRevisionError>
Source§impl Client
 
impl Client
Sourcepub fn get_deployment(&self) -> GetDeploymentFluentBuilder
 
pub fn get_deployment(&self) -> GetDeploymentFluentBuilder
Constructs a fluent builder for the GetDeployment operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment associated with the user or Amazon Web Services account. 
 
- On success, responds with GetDeploymentOutputwith field(s):- deployment_info(Option<DeploymentInfo>):- Information about the deployment. 
 
- On failure, responds with SdkError<GetDeploymentError>
Source§impl Client
 
impl Client
Sourcepub fn get_deployment_config(&self) -> GetDeploymentConfigFluentBuilder
 
pub fn get_deployment_config(&self) -> GetDeploymentConfigFluentBuilder
Constructs a fluent builder for the GetDeploymentConfig operation.
- The fluent builder is configurable:
- deployment_config_name(impl Into<String>)/- set_deployment_config_name(Option<String>):
 required: true- The name of a deployment configuration associated with the user or Amazon Web Services account. 
 
- On success, responds with GetDeploymentConfigOutputwith field(s):- deployment_config_info(Option<DeploymentConfigInfo>):- Information about the deployment configuration. 
 
- On failure, responds with SdkError<GetDeploymentConfigError>
Source§impl Client
 
impl Client
Sourcepub fn get_deployment_group(&self) -> GetDeploymentGroupFluentBuilder
 
pub fn get_deployment_group(&self) -> GetDeploymentGroupFluentBuilder
Constructs a fluent builder for the GetDeploymentGroup operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- deployment_group_name(impl Into<String>)/- set_deployment_group_name(Option<String>):
 required: true- The name of a deployment group for the specified application. 
 
- On success, responds with GetDeploymentGroupOutputwith field(s):- deployment_group_info(Option<DeploymentGroupInfo>):- Information about the deployment group. 
 
- On failure, responds with SdkError<GetDeploymentGroupError>
Source§impl Client
 
impl Client
Sourcepub fn get_deployment_instance(&self) -> GetDeploymentInstanceFluentBuilder
 👎Deprecated: This operation is deprecated, use GetDeploymentTarget instead.
pub fn get_deployment_instance(&self) -> GetDeploymentInstanceFluentBuilder
Constructs a fluent builder for the GetDeploymentInstance operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- instance_id(impl Into<String>)/- set_instance_id(Option<String>):
 required: true- The unique ID of an instance in the deployment group. 
 
- On success, responds with GetDeploymentInstanceOutputwith field(s):- instance_summary(Option<InstanceSummary>):- Information about the instance. 
 
- On failure, responds with SdkError<GetDeploymentInstanceError>
Source§impl Client
 
impl Client
Sourcepub fn get_deployment_target(&self) -> GetDeploymentTargetFluentBuilder
 
pub fn get_deployment_target(&self) -> GetDeploymentTargetFluentBuilder
Constructs a fluent builder for the GetDeploymentTarget operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- target_id(impl Into<String>)/- set_target_id(Option<String>):
 required: true- The unique ID of a deployment target. 
 
- On success, responds with GetDeploymentTargetOutputwith field(s):- deployment_target(Option<DeploymentTarget>):- A deployment target that contains information about a deployment such as its status, lifecycle events, and when it was last updated. It also contains metadata about the deployment target. The deployment target metadata depends on the deployment target’s type ( - instanceTarget,- lambdaTarget, or- ecsTarget).
 
- On failure, responds with SdkError<GetDeploymentTargetError>
Source§impl Client
 
impl Client
Sourcepub fn get_on_premises_instance(&self) -> GetOnPremisesInstanceFluentBuilder
 
pub fn get_on_premises_instance(&self) -> GetOnPremisesInstanceFluentBuilder
Constructs a fluent builder for the GetOnPremisesInstance operation.
- The fluent builder is configurable:
- instance_name(impl Into<String>)/- set_instance_name(Option<String>):
 required: true- The name of the on-premises instance about which to get information. 
 
- On success, responds with GetOnPremisesInstanceOutputwith field(s):- instance_info(Option<InstanceInfo>):- Information about the on-premises instance. 
 
- On failure, responds with SdkError<GetOnPremisesInstanceError>
Source§impl Client
 
impl Client
Sourcepub fn list_application_revisions(
    &self,
) -> ListApplicationRevisionsFluentBuilder
 
pub fn list_application_revisions( &self, ) -> ListApplicationRevisionsFluentBuilder
Constructs a fluent builder for the ListApplicationRevisions operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- sort_by(ApplicationRevisionSortBy)/- set_sort_by(Option<ApplicationRevisionSortBy>):
 required: false- The column name to use to sort the list results: -    registerTime: Sort by the time the revisions were registered with CodeDeploy.
-    firstUsedTime: Sort by the time the revisions were first used in a deployment.
-    lastUsedTime: Sort by the time the revisions were last used in a deployment.
 - If not specified or set to null, the results are returned in an arbitrary order. 
-    
- sort_order(SortOrder)/- set_sort_order(Option<SortOrder>):
 required: false- The order in which to sort the list results: -    ascending: ascending order.
-    descending: descending order.
 - If not specified, the results are sorted in ascending order. - If set to null, the results are sorted in an arbitrary order. 
-    
- s3_bucket(impl Into<String>)/- set_s3_bucket(Option<String>):
 required: false- An Amazon S3 bucket name to limit the search for revisions. - If set to null, all of the user’s buckets are searched. 
- s3_key_prefix(impl Into<String>)/- set_s3_key_prefix(Option<String>):
 required: false- A key prefix for the set of Amazon S3 objects to limit the search for revisions. 
- deployed(ListStateFilterAction)/- set_deployed(Option<ListStateFilterAction>):
 required: false- Whether to list revisions based on whether the revision is the target revision of a deployment group: -    include: List revisions that are target revisions of a deployment group.
-    exclude: Do not list revisions that are target revisions of a deployment group.
-    ignore: List all revisions.
 
-    
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous - ListApplicationRevisionscall. It can be used to return the next set of applications in the list.
 
- On success, responds with ListApplicationRevisionsOutputwith field(s):- revisions(Option<Vec::<RevisionLocation>>):- A list of locations that contain the matching revisions. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list. 
 
- On failure, responds with SdkError<ListApplicationRevisionsError>
Source§impl Client
 
impl Client
Sourcepub fn list_applications(&self) -> ListApplicationsFluentBuilder
 
pub fn list_applications(&self) -> ListApplicationsFluentBuilder
Constructs a fluent builder for the ListApplications operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous list applications call. It can be used to return the next set of applications in the list. 
 
- On success, responds with ListApplicationsOutputwith field(s):- applications(Option<Vec::<String>>):- A list of application names. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list applications call to return the next set of applications in the list. 
 
- On failure, responds with SdkError<ListApplicationsError>
Source§impl Client
 
impl Client
Sourcepub fn list_deployment_configs(&self) -> ListDeploymentConfigsFluentBuilder
 
pub fn list_deployment_configs(&self) -> ListDeploymentConfigsFluentBuilder
Constructs a fluent builder for the ListDeploymentConfigs operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous - ListDeploymentConfigscall. It can be used to return the next set of deployment configurations in the list.
 
- On success, responds with ListDeploymentConfigsOutputwith field(s):- deployment_configs_list(Option<Vec::<String>>):- A list of deployment configurations, including built-in configurations such as - CodeDeployDefault.OneAtATime.
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment configurations call to return the next set of deployment configurations in the list. 
 
- On failure, responds with SdkError<ListDeploymentConfigsError>
Source§impl Client
 
impl Client
Sourcepub fn list_deployment_groups(&self) -> ListDeploymentGroupsFluentBuilder
 
pub fn list_deployment_groups(&self) -> ListDeploymentGroupsFluentBuilder
Constructs a fluent builder for the ListDeploymentGroups operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous list deployment groups call. It can be used to return the next set of deployment groups in the list. 
 
- On success, responds with ListDeploymentGroupsOutputwith field(s):- application_name(Option<String>):- The application name. 
- deployment_groups(Option<Vec::<String>>):- A list of deployment group names. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment groups call to return the next set of deployment groups in the list. 
 
- On failure, responds with SdkError<ListDeploymentGroupsError>
Source§impl Client
 
impl Client
Sourcepub fn list_deployment_instances(&self) -> ListDeploymentInstancesFluentBuilder
 👎Deprecated: This operation is deprecated, use ListDeploymentTargets instead.
pub fn list_deployment_instances(&self) -> ListDeploymentInstancesFluentBuilder
Constructs a fluent builder for the ListDeploymentInstances operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous list deployment instances call. It can be used to return the next set of deployment instances in the list. 
- instance_status_filter(InstanceStatus)/- set_instance_status_filter(Option<Vec::<InstanceStatus>>):
 required: false- A subset of instances to list by status: -    Pending: Include those instances with pending deployments.
-    InProgress: Include those instances where deployments are still in progress.
-    Succeeded: Include those instances with successful deployments.
-    Failed: Include those instances with failed deployments.
-    Skipped: Include those instances with skipped deployments.
-    Unknown: Include those instances with deployments in an unknown state.
 
-    
- instance_type_filter(InstanceType)/- set_instance_type_filter(Option<Vec::<InstanceType>>):
 required: false- The set of instances in a blue/green deployment, either those in the original environment (“BLUE”) or those in the replacement environment (“GREEN”), for which you want to view instance information. 
 
- On success, responds with ListDeploymentInstancesOutputwith field(s):- instances_list(Option<Vec::<String>>):- A list of instance IDs. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployment instances call to return the next set of deployment instances in the list. 
 
- On failure, responds with SdkError<ListDeploymentInstancesError>
Source§impl Client
 
impl Client
Sourcepub fn list_deployment_targets(&self) -> ListDeploymentTargetsFluentBuilder
 
pub fn list_deployment_targets(&self) -> ListDeploymentTargetsFluentBuilder
Constructs a fluent builder for the ListDeploymentTargets operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- A token identifier returned from the previous - ListDeploymentTargetscall. It can be used to return the next set of deployment targets in the list.
- target_filters(TargetFilterName, Vec::<String>)/- set_target_filters(Option<HashMap::<TargetFilterName, Vec::<String>>>):
 required: false- A key used to filter the returned targets. The two valid values are: -    TargetStatus- ATargetStatusfilter string can beFailed,InProgress,Pending,Ready,Skipped,Succeeded, orUnknown.
-    ServerInstanceLabel- AServerInstanceLabelfilter string can beBlueorGreen.
 
-    
 
- On success, responds with ListDeploymentTargetsOutputwith field(s):- target_ids(Option<Vec::<String>>):- The unique IDs of deployment targets. 
- next_token(Option<String>):- If a large amount of information is returned, a token identifier is also returned. It can be used in a subsequent - ListDeploymentTargetscall to return the next set of deployment targets in the list.
 
- On failure, responds with SdkError<ListDeploymentTargetsError>
Source§impl Client
 
impl Client
Sourcepub fn list_deployments(&self) -> ListDeploymentsFluentBuilder
 
pub fn list_deployments(&self) -> ListDeploymentsFluentBuilder
Constructs a fluent builder for the ListDeployments operation.
This operation supports pagination; See into_paginator().
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: false- The name of an CodeDeploy application associated with the user or Amazon Web Services account. - If - applicationNameis specified, then- deploymentGroupNamemust be specified. If it is not specified, then- deploymentGroupNamemust not be specified.
- deployment_group_name(impl Into<String>)/- set_deployment_group_name(Option<String>):
 required: false- The name of a deployment group for the specified application. - If - deploymentGroupNameis specified, then- applicationNamemust be specified. If it is not specified, then- applicationNamemust not be specified.
- external_id(impl Into<String>)/- set_external_id(Option<String>):
 required: false- The unique ID of an external resource for returning deployments linked to the external resource. 
- include_only_statuses(DeploymentStatus)/- set_include_only_statuses(Option<Vec::<DeploymentStatus>>):
 required: false- A subset of deployments to list by status: -    Created: Include created deployments in the resulting list.
-    Queued: Include queued deployments in the resulting list.
-    In Progress: Include in-progress deployments in the resulting list.
-    Succeeded: Include successful deployments in the resulting list.
-    Failed: Include failed deployments in the resulting list.
-    Stopped: Include stopped deployments in the resulting list.
 
-    
- create_time_range(TimeRange)/- set_create_time_range(Option<TimeRange>):
 required: false- A time range (start and end) for returning a subset of the list of deployments. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous list deployments call. It can be used to return the next set of deployments in the list. 
 
- On success, responds with ListDeploymentsOutputwith field(s):- deployments(Option<Vec::<String>>):- A list of deployment IDs. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list deployments call to return the next set of deployments in the list. 
 
- On failure, responds with SdkError<ListDeploymentsError>
Source§impl Client
 
impl Client
Sourcepub fn list_git_hub_account_token_names(
    &self,
) -> ListGitHubAccountTokenNamesFluentBuilder
 
pub fn list_git_hub_account_token_names( &self, ) -> ListGitHubAccountTokenNamesFluentBuilder
Constructs a fluent builder for the ListGitHubAccountTokenNames operation.
- The fluent builder is configurable:
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous - ListGitHubAccountTokenNamescall. It can be used to return the next set of names in the list.
 
- On success, responds with ListGitHubAccountTokenNamesOutputwith field(s):- token_name_list(Option<Vec::<String>>):- A list of names of connections to GitHub accounts. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent - ListGitHubAccountTokenNamescall to return the next set of names in the list.
 
- On failure, responds with SdkError<ListGitHubAccountTokenNamesError>
Source§impl Client
 
impl Client
Sourcepub fn list_on_premises_instances(&self) -> ListOnPremisesInstancesFluentBuilder
 
pub fn list_on_premises_instances(&self) -> ListOnPremisesInstancesFluentBuilder
Constructs a fluent builder for the ListOnPremisesInstances operation.
- The fluent builder is configurable:
- registration_status(RegistrationStatus)/- set_registration_status(Option<RegistrationStatus>):
 required: false- The registration status of the on-premises instances: -    Deregistered: Include deregistered on-premises instances in the resulting list.
-    Registered: Include registered on-premises instances in the resulting list.
 
-    
- tag_filters(TagFilter)/- set_tag_filters(Option<Vec::<TagFilter>>):
 required: false- The on-premises instance tags that are used to restrict the on-premises instance names returned. 
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous list on-premises instances call. It can be used to return the next set of on-premises instances in the list. 
 
- On success, responds with ListOnPremisesInstancesOutputwith field(s):- instance_names(Option<Vec::<String>>):- The list of matching on-premises instance names. 
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list on-premises instances call to return the next set of on-premises instances in the list. 
 
- On failure, responds with SdkError<ListOnPremisesInstancesError>
Source§impl Client
 
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
- resource_arn(impl Into<String>)/- set_resource_arn(Option<String>):
 required: true- The ARN of a CodeDeploy resource. - ListTagsForResourcereturns all the tags associated with the resource that is identified by the- ResourceArn.
- next_token(impl Into<String>)/- set_next_token(Option<String>):
 required: false- An identifier returned from the previous - ListTagsForResourcecall. It can be used to return the next set of applications in the list.
 
- On success, responds with ListTagsForResourceOutputwith field(s):- tags(Option<Vec::<Tag>>):- A list of tags returned by - ListTagsForResource. The tags are associated with the resource identified by the input- ResourceArnparameter.
- next_token(Option<String>):- If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list. 
 
- On failure, responds with SdkError<ListTagsForResourceError>
Source§impl Client
 
impl Client
Sourcepub fn put_lifecycle_event_hook_execution_status(
    &self,
) -> PutLifecycleEventHookExecutionStatusFluentBuilder
 
pub fn put_lifecycle_event_hook_execution_status( &self, ) -> PutLifecycleEventHookExecutionStatusFluentBuilder
Constructs a fluent builder for the PutLifecycleEventHookExecutionStatus operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: false- The unique ID of a deployment. Pass this ID to a Lambda function that validates a deployment lifecycle event. 
- lifecycle_event_hook_execution_id(impl Into<String>)/- set_lifecycle_event_hook_execution_id(Option<String>):
 required: false- The execution ID of a deployment’s lifecycle hook. A deployment lifecycle hook is specified in the - hookssection of the AppSpec file.
- status(LifecycleEventStatus)/- set_status(Option<LifecycleEventStatus>):
 required: false- The result of a Lambda function that validates a deployment lifecycle event. The values listed in Valid Values are valid for lifecycle statuses in general; however, only - Succeededand- Failedcan be passed successfully in your API call.
 
- On success, responds with PutLifecycleEventHookExecutionStatusOutputwith field(s):- lifecycle_event_hook_execution_id(Option<String>):- The execution ID of the lifecycle event hook. A hook is specified in the - hookssection of the deployment’s AppSpec file.
 
- On failure, responds with SdkError<PutLifecycleEventHookExecutionStatusError>
Source§impl Client
 
impl Client
Sourcepub fn register_application_revision(
    &self,
) -> RegisterApplicationRevisionFluentBuilder
 
pub fn register_application_revision( &self, ) -> RegisterApplicationRevisionFluentBuilder
Constructs a fluent builder for the RegisterApplicationRevision operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The name of an CodeDeploy application associated with the user or Amazon Web Services account. 
- description(impl Into<String>)/- set_description(Option<String>):
 required: false- A comment about the revision. 
- revision(RevisionLocation)/- set_revision(Option<RevisionLocation>):
 required: true- Information about the application revision to register, including type and location. 
 
- On success, responds with RegisterApplicationRevisionOutput
- On failure, responds with SdkError<RegisterApplicationRevisionError>
Source§impl Client
 
impl Client
Sourcepub fn register_on_premises_instance(
    &self,
) -> RegisterOnPremisesInstanceFluentBuilder
 
pub fn register_on_premises_instance( &self, ) -> RegisterOnPremisesInstanceFluentBuilder
Constructs a fluent builder for the RegisterOnPremisesInstance operation.
- The fluent builder is configurable:
- instance_name(impl Into<String>)/- set_instance_name(Option<String>):
 required: true- The name of the on-premises instance to register. 
- iam_session_arn(impl Into<String>)/- set_iam_session_arn(Option<String>):
 required: false- The ARN of the IAM session to associate with the on-premises instance. 
- iam_user_arn(impl Into<String>)/- set_iam_user_arn(Option<String>):
 required: false- The ARN of the user to associate with the on-premises instance. 
 
- On success, responds with RegisterOnPremisesInstanceOutput
- On failure, responds with SdkError<RegisterOnPremisesInstanceError>
Source§impl Client
 
impl Client
Constructs a fluent builder for the RemoveTagsFromOnPremisesInstances operation.
- The fluent builder is configurable:
- tags(Tag)/- set_tags(Option<Vec::<Tag>>):
 required: true- The tag key-value pairs to remove from the on-premises instances. 
- instance_names(impl Into<String>)/- set_instance_names(Option<Vec::<String>>):
 required: true- The names of the on-premises instances from which to remove tags. 
 
- On success, responds with RemoveTagsFromOnPremisesInstancesOutput
- On failure, responds with SdkError<RemoveTagsFromOnPremisesInstancesError>
Source§impl Client
 
impl Client
Sourcepub fn skip_wait_time_for_instance_termination(
    &self,
) -> SkipWaitTimeForInstanceTerminationFluentBuilder
 👎Deprecated: This operation is deprecated, use ContinueDeployment with DeploymentWaitType instead.
pub fn skip_wait_time_for_instance_termination( &self, ) -> SkipWaitTimeForInstanceTerminationFluentBuilder
Constructs a fluent builder for the SkipWaitTimeForInstanceTermination operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: false- The unique ID of a blue/green deployment for which you want to skip the instance termination wait time. 
 
- On success, responds with SkipWaitTimeForInstanceTerminationOutput
- On failure, responds with SdkError<SkipWaitTimeForInstanceTerminationError>
Source§impl Client
 
impl Client
Sourcepub fn stop_deployment(&self) -> StopDeploymentFluentBuilder
 
pub fn stop_deployment(&self) -> StopDeploymentFluentBuilder
Constructs a fluent builder for the StopDeployment operation.
- The fluent builder is configurable:
- deployment_id(impl Into<String>)/- set_deployment_id(Option<String>):
 required: true- The unique ID of a deployment. 
- auto_rollback_enabled(bool)/- set_auto_rollback_enabled(Option<bool>):
 required: false- Indicates, when a deployment is stopped, whether instances that have been updated should be rolled back to the previous version of the application revision. 
 
- On success, responds with StopDeploymentOutputwith field(s):- status(Option<StopStatus>):- The status of the stop deployment operation: -    Pending: The stop operation is pending. 
-    Succeeded: The stop operation was successful. 
 
-    
- status_message(Option<String>):- An accompanying status message. 
 
- On failure, responds with SdkError<StopDeploymentError>
Source§impl Client
 
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
 
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
- resource_arn(impl Into<String>)/- set_resource_arn(Option<String>):
 required: true- The ARN of a resource, such as a CodeDeploy application or deployment group. 
- tags(Tag)/- set_tags(Option<Vec::<Tag>>):
 required: true- A list of tags that - TagResourceassociates with a resource. The resource is identified by the- ResourceArninput parameter.
 
- On success, responds with TagResourceOutput
- On failure, responds with SdkError<TagResourceError>
Source§impl Client
 
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
 
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
- resource_arn(impl Into<String>)/- set_resource_arn(Option<String>):
 required: true- The Amazon Resource Name (ARN) that specifies from which resource to disassociate the tags with the keys in the - TagKeysinput parameter.
- tag_keys(impl Into<String>)/- set_tag_keys(Option<Vec::<String>>):
 required: true- A list of keys of - Tagobjects. The- Tagobjects identified by the keys are disassociated from the resource specified by the- ResourceArninput parameter.
 
- On success, responds with UntagResourceOutput
- On failure, responds with SdkError<UntagResourceError>
Source§impl Client
 
impl Client
Sourcepub fn update_application(&self) -> UpdateApplicationFluentBuilder
 
pub fn update_application(&self) -> UpdateApplicationFluentBuilder
Constructs a fluent builder for the UpdateApplication operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: false- The current name of the application you want to change. 
- new_application_name(impl Into<String>)/- set_new_application_name(Option<String>):
 required: false- The new name to give the application. 
 
- On success, responds with UpdateApplicationOutput
- On failure, responds with SdkError<UpdateApplicationError>
Source§impl Client
 
impl Client
Sourcepub fn update_deployment_group(&self) -> UpdateDeploymentGroupFluentBuilder
 
pub fn update_deployment_group(&self) -> UpdateDeploymentGroupFluentBuilder
Constructs a fluent builder for the UpdateDeploymentGroup operation.
- The fluent builder is configurable:
- application_name(impl Into<String>)/- set_application_name(Option<String>):
 required: true- The application name that corresponds to the deployment group to update. 
- current_deployment_group_name(impl Into<String>)/- set_current_deployment_group_name(Option<String>):
 required: true- The current name of the deployment group. 
- new_deployment_group_name(impl Into<String>)/- set_new_deployment_group_name(Option<String>):
 required: false- The new name of the deployment group, if you want to change it. 
- deployment_config_name(impl Into<String>)/- set_deployment_config_name(Option<String>):
 required: false- The replacement deployment configuration name to use, if you want to change it. 
- ec2_tag_filters(Ec2TagFilter)/- set_ec2_tag_filters(Option<Vec::<Ec2TagFilter>>):
 required: false- The replacement set of Amazon EC2 tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names. 
- on_premises_instance_tag_filters(TagFilter)/- set_on_premises_instance_tag_filters(Option<Vec::<TagFilter>>):
 required: false- The replacement set of on-premises instance tags on which to filter, if you want to change them. To keep the existing tags, enter their names. To remove tags, do not enter any tag names. 
- auto_scaling_groups(impl Into<String>)/- set_auto_scaling_groups(Option<Vec::<String>>):
 required: false- The replacement list of Auto Scaling groups to be included in the deployment group, if you want to change them. -    To keep the Auto Scaling groups, enter their names or do not specify this parameter. 
-    To remove Auto Scaling groups, specify a non-null empty list of Auto Scaling group names to detach all CodeDeploy-managed Auto Scaling lifecycle hooks. For examples, see Amazon EC2 instances in an Amazon EC2 Auto Scaling group fail to launch and receive the error “Heartbeat Timeout” in the CodeDeploy User Guide. 
 
-    
- service_role_arn(impl Into<String>)/- set_service_role_arn(Option<String>):
 required: false- A replacement ARN for the service role, if you want to change it. 
- trigger_configurations(TriggerConfig)/- set_trigger_configurations(Option<Vec::<TriggerConfig>>):
 required: false- Information about triggers to change when the deployment group is updated. For examples, see Edit a Trigger in a CodeDeploy Deployment Group in the CodeDeploy User Guide. 
- alarm_configuration(AlarmConfiguration)/- set_alarm_configuration(Option<AlarmConfiguration>):
 required: false- Information to add or change about Amazon CloudWatch alarms when the deployment group is updated. 
- auto_rollback_configuration(AutoRollbackConfiguration)/- set_auto_rollback_configuration(Option<AutoRollbackConfiguration>):
 required: false- Information for an automatic rollback configuration that is added or changed when a deployment group is updated. 
- outdated_instances_strategy(OutdatedInstancesStrategy)/- set_outdated_instances_strategy(Option<OutdatedInstancesStrategy>):
 required: false- Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision. - If this option is set to - UPDATEor is unspecified, CodeDeploy initiates one or more ‘auto-update outdated instances’ deployments to apply the deployed application revision to the new Amazon EC2 instances.- If this option is set to - IGNORE, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.
- deployment_style(DeploymentStyle)/- set_deployment_style(Option<DeploymentStyle>):
 required: false- Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer. 
- blue_green_deployment_configuration(BlueGreenDeploymentConfiguration)/- set_blue_green_deployment_configuration(Option<BlueGreenDeploymentConfiguration>):
 required: false- Information about blue/green deployment options for a deployment group. 
- load_balancer_info(LoadBalancerInfo)/- set_load_balancer_info(Option<LoadBalancerInfo>):
 required: false- Information about the load balancer used in a deployment. 
- ec2_tag_set(Ec2TagSet)/- set_ec2_tag_set(Option<Ec2TagSet>):
 required: false- Information about groups of tags applied to on-premises instances. The deployment group includes only Amazon EC2 instances identified by all the tag groups. 
- ecs_services(EcsService)/- set_ecs_services(Option<Vec::<EcsService>>):
 required: false- The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name pair using the format - : 
- on_premises_tag_set(OnPremisesTagSet)/- set_on_premises_tag_set(Option<OnPremisesTagSet>):
 required: false- Information about an on-premises instance tag set. The deployment group includes only on-premises instances identified by all the tag groups. 
- termination_hook_enabled(bool)/- set_termination_hook_enabled(Option<bool>):
 required: false- This parameter only applies if you are using CodeDeploy with Amazon EC2 Auto Scaling. For more information, see Integrating CodeDeploy with Amazon EC2 Auto Scaling in the CodeDeploy User Guide. - Set - terminationHookEnabledto- trueto have CodeDeploy install a termination hook into your Auto Scaling group when you update a deployment group. When this hook is installed, CodeDeploy will perform termination deployments.- For information about termination deployments, see Enabling termination deployments during Auto Scaling scale-in events in the CodeDeploy User Guide. - For more information about Auto Scaling scale-in events, see the Scale in topic in the Amazon EC2 Auto Scaling User Guide. 
 
- On success, responds with UpdateDeploymentGroupOutputwith field(s):- hooks_not_cleaned_up(Option<Vec::<AutoScalingGroup>>):- If the output contains no data, and the corresponding deployment group contained at least one Auto Scaling group, CodeDeploy successfully removed all corresponding Auto Scaling lifecycle event hooks from the Amazon Web Services account. If the output contains data, CodeDeploy could not remove some Auto Scaling lifecycle event hooks from the Amazon Web Services account. 
 
- On failure, responds with SdkError<UpdateDeploymentGroupError>
Source§impl Client
 
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
 
pub fn from_conf(conf: Config) -> Self
Creates a new client from the service Config.
§Panics
This method will panic in the following cases:
- Retries or timeouts are enabled without a sleep_implconfigured.
- Identity caching is enabled without a sleep_implandtime_sourceconfigured.
- No behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
 
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
 
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it.
- This method will panic if the sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it.
- This method will panic if no BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
Source§impl Waiters for Client
 
impl Waiters for Client
Source§fn wait_until_deployment_successful(&self) -> DeploymentSuccessfulFluentBuilder
 
fn wait_until_deployment_successful(&self) -> DeploymentSuccessfulFluentBuilder
deployment_successfulAuto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
    T: ?Sized,
 
impl<T> Paint for Twhere
    T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
 
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
 
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
 
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
 
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
 
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
 
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
 
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
 
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
 
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
 
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
 
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
 
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
 
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
 
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
 
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
 
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
 
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
 
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
 
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
 
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
 
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
 
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
 
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
 👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
 
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);