Struct aws_sdk_config::input::PutConformancePackInput
source · #[non_exhaustive]pub struct PutConformancePackInput { /* private fields */ }Implementations§
source§impl PutConformancePackInput
impl PutConformancePackInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutConformancePack, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutConformancePack, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<PutConformancePack>
Examples found in repository?
8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::PutConformancePack,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::PutConformancePackError>,
> {
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::PutConformancePackOutput,
aws_smithy_http::result::SdkError<crate::error::PutConformancePackError>,
> {
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 PutConformancePackInput.
source§impl PutConformancePackInput
impl PutConformancePackInput
sourcepub fn conformance_pack_name(&self) -> Option<&str>
pub fn conformance_pack_name(&self) -> Option<&str>
The unique name of the conformance pack you want to deploy.
sourcepub fn template_s3_uri(&self) -> Option<&str>
pub fn template_s3_uri(&self) -> Option<&str>
The location of the file containing the template body (s3://bucketname/prefix). The uri must point to a conformance pack template (max size: 300 KB) that is located in an Amazon S3 bucket in the same region as the conformance pack.
You must have access to read Amazon S3 bucket.
sourcepub fn template_body(&self) -> Option<&str>
pub fn template_body(&self) -> Option<&str>
A string containing the full conformance pack template body. The structure containing the template body has a minimum length of 1 byte and a maximum length of 51,200 bytes.
You can only use a YAML template with two resource types: Config rule (AWS::Config::ConfigRule) and remediation action (AWS::Config::RemediationConfiguration).
sourcepub fn delivery_s3_bucket(&self) -> Option<&str>
pub fn delivery_s3_bucket(&self) -> Option<&str>
The name of the Amazon S3 bucket where Config stores conformance pack templates.
This field is optional.
sourcepub fn delivery_s3_key_prefix(&self) -> Option<&str>
pub fn delivery_s3_key_prefix(&self) -> Option<&str>
The prefix for the Amazon S3 bucket.
This field is optional.
sourcepub fn conformance_pack_input_parameters(
&self
) -> Option<&[ConformancePackInputParameter]>
pub fn conformance_pack_input_parameters(
&self
) -> Option<&[ConformancePackInputParameter]>
A list of ConformancePackInputParameter objects.
sourcepub fn template_ssm_document_details(
&self
) -> Option<&TemplateSsmDocumentDetails>
pub fn template_ssm_document_details(
&self
) -> Option<&TemplateSsmDocumentDetails>
An object of type TemplateSSMDocumentDetails, which contains the name or the Amazon Resource Name (ARN) of the Amazon Web Services Systems Manager document (SSM document) and the version of the SSM document that is used to create a conformance pack.
Trait Implementations§
source§impl Clone for PutConformancePackInput
impl Clone for PutConformancePackInput
source§fn clone(&self) -> PutConformancePackInput
fn clone(&self) -> PutConformancePackInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more