Struct aws_sdk_backup::input::CreateFrameworkInput
source · #[non_exhaustive]pub struct CreateFrameworkInput { /* private fields */ }
Implementations§
source§impl CreateFrameworkInput
impl CreateFrameworkInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateFramework, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateFramework, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateFramework
>
Examples found in repository?
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateFramework,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateFrameworkError>,
> {
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::CreateFrameworkOutput,
aws_smithy_http::result::SdkError<crate::error::CreateFrameworkError>,
> {
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 CreateFrameworkInput
.
source§impl CreateFrameworkInput
impl CreateFrameworkInput
sourcepub fn framework_name(&self) -> Option<&str>
pub fn framework_name(&self) -> Option<&str>
The unique name of the framework. The name must be between 1 and 256 characters, starting with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores (_).
sourcepub fn framework_description(&self) -> Option<&str>
pub fn framework_description(&self) -> Option<&str>
An optional description of the framework with a maximum of 1,024 characters.
sourcepub fn framework_controls(&self) -> Option<&[FrameworkControl]>
pub fn framework_controls(&self) -> Option<&[FrameworkControl]>
A list of the controls that make up the framework. Each control in the list has a name, input parameters, and scope.
sourcepub fn idempotency_token(&self) -> Option<&str>
pub fn idempotency_token(&self) -> Option<&str>
A customer-chosen string that you can use to distinguish between otherwise identical calls to CreateFrameworkInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
Metadata that you can assign to help organize the frameworks that you create. Each tag is a key-value pair.
Trait Implementations§
source§impl Clone for CreateFrameworkInput
impl Clone for CreateFrameworkInput
source§fn clone(&self) -> CreateFrameworkInput
fn clone(&self) -> CreateFrameworkInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more