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<String>>? excludeMap, Map<CustomerPolicyScopeIdType, List<String>>? includeMap, String? policyId, String? policyUpdateToken, List<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 the ResourceTag array are not in scope of the policy. If set to False, and the ResourceTag 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, 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.
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 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 AWS Network Firewall policy, the value is AWS::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