1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub use crate::operation::create_deployment_group::_create_deployment_group_output::CreateDeploymentGroupOutputBuilder;
pub use crate::operation::create_deployment_group::_create_deployment_group_input::CreateDeploymentGroupInputBuilder;
impl CreateDeploymentGroupInputBuilder {
/// Sends a request with this input using the given client.
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_deployment_group::CreateDeploymentGroupOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_deployment_group::CreateDeploymentGroupError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_deployment_group();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
/// Fluent builder constructing a request to `CreateDeploymentGroup`.
///
/// <p>Creates a deployment group to which application revisions are deployed.</p>
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateDeploymentGroupFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_deployment_group::builders::CreateDeploymentGroupInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_deployment_group::CreateDeploymentGroupOutput,
crate::operation::create_deployment_group::CreateDeploymentGroupError,
> for CreateDeploymentGroupFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_deployment_group::CreateDeploymentGroupOutput,
crate::operation::create_deployment_group::CreateDeploymentGroupError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateDeploymentGroupFluentBuilder {
/// Creates a new `CreateDeploymentGroup`.
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
/// Access the CreateDeploymentGroup as a reference.
pub fn as_input(&self) -> &crate::operation::create_deployment_group::builders::CreateDeploymentGroupInputBuilder {
&self.inner
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_deployment_group::CreateDeploymentGroupOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_deployment_group::CreateDeploymentGroupError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_deployment_group::CreateDeploymentGroup::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_deployment_group::CreateDeploymentGroup::orchestrate(&runtime_plugins, input).await
}
/// Consumes this builder, creating a customizable operation that can be modified before being sent.
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_deployment_group::CreateDeploymentGroupOutput,
crate::operation::create_deployment_group::CreateDeploymentGroupError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
/// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
pub fn application_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.application_name(input.into());
self
}
/// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
pub fn set_application_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_application_name(input);
self
}
/// <p>The name of an CodeDeploy application associated with the user or Amazon Web Services account.</p>
pub fn get_application_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_application_name()
}
/// <p>The name of a new deployment group for the specified application.</p>
pub fn deployment_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.deployment_group_name(input.into());
self
}
/// <p>The name of a new deployment group for the specified application.</p>
pub fn set_deployment_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_deployment_group_name(input);
self
}
/// <p>The name of a new deployment group for the specified application.</p>
pub fn get_deployment_group_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_deployment_group_name()
}
/// <p>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.</p>
/// <p> <code>CodeDeployDefault.OneAtATime</code> is the default deployment configuration. It is used if a configuration isn't specified for the deployment or deployment group.</p>
/// <p>For more information about the predefined deployment configurations in CodeDeploy, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working with Deployment Configurations in CodeDeploy</a> in the <i>CodeDeploy User Guide</i>.</p>
pub fn deployment_config_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.deployment_config_name(input.into());
self
}
/// <p>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.</p>
/// <p> <code>CodeDeployDefault.OneAtATime</code> is the default deployment configuration. It is used if a configuration isn't specified for the deployment or deployment group.</p>
/// <p>For more information about the predefined deployment configurations in CodeDeploy, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working with Deployment Configurations in CodeDeploy</a> in the <i>CodeDeploy User Guide</i>.</p>
pub fn set_deployment_config_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_deployment_config_name(input);
self
}
/// <p>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.</p>
/// <p> <code>CodeDeployDefault.OneAtATime</code> is the default deployment configuration. It is used if a configuration isn't specified for the deployment or deployment group.</p>
/// <p>For more information about the predefined deployment configurations in CodeDeploy, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">Working with Deployment Configurations in CodeDeploy</a> in the <i>CodeDeploy User Guide</i>.</p>
pub fn get_deployment_config_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_deployment_config_name()
}
/// Appends an item to `ec2TagFilters`.
///
/// To override the contents of this collection use [`set_ec2_tag_filters`](Self::set_ec2_tag_filters).
///
/// <p>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.</p>
pub fn ec2_tag_filters(mut self, input: crate::types::Ec2TagFilter) -> Self {
self.inner = self.inner.ec2_tag_filters(input);
self
}
/// <p>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.</p>
pub fn set_ec2_tag_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Ec2TagFilter>>) -> Self {
self.inner = self.inner.set_ec2_tag_filters(input);
self
}
/// <p>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.</p>
pub fn get_ec2_tag_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Ec2TagFilter>> {
self.inner.get_ec2_tag_filters()
}
/// Appends an item to `onPremisesInstanceTagFilters`.
///
/// To override the contents of this collection use [`set_on_premises_instance_tag_filters`](Self::set_on_premises_instance_tag_filters).
///
/// <p>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 <code>OnPremisesTagSet</code>.</p>
pub fn on_premises_instance_tag_filters(mut self, input: crate::types::TagFilter) -> Self {
self.inner = self.inner.on_premises_instance_tag_filters(input);
self
}
/// <p>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 <code>OnPremisesTagSet</code>.</p>
pub fn set_on_premises_instance_tag_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagFilter>>) -> Self {
self.inner = self.inner.set_on_premises_instance_tag_filters(input);
self
}
/// <p>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 <code>OnPremisesTagSet</code>.</p>
pub fn get_on_premises_instance_tag_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagFilter>> {
self.inner.get_on_premises_instance_tag_filters()
}
/// Appends an item to `autoScalingGroups`.
///
/// To override the contents of this collection use [`set_auto_scaling_groups`](Self::set_auto_scaling_groups).
///
/// <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
pub fn auto_scaling_groups(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.auto_scaling_groups(input.into());
self
}
/// <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
pub fn set_auto_scaling_groups(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_auto_scaling_groups(input);
self
}
/// <p>A list of associated Amazon EC2 Auto Scaling groups.</p>
pub fn get_auto_scaling_groups(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_auto_scaling_groups()
}
/// <p>A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting with Amazon Web Services services.</p>
pub fn service_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.service_role_arn(input.into());
self
}
/// <p>A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting with Amazon Web Services services.</p>
pub fn set_service_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_service_role_arn(input);
self
}
/// <p>A service role Amazon Resource Name (ARN) that allows CodeDeploy to act on the user's behalf when interacting with Amazon Web Services services.</p>
pub fn get_service_role_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_service_role_arn()
}
/// Appends an item to `triggerConfigurations`.
///
/// To override the contents of this collection use [`set_trigger_configurations`](Self::set_trigger_configurations).
///
/// <p>Information about triggers to create when the deployment group is created. For examples, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create a Trigger for an CodeDeploy Event</a> in the <i>CodeDeploy User Guide</i>.</p>
pub fn trigger_configurations(mut self, input: crate::types::TriggerConfig) -> Self {
self.inner = self.inner.trigger_configurations(input);
self
}
/// <p>Information about triggers to create when the deployment group is created. For examples, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create a Trigger for an CodeDeploy Event</a> in the <i>CodeDeploy User Guide</i>.</p>
pub fn set_trigger_configurations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TriggerConfig>>) -> Self {
self.inner = self.inner.set_trigger_configurations(input);
self
}
/// <p>Information about triggers to create when the deployment group is created. For examples, see <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/how-to-notify-sns.html">Create a Trigger for an CodeDeploy Event</a> in the <i>CodeDeploy User Guide</i>.</p>
pub fn get_trigger_configurations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TriggerConfig>> {
self.inner.get_trigger_configurations()
}
/// <p>Information to add about Amazon CloudWatch alarms when the deployment group is created.</p>
pub fn alarm_configuration(mut self, input: crate::types::AlarmConfiguration) -> Self {
self.inner = self.inner.alarm_configuration(input);
self
}
/// <p>Information to add about Amazon CloudWatch alarms when the deployment group is created.</p>
pub fn set_alarm_configuration(mut self, input: ::std::option::Option<crate::types::AlarmConfiguration>) -> Self {
self.inner = self.inner.set_alarm_configuration(input);
self
}
/// <p>Information to add about Amazon CloudWatch alarms when the deployment group is created.</p>
pub fn get_alarm_configuration(&self) -> &::std::option::Option<crate::types::AlarmConfiguration> {
self.inner.get_alarm_configuration()
}
/// <p>Configuration information for an automatic rollback that is added when a deployment group is created.</p>
pub fn auto_rollback_configuration(mut self, input: crate::types::AutoRollbackConfiguration) -> Self {
self.inner = self.inner.auto_rollback_configuration(input);
self
}
/// <p>Configuration information for an automatic rollback that is added when a deployment group is created.</p>
pub fn set_auto_rollback_configuration(mut self, input: ::std::option::Option<crate::types::AutoRollbackConfiguration>) -> Self {
self.inner = self.inner.set_auto_rollback_configuration(input);
self
}
/// <p>Configuration information for an automatic rollback that is added when a deployment group is created.</p>
pub fn get_auto_rollback_configuration(&self) -> &::std::option::Option<crate::types::AutoRollbackConfiguration> {
self.inner.get_auto_rollback_configuration()
}
/// <p>Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision.</p>
/// <p>If this option is set to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.</p>
/// <p>If this option is set to <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.</p>
pub fn outdated_instances_strategy(mut self, input: crate::types::OutdatedInstancesStrategy) -> Self {
self.inner = self.inner.outdated_instances_strategy(input);
self
}
/// <p>Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision.</p>
/// <p>If this option is set to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.</p>
/// <p>If this option is set to <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.</p>
pub fn set_outdated_instances_strategy(mut self, input: ::std::option::Option<crate::types::OutdatedInstancesStrategy>) -> Self {
self.inner = self.inner.set_outdated_instances_strategy(input);
self
}
/// <p>Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision.</p>
/// <p>If this option is set to <code>UPDATE</code> or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.</p>
/// <p>If this option is set to <code>IGNORE</code>, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.</p>
pub fn get_outdated_instances_strategy(&self) -> &::std::option::Option<crate::types::OutdatedInstancesStrategy> {
self.inner.get_outdated_instances_strategy()
}
/// <p>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.</p>
pub fn deployment_style(mut self, input: crate::types::DeploymentStyle) -> Self {
self.inner = self.inner.deployment_style(input);
self
}
/// <p>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.</p>
pub fn set_deployment_style(mut self, input: ::std::option::Option<crate::types::DeploymentStyle>) -> Self {
self.inner = self.inner.set_deployment_style(input);
self
}
/// <p>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.</p>
pub fn get_deployment_style(&self) -> &::std::option::Option<crate::types::DeploymentStyle> {
self.inner.get_deployment_style()
}
/// <p>Information about blue/green deployment options for a deployment group.</p>
pub fn blue_green_deployment_configuration(mut self, input: crate::types::BlueGreenDeploymentConfiguration) -> Self {
self.inner = self.inner.blue_green_deployment_configuration(input);
self
}
/// <p>Information about blue/green deployment options for a deployment group.</p>
pub fn set_blue_green_deployment_configuration(mut self, input: ::std::option::Option<crate::types::BlueGreenDeploymentConfiguration>) -> Self {
self.inner = self.inner.set_blue_green_deployment_configuration(input);
self
}
/// <p>Information about blue/green deployment options for a deployment group.</p>
pub fn get_blue_green_deployment_configuration(&self) -> &::std::option::Option<crate::types::BlueGreenDeploymentConfiguration> {
self.inner.get_blue_green_deployment_configuration()
}
/// <p>Information about the load balancer used in a deployment.</p>
pub fn load_balancer_info(mut self, input: crate::types::LoadBalancerInfo) -> Self {
self.inner = self.inner.load_balancer_info(input);
self
}
/// <p>Information about the load balancer used in a deployment.</p>
pub fn set_load_balancer_info(mut self, input: ::std::option::Option<crate::types::LoadBalancerInfo>) -> Self {
self.inner = self.inner.set_load_balancer_info(input);
self
}
/// <p>Information about the load balancer used in a deployment.</p>
pub fn get_load_balancer_info(&self) -> &::std::option::Option<crate::types::LoadBalancerInfo> {
self.inner.get_load_balancer_info()
}
/// <p>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 <code>ec2TagFilters</code>.</p>
pub fn ec2_tag_set(mut self, input: crate::types::Ec2TagSet) -> Self {
self.inner = self.inner.ec2_tag_set(input);
self
}
/// <p>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 <code>ec2TagFilters</code>.</p>
pub fn set_ec2_tag_set(mut self, input: ::std::option::Option<crate::types::Ec2TagSet>) -> Self {
self.inner = self.inner.set_ec2_tag_set(input);
self
}
/// <p>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 <code>ec2TagFilters</code>.</p>
pub fn get_ec2_tag_set(&self) -> &::std::option::Option<crate::types::Ec2TagSet> {
self.inner.get_ec2_tag_set()
}
/// Appends an item to `ecsServices`.
///
/// To override the contents of this collection use [`set_ecs_services`](Self::set_ecs_services).
///
/// <p> 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 <code>
/// <clustername>
/// :
/// <servicename></servicename>
/// </clustername></code>. </p>
pub fn ecs_services(mut self, input: crate::types::EcsService) -> Self {
self.inner = self.inner.ecs_services(input);
self
}
/// <p> 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 <code>
/// <clustername>
/// :
/// <servicename></servicename>
/// </clustername></code>. </p>
pub fn set_ecs_services(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::EcsService>>) -> Self {
self.inner = self.inner.set_ecs_services(input);
self
}
/// <p> 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 <code>
/// <clustername>
/// :
/// <servicename></servicename>
/// </clustername></code>. </p>
pub fn get_ecs_services(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::EcsService>> {
self.inner.get_ecs_services()
}
/// <p>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 <code>onPremisesInstanceTagFilters</code>.</p>
pub fn on_premises_tag_set(mut self, input: crate::types::OnPremisesTagSet) -> Self {
self.inner = self.inner.on_premises_tag_set(input);
self
}
/// <p>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 <code>onPremisesInstanceTagFilters</code>.</p>
pub fn set_on_premises_tag_set(mut self, input: ::std::option::Option<crate::types::OnPremisesTagSet>) -> Self {
self.inner = self.inner.set_on_premises_tag_set(input);
self
}
/// <p>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 <code>onPremisesInstanceTagFilters</code>.</p>
pub fn get_on_premises_tag_set(&self) -> &::std::option::Option<crate::types::OnPremisesTagSet> {
self.inner.get_on_premises_tag_set()
}
/// Appends an item to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p> 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. </p>
pub fn tags(mut self, input: crate::types::Tag) -> Self {
self.inner = self.inner.tags(input);
self
}
/// <p> 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. </p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
self.inner = self.inner.set_tags(input);
self
}
/// <p> 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. </p>
pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
self.inner.get_tags()
}
}