Class CreateDeploymentConfigRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codedeploy.model.CodeDeployRequest
-
- software.amazon.awssdk.services.codedeploy.model.CreateDeploymentConfigRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateDeploymentConfigRequest.Builder,CreateDeploymentConfigRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateDeploymentConfigRequest extends CodeDeployRequest implements ToCopyableBuilder<CreateDeploymentConfigRequest.Builder,CreateDeploymentConfigRequest>
Represents the input of a
CreateDeploymentConfigoperation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateDeploymentConfigRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateDeploymentConfigRequest.Builderbuilder()ComputePlatformcomputePlatform()The destination platform type for the deployment (Lambda,Server, orECS).StringcomputePlatformAsString()The destination platform type for the deployment (Lambda,Server, orECS).StringdeploymentConfigName()The name of the deployment configuration to create.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MinimumHealthyHostsminimumHealthyHosts()The minimum number of healthy instances that should be available at any time during the deployment.List<SdkField<?>>sdkFields()static Class<? extends CreateDeploymentConfigRequest.Builder>serializableBuilderClass()CreateDeploymentConfigRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.TrafficRoutingConfigtrafficRoutingConfig()The configuration that specifies how the deployment traffic is routed.ZonalConfigzonalConfig()Configure theZonalConfigobject if you want CodeDeploy to deploy your application to one Availability Zone at a time, within an Amazon Web Services Region.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
deploymentConfigName
public final String deploymentConfigName()
The name of the deployment configuration to create.
- Returns:
- The name of the deployment configuration to create.
-
minimumHealthyHosts
public final MinimumHealthyHosts minimumHealthyHosts()
The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
-
HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
-
FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, CodeDeploy converts the percentage to the equivalent number of instances and rounds up fractional instances.
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
- Returns:
- The minimum number of healthy instances that should be available at any time during the deployment. There
are two parameters expected in the input: type and value.
The type parameter takes either of the following values:
-
HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
-
FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, CodeDeploy converts the percentage to the equivalent number of instances and rounds up fractional instances.
The value parameter takes an integer.
For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
-
-
-
trafficRoutingConfig
public final TrafficRoutingConfig trafficRoutingConfig()
The configuration that specifies how the deployment traffic is routed.
- Returns:
- The configuration that specifies how the deployment traffic is routed.
-
computePlatform
public final ComputePlatform computePlatform()
The destination platform type for the deployment (
Lambda,Server, orECS).If the service returns an enum value that is not available in the current SDK version,
computePlatformwill returnComputePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomputePlatformAsString().- Returns:
- The destination platform type for the deployment (
Lambda,Server, orECS). - See Also:
ComputePlatform
-
computePlatformAsString
public final String computePlatformAsString()
The destination platform type for the deployment (
Lambda,Server, orECS).If the service returns an enum value that is not available in the current SDK version,
computePlatformwill returnComputePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomputePlatformAsString().- Returns:
- The destination platform type for the deployment (
Lambda,Server, orECS). - See Also:
ComputePlatform
-
zonalConfig
public final ZonalConfig zonalConfig()
Configure the
ZonalConfigobject if you want CodeDeploy to deploy your application to one Availability Zone at a time, within an Amazon Web Services Region.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
- Returns:
- Configure the
ZonalConfigobject if you want CodeDeploy to deploy your application to one Availability Zone at a time, within an Amazon Web Services Region.For more information about the zonal configuration feature, see zonal configuration in the CodeDeploy User Guide.
-
toBuilder
public CreateDeploymentConfigRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateDeploymentConfigRequest.Builder,CreateDeploymentConfigRequest>- Specified by:
toBuilderin classCodeDeployRequest
-
builder
public static CreateDeploymentConfigRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateDeploymentConfigRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-