#[non_exhaustive]pub struct PublishLayerVersionInput {
pub layer_name: Option<String>,
pub description: Option<String>,
pub content: Option<LayerVersionContentInput>,
pub compatible_runtimes: Option<Vec<Runtime>>,
pub license_info: Option<String>,
pub compatible_architectures: Option<Vec<Architecture>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.layer_name: Option<String>
The name or Amazon Resource Name (ARN) of the layer.
description: Option<String>
The description of the version.
content: Option<LayerVersionContentInput>
The function layer archive.
compatible_runtimes: Option<Vec<Runtime>>
A list of compatible function runtimes. Used for filtering with ListLayers
and ListLayerVersions
.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
license_info: Option<String>
The layer's software license. It can be any of the following:
-
An SPDX license identifier. For example,
MIT
. -
The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT
. -
The full text of the license.
compatible_architectures: Option<Vec<Architecture>>
A list of compatible instruction set architectures.
Implementations§
source§impl PublishLayerVersionInput
impl PublishLayerVersionInput
sourcepub fn layer_name(&self) -> Option<&str>
pub fn layer_name(&self) -> Option<&str>
The name or Amazon Resource Name (ARN) of the layer.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the version.
sourcepub fn content(&self) -> Option<&LayerVersionContentInput>
pub fn content(&self) -> Option<&LayerVersionContentInput>
The function layer archive.
sourcepub fn compatible_runtimes(&self) -> &[Runtime]
pub fn compatible_runtimes(&self) -> &[Runtime]
A list of compatible function runtimes. Used for filtering with ListLayers
and ListLayerVersions
.
The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .compatible_runtimes.is_none()
.
sourcepub fn license_info(&self) -> Option<&str>
pub fn license_info(&self) -> Option<&str>
The layer's software license. It can be any of the following:
-
An SPDX license identifier. For example,
MIT
. -
The URL of a license hosted on the internet. For example,
https://opensource.org/licenses/MIT
. -
The full text of the license.
sourcepub fn compatible_architectures(&self) -> &[Architecture]
pub fn compatible_architectures(&self) -> &[Architecture]
A list of compatible instruction set architectures.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .compatible_architectures.is_none()
.
source§impl PublishLayerVersionInput
impl PublishLayerVersionInput
sourcepub fn builder() -> PublishLayerVersionInputBuilder
pub fn builder() -> PublishLayerVersionInputBuilder
Creates a new builder-style object to manufacture PublishLayerVersionInput
.
Trait Implementations§
source§impl Clone for PublishLayerVersionInput
impl Clone for PublishLayerVersionInput
source§fn clone(&self) -> PublishLayerVersionInput
fn clone(&self) -> PublishLayerVersionInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PublishLayerVersionInput
impl Debug for PublishLayerVersionInput
source§impl PartialEq for PublishLayerVersionInput
impl PartialEq for PublishLayerVersionInput
source§fn eq(&self, other: &PublishLayerVersionInput) -> bool
fn eq(&self, other: &PublishLayerVersionInput) -> bool
self
and other
values to be equal, and is used
by ==
.