Policy class
An AWS Firewall Manager policy.
Constructors
-
Policy({required bool excludeResourceTags, required String policyName, required bool remediationEnabled, required String resourceType, required SecurityServicePolicyData securityServicePolicyData, Map<
CustomerPolicyScopeIdType, List< ? excludeMap, Map<String> >CustomerPolicyScopeIdType, List< ? includeMap, String? policyId, String? policyUpdateToken, List<String> >ResourceTag> ? resourceTags, List<String> ? resourceTypeList}) -
Policy.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
excludeMap
→ Map<
CustomerPolicyScopeIdType, List< ?String> > -
Specifies the AWS account IDs and AWS Organizations organizational units
(OUs) to exclude from the policy. Specifying an OU is the equivalent of
specifying all accounts in the OU and in any of its child OUs, including any
child OUs and accounts that are added at a later time.
final
- excludeResourceTags → bool
-
If set to
True
, resources with the tags that are specified in theResourceTag
array are not in scope of the policy. If set toFalse
, and theResourceTag
array is not null, only resources with the specified tags are in scope of the policy.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
includeMap
→ Map<
CustomerPolicyScopeIdType, List< ?String> > -
Specifies the AWS account IDs and AWS Organizations organizational units
(OUs) to include in the policy. Specifying an OU is the equivalent of
specifying all accounts in the OU and in any of its child OUs, including any
child OUs and accounts that are added at a later time.
final
- policyId → String?
-
The ID of the AWS Firewall Manager policy.
final
- policyName → String
-
The name of the AWS Firewall Manager policy.
final
- policyUpdateToken → String?
-
A unique identifier for each update to the policy. When issuing a
PutPolicy
request, thePolicyUpdateToken
in the request must match thePolicyUpdateToken
of the current policy version. To get thePolicyUpdateToken
of the current policy version, use aGetPolicy
request.final - remediationEnabled → bool
-
Indicates if the policy should be automatically applied to new resources.
final
-
resourceTags
→ List<
ResourceTag> ? -
An array of
ResourceTag
objects.final - resourceType → String
-
The type of resource protected by or in scope of the policy. This is in the
format shown in the AWS
Resource Types Reference. For AWS WAF and Shield Advanced, examples
include
AWS::ElasticLoadBalancingV2::LoadBalancer
andAWS::CloudFront::Distribution
. For a security group common policy, valid values areAWS::EC2::NetworkInterface
andAWS::EC2::Instance
. For a security group content audit policy, valid values areAWS::EC2::SecurityGroup
,AWS::EC2::NetworkInterface
, andAWS::EC2::Instance
. For a security group usage audit policy, the value isAWS::EC2::SecurityGroup
. For an AWS Network Firewall policy, the value isAWS::EC2::VPC
.final -
resourceTypeList
→ List<
String> ? -
An array of
ResourceType
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityServicePolicyData → SecurityServicePolicyData
-
Details about the security service that is being used to protect the
resources.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited