#[non_exhaustive]pub struct RemoveLayerVersionPermissionInput { /* private fields */ }
Implementations§
source§impl RemoveLayerVersionPermissionInput
impl RemoveLayerVersionPermissionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RemoveLayerVersionPermission, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RemoveLayerVersionPermission, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RemoveLayerVersionPermission
>
Examples found in repository?
src/client.rs (line 7479)
7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RemoveLayerVersionPermission,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RemoveLayerVersionPermissionError>,
> {
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::RemoveLayerVersionPermissionOutput,
aws_smithy_http::result::SdkError<crate::error::RemoveLayerVersionPermissionError>,
> {
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 RemoveLayerVersionPermissionInput
.
source§impl RemoveLayerVersionPermissionInput
impl RemoveLayerVersionPermissionInput
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 version_number(&self) -> i64
pub fn version_number(&self) -> i64
The version number.
sourcepub fn statement_id(&self) -> Option<&str>
pub fn statement_id(&self) -> Option<&str>
The identifier that was specified when the statement was added.
sourcepub fn revision_id(&self) -> Option<&str>
pub fn revision_id(&self) -> Option<&str>
Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.
Trait Implementations§
source§impl Clone for RemoveLayerVersionPermissionInput
impl Clone for RemoveLayerVersionPermissionInput
source§fn clone(&self) -> RemoveLayerVersionPermissionInput
fn clone(&self) -> RemoveLayerVersionPermissionInput
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