#[non_exhaustive]pub struct OrganizationConfigRuleBuilder { /* private fields */ }Expand description
A builder for OrganizationConfigRule.
Implementations§
source§impl OrganizationConfigRuleBuilder
impl OrganizationConfigRuleBuilder
sourcepub fn organization_config_rule_name(self, input: impl Into<String>) -> Self
pub fn organization_config_rule_name(self, input: impl Into<String>) -> Self
The name that you assign to organization Config rule.
This field is required.sourcepub fn set_organization_config_rule_name(self, input: Option<String>) -> Self
pub fn set_organization_config_rule_name(self, input: Option<String>) -> Self
The name that you assign to organization Config rule.
sourcepub fn get_organization_config_rule_name(&self) -> &Option<String>
pub fn get_organization_config_rule_name(&self) -> &Option<String>
The name that you assign to organization Config rule.
sourcepub fn organization_config_rule_arn(self, input: impl Into<String>) -> Self
pub fn organization_config_rule_arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) of organization Config rule.
This field is required.sourcepub fn set_organization_config_rule_arn(self, input: Option<String>) -> Self
pub fn set_organization_config_rule_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) of organization Config rule.
sourcepub fn get_organization_config_rule_arn(&self) -> &Option<String>
pub fn get_organization_config_rule_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) of organization Config rule.
sourcepub fn organization_managed_rule_metadata(
self,
input: OrganizationManagedRuleMetadata
) -> Self
pub fn organization_managed_rule_metadata( self, input: OrganizationManagedRuleMetadata ) -> Self
An OrganizationManagedRuleMetadata object.
sourcepub fn set_organization_managed_rule_metadata(
self,
input: Option<OrganizationManagedRuleMetadata>
) -> Self
pub fn set_organization_managed_rule_metadata( self, input: Option<OrganizationManagedRuleMetadata> ) -> Self
An OrganizationManagedRuleMetadata object.
sourcepub fn get_organization_managed_rule_metadata(
&self
) -> &Option<OrganizationManagedRuleMetadata>
pub fn get_organization_managed_rule_metadata( &self ) -> &Option<OrganizationManagedRuleMetadata>
An OrganizationManagedRuleMetadata object.
sourcepub fn organization_custom_rule_metadata(
self,
input: OrganizationCustomRuleMetadata
) -> Self
pub fn organization_custom_rule_metadata( self, input: OrganizationCustomRuleMetadata ) -> Self
An OrganizationCustomRuleMetadata object.
sourcepub fn set_organization_custom_rule_metadata(
self,
input: Option<OrganizationCustomRuleMetadata>
) -> Self
pub fn set_organization_custom_rule_metadata( self, input: Option<OrganizationCustomRuleMetadata> ) -> Self
An OrganizationCustomRuleMetadata object.
sourcepub fn get_organization_custom_rule_metadata(
&self
) -> &Option<OrganizationCustomRuleMetadata>
pub fn get_organization_custom_rule_metadata( &self ) -> &Option<OrganizationCustomRuleMetadata>
An OrganizationCustomRuleMetadata object.
sourcepub fn excluded_accounts(self, input: impl Into<String>) -> Self
pub fn excluded_accounts(self, input: impl Into<String>) -> Self
Appends an item to excluded_accounts.
To override the contents of this collection use set_excluded_accounts.
A comma-separated list of accounts excluded from organization Config rule.
sourcepub fn set_excluded_accounts(self, input: Option<Vec<String>>) -> Self
pub fn set_excluded_accounts(self, input: Option<Vec<String>>) -> Self
A comma-separated list of accounts excluded from organization Config rule.
sourcepub fn get_excluded_accounts(&self) -> &Option<Vec<String>>
pub fn get_excluded_accounts(&self) -> &Option<Vec<String>>
A comma-separated list of accounts excluded from organization Config rule.
sourcepub fn last_update_time(self, input: DateTime) -> Self
pub fn last_update_time(self, input: DateTime) -> Self
The timestamp of the last update.
sourcepub fn set_last_update_time(self, input: Option<DateTime>) -> Self
pub fn set_last_update_time(self, input: Option<DateTime>) -> Self
The timestamp of the last update.
sourcepub fn get_last_update_time(&self) -> &Option<DateTime>
pub fn get_last_update_time(&self) -> &Option<DateTime>
The timestamp of the last update.
sourcepub fn organization_custom_policy_rule_metadata(
self,
input: OrganizationCustomPolicyRuleMetadataNoPolicy
) -> Self
pub fn organization_custom_policy_rule_metadata( self, input: OrganizationCustomPolicyRuleMetadataNoPolicy ) -> Self
An object that specifies metadata for your organization's Config Custom Policy rule. The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of Amazon Web Services resource, and organization trigger types that initiate Config to evaluate Amazon Web Services resources against a rule.
sourcepub fn set_organization_custom_policy_rule_metadata(
self,
input: Option<OrganizationCustomPolicyRuleMetadataNoPolicy>
) -> Self
pub fn set_organization_custom_policy_rule_metadata( self, input: Option<OrganizationCustomPolicyRuleMetadataNoPolicy> ) -> Self
An object that specifies metadata for your organization's Config Custom Policy rule. The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of Amazon Web Services resource, and organization trigger types that initiate Config to evaluate Amazon Web Services resources against a rule.
sourcepub fn get_organization_custom_policy_rule_metadata(
&self
) -> &Option<OrganizationCustomPolicyRuleMetadataNoPolicy>
pub fn get_organization_custom_policy_rule_metadata( &self ) -> &Option<OrganizationCustomPolicyRuleMetadataNoPolicy>
An object that specifies metadata for your organization's Config Custom Policy rule. The metadata includes the runtime system in use, which accounts have debug logging enabled, and other custom rule metadata, such as resource type, resource ID of Amazon Web Services resource, and organization trigger types that initiate Config to evaluate Amazon Web Services resources against a rule.
sourcepub fn build(self) -> Result<OrganizationConfigRule, BuildError>
pub fn build(self) -> Result<OrganizationConfigRule, BuildError>
Consumes the builder and constructs a OrganizationConfigRule.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OrganizationConfigRuleBuilder
impl Clone for OrganizationConfigRuleBuilder
source§fn clone(&self) -> OrganizationConfigRuleBuilder
fn clone(&self) -> OrganizationConfigRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OrganizationConfigRuleBuilder
impl Default for OrganizationConfigRuleBuilder
source§fn default() -> OrganizationConfigRuleBuilder
fn default() -> OrganizationConfigRuleBuilder
source§impl PartialEq for OrganizationConfigRuleBuilder
impl PartialEq for OrganizationConfigRuleBuilder
source§fn eq(&self, other: &OrganizationConfigRuleBuilder) -> bool
fn eq(&self, other: &OrganizationConfigRuleBuilder) -> bool
self and other values to be equal, and is used
by ==.