#[non_exhaustive]
pub struct UpdateLayerInput {
Show 17 fields pub layer_id: Option<String>, pub name: Option<String>, pub shortname: Option<String>, pub attributes: Option<HashMap<LayerAttributesKeys, String>>, pub cloud_watch_logs_configuration: Option<CloudWatchLogsConfiguration>, pub custom_instance_profile_arn: Option<String>, pub custom_json: Option<String>, pub custom_security_group_ids: Option<Vec<String>>, pub packages: Option<Vec<String>>, pub volume_configurations: Option<Vec<VolumeConfiguration>>, pub enable_auto_healing: Option<bool>, pub auto_assign_elastic_ips: Option<bool>, pub auto_assign_public_ips: Option<bool>, pub custom_recipes: Option<Recipes>, pub install_updates_on_boot: Option<bool>, pub use_ebs_optimized_instances: Option<bool>, pub lifecycle_event_configuration: Option<LifecycleEventConfiguration>,
}

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§layer_id: Option<String>

The layer ID.

§name: Option<String>

The layer name, which is used by the console.

§shortname: Option<String>

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. 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 and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/.

The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference

§attributes: Option<HashMap<LayerAttributesKeys, String>>

One or more user-defined key/value pairs to be added to the stack attributes.

§cloud_watch_logs_configuration: Option<CloudWatchLogsConfiguration>

Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.

§custom_instance_profile_arn: Option<String>

The ARN of an IAM profile to be used for all of the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

§custom_json: Option<String>

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.

§custom_security_group_ids: Option<Vec<String>>

An array containing the layer's custom security group IDs.

§packages: Option<Vec<String>>

An array of Package objects that describe the layer's packages.

§volume_configurations: Option<Vec<VolumeConfiguration>>

A VolumeConfigurations object that describes the layer's Amazon EBS volumes.

§enable_auto_healing: Option<bool>

Whether to disable auto healing for the layer.

§auto_assign_elastic_ips: Option<bool>

Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.

§auto_assign_public_ips: Option<bool>

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.

§custom_recipes: Option<Recipes>

A LayerCustomRecipes object that specifies the layer's custom recipes.

§install_updates_on_boot: Option<bool>

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 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.

§use_ebs_optimized_instances: Option<bool>

Whether to use Amazon EBS-optimized instances.

§lifecycle_event_configuration: Option<LifecycleEventConfiguration>

Implementations§

source§

impl UpdateLayerInput

source

pub fn layer_id(&self) -> Option<&str>

The layer ID.

source

pub fn name(&self) -> Option<&str>

The layer name, which is used by the console.

source

pub fn shortname(&self) -> Option<&str>

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. 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 and must be in the following format: /\A[a-z0-9\-\_\.]+\Z/.

The built-in layers' short names are defined by AWS OpsWorks Stacks. For more information, see the Layer Reference

source

pub fn attributes(&self) -> Option<&HashMap<LayerAttributesKeys, String>>

One or more user-defined key/value pairs to be added to the stack attributes.

source

pub fn cloud_watch_logs_configuration( &self ) -> Option<&CloudWatchLogsConfiguration>

Specifies CloudWatch Logs configuration options for the layer. For more information, see CloudWatchLogsLogStream.

source

pub fn custom_instance_profile_arn(&self) -> Option<&str>

The ARN of an IAM profile to be used for all of the layer's EC2 instances. For more information about IAM ARNs, see Using Identifiers.

source

pub fn custom_json(&self) -> Option<&str>

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.

source

pub fn custom_security_group_ids(&self) -> Option<&[String]>

An array containing the layer's custom security group IDs.

source

pub fn packages(&self) -> Option<&[String]>

An array of Package objects that describe the layer's packages.

source

pub fn volume_configurations(&self) -> Option<&[VolumeConfiguration]>

A VolumeConfigurations object that describes the layer's Amazon EBS volumes.

source

pub fn enable_auto_healing(&self) -> Option<bool>

Whether to disable auto healing for the layer.

source

pub fn auto_assign_elastic_ips(&self) -> Option<bool>

Whether to automatically assign an Elastic IP address to the layer's instances. For more information, see How to Edit a Layer.

source

pub fn auto_assign_public_ips(&self) -> Option<bool>

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.

source

pub fn custom_recipes(&self) -> Option<&Recipes>

A LayerCustomRecipes object that specifies the layer's custom recipes.

source

pub fn install_updates_on_boot(&self) -> Option<bool>

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 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.

source

pub fn use_ebs_optimized_instances(&self) -> Option<bool>

Whether to use Amazon EBS-optimized instances.

source

pub fn lifecycle_event_configuration( &self ) -> Option<&LifecycleEventConfiguration>

source§

impl UpdateLayerInput

source

pub fn builder() -> UpdateLayerInputBuilder

Creates a new builder-style object to manufacture UpdateLayerInput.

Trait Implementations§

source§

impl Clone for UpdateLayerInput

source§

fn clone(&self) -> UpdateLayerInput

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UpdateLayerInput

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq<UpdateLayerInput> for UpdateLayerInput

source§

fn eq(&self, other: &UpdateLayerInput) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for UpdateLayerInput

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more