Struct aws_sdk_opsworks::input::create_layer_input::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for CreateLayerInput
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_stack_id(self, input: Option<String>) -> Self
pub fn set_stack_id(self, input: Option<String>) -> Self
The layer stack ID.
sourcepub fn type(self, input: LayerType) -> Self
pub fn type(self, input: LayerType) -> Self
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.
sourcepub fn set_type(self, input: Option<LayerType>) -> Self
pub fn set_type(self, input: Option<LayerType>) -> Self
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.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The layer name, which is used by the console.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The layer name, which is used by the console.
sourcepub fn shortname(self, input: impl Into<String>) -> Self
pub fn shortname(self, input: impl Into<String>) -> Self
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. The short name is also used as the name for the directory where your app files are installed. It can have a maximum of 200 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.
The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference.
sourcepub fn set_shortname(self, input: Option<String>) -> Self
pub fn set_shortname(self, input: Option<String>) -> Self
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. The short name is also used as the name for the directory where your app files are installed. It can have a maximum of 200 characters, which are limited to the alphanumeric characters, '-', '_', and '.'.
The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference.
sourcepub fn attributes(self, k: LayerAttributesKeys, v: impl Into<String>) -> Self
pub fn attributes(self, k: LayerAttributesKeys, v: impl Into<String>) -> Self
Adds a key-value pair to attributes
.
To override the contents of this collection use set_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.
sourcepub fn set_attributes(
self,
input: Option<HashMap<LayerAttributesKeys, String>>
) -> Self
pub fn set_attributes(
self,
input: Option<HashMap<LayerAttributesKeys, String>>
) -> Self
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.
sourcepub fn cloud_watch_logs_configuration(
self,
input: CloudWatchLogsConfiguration
) -> Self
pub fn cloud_watch_logs_configuration(
self,
input: CloudWatchLogsConfiguration
) -> Self
Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream
.
sourcepub fn set_cloud_watch_logs_configuration(
self,
input: Option<CloudWatchLogsConfiguration>
) -> Self
pub fn set_cloud_watch_logs_configuration(
self,
input: Option<CloudWatchLogsConfiguration>
) -> Self
Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream
.
sourcepub fn custom_instance_profile_arn(self, input: impl Into<String>) -> Self
pub fn custom_instance_profile_arn(self, input: impl Into<String>) -> Self
The ARN of an IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
sourcepub fn set_custom_instance_profile_arn(self, input: Option<String>) -> Self
pub fn set_custom_instance_profile_arn(self, input: Option<String>) -> Self
The ARN of an IAM profile to be used for the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.
sourcepub fn custom_json(self, input: impl Into<String>) -> Self
pub fn custom_json(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_custom_json(self, input: Option<String>) -> Self
pub fn set_custom_json(self, input: Option<String>) -> Self
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.
sourcepub fn custom_security_group_ids(self, input: impl Into<String>) -> Self
pub fn custom_security_group_ids(self, input: impl Into<String>) -> Self
Appends an item to custom_security_group_ids
.
To override the contents of this collection use set_custom_security_group_ids
.
An array containing the layer custom security group IDs.
sourcepub fn set_custom_security_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_custom_security_group_ids(self, input: Option<Vec<String>>) -> Self
An array containing the layer custom security group IDs.
sourcepub fn packages(self, input: impl Into<String>) -> Self
pub fn packages(self, input: impl Into<String>) -> Self
Appends an item to packages
.
To override the contents of this collection use set_packages
.
An array of Package
objects that describes the layer packages.
sourcepub fn set_packages(self, input: Option<Vec<String>>) -> Self
pub fn set_packages(self, input: Option<Vec<String>>) -> Self
An array of Package
objects that describes the layer packages.
sourcepub fn volume_configurations(self, input: VolumeConfiguration) -> Self
pub fn volume_configurations(self, input: VolumeConfiguration) -> Self
Appends an item to volume_configurations
.
To override the contents of this collection use set_volume_configurations
.
A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
sourcepub fn set_volume_configurations(
self,
input: Option<Vec<VolumeConfiguration>>
) -> Self
pub fn set_volume_configurations(
self,
input: Option<Vec<VolumeConfiguration>>
) -> Self
A VolumeConfigurations
object that describes the layer's Amazon EBS volumes.
sourcepub fn enable_auto_healing(self, input: bool) -> Self
pub fn enable_auto_healing(self, input: bool) -> Self
Whether to disable auto healing for the layer.
sourcepub fn set_enable_auto_healing(self, input: Option<bool>) -> Self
pub fn set_enable_auto_healing(self, input: Option<bool>) -> Self
Whether to disable auto healing for the layer.
sourcepub fn auto_assign_elastic_ips(self, input: bool) -> Self
pub fn auto_assign_elastic_ips(self, input: bool) -> Self
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
sourcepub fn set_auto_assign_elastic_ips(self, input: Option<bool>) -> Self
pub fn set_auto_assign_elastic_ips(self, input: Option<bool>) -> Self
Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.
sourcepub fn auto_assign_public_ips(self, input: bool) -> Self
pub fn auto_assign_public_ips(self, input: bool) -> Self
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.
sourcepub fn set_auto_assign_public_ips(self, input: Option<bool>) -> Self
pub fn set_auto_assign_public_ips(self, input: Option<bool>) -> Self
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.
sourcepub fn custom_recipes(self, input: Recipes) -> Self
pub fn custom_recipes(self, input: Recipes) -> Self
A LayerCustomRecipes
object that specifies the layer custom recipes.
sourcepub fn set_custom_recipes(self, input: Option<Recipes>) -> Self
pub fn set_custom_recipes(self, input: Option<Recipes>) -> Self
A LayerCustomRecipes
object that specifies the layer custom recipes.
sourcepub fn install_updates_on_boot(self, input: bool) -> Self
pub fn install_updates_on_boot(self, input: bool) -> Self
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
.
sourcepub fn set_install_updates_on_boot(self, input: Option<bool>) -> Self
pub fn set_install_updates_on_boot(self, input: Option<bool>) -> Self
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
.
sourcepub fn use_ebs_optimized_instances(self, input: bool) -> Self
pub fn use_ebs_optimized_instances(self, input: bool) -> Self
Whether to use Amazon EBS-optimized instances.
sourcepub fn set_use_ebs_optimized_instances(self, input: Option<bool>) -> Self
pub fn set_use_ebs_optimized_instances(self, input: Option<bool>) -> Self
Whether to use Amazon EBS-optimized instances.
sourcepub fn lifecycle_event_configuration(
self,
input: LifecycleEventConfiguration
) -> Self
pub fn lifecycle_event_configuration(
self,
input: LifecycleEventConfiguration
) -> Self
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.
sourcepub fn set_lifecycle_event_configuration(
self,
input: Option<LifecycleEventConfiguration>
) -> Self
pub fn set_lifecycle_event_configuration(
self,
input: Option<LifecycleEventConfiguration>
) -> Self
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.
sourcepub fn build(self) -> Result<CreateLayerInput, BuildError>
pub fn build(self) -> Result<CreateLayerInput, BuildError>
Consumes the builder and constructs a CreateLayerInput
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more