#[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 ==
.impl StructuralPartialEq for PublishLayerVersionInput
Auto Trait Implementations§
impl Freeze for PublishLayerVersionInput
impl RefUnwindSafe for PublishLayerVersionInput
impl Send for PublishLayerVersionInput
impl Sync for PublishLayerVersionInput
impl Unpin for PublishLayerVersionInput
impl UnwindSafe for PublishLayerVersionInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more