Struct rusoto_config::ConfigRule
source · [−]pub struct ConfigRule {
pub config_rule_arn: Option<String>,
pub config_rule_id: Option<String>,
pub config_rule_name: Option<String>,
pub config_rule_state: Option<String>,
pub created_by: Option<String>,
pub description: Option<String>,
pub input_parameters: Option<String>,
pub maximum_execution_frequency: Option<String>,
pub scope: Option<Scope>,
pub source: Source,
}
Expand description
An AWS Config rule represents an AWS Lambda function that you create for a custom rule or a predefined function for an AWS managed rule. The function evaluates configuration items to assess whether your AWS resources comply with your desired configurations. This function can run when AWS Config detects a configuration change to an AWS resource and at a periodic frequency that you choose (for example, every 24 hours).
You can use the AWS CLI and AWS SDKs if you want to create a rule that triggers evaluations for your resources when AWS Config delivers the configuration snapshot. For more information, see ConfigSnapshotDeliveryProperties.
For more information about developing and using AWS Config rules, see Evaluating AWS Resource Configurations with AWS Config in the AWS Config Developer Guide.
Fields
config_rule_arn: Option<String>
The Amazon Resource Name (ARN) of the AWS Config rule.
config_rule_id: Option<String>
The ID of the AWS Config rule.
config_rule_name: Option<String>
The name that you assign to the AWS Config rule. The name is required if you are adding a new rule.
config_rule_state: Option<String>
Indicates whether the AWS Config rule is active or is currently being deleted by AWS Config. It can also indicate the evaluation status for the AWS Config rule.
AWS Config sets the state of the rule to EVALUATING
temporarily after you use the StartConfigRulesEvaluation
request to evaluate your resources against the AWS Config rule.
AWS Config sets the state of the rule to DELETING_RESULTS
temporarily after you use the DeleteEvaluationResults
request to delete the current evaluation results for the AWS Config rule.
AWS Config temporarily sets the state of a rule to DELETING
after you use the DeleteConfigRule
request to delete the rule. After AWS Config deletes the rule, the rule and all of its evaluations are erased and are no longer available.
created_by: Option<String>
Service principal name of the service that created the rule.
The field is populated only if the service linked rule is created by a service. The field is empty if you create your own rule.
description: Option<String>
The description that you provide for the AWS Config rule.
input_parameters: Option<String>
A string, in JSON format, that is passed to the AWS Config rule Lambda function.
maximum_execution_frequency: Option<String>
The maximum frequency with which AWS Config runs evaluations for a rule. You can specify a value for MaximumExecutionFrequency
when:
-
You are using an AWS managed rule that is triggered at a periodic frequency.
-
Your custom rule is triggered when AWS 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.
scope: Option<Scope>
Defines which resources can trigger an evaluation for the rule. The scope can include one or more resource types, a combination of one resource type and one resource ID, or a combination of a tag key and value. Specify a scope to constrain the resources that can trigger an evaluation for the rule. If you do not specify a scope, evaluations are triggered when any resource in the recording group changes.
The scope can be empty.
source: Source
Provides the rule owner (AWS or customer), the rule identifier, and the notifications that cause the function to evaluate your AWS resources.
Trait Implementations
sourceimpl Clone for ConfigRule
impl Clone for ConfigRule
sourcefn clone(&self) -> ConfigRule
fn clone(&self) -> ConfigRule
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 Debug for ConfigRule
impl Debug for ConfigRule
sourceimpl Default for ConfigRule
impl Default for ConfigRule
sourcefn default() -> ConfigRule
fn default() -> ConfigRule
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ConfigRule
impl<'de> Deserialize<'de> for ConfigRule
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ConfigRule> for ConfigRule
impl PartialEq<ConfigRule> for ConfigRule
sourcefn eq(&self, other: &ConfigRule) -> bool
fn eq(&self, other: &ConfigRule) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConfigRule) -> bool
fn ne(&self, other: &ConfigRule) -> bool
This method tests for !=
.
sourceimpl Serialize for ConfigRule
impl Serialize for ConfigRule
impl StructuralPartialEq for ConfigRule
Auto Trait Implementations
impl RefUnwindSafe for ConfigRule
impl Send for ConfigRule
impl Sync for ConfigRule
impl Unpin for ConfigRule
impl UnwindSafe for ConfigRule
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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