pub struct Builder { /* private fields */ }
Expand description

Implementations§

The snapshot attribute to modify. Only volume creation permissions can be modified.

Examples found in repository?
src/client.rs (line 67349)
67348
67349
67350
67351
        pub fn attribute(mut self, input: crate::model::SnapshotAttributeName) -> Self {
            self.inner = self.inner.attribute(input);
            self
        }

The snapshot attribute to modify. Only volume creation permissions can be modified.

Examples found in repository?
src/client.rs (line 67357)
67353
67354
67355
67356
67357
67358
67359
        pub fn set_attribute(
            mut self,
            input: std::option::Option<crate::model::SnapshotAttributeName>,
        ) -> Self {
            self.inner = self.inner.set_attribute(input);
            self
        }

A JSON representation of the snapshot attribute modification.

Examples found in repository?
src/client.rs (line 67365)
67361
67362
67363
67364
67365
67366
67367
        pub fn create_volume_permission(
            mut self,
            input: crate::model::CreateVolumePermissionModifications,
        ) -> Self {
            self.inner = self.inner.create_volume_permission(input);
            self
        }

A JSON representation of the snapshot attribute modification.

Examples found in repository?
src/client.rs (line 67373)
67369
67370
67371
67372
67373
67374
67375
        pub fn set_create_volume_permission(
            mut self,
            input: std::option::Option<crate::model::CreateVolumePermissionModifications>,
        ) -> Self {
            self.inner = self.inner.set_create_volume_permission(input);
            self
        }

Appends an item to group_names.

To override the contents of this collection use set_group_names.

The group to modify for the snapshot.

Examples found in repository?
src/client.rs (line 67382)
67381
67382
67383
67384
        pub fn group_names(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.group_names(input.into());
            self
        }

The group to modify for the snapshot.

Examples found in repository?
src/client.rs (line 67390)
67386
67387
67388
67389
67390
67391
67392
        pub fn set_group_names(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_group_names(input);
            self
        }

The type of operation to perform to the attribute.

Examples found in repository?
src/client.rs (line 67395)
67394
67395
67396
67397
        pub fn operation_type(mut self, input: crate::model::OperationType) -> Self {
            self.inner = self.inner.operation_type(input);
            self
        }

The type of operation to perform to the attribute.

Examples found in repository?
src/client.rs (line 67403)
67399
67400
67401
67402
67403
67404
67405
        pub fn set_operation_type(
            mut self,
            input: std::option::Option<crate::model::OperationType>,
        ) -> Self {
            self.inner = self.inner.set_operation_type(input);
            self
        }

The ID of the snapshot.

Examples found in repository?
src/client.rs (line 67408)
67407
67408
67409
67410
        pub fn snapshot_id(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.snapshot_id(input.into());
            self
        }

The ID of the snapshot.

Examples found in repository?
src/client.rs (line 67413)
67412
67413
67414
67415
        pub fn set_snapshot_id(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_snapshot_id(input);
            self
        }

Appends an item to user_ids.

To override the contents of this collection use set_user_ids.

The account ID to modify for the snapshot.

Examples found in repository?
src/client.rs (line 67422)
67421
67422
67423
67424
        pub fn user_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.user_ids(input.into());
            self
        }

The account ID to modify for the snapshot.

Examples found in repository?
src/client.rs (line 67430)
67426
67427
67428
67429
67430
67431
67432
        pub fn set_user_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_user_ids(input);
            self
        }

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 67435)
67434
67435
67436
67437
        pub fn dry_run(mut self, input: bool) -> Self {
            self.inner = self.inner.dry_run(input);
            self
        }

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Examples found in repository?
src/client.rs (line 67440)
67439
67440
67441
67442
        pub fn set_dry_run(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_dry_run(input);
            self
        }

Consumes the builder and constructs a ModifySnapshotAttributeInput.

Examples found in repository?
src/client.rs (line 67316)
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
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more