Struct aws_sdk_ec2::input::ModifySnapshotAttributeInput
source · #[non_exhaustive]pub struct ModifySnapshotAttributeInput { /* private fields */ }
Implementations§
source§impl ModifySnapshotAttributeInput
impl ModifySnapshotAttributeInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySnapshotAttribute, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifySnapshotAttribute, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ModifySnapshotAttribute
>
Examples found in repository?
src/client.rs (line 67318)
67304 67305 67306 67307 67308 67309 67310 67311 67312 67313 67314 67315 67316 67317 67318 67319 67320 67321 67322 67323 67324 67325 67326 67327 67328 67329 67330 67331 67332 67333 67334 67335 67336 67337 67338 67339 67340 67341 67342 67343 67344 67345 67346
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ModifySnapshotAttribute,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ModifySnapshotAttributeError>,
> {
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::ModifySnapshotAttributeOutput,
aws_smithy_http::result::SdkError<crate::error::ModifySnapshotAttributeError>,
> {
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 ModifySnapshotAttributeInput
.
source§impl ModifySnapshotAttributeInput
impl ModifySnapshotAttributeInput
sourcepub fn attribute(&self) -> Option<&SnapshotAttributeName>
pub fn attribute(&self) -> Option<&SnapshotAttributeName>
The snapshot attribute to modify. Only volume creation permissions can be modified.
sourcepub fn create_volume_permission(
&self
) -> Option<&CreateVolumePermissionModifications>
pub fn create_volume_permission(
&self
) -> Option<&CreateVolumePermissionModifications>
A JSON representation of the snapshot attribute modification.
sourcepub fn group_names(&self) -> Option<&[String]>
pub fn group_names(&self) -> Option<&[String]>
The group to modify for the snapshot.
sourcepub fn operation_type(&self) -> Option<&OperationType>
pub fn operation_type(&self) -> Option<&OperationType>
The type of operation to perform to the attribute.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The ID of the snapshot.
Trait Implementations§
source§impl Clone for ModifySnapshotAttributeInput
impl Clone for ModifySnapshotAttributeInput
source§fn clone(&self) -> ModifySnapshotAttributeInput
fn clone(&self) -> ModifySnapshotAttributeInput
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