@Stability(value=Stable) public static final class CfnLayerProps.Builder extends Object implements software.amazon.jsii.Builder<CfnLayerProps>
CfnLayerProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLayerProps.Builder autoAssignElasticIps(Boolean autoAssignElasticIps)
CfnLayerProps.getAutoAssignElasticIps()autoAssignElasticIps - Whether to automatically assign an [Elastic IP address](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) to the layer's instances. For more information, see [How to Edit a Layer](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) . This parameter is required.this@Stability(value=Stable) public CfnLayerProps.Builder autoAssignElasticIps(IResolvable autoAssignElasticIps)
CfnLayerProps.getAutoAssignElasticIps()autoAssignElasticIps - Whether to automatically assign an [Elastic IP address](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/elastic-ip-addresses-eip.html) to the layer's instances. For more information, see [How to Edit a Layer](https://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-edit.html) . This parameter is required.this@Stability(value=Stable) public CfnLayerProps.Builder autoAssignPublicIps(Boolean autoAssignPublicIps)
CfnLayerProps.getAutoAssignPublicIps()autoAssignPublicIps - For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. This parameter is required.
For more information, see How to Edit a Layer .this@Stability(value=Stable) public CfnLayerProps.Builder autoAssignPublicIps(IResolvable autoAssignPublicIps)
CfnLayerProps.getAutoAssignPublicIps()autoAssignPublicIps - For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances. This parameter is required.
For more information, see How to Edit a Layer .this@Stability(value=Stable) public CfnLayerProps.Builder enableAutoHealing(Boolean enableAutoHealing)
CfnLayerProps.getEnableAutoHealing()enableAutoHealing - Whether to disable auto healing for the layer. This parameter is required.this@Stability(value=Stable) public CfnLayerProps.Builder enableAutoHealing(IResolvable enableAutoHealing)
CfnLayerProps.getEnableAutoHealing()enableAutoHealing - Whether to disable auto healing for the layer. This parameter is required.this@Stability(value=Stable) public CfnLayerProps.Builder name(String name)
CfnLayerProps.getName()name - The layer name, which is used by the console. This parameter is required.
Layer names can be a maximum of 32 characters.this@Stability(value=Stable) public CfnLayerProps.Builder shortname(String shortname)
CfnLayerProps.getShortname()shortname - For custom layers only, use this parameter to specify the layer's short name, which is used internally by AWS OpsWorks Stacks and by Chef recipes. This parameter is required.
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 AWS OpsWorks Stacks. For more information, see the Layer Reference .
this@Stability(value=Stable) public CfnLayerProps.Builder stackId(String stackId)
CfnLayerProps.getStackId()stackId - The layer stack ID. This parameter is required.this@Stability(value=Stable) public CfnLayerProps.Builder type(String type)
CfnLayerProps.getType()type - The layer type. This parameter is required.
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.this@Stability(value=Stable) public CfnLayerProps.Builder attributes(IResolvable attributes)
CfnLayerProps.getAttributes()attributes - One or more user-defined key-value pairs to be added to the stack attributes.
To create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN.this@Stability(value=Stable) public CfnLayerProps.Builder attributes(Map<String,String> attributes)
CfnLayerProps.getAttributes()attributes - One or more user-defined key-value pairs to be added to the stack attributes.
To create a cluster layer, set the EcsClusterArn attribute to the cluster's ARN.this@Stability(value=Stable) public CfnLayerProps.Builder customInstanceProfileArn(String customInstanceProfileArn)
CfnLayerProps.getCustomInstanceProfileArn()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 .this@Stability(value=Stable) public CfnLayerProps.Builder customJson(Object customJson)
CfnLayerProps.getCustomJson()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 .this@Stability(value=Stable) public CfnLayerProps.Builder customRecipes(CfnLayer.RecipesProperty customRecipes)
CfnLayerProps.getCustomRecipes()customRecipes - A `LayerCustomRecipes` object that specifies the layer custom recipes.this@Stability(value=Stable) public CfnLayerProps.Builder customRecipes(IResolvable customRecipes)
CfnLayerProps.getCustomRecipes()customRecipes - A `LayerCustomRecipes` object that specifies the layer custom recipes.this@Stability(value=Stable) public CfnLayerProps.Builder customSecurityGroupIds(List<String> customSecurityGroupIds)
CfnLayerProps.getCustomSecurityGroupIds()customSecurityGroupIds - An array containing the layer custom security group IDs.this@Stability(value=Stable) public CfnLayerProps.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot)
CfnLayerProps.getInstallUpdatesOnBoot()installUpdatesOnBoot - Whether to install operating system and package updates when the instance boots.
The default value is true . To control when updates are installed, set this value to false . You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or by manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
To ensure that your instances have the latest security updates, we strongly recommend using the default value of
true.
this@Stability(value=Stable) public CfnLayerProps.Builder installUpdatesOnBoot(IResolvable installUpdatesOnBoot)
CfnLayerProps.getInstallUpdatesOnBoot()installUpdatesOnBoot - Whether to install operating system and package updates when the instance boots.
The default value is true . To control when updates are installed, set this value to false . You must then update your instances manually by using CreateDeployment to run the update_dependencies stack command or by manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
To ensure that your instances have the latest security updates, we strongly recommend using the default value of
true.
this@Stability(value=Stable) public CfnLayerProps.Builder lifecycleEventConfiguration(CfnLayer.LifecycleEventConfigurationProperty lifecycleEventConfiguration)
CfnLayerProps.getLifecycleEventConfiguration()lifecycleEventConfiguration - A `LifeCycleEventConfiguration` object that you can use to configure the Shutdown event to specify an execution timeout and enable or disable Elastic Load Balancer connection draining.this@Stability(value=Stable) public CfnLayerProps.Builder lifecycleEventConfiguration(IResolvable lifecycleEventConfiguration)
CfnLayerProps.getLifecycleEventConfiguration()lifecycleEventConfiguration - A `LifeCycleEventConfiguration` object that you can use to configure the Shutdown event to specify an execution timeout and enable or disable Elastic Load Balancer connection draining.this@Stability(value=Stable) public CfnLayerProps.Builder loadBasedAutoScaling(CfnLayer.LoadBasedAutoScalingProperty loadBasedAutoScaling)
CfnLayerProps.getLoadBasedAutoScaling()loadBasedAutoScaling - The load-based scaling configuration for the AWS OpsWorks layer.this@Stability(value=Stable) public CfnLayerProps.Builder loadBasedAutoScaling(IResolvable loadBasedAutoScaling)
CfnLayerProps.getLoadBasedAutoScaling()loadBasedAutoScaling - The load-based scaling configuration for the AWS OpsWorks layer.this@Stability(value=Stable) public CfnLayerProps.Builder packages(List<String> packages)
CfnLayerProps.getPackages()packages - An array of `Package` objects that describes the layer packages.this@Stability(value=Stable) public CfnLayerProps.Builder tags(List<? extends CfnTag> tags)
CfnLayerProps.getTags()tags - Specifies one or more sets of tags (key–value pairs) to associate with this AWS OpsWorks layer.
Use tags to manage your resources.this@Stability(value=Stable) public CfnLayerProps.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
CfnLayerProps.getUseEbsOptimizedInstances()useEbsOptimizedInstances - Whether to use Amazon EBS-optimized instances.this@Stability(value=Stable) public CfnLayerProps.Builder useEbsOptimizedInstances(IResolvable useEbsOptimizedInstances)
CfnLayerProps.getUseEbsOptimizedInstances()useEbsOptimizedInstances - Whether to use Amazon EBS-optimized instances.this@Stability(value=Stable) public CfnLayerProps.Builder volumeConfigurations(IResolvable volumeConfigurations)
CfnLayerProps.getVolumeConfigurations()volumeConfigurations - A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.this@Stability(value=Stable) public CfnLayerProps.Builder volumeConfigurations(List<? extends Object> volumeConfigurations)
CfnLayerProps.getVolumeConfigurations()volumeConfigurations - A `VolumeConfigurations` object that describes the layer's Amazon EBS volumes.this@Stability(value=Stable) public CfnLayerProps build()
build in interface software.amazon.jsii.Builder<CfnLayerProps>CfnLayerPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.