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 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
sourceimpl PutConformancePack
impl PutConformancePack
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
Name of the conformance pack you want to create.
sourcepub fn set_conformance_pack_name(self, input: Option<String>) -> Self
pub fn set_conformance_pack_name(self, input: Option<String>) -> Self
Name of the conformance pack you want to create.
sourcepub fn template_s3_uri(self, input: impl Into<String>) -> Self
pub fn template_s3_uri(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_template_s3_uri(self, input: Option<String>) -> Self
pub fn set_template_s3_uri(self, input: Option<String>) -> Self
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.
sourcepub fn template_body(self, input: impl Into<String>) -> Self
pub fn template_body(self, input: impl Into<String>) -> Self
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 two resource types: Config rule (AWS::Config::ConfigRule) and a 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 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 two resource types: Config rule (AWS::Config::ConfigRule) and a 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.
Trait Implementations
sourceimpl Clone for PutConformancePack
impl Clone for PutConformancePack
sourcefn clone(&self) -> PutConformancePack
fn clone(&self) -> PutConformancePack
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl !RefUnwindSafe for PutConformancePack
impl Send for PutConformancePack
impl Sync for PutConformancePack
impl Unpin for PutConformancePack
impl !UnwindSafe for PutConformancePack
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more