Struct aws_sdk_config::client::fluent_builders::PutConformancePack
source · [−]pub struct PutConformancePack<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }Expand description
Fluent builder constructing a request to PutConformancePack.
Creates or updates a conformance pack. A conformance pack is a collection of Config rules that can be easily deployed in an account and a region and across Amazon Web Services Organization.
This API creates a service linked role AWSServiceRoleForConfigConforms in your account. The service linked role is created only when the role does not exist in your account.
You must specify either the TemplateS3Uri or the TemplateBody parameter, but not both. If you provide both Config uses the TemplateS3Uri parameter and ignores the TemplateBody parameter.
Implementations
impl<C, M, R> PutConformancePack<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> PutConformancePack<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<PutConformancePackOutput, SdkError<PutConformancePackError>> where
R::Policy: SmithyRetryPolicy<PutConformancePackInputOperationOutputAlias, PutConformancePackOutput, PutConformancePackError, PutConformancePackInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<PutConformancePackOutput, SdkError<PutConformancePackError>> where
R::Policy: SmithyRetryPolicy<PutConformancePackInputOperationOutputAlias, PutConformancePackOutput, PutConformancePackError, PutConformancePackInputOperationRetryAlias>,
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, which can be set when configuring the client.
Name of the conformance pack you want to create.
Name of the conformance pack you want to create.
Location of file containing the template body (s3://bucketname/prefix). The uri must point to the 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.
Location of file containing the template body (s3://bucketname/prefix). The uri must point to the 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.
A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
You can only use a YAML template with one resource type, that is, config rule and a remediation action.
A string containing full conformance pack template body. Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes.
You can only use a YAML template with one resource type, that is, config rule and a remediation action.
The name of the Amazon S3 bucket where Config stores conformance pack templates.
This field is optional.
The name of the Amazon S3 bucket where Config stores conformance pack templates.
This field is optional.
The prefix for the Amazon S3 bucket.
This field is optional.
The prefix for the Amazon S3 bucket.
This field is optional.
Appends an item to ConformancePackInputParameters.
To override the contents of this collection use set_conformance_pack_input_parameters.
A list of ConformancePackInputParameter objects.
pub fn set_conformance_pack_input_parameters(
self,
input: Option<Vec<ConformancePackInputParameter>>
) -> Self
pub fn set_conformance_pack_input_parameters(
self,
input: Option<Vec<ConformancePackInputParameter>>
) -> Self
A list of ConformancePackInputParameter objects.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for PutConformancePack<C, M, R>
impl<C, M, R> Send for PutConformancePack<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for PutConformancePack<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for PutConformancePack<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for PutConformancePack<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
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