Class CfnLayerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.opsworks.CfnLayerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayerMixinProps>
- Enclosing interface:
CfnLayerMixinProps
@Stability(Stable)
public static final class CfnLayerMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayerMixinProps>
A builder for
CfnLayerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(Map<String, String> attributes) Sets the value ofCfnLayerMixinProps.getAttributes()attributes(IResolvable attributes) Sets the value ofCfnLayerMixinProps.getAttributes()autoAssignElasticIps(Boolean autoAssignElasticIps) Sets the value ofCfnLayerMixinProps.getAutoAssignElasticIps()autoAssignElasticIps(IResolvable autoAssignElasticIps) Sets the value ofCfnLayerMixinProps.getAutoAssignElasticIps()autoAssignPublicIps(Boolean autoAssignPublicIps) Sets the value ofCfnLayerMixinProps.getAutoAssignPublicIps()autoAssignPublicIps(IResolvable autoAssignPublicIps) Sets the value ofCfnLayerMixinProps.getAutoAssignPublicIps()build()Builds the configured instance.customInstanceProfileArn(String customInstanceProfileArn) Sets the value ofCfnLayerMixinProps.getCustomInstanceProfileArn()customJson(Object customJson) Sets the value ofCfnLayerMixinProps.getCustomJson()customRecipes(CfnLayerPropsMixin.RecipesProperty customRecipes) Sets the value ofCfnLayerMixinProps.getCustomRecipes()customRecipes(IResolvable customRecipes) Sets the value ofCfnLayerMixinProps.getCustomRecipes()customSecurityGroupIds(List<String> customSecurityGroupIds) Sets the value ofCfnLayerMixinProps.getCustomSecurityGroupIds()enableAutoHealing(Boolean enableAutoHealing) Sets the value ofCfnLayerMixinProps.getEnableAutoHealing()enableAutoHealing(IResolvable enableAutoHealing) Sets the value ofCfnLayerMixinProps.getEnableAutoHealing()installUpdatesOnBoot(Boolean installUpdatesOnBoot) Sets the value ofCfnLayerMixinProps.getInstallUpdatesOnBoot()installUpdatesOnBoot(IResolvable installUpdatesOnBoot) Sets the value ofCfnLayerMixinProps.getInstallUpdatesOnBoot()lifecycleEventConfiguration(CfnLayerPropsMixin.LifecycleEventConfigurationProperty lifecycleEventConfiguration) Sets the value ofCfnLayerMixinProps.getLifecycleEventConfiguration()lifecycleEventConfiguration(IResolvable lifecycleEventConfiguration) Sets the value ofCfnLayerMixinProps.getLifecycleEventConfiguration()loadBasedAutoScaling(CfnLayerPropsMixin.LoadBasedAutoScalingProperty loadBasedAutoScaling) Sets the value ofCfnLayerMixinProps.getLoadBasedAutoScaling()loadBasedAutoScaling(IResolvable loadBasedAutoScaling) Sets the value ofCfnLayerMixinProps.getLoadBasedAutoScaling()Sets the value ofCfnLayerMixinProps.getName()Sets the value ofCfnLayerMixinProps.getPackages()Sets the value ofCfnLayerMixinProps.getShortname()Sets the value ofCfnLayerMixinProps.getStackId()Sets the value ofCfnLayerMixinProps.getTags()Sets the value ofCfnLayerMixinProps.getType()useEbsOptimizedInstances(Boolean useEbsOptimizedInstances) Sets the value ofCfnLayerMixinProps.getUseEbsOptimizedInstances()useEbsOptimizedInstances(IResolvable useEbsOptimizedInstances) Sets the value ofCfnLayerMixinProps.getUseEbsOptimizedInstances()volumeConfigurations(List<? extends Object> volumeConfigurations) Sets the value ofCfnLayerMixinProps.getVolumeConfigurations()volumeConfigurations(IResolvable volumeConfigurations) Sets the value ofCfnLayerMixinProps.getVolumeConfigurations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributes
Sets the value ofCfnLayerMixinProps.getAttributes()- Parameters:
attributes- One or more user-defined key-value pairs to be added to the stack attributes. To create a cluster layer, set theEcsClusterArnattribute to the cluster's ARN.- Returns:
this
-
attributes
Sets the value ofCfnLayerMixinProps.getAttributes()- Parameters:
attributes- One or more user-defined key-value pairs to be added to the stack attributes. To create a cluster layer, set theEcsClusterArnattribute to the cluster's ARN.- Returns:
this
-
autoAssignElasticIps
@Stability(Stable) public CfnLayerMixinProps.Builder autoAssignElasticIps(Boolean autoAssignElasticIps) Sets the value ofCfnLayerMixinProps.getAutoAssignElasticIps()- Parameters:
autoAssignElasticIps- Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer .- Returns:
this
-
autoAssignElasticIps
@Stability(Stable) public CfnLayerMixinProps.Builder autoAssignElasticIps(IResolvable autoAssignElasticIps) Sets the value ofCfnLayerMixinProps.getAutoAssignElasticIps()- Parameters:
autoAssignElasticIps- Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer .- Returns:
this
-
autoAssignPublicIps
@Stability(Stable) public CfnLayerMixinProps.Builder autoAssignPublicIps(Boolean autoAssignPublicIps) Sets the value ofCfnLayerMixinProps.getAutoAssignPublicIps()- Parameters:
autoAssignPublicIps- For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. For more information, see How to Edit a Layer .- Returns:
this
-
autoAssignPublicIps
@Stability(Stable) public CfnLayerMixinProps.Builder autoAssignPublicIps(IResolvable autoAssignPublicIps) Sets the value ofCfnLayerMixinProps.getAutoAssignPublicIps()- Parameters:
autoAssignPublicIps- For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. For more information, see How to Edit a Layer .- Returns:
this
-
customInstanceProfileArn
@Stability(Stable) public CfnLayerMixinProps.Builder customInstanceProfileArn(String customInstanceProfileArn) Sets the value ofCfnLayerMixinProps.getCustomInstanceProfileArn()- Parameters:
customInstanceProfileArn- The ARN of an IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers .- Returns:
this
-
customJson
Sets the value ofCfnLayerMixinProps.getCustomJson()- Parameters:
customJson- A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the layer's instances. For more information, see Using Custom JSON . This feature is supported as of version 1.7.42 of the AWS CLI .- Returns:
this
-
customRecipes
Sets the value ofCfnLayerMixinProps.getCustomRecipes()- Parameters:
customRecipes- ALayerCustomRecipesobject that specifies the layer custom recipes.- Returns:
this
-
customRecipes
@Stability(Stable) public CfnLayerMixinProps.Builder customRecipes(CfnLayerPropsMixin.RecipesProperty customRecipes) Sets the value ofCfnLayerMixinProps.getCustomRecipes()- Parameters:
customRecipes- ALayerCustomRecipesobject that specifies the layer custom recipes.- Returns:
this
-
customSecurityGroupIds
@Stability(Stable) public CfnLayerMixinProps.Builder customSecurityGroupIds(List<String> customSecurityGroupIds) Sets the value ofCfnLayerMixinProps.getCustomSecurityGroupIds()- Parameters:
customSecurityGroupIds- An array containing the layer custom security group IDs.- Returns:
this
-
enableAutoHealing
Sets the value ofCfnLayerMixinProps.getEnableAutoHealing()- Parameters:
enableAutoHealing- Whether to disable auto healing for the layer.- Returns:
this
-
enableAutoHealing
@Stability(Stable) public CfnLayerMixinProps.Builder enableAutoHealing(IResolvable enableAutoHealing) Sets the value ofCfnLayerMixinProps.getEnableAutoHealing()- Parameters:
enableAutoHealing- Whether to disable auto healing for the layer.- Returns:
this
-
installUpdatesOnBoot
@Stability(Stable) public CfnLayerMixinProps.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot) Sets the value ofCfnLayerMixinProps.getInstallUpdatesOnBoot()- Parameters:
installUpdatesOnBoot- Whether to install operating system and package updates when the instance boots. The default value istrue. To control when updates are installed, set this value tofalse. You must then update your instances manually by usingCreateDeploymentto run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.To ensure that your instances have the latest security updates, we strongly recommend using the default value of
true.- Returns:
this
-
installUpdatesOnBoot
@Stability(Stable) public CfnLayerMixinProps.Builder installUpdatesOnBoot(IResolvable installUpdatesOnBoot) Sets the value ofCfnLayerMixinProps.getInstallUpdatesOnBoot()- Parameters:
installUpdatesOnBoot- Whether to install operating system and package updates when the instance boots. The default value istrue. To control when updates are installed, set this value tofalse. You must then update your instances manually by usingCreateDeploymentto run theupdate_dependenciesstack command or by manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.To ensure that your instances have the latest security updates, we strongly recommend using the default value of
true.- Returns:
this
-
lifecycleEventConfiguration
@Stability(Stable) public CfnLayerMixinProps.Builder lifecycleEventConfiguration(IResolvable lifecycleEventConfiguration) Sets the value ofCfnLayerMixinProps.getLifecycleEventConfiguration()- Parameters:
lifecycleEventConfiguration- ALifeCycleEventConfigurationobject that you can use to configure the Shutdown event to specify an execution timeout and enable or disable Elastic Load Balancer connection draining.- Returns:
this
-
lifecycleEventConfiguration
@Stability(Stable) public CfnLayerMixinProps.Builder lifecycleEventConfiguration(CfnLayerPropsMixin.LifecycleEventConfigurationProperty lifecycleEventConfiguration) Sets the value ofCfnLayerMixinProps.getLifecycleEventConfiguration()- Parameters:
lifecycleEventConfiguration- ALifeCycleEventConfigurationobject that you can use to configure the Shutdown event to specify an execution timeout and enable or disable Elastic Load Balancer connection draining.- Returns:
this
-
loadBasedAutoScaling
@Stability(Stable) public CfnLayerMixinProps.Builder loadBasedAutoScaling(IResolvable loadBasedAutoScaling) Sets the value ofCfnLayerMixinProps.getLoadBasedAutoScaling()- Parameters:
loadBasedAutoScaling- The load-based scaling configuration for the OpsWorks layer.- Returns:
this
-
loadBasedAutoScaling
@Stability(Stable) public CfnLayerMixinProps.Builder loadBasedAutoScaling(CfnLayerPropsMixin.LoadBasedAutoScalingProperty loadBasedAutoScaling) Sets the value ofCfnLayerMixinProps.getLoadBasedAutoScaling()- Parameters:
loadBasedAutoScaling- The load-based scaling configuration for the OpsWorks layer.- Returns:
this
-
name
Sets the value ofCfnLayerMixinProps.getName()- Parameters:
name- The layer name, which is used by the console. Layer names can be a maximum of 32 characters.- Returns:
this
-
packages
Sets the value ofCfnLayerMixinProps.getPackages()- Parameters:
packages- An array ofPackageobjects that describes the layer packages.- Returns:
this
-
shortname
Sets the value ofCfnLayerMixinProps.getShortname()- Parameters:
shortname- For custom layers only, use this parameter to specify the layer's short name, which is used internally by OpsWorks Stacks and by Chef recipes. The short name is also used as the name for the directory where your app files are installed. It can have a maximum of 32 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.Built-in layer short names are defined by OpsWorks Stacks. For more information, see the Layer Reference .
- Returns:
this
-
stackId
Sets the value ofCfnLayerMixinProps.getStackId()- Parameters:
stackId- The layer stack ID.- Returns:
this
-
tags
Sets the value ofCfnLayerMixinProps.getTags()- Parameters:
tags- Specifies one or more sets of tags (key–value pairs) to associate with this OpsWorks layer. Use tags to manage your resources.- Returns:
this
-
type
Sets the value ofCfnLayerMixinProps.getType()- Parameters:
type- The layer type. A stack cannot have more than one built-in layer of the same type. It can have any number of custom layers. Built-in layers are not available in Chef 12 stacks.- Returns:
this
-
useEbsOptimizedInstances
@Stability(Stable) public CfnLayerMixinProps.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances) Sets the value ofCfnLayerMixinProps.getUseEbsOptimizedInstances()- Parameters:
useEbsOptimizedInstances- Whether to use Amazon EBS-optimized instances.- Returns:
this
-
useEbsOptimizedInstances
@Stability(Stable) public CfnLayerMixinProps.Builder useEbsOptimizedInstances(IResolvable useEbsOptimizedInstances) Sets the value ofCfnLayerMixinProps.getUseEbsOptimizedInstances()- Parameters:
useEbsOptimizedInstances- Whether to use Amazon EBS-optimized instances.- Returns:
this
-
volumeConfigurations
@Stability(Stable) public CfnLayerMixinProps.Builder volumeConfigurations(IResolvable volumeConfigurations) Sets the value ofCfnLayerMixinProps.getVolumeConfigurations()- Parameters:
volumeConfigurations- AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.- Returns:
this
-
volumeConfigurations
@Stability(Stable) public CfnLayerMixinProps.Builder volumeConfigurations(List<? extends Object> volumeConfigurations) Sets the value ofCfnLayerMixinProps.getVolumeConfigurations()- Parameters:
volumeConfigurations- AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayerMixinProps>- Returns:
- a new instance of
CfnLayerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-