Interface Layer.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Layer.Builder,Layer>,SdkBuilder<Layer.Builder,Layer>,SdkPojo
- Enclosing class:
- Layer
public static interface Layer.Builder extends SdkPojo, CopyableBuilder<Layer.Builder,Layer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Layer.Builderarn(String arn)The Amazon Resource Number (ARN) of a layer.Layer.Builderattributes(Map<LayerAttributesKeys,String> attributes)The layer attributes.Layer.BuilderattributesWithStrings(Map<String,String> attributes)The layer attributes.Layer.BuilderautoAssignElasticIps(Boolean autoAssignElasticIps)Whether to automatically assign an Elastic IP address to the layer's instances.Layer.BuilderautoAssignPublicIps(Boolean autoAssignPublicIps)For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's instances.default Layer.BuildercloudWatchLogsConfiguration(Consumer<CloudWatchLogsConfiguration.Builder> cloudWatchLogsConfiguration)The Amazon CloudWatch Logs configuration settings for the layer.Layer.BuildercloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)The Amazon CloudWatch Logs configuration settings for the layer.Layer.BuildercreatedAt(String createdAt)Date when the layer was created.Layer.BuildercustomInstanceProfileArn(String customInstanceProfileArn)The ARN of the default IAM profile to be used for the layer's EC2 instances.Layer.BuildercustomJson(String customJson)A JSON formatted string containing the layer's custom stack configuration and deployment attributes.default Layer.BuildercustomRecipes(Consumer<Recipes.Builder> customRecipes)ALayerCustomRecipesobject that specifies the layer's custom recipes.Layer.BuildercustomRecipes(Recipes customRecipes)ALayerCustomRecipesobject that specifies the layer's custom recipes.Layer.BuildercustomSecurityGroupIds(String... customSecurityGroupIds)An array containing the layer's custom security group IDs.Layer.BuildercustomSecurityGroupIds(Collection<String> customSecurityGroupIds)An array containing the layer's custom security group IDs.default Layer.BuilderdefaultRecipes(Consumer<Recipes.Builder> defaultRecipes)AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown.Layer.BuilderdefaultRecipes(Recipes defaultRecipes)AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown.Layer.BuilderdefaultSecurityGroupNames(String... defaultSecurityGroupNames)An array containing the layer's security group names.Layer.BuilderdefaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)An array containing the layer's security group names.Layer.BuilderenableAutoHealing(Boolean enableAutoHealing)Whether auto healing is disabled for the layer.Layer.BuilderinstallUpdatesOnBoot(Boolean installUpdatesOnBoot)Whether to install operating system and package updates when the instance boots.Layer.BuilderlayerId(String layerId)The layer ID.default Layer.BuilderlifecycleEventConfiguration(Consumer<LifecycleEventConfiguration.Builder> lifecycleEventConfiguration)ALifeCycleEventConfigurationobject that specifies the Shutdown event configuration.Layer.BuilderlifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)ALifeCycleEventConfigurationobject that specifies the Shutdown event configuration.Layer.Buildername(String name)The layer name.Layer.Builderpackages(String... packages)An array ofPackageobjects that describe the layer's packages.Layer.Builderpackages(Collection<String> packages)An array ofPackageobjects that describe the layer's packages.Layer.Buildershortname(String shortname)The layer short name.Layer.BuilderstackId(String stackId)The layer stack ID.Layer.Buildertype(String type)The layer type.Layer.Buildertype(LayerType type)The layer type.Layer.BuilderuseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)Whether the layer uses Amazon EBS-optimized instances.Layer.BuildervolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.Layer.BuildervolumeConfigurations(Consumer<VolumeConfiguration.Builder>... volumeConfigurations)AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.Layer.BuildervolumeConfigurations(VolumeConfiguration... volumeConfigurations)AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
arn
Layer.Builder arn(String arn)
The Amazon Resource Number (ARN) of a layer.
- Parameters:
arn- The Amazon Resource Number (ARN) of a layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stackId
Layer.Builder stackId(String stackId)
The layer stack ID.
- Parameters:
stackId- The layer stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layerId
Layer.Builder layerId(String layerId)
The layer ID.
- Parameters:
layerId- The layer ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
Layer.Builder type(String type)
The layer type.
-
type
Layer.Builder type(LayerType type)
The layer type.
-
name
Layer.Builder name(String name)
The layer name.
- Parameters:
name- The layer name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shortname
Layer.Builder shortname(String shortname)
The layer short name.
- Parameters:
shortname- The layer short name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributesWithStrings
Layer.Builder attributesWithStrings(Map<String,String> attributes)
The layer attributes.
For the
HaproxyStatsPassword,MysqlRootPassword, andGangliaPasswordattributes, AWS OpsWorks Stacks returns*****FILTERED*****instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks Stacks the
EcsClusterArnattribute is set to the cluster's ARN.- Parameters:
attributes- The layer attributes.For the
HaproxyStatsPassword,MysqlRootPassword, andGangliaPasswordattributes, AWS OpsWorks Stacks returns*****FILTERED*****instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks Stacks the
EcsClusterArnattribute is set to the cluster's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
Layer.Builder attributes(Map<LayerAttributesKeys,String> attributes)
The layer attributes.
For the
HaproxyStatsPassword,MysqlRootPassword, andGangliaPasswordattributes, AWS OpsWorks Stacks returns*****FILTERED*****instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks Stacks the
EcsClusterArnattribute is set to the cluster's ARN.- Parameters:
attributes- The layer attributes.For the
HaproxyStatsPassword,MysqlRootPassword, andGangliaPasswordattributes, AWS OpsWorks Stacks returns*****FILTERED*****instead of the actual valueFor an ECS Cluster layer, AWS OpsWorks Stacks the
EcsClusterArnattribute is set to the cluster's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchLogsConfiguration
Layer.Builder cloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
- Parameters:
cloudWatchLogsConfiguration- The Amazon CloudWatch Logs configuration settings for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cloudWatchLogsConfiguration
default Layer.Builder cloudWatchLogsConfiguration(Consumer<CloudWatchLogsConfiguration.Builder> cloudWatchLogsConfiguration)
The Amazon CloudWatch Logs configuration settings for the layer.
This is a convenience method that creates an instance of theCloudWatchLogsConfiguration.Builderavoiding the need to create one manually viaCloudWatchLogsConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocloudWatchLogsConfiguration(CloudWatchLogsConfiguration).- Parameters:
cloudWatchLogsConfiguration- a consumer that will call methods onCloudWatchLogsConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
cloudWatchLogsConfiguration(CloudWatchLogsConfiguration)
-
customInstanceProfileArn
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customJson
Layer.Builder customJson(String customJson)
A JSON formatted string containing the layer's custom stack configuration and deployment attributes.
- Parameters:
customJson- A JSON formatted string containing the layer's custom stack configuration and deployment attributes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customSecurityGroupIds
Layer.Builder customSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer's custom security group IDs.
- Parameters:
customSecurityGroupIds- An array containing the layer's custom security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customSecurityGroupIds
Layer.Builder customSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer's custom security group IDs.
- Parameters:
customSecurityGroupIds- An array containing the layer's custom security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultSecurityGroupNames
Layer.Builder defaultSecurityGroupNames(Collection<String> defaultSecurityGroupNames)
An array containing the layer's security group names.
- Parameters:
defaultSecurityGroupNames- An array containing the layer's security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultSecurityGroupNames
Layer.Builder defaultSecurityGroupNames(String... defaultSecurityGroupNames)
An array containing the layer's security group names.
- Parameters:
defaultSecurityGroupNames- An array containing the layer's security group names.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packages
Layer.Builder packages(Collection<String> packages)
An array of
Packageobjects that describe the layer's packages.- Parameters:
packages- An array ofPackageobjects that describe the layer's packages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packages
Layer.Builder packages(String... packages)
An array of
Packageobjects that describe the layer's packages.- Parameters:
packages- An array ofPackageobjects that describe the layer's packages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeConfigurations
Layer.Builder volumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurationsobject that describes the layer's Amazon EBS volumes.- Parameters:
volumeConfigurations- AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeConfigurations
Layer.Builder volumeConfigurations(VolumeConfiguration... volumeConfigurations)
A
VolumeConfigurationsobject that describes the layer's Amazon EBS volumes.- Parameters:
volumeConfigurations- AVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeConfigurations
Layer.Builder volumeConfigurations(Consumer<VolumeConfiguration.Builder>... volumeConfigurations)
A
This is a convenience method that creates an instance of theVolumeConfigurationsobject that describes the layer's Amazon EBS volumes.VolumeConfiguration.Builderavoiding the need to create one manually viaVolumeConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#volumeConfigurations(List.) - Parameters:
volumeConfigurations- a consumer that will call methods onVolumeConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#volumeConfigurations(java.util.Collection)
-
enableAutoHealing
Layer.Builder enableAutoHealing(Boolean enableAutoHealing)
Whether auto healing is disabled for the layer.
- Parameters:
enableAutoHealing- Whether auto healing is disabled for the layer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoAssignElasticIps
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
autoAssignPublicIps
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
defaultRecipes
Layer.Builder defaultRecipes(Recipes defaultRecipes)
AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set of standard recipes for each event. You can also provide custom recipes for any or all layers and events. AWS OpsWorks Stacks runs custom event recipes after the standard recipes.
LayerCustomRecipesspecifies the custom recipes for a particular layer to be run in response to each of the five events.To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the
.rbextension. For example:phpapp2::dbsetupspecifies thedbsetup.rbrecipe in the repository'sphpapp2folder.- Parameters:
defaultRecipes- AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set of standard recipes for each event. You can also provide custom recipes for any or all layers and events. AWS OpsWorks Stacks runs custom event recipes after the standard recipes.LayerCustomRecipesspecifies the custom recipes for a particular layer to be run in response to each of the five events.To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the
.rbextension. For example:phpapp2::dbsetupspecifies thedbsetup.rbrecipe in the repository'sphpapp2folder.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultRecipes
default Layer.Builder defaultRecipes(Consumer<Recipes.Builder> defaultRecipes)
AWS OpsWorks Stacks supports five lifecycle events: setup, configuration, deploy, undeploy, and shutdown. For each layer, AWS OpsWorks Stacks runs a set of standard recipes for each event. You can also provide custom recipes for any or all layers and events. AWS OpsWorks Stacks runs custom event recipes after the standard recipes.
LayerCustomRecipesspecifies the custom recipes for a particular layer to be run in response to each of the five events.To specify a recipe, use the cookbook's directory name in the repository followed by two colons and the recipe name, which is the recipe's file name without the
This is a convenience method that creates an instance of the.rbextension. For example:phpapp2::dbsetupspecifies thedbsetup.rbrecipe in the repository'sphpapp2folder.Recipes.Builderavoiding the need to create one manually viaRecipes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefaultRecipes(Recipes).- Parameters:
defaultRecipes- a consumer that will call methods onRecipes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
defaultRecipes(Recipes)
-
customRecipes
Layer.Builder customRecipes(Recipes customRecipes)
A
LayerCustomRecipesobject that specifies the layer's custom recipes.- Parameters:
customRecipes- ALayerCustomRecipesobject that specifies the layer's custom recipes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customRecipes
default Layer.Builder customRecipes(Consumer<Recipes.Builder> customRecipes)
A
This is a convenience method that creates an instance of theLayerCustomRecipesobject that specifies the layer's custom recipes.Recipes.Builderavoiding the need to create one manually viaRecipes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomRecipes(Recipes).- Parameters:
customRecipes- a consumer that will call methods onRecipes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
customRecipes(Recipes)
-
createdAt
Layer.Builder createdAt(String createdAt)
Date when the layer was created.
- Parameters:
createdAt- Date when the layer was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
installUpdatesOnBoot
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 tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Parameters:
installUpdatesOnBoot- Whether to install operating system and package updates when the instance boots. The default value istrue. If this value is set tofalse, you must then update your instances manually by using CreateDeployment to run theupdate_dependenciesstack command or manually runningyum(Amazon Linux) orapt-get(Ubuntu) on the instances.We strongly recommend using the default value of
true, to ensure that your instances have the latest security updates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
useEbsOptimizedInstances
Layer.Builder useEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether the layer uses Amazon EBS-optimized instances.
- Parameters:
useEbsOptimizedInstances- Whether the layer uses Amazon EBS-optimized instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleEventConfiguration
Layer.Builder lifecycleEventConfiguration(LifecycleEventConfiguration lifecycleEventConfiguration)
A
LifeCycleEventConfigurationobject that specifies the Shutdown event configuration.- Parameters:
lifecycleEventConfiguration- ALifeCycleEventConfigurationobject that specifies the Shutdown event configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleEventConfiguration
default Layer.Builder lifecycleEventConfiguration(Consumer<LifecycleEventConfiguration.Builder> lifecycleEventConfiguration)
A
This is a convenience method that creates an instance of theLifeCycleEventConfigurationobject that specifies the Shutdown event configuration.LifecycleEventConfiguration.Builderavoiding the need to create one manually viaLifecycleEventConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycleEventConfiguration(LifecycleEventConfiguration).- Parameters:
lifecycleEventConfiguration- a consumer that will call methods onLifecycleEventConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lifecycleEventConfiguration(LifecycleEventConfiguration)
-
-