@Generated(value="software.amazon.awssdk:codegen") public final class Policy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Policy.Builder,Policy>
An Firewall Manager policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Policy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Policy.Builder |
builder() |
Boolean |
deleteUnusedFMManagedResources()
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.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<CustomerPolicyScopeIdType,List<String>> |
excludeMap()
Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to exclude from the
policy.
|
Map<String,List<String>> |
excludeMapAsStrings()
Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to exclude from the
policy.
|
Boolean |
excludeResourceTags()
If set to
True, resources with the tags that are specified in the ResourceTag array are
not in scope of the policy. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExcludeMap()
For responses, this returns true if the service returned a value for the ExcludeMap property.
|
int |
hashCode() |
boolean |
hasIncludeMap()
For responses, this returns true if the service returned a value for the IncludeMap property.
|
boolean |
hasResourceSetIds()
For responses, this returns true if the service returned a value for the ResourceSetIds property.
|
boolean |
hasResourceTags()
For responses, this returns true if the service returned a value for the ResourceTags property.
|
boolean |
hasResourceTypeList()
For responses, this returns true if the service returned a value for the ResourceTypeList property.
|
Map<CustomerPolicyScopeIdType,List<String>> |
includeMap()
Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to include in the
policy.
|
Map<String,List<String>> |
includeMapAsStrings()
Specifies the Amazon Web Services account IDs and Organizations organizational units (OUs) to include in the
policy.
|
String |
policyDescription()
The definition of the Network Firewall firewall policy.
|
String |
policyId()
The ID of the Firewall Manager policy.
|
String |
policyName()
The name of the 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<String> |
resourceSetIds()
The unique identifiers of the resource sets used by the policy.
|
List<ResourceTag> |
resourceTags()
An array of
ResourceTag objects. |
String |
resourceType()
The type of resource protected by or in scope of the policy.
|
List<String> |
resourceTypeList()
An array of
ResourceType objects. |
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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyId()
The ID of the Firewall Manager policy.
public final String policyName()
The name of the Firewall Manager policy.
public final 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 final SecurityServicePolicyData securityServicePolicyData()
Details about the security service that is being used to protect the resources.
public final String resourceType()
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. To apply this policy to multiple resource types, specify a resource
type of ResourceTypeList and then specify the resource types in a ResourceTypeList.
For WAF and Shield Advanced, resource types include AWS::ElasticLoadBalancingV2::LoadBalancer,
AWS::ElasticLoadBalancing::LoadBalancer, AWS::EC2::EIP, 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.
ResourceTypeList and then specify the resource types in a
ResourceTypeList.
For WAF and Shield Advanced, resource types include
AWS::ElasticLoadBalancingV2::LoadBalancer,
AWS::ElasticLoadBalancing::LoadBalancer, AWS::EC2::EIP, 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.
public final boolean hasResourceTypeList()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> resourceTypeList()
An array of ResourceType objects. Use this only to specify multiple resource types. To specify a
single resource type, use ResourceType.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResourceTypeList() method.
ResourceType objects. Use this only to specify multiple resource types. To
specify a single resource type, use ResourceType.public final boolean hasResourceTags()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<ResourceTag> resourceTags()
An array of ResourceTag objects.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResourceTags() method.
ResourceTag objects.public final Boolean excludeResourceTags()
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.
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.public final Boolean remediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public final Boolean deleteUnusedFMManagedResources()
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.
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.
public final Map<CustomerPolicyScopeIdType,List<String>> includeMap()
Specifies the Amazon Web Services account IDs and 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap, Firewall
Manager applies the policy to all accounts specified by the IncludeMap, and does not evaluate any
ExcludeMap specifications. If you do not specify an IncludeMap, then Firewall Manager
applies the policy to all accounts except for those specified by the ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid map:
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIncludeMap() method.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap,
Firewall Manager applies the policy to all accounts specified by the IncludeMap, and does
not evaluate any ExcludeMap specifications. If you do not specify an IncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by the
ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is
a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}
.
public final boolean hasIncludeMap()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,List<String>> includeMapAsStrings()
Specifies the Amazon Web Services account IDs and 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap, Firewall
Manager applies the policy to all accounts specified by the IncludeMap, and does not evaluate any
ExcludeMap specifications. If you do not specify an IncludeMap, then Firewall Manager
applies the policy to all accounts except for those specified by the ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid map:
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIncludeMap() method.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap,
Firewall Manager applies the policy to all accounts specified by the IncludeMap, and does
not evaluate any ExcludeMap specifications. If you do not specify an IncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by the
ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is
a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}
.
public final Map<CustomerPolicyScopeIdType,List<String>> excludeMap()
Specifies the Amazon Web Services account IDs and 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap, Firewall
Manager applies the policy to all accounts specified by the IncludeMap, and does not evaluate any
ExcludeMap specifications. If you do not specify an IncludeMap, then Firewall Manager
applies the policy to all accounts except for those specified by the ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid map:
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExcludeMap() method.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap,
Firewall Manager applies the policy to all accounts specified by the IncludeMap, and does
not evaluate any ExcludeMap specifications. If you do not specify an IncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by the
ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is
a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}
.
public final boolean hasExcludeMap()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,List<String>> excludeMapAsStrings()
Specifies the Amazon Web Services account IDs and 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap, Firewall
Manager applies the policy to all accounts specified by the IncludeMap, and does not evaluate any
ExcludeMap specifications. If you do not specify an IncludeMap, then Firewall Manager
applies the policy to all accounts except for those specified by the ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid map:
{“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExcludeMap() method.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap,
Firewall Manager applies the policy to all accounts specified by the IncludeMap, and does
not evaluate any ExcludeMap specifications. If you do not specify an IncludeMap
, then Firewall Manager applies the policy to all accounts except for those specified by the
ExcludeMap.
You can specify account IDs, OUs, or a combination:
Specify account IDs by setting the key to ACCOUNT. For example, the following is a valid
map: {“ACCOUNT” : [“accountID1”, “accountID2”]}.
Specify OUs by setting the key to ORG_UNIT. For example, the following is a valid map:
{“ORG_UNIT” : [“ouid111”, “ouid112”]}.
Specify accounts and OUs together in a single map, separated with a comma. For example, the following is
a valid map: {“ACCOUNT” : [“accountID1”, “accountID2”], “ORG_UNIT” : [“ouid111”, “ouid112”]}
.
public final boolean hasResourceSetIds()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> resourceSetIds()
The unique identifiers of the resource sets used by the policy.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasResourceSetIds() method.
public final String policyDescription()
The definition of the Network Firewall firewall policy.
public Policy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Policy.Builder,Policy>public static Policy.Builder builder()
public static Class<? extends Policy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.