Struct aws_sdk_codedeploy::client::Client
source · 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 that can be set on the Config that
is absent from SdkConfig, or slightly different settings for a specific client may be desired.
The Config 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.
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: trueThe 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: trueThe 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: trueThe name of an CodeDeploy application about which to get revision information.
revisions(RevisionLocation)/set_revisions(Option<Vec::<RevisionLocation>>):
required: trueAn array of
RevisionLocationobjects that specify information to get about the application revisions, including type and location. The maximum number ofRevisionLocationobjects 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: trueA 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: trueThe 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: trueThe 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: trueThe unique ID of a deployment.
instance_ids(impl Into<String>)/set_instance_ids(Option<Vec::<String>>):
required: trueThe 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: trueThe unique ID of a deployment.
target_ids(impl Into<String>)/set_target_ids(Option<Vec::<String>>):
required: trueThe 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
. Their target type is: 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: trueA 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: trueThe 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: falseThe 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: falseThe 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: trueThe 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: falseThe destination platform type for the deployment (
Lambda,Server, orECS).tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: falseThe 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: trueThe 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: falseThe name of the deployment group.
revision(RevisionLocation)/set_revision(Option<RevisionLocation>):
required: falseThe type and location of the revision to deploy.
deployment_config_name(impl Into<String>)/set_deployment_config_name(Option<String>):
required: falseThe 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: falseA comment about the deployment.
ignore_application_stop_failures(bool)/set_ignore_application_stop_failures(Option<bool>):
required: falseIf true, then if an
ApplicationStop,BeforeBlockTraffic, orAfterBlockTrafficdeployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, ifApplicationStopfails, the deployment continues withDownloadBundle. IfBeforeBlockTrafficfails, the deployment continues withBlockTraffic. IfAfterBlockTrafficfails, the deployment continues withApplicationStop.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, andAfterBlockTrafficin 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 theApplicationStop,BeforeBlockTraffic, andAfterBlockTrafficfailures should be ignored.target_instances(TargetInstances)/set_target_instances(Option<TargetInstances>):
required: falseInformation 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: falseConfiguration 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: falseIndicates 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: falseInformation 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: falseAllows 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 theUpdateDeploymentGroupIAM permission when callingCreateDeployment.
- 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: trueThe name of the deployment configuration to create.
minimum_healthy_hosts(MinimumHealthyHosts)/set_minimum_healthy_hosts(Option<MinimumHealthyHosts>):
required: falseThe 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: falseThe configuration that specifies how the deployment traffic is routed.
compute_platform(ComputePlatform)/set_compute_platform(Option<ComputePlatform>):
required: falseThe destination platform type for the deployment (
Lambda,Server, orECS).zonal_config(ZonalConfig)/set_zonal_config(Option<ZonalConfig>):
required: falseConfigure 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: trueThe 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: trueThe name of a new deployment group for the specified application.
deployment_config_name(impl Into<String>)/set_deployment_config_name(Option<String>):
required: falseIf 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: falseThe 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: falseThe 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: falseA list of associated Amazon EC2 Auto Scaling groups.
service_role_arn(impl Into<String>)/set_service_role_arn(Option<String>):
required: trueA 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: falseInformation 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: falseInformation to add about Amazon CloudWatch alarms when the deployment group is created.
auto_rollback_configuration(AutoRollbackConfiguration)/set_auto_rollback_configuration(Option<AutoRollbackConfiguration>):
required: falseConfiguration 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: falseIndicates 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: falseInformation 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: falseInformation about blue/green deployment options for a deployment group.
load_balancer_info(LoadBalancerInfo)/set_load_balancer_info(Option<LoadBalancerInfo>):
required: falseInformation about the load balancer used in a deployment.
ec2_tag_set(Ec2TagSet)/set_ec2_tag_set(Option<Ec2TagSet>):
required: falseInformation 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: falseThe 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: falseInformation 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: falseThe 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: falseThis 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
terminationHookEnabledtotrueto 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: trueThe 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: trueThe 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: trueThe 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: trueThe 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: falseThe 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: falseThe 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: trueThe 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: trueThe 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: trueThe name of the application that corresponds to the revision.
revision(RevisionLocation)/set_revision(Option<RevisionLocation>):
required: trueInformation 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: trueThe 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: trueThe 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: trueThe 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: trueThe 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: trueThe unique ID of a deployment.
instance_id(impl Into<String>)/set_instance_id(Option<String>):
required: trueThe 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: trueThe unique ID of a deployment.
target_id(impl Into<String>)/set_target_id(Option<String>):
required: trueThe 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, orecsTarget).
- 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: trueThe 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: trueThe name of an CodeDeploy application associated with the user or Amazon Web Services account.
sort_by(ApplicationRevisionSortBy)/set_sort_by(Option<ApplicationRevisionSortBy>):
required: falseThe 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: falseThe 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: falseAn 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: falseA key prefix for the set of Amazon S3 objects to limit the search for revisions.
deployed(ListStateFilterAction)/set_deployed(Option<ListStateFilterAction>):
required: falseWhether 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: falseAn 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: falseAn 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: falseAn 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: trueThe 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: falseAn 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: trueThe unique ID of a deployment.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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: falseA 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: falseThe 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: trueThe unique ID of a deployment.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseA 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: falseA 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: falseThe name of an CodeDeploy application associated with the user or Amazon Web Services account.
If
applicationNameis specified, thendeploymentGroupNamemust be specified. If it is not specified, thendeploymentGroupNamemust not be specified.deployment_group_name(impl Into<String>)/set_deployment_group_name(Option<String>):
required: falseThe name of a deployment group for the specified application.
If
deploymentGroupNameis specified, thenapplicationNamemust be specified. If it is not specified, thenapplicationNamemust not be specified.external_id(impl Into<String>)/set_external_id(Option<String>):
required: falseThe 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: falseA 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: falseA 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: falseAn 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: falseAn 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: falseThe 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: falseThe 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: falseAn 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: trueThe ARN of a CodeDeploy resource.
ListTagsForResourcereturns all the tags associated with the resource that is identified by theResourceArn.next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseAn 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 inputResourceArnparameter.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: falseThe 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: falseThe 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: falseThe 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
SucceededandFailedcan 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: trueThe name of an CodeDeploy application associated with the user or Amazon Web Services account.
description(impl Into<String>)/set_description(Option<String>):
required: falseA comment about the revision.
revision(RevisionLocation)/set_revision(Option<RevisionLocation>):
required: trueInformation 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: trueThe name of the on-premises instance to register.
iam_session_arn(impl Into<String>)/set_iam_session_arn(Option<String>):
required: falseThe 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: falseThe 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: trueThe tag key-value pairs to remove from the on-premises instances.
instance_names(impl Into<String>)/set_instance_names(Option<Vec::<String>>):
required: trueThe 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: falseThe 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: trueThe unique ID of a deployment.
auto_rollback_enabled(bool)/set_auto_rollback_enabled(Option<bool>):
required: falseIndicates, 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: trueThe ARN of a resource, such as a CodeDeploy application or deployment group.
tags(Tag)/set_tags(Option<Vec::<Tag>>):
required: trueA list of tags that
TagResourceassociates with a resource. The resource is identified by theResourceArninput 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: trueThe 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: trueA list of keys of
Tagobjects. TheTagobjects identified by the keys are disassociated from the resource specified by theResourceArninput 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: falseThe current name of the application you want to change.
new_application_name(impl Into<String>)/set_new_application_name(Option<String>):
required: falseThe 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: trueThe 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: trueThe current name of the deployment group.
new_deployment_group_name(impl Into<String>)/set_new_deployment_group_name(Option<String>):
required: falseThe 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: falseThe replacement deployment configuration name to use, if you want to change it.
ec2_tag_filters(Ec2TagFilter)/set_ec2_tag_filters(Option<Vec::<Ec2TagFilter>>):
required: falseThe 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: falseThe 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: falseThe 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: falseA replacement ARN for the service role, if you want to change it.
trigger_configurations(TriggerConfig)/set_trigger_configurations(Option<Vec::<TriggerConfig>>):
required: falseInformation 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: falseInformation 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: falseInformation 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: falseIndicates 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: falseInformation 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: falseInformation about blue/green deployment options for a deployment group.
load_balancer_info(LoadBalancerInfo)/set_load_balancer_info(Option<LoadBalancerInfo>):
required: falseInformation about the load balancer used in a deployment.
ec2_tag_set(Ec2TagSet)/set_ec2_tag_set(Option<Ec2TagSet>):
required: falseInformation 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: falseThe 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: falseInformation 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: falseThis 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
terminationHookEnabledtotrueto 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.