/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the securityhub-2018-10-26.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SecurityHub.Model { /// /// Optional deployment parameters for the service. /// public partial class AwsEcsServiceDeploymentConfigurationDetails { private AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails _deploymentCircuitBreaker; private int? _maximumPercent; private int? _minimumHealthyPercent; /// /// Gets and sets the property DeploymentCircuitBreaker. /// /// Determines whether a service deployment fails if a service cannot reach a steady state. /// /// public AwsEcsServiceDeploymentConfigurationDeploymentCircuitBreakerDetails DeploymentCircuitBreaker { get { return this._deploymentCircuitBreaker; } set { this._deploymentCircuitBreaker = value; } } // Check to see if DeploymentCircuitBreaker property is set internal bool IsSetDeploymentCircuitBreaker() { return this._deploymentCircuitBreaker != null; } /// /// Gets and sets the property MaximumPercent. /// /// For a service that uses the rolling update (ECS) deployment type, the /// maximum number of tasks in a service that are allowed in the RUNNING /// or PENDING state during a deployment, and for tasks that use the EC2 /// launch type, when any container instances are in the DRAINING state. /// Provided as a percentage of the desired number of tasks. The default value is 200%. /// /// /// /// For a service that uses the blue/green (CODE_DEPLOY) or EXTERNAL /// deployment types, and tasks that use the EC2 launch type, the maximum number of tasks /// in the service that remain in the RUNNING state while the container instances /// are in the DRAINING state. /// /// /// /// For the Fargate launch type, the maximum percent value is not used. /// /// public int MaximumPercent { get { return this._maximumPercent.GetValueOrDefault(); } set { this._maximumPercent = value; } } // Check to see if MaximumPercent property is set internal bool IsSetMaximumPercent() { return this._maximumPercent.HasValue; } /// /// Gets and sets the property MinimumHealthyPercent. /// /// For a service that uses the rolling update (ECS) deployment type, the /// minimum number of tasks in a service that must remain in the RUNNING /// state during a deployment, and while any container instances are in the DRAINING /// state if the service contains tasks using the EC2 launch type. Expressed as a percentage /// of the desired number of tasks. The default value is 100%. /// /// /// /// For a service that uses the blue/green (CODE_DEPLOY) or EXTERNAL /// deployment types and tasks that use the EC2 launch type, the minimum number of the /// tasks in the service that remain in the RUNNING state while the container /// instances are in the DRAINING state. /// /// /// /// For the Fargate launch type, the minimum healthy percent value is not used. /// /// public int MinimumHealthyPercent { get { return this._minimumHealthyPercent.GetValueOrDefault(); } set { this._minimumHealthyPercent = value; } } // Check to see if MinimumHealthyPercent property is set internal bool IsSetMinimumHealthyPercent() { return this._minimumHealthyPercent.HasValue; } } }