[][src]Struct rusoto_fms::Policy

pub struct Policy {
    pub exclude_map: Option<HashMap<String, Vec<String>>>,
    pub exclude_resource_tags: bool,
    pub include_map: Option<HashMap<String, Vec<String>>>,
    pub policy_id: Option<String>,
    pub policy_name: String,
    pub policy_update_token: Option<String>,
    pub remediation_enabled: bool,
    pub resource_tags: Option<Vec<ResourceTag>>,
    pub resource_type: String,
    pub security_service_policy_data: SecurityServicePolicyData,
}

An AWS Firewall Manager policy.

Fields

exclude_map: Option<HashMap<String, Vec<String>>>

Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first, with all the appropriate account IDs added to the policy. Then the accounts listed in ExcludeMap are removed, resulting in the final list of accounts to add to the policy.

The key to the map is ACCOUNT. For example, a valid ExcludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]}.

exclude_resource_tags: bool

If set to True, resources with the tags that are specified in the ResourceTag array are not protected by the policy. If set to False, and the ResourceTag array is not null, only resources with the specified tags are associated with the policy.

include_map: Option<HashMap<String, Vec<String>>>

Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the organization in AWS Organizations are included in the policy. If IncludeMap is not null, only values listed in IncludeMap are included in the policy.

The key to the map is ACCOUNT. For example, a valid IncludeMap would be {“ACCOUNT” : [“accountID1”, “accountID2”]}.

policy_id: Option<String>

The ID of the AWS Firewall Manager policy.

policy_name: String

The friendly name of the AWS Firewall Manager policy.

policy_update_token: Option<String>

A unique identifier for each update to the policy. When issuing a PutPolicy request, the PolicyUpdateToken in the request must match the PolicyUpdateToken of the current policy version. To get the PolicyUpdateToken of the current policy version, use a GetPolicy request.

remediation_enabled: bool

Indicates if the policy should be automatically applied to new resources.

resource_tags: Option<Vec<ResourceTag>>

An array of ResourceTag objects.

resource_type: String

The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront distribution. This is in the format shown in AWS Resource Types Reference. Valid values are AWS::ElasticLoadBalancingV2::LoadBalancer or AWS::CloudFront::Distribution.

security_service_policy_data: SecurityServicePolicyData

Details about the security service that is being used to protect the resources.

Trait Implementations

impl Default for Policy[src]

impl Clone for Policy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Policy> for Policy[src]

impl Debug for Policy[src]

impl<'de> Deserialize<'de> for Policy[src]

impl Serialize for Policy[src]

Auto Trait Implementations

impl Send for Policy

impl Sync for Policy

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Same<T> for T

type Output = T

Should always be Self