@Generated(value="software.amazon.awssdk:codegen") public final class Policy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Policy.Builder,Policy>
An AWS Firewall Manager policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Policy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Policy.Builder |
builder() |
boolean |
equals(Object obj) |
Map<CustomerPolicyScopeIdType,List<String>> |
excludeMap()
Specifies the AWS account IDs to exclude from the policy.
|
Map<String,List<String>> |
excludeMapAsStrings()
Specifies the AWS account IDs to exclude from the policy.
|
Boolean |
excludeResourceTags()
If set to
True, resources with the tags that are specified in the ResourceTag array are
not protected by the policy. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Map<CustomerPolicyScopeIdType,List<String>> |
includeMap()
Specifies the AWS account IDs to include in the policy.
|
Map<String,List<String>> |
includeMapAsStrings()
Specifies the AWS account IDs to include in the policy.
|
String |
policyId()
The ID of the AWS Firewall Manager policy.
|
String |
policyName()
The friendly name of the AWS Firewall Manager policy.
|
String |
policyUpdateToken()
A unique identifier for each update to the policy.
|
Boolean |
remediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
List<ResourceTag> |
resourceTags()
An array of
ResourceTag objects. |
String |
resourceType()
The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront
distribution.
|
List<SdkField<?>> |
sdkFields() |
SecurityServicePolicyData |
securityServicePolicyData()
Details about the security service that is being used to protect the resources.
|
static Class<? extends Policy.Builder> |
serializableBuilderClass() |
Policy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copypublic String policyId()
The ID of the AWS Firewall Manager policy.
public String policyName()
The friendly name of the AWS Firewall Manager policy.
public String policyUpdateToken()
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.
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.public SecurityServicePolicyData securityServicePolicyData()
Details about the security service that is being used to protect the resources.
public String resourceType()
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.
AWS::ElasticLoadBalancingV2::LoadBalancer or
AWS::CloudFront::Distribution.public List<ResourceTag> resourceTags()
An array of ResourceTag objects.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
ResourceTag objects.public Boolean excludeResourceTags()
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.
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.public Boolean remediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public Map<CustomerPolicyScopeIdType,List<String>> includeMap()
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the
AWS Organization are included in the policy. If IncludeMap is not null, only values listed in
IncludeMap will be included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
IncludeMap is null, all accounts
in the AWS Organization are included in the policy. If IncludeMap is not null, only values
listed in IncludeMap will be included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public Map<String,List<String>> includeMapAsStrings()
Specifies the AWS account IDs to include in the policy. If IncludeMap is null, all accounts in the
AWS Organization are included in the policy. If IncludeMap is not null, only values listed in
IncludeMap will be included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
IncludeMap is null, all accounts
in the AWS Organization are included in the policy. If IncludeMap is not null, only values
listed in IncludeMap will be included in the policy.
The key to the map is ACCOUNT. For example, a valid IncludeMap would be
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
public Map<CustomerPolicyScopeIdType,List<String>> excludeMap()
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first,
with all of 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”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
IncludeMap values are
evaluated first, with all of 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”]}.
public Map<String,List<String>> excludeMapAsStrings()
Specifies the AWS account IDs to exclude from the policy. The IncludeMap values are evaluated first,
with all of 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”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
IncludeMap values are
evaluated first, with all of 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”]}.
public Policy.Builder toBuilder()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Policy.Builder,Policy>public static Policy.Builder builder()
public static Class<? extends Policy.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.