Class CfnDeploymentConfigPropsMixin

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.codedeploy.CfnDeploymentConfigPropsMixin
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable, software.constructs.IMixin

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-03-11T13:19:57.276Z") @Stability(Stable) public class CfnDeploymentConfigPropsMixin extends Mixin implements software.constructs.IMixin
The AWS::CodeDeploy::DeploymentConfig resource creates a set of deployment rules, deployment success conditions, and deployment failure conditions that AWS CodeDeploy uses during a deployment.

The deployment configuration specifies the number or percentage of instances that must remain available at any time during a deployment.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.cfnpropertymixins.services.codedeploy.*;
 import software.amazon.awscdk.*;
 IMergeStrategy mergeStrategy;
 CfnDeploymentConfigPropsMixin cfnDeploymentConfigPropsMixin = CfnDeploymentConfigPropsMixin.Builder.create(CfnDeploymentConfigMixinProps.builder()
         .computePlatform("computePlatform")
         .deploymentConfigName("deploymentConfigName")
         .minimumHealthyHosts(MinimumHealthyHostsProperty.builder()
                 .type("type")
                 .value(123)
                 .build())
         .trafficRoutingConfig(TrafficRoutingConfigProperty.builder()
                 .timeBasedCanary(TimeBasedCanaryProperty.builder()
                         .canaryInterval(123)
                         .canaryPercentage(123)
                         .build())
                 .timeBasedLinear(TimeBasedLinearProperty.builder()
                         .linearInterval(123)
                         .linearPercentage(123)
                         .build())
                 .type("type")
                 .build())
         .zonalConfig(ZonalConfigProperty.builder()
                 .firstZoneMonitorDurationInSeconds(123)
                 .minimumHealthyHostsPerZone(MinimumHealthyHostsPerZoneProperty.builder()
                         .type("type")
                         .value(123)
                         .build())
                 .monitorDurationInSeconds(123)
                 .build())
         .build())
 .strategy(mergeStrategy)
 .build();
 

See Also:
  • Field Details

    • CFN_PROPERTY_KEYS

      @Stability(Stable) protected static final List<String> CFN_PROPERTY_KEYS
  • Constructor Details

    • CfnDeploymentConfigPropsMixin

      protected CfnDeploymentConfigPropsMixin(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDeploymentConfigPropsMixin

      protected CfnDeploymentConfigPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDeploymentConfigPropsMixin

      @Stability(Stable) public CfnDeploymentConfigPropsMixin(@NotNull CfnDeploymentConfigMixinProps props, @Nullable CfnPropertyMixinOptions options)
      Create a mixin to apply properties to AWS::CodeDeploy::DeploymentConfig.

      Parameters:
      props - L1 properties to apply. This parameter is required.
      options - Mixin options.
    • CfnDeploymentConfigPropsMixin

      @Stability(Stable) public CfnDeploymentConfigPropsMixin(@NotNull CfnDeploymentConfigMixinProps props)
      Create a mixin to apply properties to AWS::CodeDeploy::DeploymentConfig.

      Parameters:
      props - L1 properties to apply. This parameter is required.
  • Method Details

    • applyTo

      @Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct)
      Apply the mixin properties to the construct.

      Specified by:
      applyTo in interface software.constructs.IMixin
      Specified by:
      applyTo in class Mixin
      Parameters:
      construct - This parameter is required.
    • supports

      @Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct)
      Check if this mixin supports the given construct.

      Specified by:
      supports in interface software.constructs.IMixin
      Overrides:
      supports in class Mixin
      Parameters:
      construct - This parameter is required.
    • getProps

      @Stability(Stable) @NotNull protected CfnDeploymentConfigMixinProps getProps()
    • getStrategy

      @Stability(Stable) @NotNull protected IMergeStrategy getStrategy()