Struct aws_sdk_lambda::input::PublishLayerVersionInput
source · #[non_exhaustive]pub struct PublishLayerVersionInput { /* private fields */ }
Implementations§
source§impl PublishLayerVersionInput
impl PublishLayerVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PublishLayerVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PublishLayerVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PublishLayerVersion
>
Examples found in repository?
src/client.rs (line 6737)
6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PublishLayerVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PublishLayerVersionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::PublishLayerVersionOutput,
aws_smithy_http::result::SdkError<crate::error::PublishLayerVersionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PublishLayerVersionInput
.
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) -> Option<&[Runtime]>
pub fn compatible_runtimes(&self) -> Option<&[Runtime]>
A list of compatible function runtimes. Used for filtering with ListLayers
and ListLayerVersions
.
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) -> Option<&[Architecture]>
pub fn compatible_architectures(&self) -> Option<&[Architecture]>
A list of compatible instruction set architectures.
Trait Implementations§
source§impl Clone for PublishLayerVersionInput
impl Clone for PublishLayerVersionInput
source§fn clone(&self) -> PublishLayerVersionInput
fn clone(&self) -> PublishLayerVersionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more