pub struct PutOrganizationConformancePack { /* private fields */ }Expand description
Fluent builder constructing a request to PutOrganizationConformancePack.
Deploys conformance packs across member accounts in an Amazon Web Services Organization.
Only a master account and a delegated administrator can call this API. When calling this API with a delegated administrator, you must ensure Organizations ListDelegatedAdministrator permissions are added.
This API enables organization service access for config-multiaccountsetup.amazonaws.com through the EnableAWSServiceAccess action and creates a service linked role AWSServiceRoleForConfigMultiAccountSetup in the master or delegated administrator account of your organization. The service linked role is created only when the role does not exist in the caller account. To use this API with delegated administrator, register a delegated administrator by calling Amazon Web Services Organization register-delegate-admin for config-multiaccountsetup.amazonaws.com.
Prerequisite: Ensure you call EnableAllFeatures API to enable all features in an organization.
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.
Config sets the state of a conformance pack to CREATE_IN_PROGRESS and UPDATE_IN_PROGRESS until the conformance pack is created or updated. You cannot update a conformance pack while it is in this state.
You can create 50 conformance packs with 25 Config rules in each pack and 3 delegated administrator per organization.
Implementations
sourceimpl PutOrganizationConformancePack
impl PutOrganizationConformancePack
sourcepub async fn send(
self
) -> Result<PutOrganizationConformancePackOutput, SdkError<PutOrganizationConformancePackError>>
pub async fn send(
self
) -> Result<PutOrganizationConformancePackOutput, SdkError<PutOrganizationConformancePackError>>
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 organization_conformance_pack_name(
self,
input: impl Into<String>
) -> Self
pub fn organization_conformance_pack_name(
self,
input: impl Into<String>
) -> Self
Name of the organization conformance pack you want to create.
sourcepub fn set_organization_conformance_pack_name(
self,
input: Option<String>
) -> Self
pub fn set_organization_conformance_pack_name(
self,
input: Option<String>
) -> Self
Name of the organization 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. The uri must point to the conformance pack template (max size: 300 KB).
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. The uri must point to the conformance pack template (max size: 300 KB).
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.
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.
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. If used, it must be prefixed with awsconfigconforms.
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. If used, it must be prefixed with awsconfigconforms.
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 excluded_accounts(self, input: impl Into<String>) -> Self
pub fn excluded_accounts(self, input: impl Into<String>) -> Self
Appends an item to ExcludedAccounts.
To override the contents of this collection use set_excluded_accounts.
A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a conformance pack.
sourcepub fn set_excluded_accounts(self, input: Option<Vec<String>>) -> Self
pub fn set_excluded_accounts(self, input: Option<Vec<String>>) -> Self
A list of Amazon Web Services accounts to be excluded from an organization conformance pack while deploying a conformance pack.
Trait Implementations
sourceimpl Clone for PutOrganizationConformancePack
impl Clone for PutOrganizationConformancePack
sourcefn clone(&self) -> PutOrganizationConformancePack
fn clone(&self) -> PutOrganizationConformancePack
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 PutOrganizationConformancePack
impl Send for PutOrganizationConformancePack
impl Sync for PutOrganizationConformancePack
impl Unpin for PutOrganizationConformancePack
impl !UnwindSafe for PutOrganizationConformancePack
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