@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLayerRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateLayerRequest() |
Modifier and Type | Method and Description |
---|---|
CreateLayerRequest |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
CreateLayerRequest |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
CreateLayerRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
One or more user-defined key-value pairs to be added to the stack attributes.
|
Boolean |
getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address
to the layer's instances.
|
Boolean |
getAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's
instances.
|
CloudWatchLogsConfiguration |
getCloudWatchLogsConfiguration()
Specifies CloudWatch Logs configuration options for the layer.
|
String |
getCustomInstanceProfileArn()
The ARN of an IAM profile to be used for the layer's EC2 instances.
|
String |
getCustomJson()
A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the
layer's instances.
|
Recipes |
getCustomRecipes()
A
LayerCustomRecipes object that specifies the layer custom recipes. |
List<String> |
getCustomSecurityGroupIds()
An array containing the layer custom security group IDs.
|
Boolean |
getEnableAutoHealing()
Whether to disable auto healing for the layer.
|
Boolean |
getInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots.
|
LifecycleEventConfiguration |
getLifecycleEventConfiguration()
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. |
String |
getName()
The layer name, which is used by the console.
|
List<String> |
getPackages()
An array of
Package objects that describes the layer packages. |
String |
getShortname()
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.
|
String |
getStackId()
The layer stack ID.
|
String |
getType()
The layer type.
|
Boolean |
getUseEbsOptimizedInstances()
Whether to use Amazon EBS-optimized instances.
|
List<VolumeConfiguration> |
getVolumeConfigurations()
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
int |
hashCode() |
Boolean |
isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address
to the layer's instances.
|
Boolean |
isAutoAssignPublicIps()
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's
instances.
|
Boolean |
isEnableAutoHealing()
Whether to disable auto healing for the layer.
|
Boolean |
isInstallUpdatesOnBoot()
Whether to install operating system and package updates when the instance boots.
|
Boolean |
isUseEbsOptimizedInstances()
Whether to use Amazon EBS-optimized instances.
|
void |
setAttributes(Map<String,String> attributes)
One or more user-defined key-value pairs to be added to the stack attributes.
|
void |
setAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address
to the layer's instances.
|
void |
setAutoAssignPublicIps(Boolean autoAssignPublicIps)
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's
instances.
|
void |
setCloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
Specifies CloudWatch Logs configuration options for the layer.
|
void |
setCustomInstanceProfileArn(String customInstanceProfileArn)
The ARN of an IAM profile to be used for the layer's EC2 instances.
|
void |
setCustomJson(String customJson)
A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the
layer's instances.
|
void |
setCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer custom recipes. |
void |
setCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
void |
setEnableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
|
void |
setInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.
|
void |
setLifecycleEventConfiguration(LifecycleEventConfiguration 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. |
void |
setName(String name)
The layer name, which is used by the console.
|
void |
setPackages(Collection<String> packages)
An array of
Package objects that describes the layer packages. |
void |
setShortname(String 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.
|
void |
setStackId(String stackId)
The layer stack ID.
|
void |
setType(LayerType type)
The layer type.
|
void |
setType(String type)
The layer type.
|
void |
setUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether to use Amazon EBS-optimized instances.
|
void |
setVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
String |
toString()
Returns a string representation of this object.
|
CreateLayerRequest |
withAttributes(Map<String,String> attributes)
One or more user-defined key-value pairs to be added to the stack attributes.
|
CreateLayerRequest |
withAutoAssignElasticIps(Boolean autoAssignElasticIps)
Whether to automatically assign an Elastic IP address
to the layer's instances.
|
CreateLayerRequest |
withAutoAssignPublicIps(Boolean autoAssignPublicIps)
For stacks that are running in a VPC, whether to automatically assign a public IP address to the layer's
instances.
|
CreateLayerRequest |
withCloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
Specifies CloudWatch Logs configuration options for the layer.
|
CreateLayerRequest |
withCustomInstanceProfileArn(String customInstanceProfileArn)
The ARN of an IAM profile to be used for the layer's EC2 instances.
|
CreateLayerRequest |
withCustomJson(String customJson)
A JSON-formatted string containing custom stack configuration and deployment attributes to be installed on the
layer's instances.
|
CreateLayerRequest |
withCustomRecipes(Recipes customRecipes)
A
LayerCustomRecipes object that specifies the layer custom recipes. |
CreateLayerRequest |
withCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
CreateLayerRequest |
withCustomSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer custom security group IDs.
|
CreateLayerRequest |
withEnableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
|
CreateLayerRequest |
withInstallUpdatesOnBoot(Boolean installUpdatesOnBoot)
Whether to install operating system and package updates when the instance boots.
|
CreateLayerRequest |
withLifecycleEventConfiguration(LifecycleEventConfiguration 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. |
CreateLayerRequest |
withName(String name)
The layer name, which is used by the console.
|
CreateLayerRequest |
withPackages(Collection<String> packages)
An array of
Package objects that describes the layer packages. |
CreateLayerRequest |
withPackages(String... packages)
An array of
Package objects that describes the layer packages. |
CreateLayerRequest |
withShortname(String 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.
|
CreateLayerRequest |
withStackId(String stackId)
The layer stack ID.
|
CreateLayerRequest |
withType(LayerType type)
The layer type.
|
CreateLayerRequest |
withType(String type)
The layer type.
|
CreateLayerRequest |
withUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether to use Amazon EBS-optimized instances.
|
CreateLayerRequest |
withVolumeConfigurations(Collection<VolumeConfiguration> volumeConfigurations)
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
CreateLayerRequest |
withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
A
VolumeConfigurations object that describes the layer's Amazon EBS volumes. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setStackId(String stackId)
The layer stack ID.
stackId
- The layer stack ID.public String getStackId()
The layer stack ID.
public CreateLayerRequest withStackId(String stackId)
The layer stack ID.
stackId
- The layer stack ID.public void setType(String 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.
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.LayerType
public String getType()
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.
LayerType
public CreateLayerRequest withType(String 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.
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.LayerType
public void setType(LayerType 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.
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.LayerType
public CreateLayerRequest withType(LayerType 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.
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.LayerType
public void setName(String name)
The layer name, which is used by the console. Layer names can be a maximum of 32 characters.
name
- The layer name, which is used by the console. Layer names can be a maximum of 32 characters.public String getName()
The layer name, which is used by the console. Layer names can be a maximum of 32 characters.
public CreateLayerRequest withName(String name)
The layer name, which is used by the console. Layer names can be a maximum of 32 characters.
name
- The layer name, which is used by the console. Layer names can be a maximum of 32 characters.public void setShortname(String 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.
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.
public String getShortname()
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.
Built-in layer short names are defined by OpsWorks Stacks. For more information, see the Layer Reference.
public CreateLayerRequest withShortname(String 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.
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.
public Map<String,String> getAttributes()
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.
To create a cluster layer, set the EcsClusterArn
attribute to the cluster's ARN.
public void setAttributes(Map<String,String> 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.
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.
public CreateLayerRequest withAttributes(Map<String,String> 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.
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.
public CreateLayerRequest addAttributesEntry(String key, String value)
public CreateLayerRequest clearAttributesEntries()
public void setCloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.
cloudWatchLogsConfiguration
- Specifies CloudWatch Logs configuration options for the layer. For more information, see
CloudWatchLogsLogStream.public CloudWatchLogsConfiguration getCloudWatchLogsConfiguration()
Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.
public CreateLayerRequest withCloudWatchLogsConfiguration(CloudWatchLogsConfiguration cloudWatchLogsConfiguration)
Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.
cloudWatchLogsConfiguration
- Specifies CloudWatch Logs configuration options for the layer. For more information, see
CloudWatchLogsLogStream.public void setCustomInstanceProfileArn(String 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.
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.public String getCustomInstanceProfileArn()
The ARN of an IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
public CreateLayerRequest withCustomInstanceProfileArn(String 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.
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.public void setCustomJson(String 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 CLI.
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 CLI.public String getCustomJson()
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 CLI.
public CreateLayerRequest withCustomJson(String 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 CLI.
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 CLI.public List<String> getCustomSecurityGroupIds()
An array containing the layer custom security group IDs.
public void setCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
customSecurityGroupIds
- An array containing the layer custom security group IDs.public CreateLayerRequest withCustomSecurityGroupIds(String... customSecurityGroupIds)
An array containing the layer custom security group IDs.
NOTE: This method appends the values to the existing list (if any). Use
setCustomSecurityGroupIds(java.util.Collection)
or
withCustomSecurityGroupIds(java.util.Collection)
if you want to override the existing values.
customSecurityGroupIds
- An array containing the layer custom security group IDs.public CreateLayerRequest withCustomSecurityGroupIds(Collection<String> customSecurityGroupIds)
An array containing the layer custom security group IDs.
customSecurityGroupIds
- An array containing the layer custom security group IDs.public List<String> getPackages()
An array of Package
objects that describes the layer packages.
Package
objects that describes the layer packages.public void setPackages(Collection<String> packages)
An array of Package
objects that describes the layer packages.
packages
- An array of Package
objects that describes the layer packages.public CreateLayerRequest withPackages(String... packages)
An array of Package
objects that describes the layer packages.
NOTE: This method appends the values to the existing list (if any). Use
setPackages(java.util.Collection)
or withPackages(java.util.Collection)
if you want to override
the existing values.
packages
- An array of Package
objects that describes the layer packages.public CreateLayerRequest withPackages(Collection<String> packages)
An array of Package
objects that describes the layer packages.
packages
- An array of Package
objects that describes the layer packages.public List<VolumeConfiguration> getVolumeConfigurations()
A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
VolumeConfigurations
object that describes the layer's Amazon EBS volumes.public void setVolumeConfigurations(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.public CreateLayerRequest withVolumeConfigurations(VolumeConfiguration... volumeConfigurations)
A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
NOTE: This method appends the values to the existing list (if any). Use
setVolumeConfigurations(java.util.Collection)
or withVolumeConfigurations(java.util.Collection)
if you want to override the existing values.
volumeConfigurations
- A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.public CreateLayerRequest withVolumeConfigurations(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.public void setEnableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
enableAutoHealing
- Whether to disable auto healing for the layer.public Boolean getEnableAutoHealing()
Whether to disable auto healing for the layer.
public CreateLayerRequest withEnableAutoHealing(Boolean enableAutoHealing)
Whether to disable auto healing for the layer.
enableAutoHealing
- Whether to disable auto healing for the layer.public Boolean isEnableAutoHealing()
Whether to disable auto healing for the layer.
public void setAutoAssignElasticIps(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.public Boolean getAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
public CreateLayerRequest withAutoAssignElasticIps(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.public Boolean isAutoAssignElasticIps()
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
public void setAutoAssignPublicIps(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.public Boolean getAutoAssignPublicIps()
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.
public CreateLayerRequest withAutoAssignPublicIps(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.public Boolean isAutoAssignPublicIps()
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.
public void setCustomRecipes(Recipes customRecipes)
A LayerCustomRecipes
object that specifies the layer custom recipes.
customRecipes
- A LayerCustomRecipes
object that specifies the layer custom recipes.public Recipes getCustomRecipes()
A LayerCustomRecipes
object that specifies the layer custom recipes.
LayerCustomRecipes
object that specifies the layer custom recipes.public CreateLayerRequest withCustomRecipes(Recipes customRecipes)
A LayerCustomRecipes
object that specifies the layer custom recipes.
customRecipes
- A LayerCustomRecipes
object that specifies the layer custom recipes.public void setInstallUpdatesOnBoot(Boolean 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
.
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
.
public Boolean getInstallUpdatesOnBoot()
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
.
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
.
public CreateLayerRequest withInstallUpdatesOnBoot(Boolean 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
.
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
.
public Boolean isInstallUpdatesOnBoot()
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
.
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
.
public void setUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether to use Amazon EBS-optimized instances.
useEbsOptimizedInstances
- Whether to use Amazon EBS-optimized instances.public Boolean getUseEbsOptimizedInstances()
Whether to use Amazon EBS-optimized instances.
public CreateLayerRequest withUseEbsOptimizedInstances(Boolean useEbsOptimizedInstances)
Whether to use Amazon EBS-optimized instances.
useEbsOptimizedInstances
- Whether to use Amazon EBS-optimized instances.public Boolean isUseEbsOptimizedInstances()
Whether to use Amazon EBS-optimized instances.
public void setLifecycleEventConfiguration(LifecycleEventConfiguration 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.
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.public LifecycleEventConfiguration getLifecycleEventConfiguration()
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.
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.public CreateLayerRequest withLifecycleEventConfiguration(LifecycleEventConfiguration 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.
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.public String toString()
toString
in class Object
Object.toString()
public CreateLayerRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()