#[non_exhaustive]pub struct OrganizationCustomRuleMetadataBuilder { /* private fields */ }Expand description
A builder for OrganizationCustomRuleMetadata.
Implementations§
source§impl OrganizationCustomRuleMetadataBuilder
impl OrganizationCustomRuleMetadataBuilder
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 lambda_function_arn(self, input: impl Into<String>) -> Self
pub fn lambda_function_arn(self, input: impl Into<String>) -> Self
The lambda function ARN.
This field is required.sourcepub fn set_lambda_function_arn(self, input: Option<String>) -> Self
pub fn set_lambda_function_arn(self, input: Option<String>) -> Self
The lambda function ARN.
sourcepub fn get_lambda_function_arn(&self) -> &Option<String>
pub fn get_lambda_function_arn(&self) -> &Option<String>
The lambda function ARN.
sourcepub fn organization_config_rule_trigger_types(
self,
input: OrganizationConfigRuleTriggerType,
) -> Self
pub fn organization_config_rule_trigger_types( self, input: OrganizationConfigRuleTriggerType, ) -> Self
Appends an item to organization_config_rule_trigger_types.
To override the contents of this collection use set_organization_config_rule_trigger_types.
The type of notification that triggers Config to run an evaluation for a rule. You can specify the following notification types:
-
ConfigurationItemChangeNotification- Triggers an evaluation when Config delivers a configuration item as a result of a resource change. -
OversizedConfigurationItemChangeNotification- Triggers an evaluation when Config delivers an oversized configuration item. Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS. -
ScheduledNotification- Triggers a periodic evaluation at the frequency specified forMaximumExecutionFrequency.
sourcepub fn set_organization_config_rule_trigger_types(
self,
input: Option<Vec<OrganizationConfigRuleTriggerType>>,
) -> Self
pub fn set_organization_config_rule_trigger_types( self, input: Option<Vec<OrganizationConfigRuleTriggerType>>, ) -> Self
The type of notification that triggers Config to run an evaluation for a rule. You can specify the following notification types:
-
ConfigurationItemChangeNotification- Triggers an evaluation when Config delivers a configuration item as a result of a resource change. -
OversizedConfigurationItemChangeNotification- Triggers an evaluation when Config delivers an oversized configuration item. Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS. -
ScheduledNotification- Triggers a periodic evaluation at the frequency specified forMaximumExecutionFrequency.
sourcepub fn get_organization_config_rule_trigger_types(
&self,
) -> &Option<Vec<OrganizationConfigRuleTriggerType>>
pub fn get_organization_config_rule_trigger_types( &self, ) -> &Option<Vec<OrganizationConfigRuleTriggerType>>
The type of notification that triggers Config to run an evaluation for a rule. You can specify the following notification types:
-
ConfigurationItemChangeNotification- Triggers an evaluation when Config delivers a configuration item as a result of a resource change. -
OversizedConfigurationItemChangeNotification- Triggers an evaluation when Config delivers an oversized configuration item. Config may generate this notification type when a resource changes and the notification exceeds the maximum size allowed by Amazon SNS. -
ScheduledNotification- Triggers a periodic evaluation at the frequency specified forMaximumExecutionFrequency.
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. Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
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. Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
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. Your custom rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
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<OrganizationCustomRuleMetadata, BuildError>
pub fn build(self) -> Result<OrganizationCustomRuleMetadata, BuildError>
Consumes the builder and constructs a OrganizationCustomRuleMetadata.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for OrganizationCustomRuleMetadataBuilder
impl Clone for OrganizationCustomRuleMetadataBuilder
source§fn clone(&self) -> OrganizationCustomRuleMetadataBuilder
fn clone(&self) -> OrganizationCustomRuleMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for OrganizationCustomRuleMetadataBuilder
impl Default for OrganizationCustomRuleMetadataBuilder
source§fn default() -> OrganizationCustomRuleMetadataBuilder
fn default() -> OrganizationCustomRuleMetadataBuilder
source§impl PartialEq for OrganizationCustomRuleMetadataBuilder
impl PartialEq for OrganizationCustomRuleMetadataBuilder
source§fn eq(&self, other: &OrganizationCustomRuleMetadataBuilder) -> bool
fn eq(&self, other: &OrganizationCustomRuleMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for OrganizationCustomRuleMetadataBuilder
Auto Trait Implementations§
impl Freeze for OrganizationCustomRuleMetadataBuilder
impl RefUnwindSafe for OrganizationCustomRuleMetadataBuilder
impl Send for OrganizationCustomRuleMetadataBuilder
impl Sync for OrganizationCustomRuleMetadataBuilder
impl Unpin for OrganizationCustomRuleMetadataBuilder
impl UnwindSafe for OrganizationCustomRuleMetadataBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more