#[non_exhaustive]pub struct OrganizationCustomPolicyRuleMetadata {
pub description: Option<String>,
pub organization_config_rule_trigger_types: Option<Vec<OrganizationConfigRuleTriggerTypeNoSn>>,
pub input_parameters: Option<String>,
pub maximum_execution_frequency: Option<MaximumExecutionFrequency>,
pub resource_types_scope: Option<Vec<String>>,
pub resource_id_scope: Option<String>,
pub tag_key_scope: Option<String>,
pub tag_value_scope: Option<String>,
pub policy_runtime: Option<String>,
pub policy_text: Option<String>,
pub debug_log_delivery_accounts: Option<Vec<String>>,
}Expand description
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.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.description: Option<String>The description that you provide for your organization Config Custom Policy rule.
organization_config_rule_trigger_types: Option<Vec<OrganizationConfigRuleTriggerTypeNoSn>>The type of notification that initiates Config to run an evaluation for a rule. For Config Custom Policy rules, Config supports change-initiated notification types:
-
ConfigurationItemChangeNotification- Initiates an evaluation when Config delivers a configuration item as a result of a resource change. -
OversizedConfigurationItemChangeNotification- Initiates 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.
input_parameters: Option<String>A string, in JSON format, that is passed to your organization Config Custom Policy rule.
maximum_execution_frequency: Option<MaximumExecutionFrequency>The maximum frequency with which Config runs evaluations for a rule. Your Config Custom Policy rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
resource_types_scope: Option<Vec<String>>The type of the Amazon Web Services resource that was evaluated.
resource_id_scope: Option<String>The ID of the Amazon Web Services resource that was evaluated.
tag_key_scope: 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.
tag_value_scope: 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).
policy_runtime: Option<String>The runtime system for your organization Config Custom Policy rules. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository.
policy_text: Option<String>The policy definition containing the logic for your organization Config Custom Policy rule.
debug_log_delivery_accounts: Option<Vec<String>>A list of accounts that you can enable debug logging for your organization Config Custom Policy rule. List is null when debug logging is enabled for all accounts.
Implementations
sourceimpl OrganizationCustomPolicyRuleMetadata
impl OrganizationCustomPolicyRuleMetadata
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description that you provide for your organization Config Custom Policy rule.
sourcepub fn organization_config_rule_trigger_types(
&self
) -> Option<&[OrganizationConfigRuleTriggerTypeNoSn]>
pub fn organization_config_rule_trigger_types(
&self
) -> Option<&[OrganizationConfigRuleTriggerTypeNoSn]>
The type of notification that initiates Config to run an evaluation for a rule. For Config Custom Policy rules, Config supports change-initiated notification types:
-
ConfigurationItemChangeNotification- Initiates an evaluation when Config delivers a configuration item as a result of a resource change. -
OversizedConfigurationItemChangeNotification- Initiates 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.
sourcepub fn input_parameters(&self) -> Option<&str>
pub fn input_parameters(&self) -> Option<&str>
A string, in JSON format, that is passed to your organization Config Custom Policy rule.
sourcepub fn maximum_execution_frequency(&self) -> Option<&MaximumExecutionFrequency>
pub fn maximum_execution_frequency(&self) -> Option<&MaximumExecutionFrequency>
The maximum frequency with which Config runs evaluations for a rule. Your Config Custom Policy rule is triggered when Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
sourcepub fn resource_types_scope(&self) -> Option<&[String]>
pub fn resource_types_scope(&self) -> Option<&[String]>
The type of the Amazon Web Services resource that was evaluated.
sourcepub fn resource_id_scope(&self) -> Option<&str>
pub fn resource_id_scope(&self) -> Option<&str>
The ID of the Amazon Web Services resource that was evaluated.
sourcepub fn tag_key_scope(&self) -> Option<&str>
pub fn tag_key_scope(&self) -> Option<&str>
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) -> Option<&str>
pub fn tag_value_scope(&self) -> Option<&str>
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 policy_runtime(&self) -> Option<&str>
pub fn policy_runtime(&self) -> Option<&str>
The runtime system for your organization Config Custom Policy rules. Guard is a policy-as-code language that allows you to write policies that are enforced by Config Custom Policy rules. For more information about Guard, see the Guard GitHub Repository.
sourcepub fn policy_text(&self) -> Option<&str>
pub fn policy_text(&self) -> Option<&str>
The policy definition containing the logic for your organization Config Custom Policy rule.
sourcepub fn debug_log_delivery_accounts(&self) -> Option<&[String]>
pub fn debug_log_delivery_accounts(&self) -> Option<&[String]>
A list of accounts that you can enable debug logging for your organization Config Custom Policy rule. List is null when debug logging is enabled for all accounts.
sourceimpl OrganizationCustomPolicyRuleMetadata
impl OrganizationCustomPolicyRuleMetadata
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OrganizationCustomPolicyRuleMetadata.
Trait Implementations
sourceimpl Clone for OrganizationCustomPolicyRuleMetadata
impl Clone for OrganizationCustomPolicyRuleMetadata
sourcefn clone(&self) -> OrganizationCustomPolicyRuleMetadata
fn clone(&self) -> OrganizationCustomPolicyRuleMetadata
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
sourceimpl PartialEq<OrganizationCustomPolicyRuleMetadata> for OrganizationCustomPolicyRuleMetadata
impl PartialEq<OrganizationCustomPolicyRuleMetadata> for OrganizationCustomPolicyRuleMetadata
sourcefn eq(&self, other: &OrganizationCustomPolicyRuleMetadata) -> bool
fn eq(&self, other: &OrganizationCustomPolicyRuleMetadata) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OrganizationCustomPolicyRuleMetadata) -> bool
fn ne(&self, other: &OrganizationCustomPolicyRuleMetadata) -> bool
This method tests for !=.
impl StructuralPartialEq for OrganizationCustomPolicyRuleMetadata
Auto Trait Implementations
impl RefUnwindSafe for OrganizationCustomPolicyRuleMetadata
impl Send for OrganizationCustomPolicyRuleMetadata
impl Sync for OrganizationCustomPolicyRuleMetadata
impl Unpin for OrganizationCustomPolicyRuleMetadata
impl UnwindSafe for OrganizationCustomPolicyRuleMetadata
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