public static interface Layer.Builder extends CopyableBuilder<Layer.Builder,Layer>
| Modifier and Type | Method and Description |
|---|---|
Layer.Builder |
arn(String arn)
Sets the value of the Arn property for this object.
|
Layer.Builder |
attributes(Map<String,String> attributes)
The layer attributes.
|
Layer.Builder |
autoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP
address to the layer's instances.
|
Layer.Builder |
autoAssignPublicIps(Boolean autoAssignPublicIps)
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's
instances.
|
Layer.Builder |
cloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
|
default Layer.Builder |
cloudWatchLogsConfiguration(Consumer<CloudWatchLogsConfiguration.Builder> cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
|
Layer.Builder |
createdAt(String createdAt)
Date when the layer was created.
|
Layer.Builder |
customInstanceProfileArn(String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2 instances.
|
Layer.Builder |
customJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
|
default Layer.Builder |
customRecipes(Consumer<Recipes.Builder> customRecipes)
A
LayerCustomRecipes object that specifies the layer's custom recipes. |
Layer.Builder |
customRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer's custom recipes. |
Layer.Builder |
customSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
Layer.Builder |
customSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
|
default Layer.Builder |
defaultRecipes(Consumer<Recipes.Builder> defaultRecipes)
Sets the value of the DefaultRecipes property for this object.
|
Layer.Builder |
defaultRecipes(Recipes defaultRecipes)
Sets the value of the DefaultRecipes property for this object.
|
Layer.Builder |
defaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer.Builder |
defaultSecurityGroupNames(String... defaultSecurityGroupNames)
An array containing the layer's security group names.
|
Layer.Builder |
enableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
|
Layer.Builder |
installUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.
|
Layer.Builder |
layerId(String layerId)
The layer ID.
|
default Layer.Builder |
lifecycleEventConfiguration(Consumer<LifecycleEventConfiguration.Builder> lifecycleEventConfiguration)
A
LifeCycleEventConfiguration object that specifies the Shutdown event configuration. |
Layer.Builder |
lifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A
LifeCycleEventConfiguration object that specifies the Shutdown event configuration. |
Layer.Builder |
name(String name)
The layer name.
|
Layer.Builder |
packages(Collection<String> packages)
An array of
Package objects that describe the layer's packages. |
Layer.Builder |
packages(String... packages)
An array of
Package objects that describe the layer's packages. |
Layer.Builder |
shortname(String shortname)
The layer short name.
|
Layer.Builder |
stackId(String stackId)
The layer stack ID.
|
Layer.Builder |
type(LayerType type)
The layer type.
|
Layer.Builder |
type(String type)
The layer type.
|
Layer.Builder |
useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
|
Layer.Builder |
volumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
Layer.Builder |
volumeConfigurations(Consumer<VolumeConfiguration.Builder>... volumeConfigurations)
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
Layer.Builder |
volumeConfigurations(VolumeConfiguration... volumeConfigurations)
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
copyapply, buildLayer.Builder arn(String arn)
arn - The new value for the Arn property for this object.Layer.Builder stackId(String stackId)
The layer stack ID.
stackId - The layer stack ID.Layer.Builder layerId(String layerId)
The layer ID.
layerId - The layer ID.Layer.Builder type(String type)
The layer type.
Layer.Builder type(LayerType type)
The layer type.
Layer.Builder name(String name)
The layer name.
name - The layer name.Layer.Builder shortname(String shortname)
The layer short name.
shortname - The layer short name.Layer.Builder attributes(Map<String,String> attributes)
The layer attributes.
For the HaproxyStatsPassword, MysqlRootPassword, and GangliaPassword
attributes, AWS OpsWorks Stacks returns *****FILTERED***** instead of the actual value
For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn attribute is set to the
cluster's ARN.
attributes - The layer attributes.
For the HaproxyStatsPassword, MysqlRootPassword, and
GangliaPassword attributes, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value
For an ECS Cluster layer, AWS OpsWorks Stacks the EcsClusterArn attribute is set to the
cluster's ARN.
Layer.Builder cloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
cloudWatchLogsConfiguration - The Amazon CloudWatch Logs configuration settings for the layer.default Layer.Builder cloudWatchLogsConfiguration(Consumer<CloudWatchLogsConfiguration.Builder> cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
This is a convenience that creates an instance of theCloudWatchLogsConfiguration.Builder avoiding
the need to create one manually via CloudWatchLogsConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to cloudWatchLogsConfiguration(CloudWatchLogsConfiguration).cloudWatchLogsConfiguration - a consumer that will call methods on CloudWatchLogsConfiguration.BuildercloudWatchLogsConfiguration(CloudWatchLogsConfiguration)Layer.Builder customInstanceProfileArn(String customInstanceProfileArn)
The ARN of the default IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
customInstanceProfileArn - The ARN of the default IAM profile to be used for the layer's EC2 instances. For more information
about IAM ARNs, see Using Identifiers.Layer.Builder customJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
customJson - A JSON formatted string containing the layer's custom stack configuration and deployment attributes.Layer.Builder customSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
customSecurityGroupIds - An array containing the layer's custom security group IDs.Layer.Builder customSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
customSecurityGroupIds - An array containing the layer's custom security group IDs.Layer.Builder defaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
defaultSecurityGroupNames - An array containing the layer's security group names.Layer.Builder defaultSecurityGroupNames(String... defaultSecurityGroupNames)
An array containing the layer's security group names.
defaultSecurityGroupNames - An array containing the layer's security group names.Layer.Builder packages(Collection<String> packages)
An array of Package objects that describe the layer's packages.
packages - An array of Package objects that describe the layer's packages.Layer.Builder packages(String... packages)
An array of Package objects that describe the layer's packages.
packages - An array of Package objects that describe the layer's packages.Layer.Builder volumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
volumeConfigurations - A VolumeConfigurations object that describes the layer's Amazon EBS volumes.Layer.Builder volumeConfigurations(VolumeConfiguration... volumeConfigurations)
A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
volumeConfigurations - A VolumeConfigurations object that describes the layer's Amazon EBS volumes.Layer.Builder volumeConfigurations(Consumer<VolumeConfiguration.Builder>... volumeConfigurations)
A VolumeConfigurations object that describes the layer's Amazon EBS volumes.
List.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #volumeConfigurations(List) .volumeConfigurations - a consumer that will call methods on List.Builder #volumeConfigurations(List) Layer.Builder enableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
enableAutoHealing - Whether auto healing is disabled for the layer.Layer.Builder autoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
autoAssignElasticIps - Whether to automatically assign an Elastic IP
address to the layer's instances. For more information, see How to Edit
a Layer.Layer.Builder autoAssignPublicIps(Boolean 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.
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.Layer.Builder defaultRecipes(Recipes defaultRecipes)
defaultRecipes - The new value for the DefaultRecipes property for this object.default Layer.Builder defaultRecipes(Consumer<Recipes.Builder> defaultRecipes)
Recipes.Builder avoiding the need to create one
manually via Recipes.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to defaultRecipes(Recipes).defaultRecipes - a consumer that will call methods on Recipes.BuilderdefaultRecipes(Recipes)Layer.Builder customRecipes(Recipes customRecipes)
A LayerCustomRecipes object that specifies the layer's custom recipes.
customRecipes - A LayerCustomRecipes object that specifies the layer's custom recipes.default Layer.Builder customRecipes(Consumer<Recipes.Builder> customRecipes)
A LayerCustomRecipes object that specifies the layer's custom recipes.
Recipes.Builder avoiding the need to create one
manually via Recipes.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to customRecipes(Recipes).customRecipes - a consumer that will call methods on Recipes.BuildercustomRecipes(Recipes)Layer.Builder createdAt(String createdAt)
Date when the layer was created.
createdAt - Date when the layer was created.Layer.Builder installUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set to false, you must then update your instances manually
by using CreateDeployment to run the update_dependencies stack command or manually
running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
We strongly recommend using the default value of true, to ensure that your instances have the
latest security updates.
installUpdatesOnBoot - Whether to install operating system and package updates when the instance boots. The default value is
true. If this value is set to false, you must then update your instances
manually by using CreateDeployment to run the update_dependencies stack command or
manually running yum (Amazon Linux) or apt-get (Ubuntu) on the instances.
We strongly recommend using the default value of true, to ensure that your instances have
the latest security updates.
Layer.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
useEbsOptimizedInstances - Whether the layer uses Amazon EBS-optimized instances.Layer.Builder lifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.
lifecycleEventConfiguration - A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.default Layer.Builder lifecycleEventConfiguration(Consumer<LifecycleEventConfiguration.Builder> lifecycleEventConfiguration)
A LifeCycleEventConfiguration object that specifies the Shutdown event configuration.
LifecycleEventConfiguration.Builder avoiding
the need to create one manually via LifecycleEventConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to lifecycleEventConfiguration(LifecycleEventConfiguration).lifecycleEventConfiguration - a consumer that will call methods on LifecycleEventConfiguration.BuilderlifecycleEventConfiguration(LifecycleEventConfiguration)Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.