#[non_exhaustive]pub struct OrganizationManagedRuleMetadataBuilder { /* private fields */ }Expand description
A builder for OrganizationManagedRuleMetadata.
Implementations§
source§impl OrganizationManagedRuleMetadataBuilder
impl OrganizationManagedRuleMetadataBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description that you provide for your organization Config rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description that you provide for your organization Config rule.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description that you provide for your organization Config rule.
sourcepub fn rule_identifier(self, input: impl Into<String>) -> Self
pub fn rule_identifier(self, input: impl Into<String>) -> Self
For organization config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using Config managed rules.
sourcepub fn set_rule_identifier(self, input: Option<String>) -> Self
pub fn set_rule_identifier(self, input: Option<String>) -> Self
For organization config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using Config managed rules.
sourcepub fn get_rule_identifier(&self) -> &Option<String>
pub fn get_rule_identifier(&self) -> &Option<String>
For organization config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using Config managed rules.
sourcepub fn input_parameters(self, input: impl Into<String>) -> Self
pub fn input_parameters(self, input: impl Into<String>) -> Self
A string, in JSON format, that is passed to your organization Config rule Lambda function.
sourcepub fn set_input_parameters(self, input: Option<String>) -> Self
pub fn set_input_parameters(self, input: Option<String>) -> Self
A string, in JSON format, that is passed to your organization Config rule Lambda function.
sourcepub fn get_input_parameters(&self) -> &Option<String>
pub fn get_input_parameters(&self) -> &Option<String>
A string, in JSON format, that is passed to your organization Config rule Lambda function.
sourcepub fn maximum_execution_frequency(
self,
input: MaximumExecutionFrequency
) -> Self
pub fn maximum_execution_frequency( self, input: MaximumExecutionFrequency ) -> Self
The maximum frequency with which Config runs evaluations for a rule. This is for an Config managed rule that is triggered at a periodic frequency.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
sourcepub fn set_maximum_execution_frequency(
self,
input: Option<MaximumExecutionFrequency>
) -> Self
pub fn set_maximum_execution_frequency( self, input: Option<MaximumExecutionFrequency> ) -> Self
The maximum frequency with which Config runs evaluations for a rule. This is for an Config managed rule that is triggered at a periodic frequency.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
sourcepub fn get_maximum_execution_frequency(
&self
) -> &Option<MaximumExecutionFrequency>
pub fn get_maximum_execution_frequency( &self ) -> &Option<MaximumExecutionFrequency>
The maximum frequency with which Config runs evaluations for a rule. This is for an Config managed rule that is triggered at a periodic frequency.
By default, rules with a periodic trigger are evaluated every 24 hours. To change the frequency, specify a valid value for the MaximumExecutionFrequency parameter.
sourcepub fn resource_types_scope(self, input: impl Into<String>) -> Self
pub fn resource_types_scope(self, input: impl Into<String>) -> Self
Appends an item to resource_types_scope.
To override the contents of this collection use set_resource_types_scope.
The type of the Amazon Web Services resource that was evaluated.
sourcepub fn set_resource_types_scope(self, input: Option<Vec<String>>) -> Self
pub fn set_resource_types_scope(self, input: Option<Vec<String>>) -> Self
The type of the Amazon Web Services resource that was evaluated.
sourcepub fn get_resource_types_scope(&self) -> &Option<Vec<String>>
pub fn get_resource_types_scope(&self) -> &Option<Vec<String>>
The type of the Amazon Web Services resource that was evaluated.
sourcepub fn resource_id_scope(self, input: impl Into<String>) -> Self
pub fn resource_id_scope(self, input: impl Into<String>) -> Self
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn set_resource_id_scope(self, input: Option<String>) -> Self
pub fn set_resource_id_scope(self, input: Option<String>) -> Self
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn get_resource_id_scope(&self) -> &Option<String>
pub fn get_resource_id_scope(&self) -> &Option<String>
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn tag_key_scope(self, input: impl Into<String>) -> Self
pub fn tag_key_scope(self, input: impl Into<String>) -> Self
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
sourcepub fn set_tag_key_scope(self, input: Option<String>) -> Self
pub fn set_tag_key_scope(self, input: Option<String>) -> Self
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
sourcepub fn get_tag_key_scope(&self) -> &Option<String>
pub fn get_tag_key_scope(&self) -> &Option<String>
One part of a key-value pair that make up a tag. A key is a general label that acts like a category for more specific tag values.
sourcepub fn tag_value_scope(self, input: impl Into<String>) -> Self
pub fn tag_value_scope(self, input: impl Into<String>) -> Self
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
sourcepub fn set_tag_value_scope(self, input: Option<String>) -> Self
pub fn set_tag_value_scope(self, input: Option<String>) -> Self
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
sourcepub fn get_tag_value_scope(&self) -> &Option<String>
pub fn get_tag_value_scope(&self) -> &Option<String>
The optional part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
sourcepub fn build(self) -> Result<OrganizationManagedRuleMetadata, BuildError>
pub fn build(self) -> Result<OrganizationManagedRuleMetadata, BuildError>
Consumes the builder and constructs a OrganizationManagedRuleMetadata.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OrganizationManagedRuleMetadataBuilder
impl Clone for OrganizationManagedRuleMetadataBuilder
source§fn clone(&self) -> OrganizationManagedRuleMetadataBuilder
fn clone(&self) -> OrganizationManagedRuleMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OrganizationManagedRuleMetadataBuilder
impl Default for OrganizationManagedRuleMetadataBuilder
source§fn default() -> OrganizationManagedRuleMetadataBuilder
fn default() -> OrganizationManagedRuleMetadataBuilder
source§impl PartialEq for OrganizationManagedRuleMetadataBuilder
impl PartialEq for OrganizationManagedRuleMetadataBuilder
source§fn eq(&self, other: &OrganizationManagedRuleMetadataBuilder) -> bool
fn eq(&self, other: &OrganizationManagedRuleMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.