Struct aws_sdk_config::client::fluent_builders::PutConformancePack
source · pub struct PutConformancePack { /* 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. For information on how many conformance packs you can have per account, see Service Limits in the Config Developer Guide.
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 one and only one of theTemplateS3Uri, TemplateBody or TemplateSSMDocumentDetails parameters.
Implementations§
source§impl PutConformancePack
impl PutConformancePack
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<PutConformancePack, AwsResponseRetryClassifier>, SdkError<PutConformancePackError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<PutConformancePack, AwsResponseRetryClassifier>, SdkError<PutConformancePackError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<PutConformancePackOutput, SdkError<PutConformancePackError>>
pub async fn send(
self
) -> Result<PutConformancePackOutput, SdkError<PutConformancePackError>>
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.
sourcepub fn conformance_pack_name(self, input: impl Into<String>) -> Self
pub fn conformance_pack_name(self, input: impl Into<String>) -> Self
The unique name of the conformance pack you want to deploy.
sourcepub fn set_conformance_pack_name(self, input: Option<String>) -> Self
pub fn set_conformance_pack_name(self, input: Option<String>) -> Self
The unique name of the conformance pack you want to deploy.
sourcepub fn template_s3_uri(self, input: impl Into<String>) -> Self
pub fn template_s3_uri(self, input: impl Into<String>) -> Self
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 set_template_s3_uri(self, input: Option<String>) -> Self
pub fn set_template_s3_uri(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn template_body(self, input: impl Into<String>) -> Self
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 set_template_body(self, input: Option<String>) -> Self
pub fn set_template_body(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn delivery_s3_bucket(self, input: impl Into<String>) -> Self
The name of the Amazon S3 bucket where Config stores conformance pack templates.
This field is optional.
sourcepub fn set_delivery_s3_bucket(self, input: Option<String>) -> Self
pub fn set_delivery_s3_bucket(self, input: Option<String>) -> Self
The name of the Amazon S3 bucket where Config stores conformance pack templates.
This field is optional.
sourcepub fn delivery_s3_key_prefix(self, input: impl Into<String>) -> Self
pub fn delivery_s3_key_prefix(self, input: impl Into<String>) -> Self
The prefix for the Amazon S3 bucket.
This field is optional.
sourcepub fn set_delivery_s3_key_prefix(self, input: Option<String>) -> Self
pub fn set_delivery_s3_key_prefix(self, input: Option<String>) -> Self
The prefix for the Amazon S3 bucket.
This field is optional.
sourcepub fn conformance_pack_input_parameters(
self,
input: ConformancePackInputParameter
) -> Self
pub fn conformance_pack_input_parameters(
self,
input: ConformancePackInputParameter
) -> Self
Appends an item to ConformancePackInputParameters.
To override the contents of this collection use set_conformance_pack_input_parameters.
A list of ConformancePackInputParameter objects.
sourcepub 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.
sourcepub fn template_ssm_document_details(
self,
input: TemplateSsmDocumentDetails
) -> Self
pub fn template_ssm_document_details(
self,
input: TemplateSsmDocumentDetails
) -> Self
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.
sourcepub fn set_template_ssm_document_details(
self,
input: Option<TemplateSsmDocumentDetails>
) -> Self
pub fn set_template_ssm_document_details(
self,
input: Option<TemplateSsmDocumentDetails>
) -> Self
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 PutConformancePack
impl Clone for PutConformancePack
source§fn clone(&self) -> PutConformancePack
fn clone(&self) -> PutConformancePack
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more