Struct aws_sdk_fms::model::PolicySummary
source · [−]#[non_exhaustive]pub struct PolicySummary {
pub policy_arn: Option<String>,
pub policy_id: Option<String>,
pub policy_name: Option<String>,
pub resource_type: Option<String>,
pub security_service_type: Option<SecurityServiceType>,
pub remediation_enabled: bool,
pub delete_unused_fm_managed_resources: bool,
}
Expand description
Details of the Firewall Manager policy.
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.policy_arn: Option<String>
The Amazon Resource Name (ARN) of the specified policy.
policy_id: Option<String>
The ID of the specified policy.
policy_name: Option<String>
The name of the specified policy.
resource_type: Option<String>
The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. For WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For a security group common policy, valid values are AWS::EC2::NetworkInterface
and AWS::EC2::Instance
. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and AWS::EC2::Instance
. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup
. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC
.
security_service_type: Option<SecurityServiceType>
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy.
remediation_enabled: bool
Indicates if the policy should be automatically applied to new resources.
delete_unused_fm_managed_resources: bool
Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope.
By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources.
This option is not available for Shield Advanced or WAF Classic policies.
Implementations
sourceimpl PolicySummary
impl PolicySummary
sourcepub fn policy_arn(&self) -> Option<&str>
pub fn policy_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the specified policy.
sourcepub fn policy_name(&self) -> Option<&str>
pub fn policy_name(&self) -> Option<&str>
The name of the specified policy.
sourcepub fn resource_type(&self) -> Option<&str>
pub fn resource_type(&self) -> Option<&str>
The type of resource protected by or in scope of the policy. This is in the format shown in the Amazon Web Services Resource Types Reference. For WAF and Shield Advanced, examples include AWS::ElasticLoadBalancingV2::LoadBalancer
and AWS::CloudFront::Distribution
. For a security group common policy, valid values are AWS::EC2::NetworkInterface
and AWS::EC2::Instance
. For a security group content audit policy, valid values are AWS::EC2::SecurityGroup
, AWS::EC2::NetworkInterface
, and AWS::EC2::Instance
. For a security group usage audit policy, the value is AWS::EC2::SecurityGroup
. For an Network Firewall policy or DNS Firewall policy, the value is AWS::EC2::VPC
.
sourcepub fn security_service_type(&self) -> Option<&SecurityServiceType>
pub fn security_service_type(&self) -> Option<&SecurityServiceType>
The service that the policy is using to protect the resources. This specifies the type of policy that is created, either an WAF policy, a Shield Advanced policy, or a security group policy.
sourcepub fn remediation_enabled(&self) -> bool
pub fn remediation_enabled(&self) -> bool
Indicates if the policy should be automatically applied to new resources.
sourcepub fn delete_unused_fm_managed_resources(&self) -> bool
pub fn delete_unused_fm_managed_resources(&self) -> bool
Indicates whether Firewall Manager should automatically remove protections from resources that leave the policy scope and clean up resources that Firewall Manager is managing for accounts when those accounts leave policy scope. For example, Firewall Manager will disassociate a Firewall Manager managed web ACL from a protected customer resource when the customer resource leaves policy scope.
By default, Firewall Manager doesn't remove protections or delete Firewall Manager managed resources.
This option is not available for Shield Advanced or WAF Classic policies.
sourceimpl PolicySummary
impl PolicySummary
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PolicySummary
.
Trait Implementations
sourceimpl Clone for PolicySummary
impl Clone for PolicySummary
sourcefn clone(&self) -> PolicySummary
fn clone(&self) -> PolicySummary
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 PolicySummary
impl Debug for PolicySummary
sourceimpl PartialEq<PolicySummary> for PolicySummary
impl PartialEq<PolicySummary> for PolicySummary
sourcefn eq(&self, other: &PolicySummary) -> bool
fn eq(&self, other: &PolicySummary) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PolicySummary) -> bool
fn ne(&self, other: &PolicySummary) -> bool
This method tests for !=
.
impl StructuralPartialEq for PolicySummary
Auto Trait Implementations
impl RefUnwindSafe for PolicySummary
impl Send for PolicySummary
impl Sync for PolicySummary
impl Unpin for PolicySummary
impl UnwindSafe for PolicySummary
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