Struct aws_sdk_backup::input::CreateReportPlanInput
source · #[non_exhaustive]pub struct CreateReportPlanInput { /* private fields */ }
Implementations§
source§impl CreateReportPlanInput
impl CreateReportPlanInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateReportPlan, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateReportPlan, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateReportPlan
>
Examples found in repository?
1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateReportPlan,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateReportPlanError>,
> {
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::CreateReportPlanOutput,
aws_smithy_http::result::SdkError<crate::error::CreateReportPlanError>,
> {
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 CreateReportPlanInput
.
source§impl CreateReportPlanInput
impl CreateReportPlanInput
sourcepub fn report_plan_name(&self) -> Option<&str>
pub fn report_plan_name(&self) -> Option<&str>
The unique name of the report plan. 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 report_plan_description(&self) -> Option<&str>
pub fn report_plan_description(&self) -> Option<&str>
An optional description of the report plan with a maximum of 1,024 characters.
sourcepub fn report_delivery_channel(&self) -> Option<&ReportDeliveryChannel>
pub fn report_delivery_channel(&self) -> Option<&ReportDeliveryChannel>
A structure that contains information about where and how to deliver your reports, specifically your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
sourcepub fn report_setting(&self) -> Option<&ReportSetting>
pub fn report_setting(&self) -> Option<&ReportSetting>
Identifies the report template for the report. Reports are built using a report template. The report templates are:
RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT | COPY_JOB_REPORT | RESTORE_JOB_REPORT
If the report template is RESOURCE_COMPLIANCE_REPORT
or CONTROL_COMPLIANCE_REPORT
, this API resource also describes the report coverage by Amazon Web Services Regions and frameworks.
Metadata that you can assign to help organize the report plans that you create. Each tag is a key-value pair.
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 CreateReportPlanInput
. Retrying a successful request with the same idempotency token results in a success message with no action taken.
Trait Implementations§
source§impl Clone for CreateReportPlanInput
impl Clone for CreateReportPlanInput
source§fn clone(&self) -> CreateReportPlanInput
fn clone(&self) -> CreateReportPlanInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more