@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Policy extends Object implements Serializable, Cloneable, StructuredPojo
An AWS Firewall Manager policy.
Constructor and Description |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
Policy |
addExcludeMapEntry(String key,
List<String> value)
Add a single ExcludeMap entry
|
Policy |
addIncludeMapEntry(String key,
List<String> value)
Add a single IncludeMap entry
|
Policy |
clearExcludeMapEntries()
Removes all the entries added into ExcludeMap.
|
Policy |
clearIncludeMapEntries()
Removes all the entries added into IncludeMap.
|
Policy |
clone() |
boolean |
equals(Object obj) |
Map<String,List<String>> |
getExcludeMap()
Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to exclude from the policy.
|
Boolean |
getExcludeResourceTags()
If set to
True , resources with the tags that are specified in the ResourceTag array are
not in scope of the policy. |
Map<String,List<String>> |
getIncludeMap()
Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to include in the policy.
|
String |
getPolicyId()
The ID of the AWS Firewall Manager policy.
|
String |
getPolicyName()
The friendly name of the AWS Firewall Manager policy.
|
String |
getPolicyUpdateToken()
A unique identifier for each update to the policy.
|
Boolean |
getRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
List<ResourceTag> |
getResourceTags()
An array of
ResourceTag objects. |
String |
getResourceType()
The type of resource protected by or in scope of the policy.
|
List<String> |
getResourceTypeList()
An array of
ResourceType . |
SecurityServicePolicyData |
getSecurityServicePolicyData()
Details about the security service that is being used to protect the resources.
|
int |
hashCode() |
Boolean |
isExcludeResourceTags()
If set to
True , resources with the tags that are specified in the ResourceTag array are
not in scope of the policy. |
Boolean |
isRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExcludeMap(Map<String,List<String>> excludeMap)
Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to exclude from the policy.
|
void |
setExcludeResourceTags(Boolean excludeResourceTags)
If set to
True , resources with the tags that are specified in the ResourceTag array are
not in scope of the policy. |
void |
setIncludeMap(Map<String,List<String>> includeMap)
Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to include in the policy.
|
void |
setPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
|
void |
setPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
|
void |
setPolicyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy.
|
void |
setRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
void |
setResourceTags(Collection<ResourceTag> resourceTags)
An array of
ResourceTag objects. |
void |
setResourceType(String resourceType)
The type of resource protected by or in scope of the policy.
|
void |
setResourceTypeList(Collection<String> resourceTypeList)
An array of
ResourceType . |
void |
setSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
|
String |
toString()
Returns a string representation of this object.
|
Policy |
withExcludeMap(Map<String,List<String>> excludeMap)
Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to exclude from the policy.
|
Policy |
withExcludeResourceTags(Boolean excludeResourceTags)
If set to
True , resources with the tags that are specified in the ResourceTag array are
not in scope of the policy. |
Policy |
withIncludeMap(Map<String,List<String>> includeMap)
Specifies the AWS account IDs and AWS Organizations organizational units (OUs) to include in the policy.
|
Policy |
withPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
|
Policy |
withPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
|
Policy |
withPolicyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy.
|
Policy |
withRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
Policy |
withResourceTags(Collection<ResourceTag> resourceTags)
An array of
ResourceTag objects. |
Policy |
withResourceTags(ResourceTag... resourceTags)
An array of
ResourceTag objects. |
Policy |
withResourceType(String resourceType)
The type of resource protected by or in scope of the policy.
|
Policy |
withResourceTypeList(Collection<String> resourceTypeList)
An array of
ResourceType . |
Policy |
withResourceTypeList(String... resourceTypeList)
An array of
ResourceType . |
Policy |
withSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
|
public void setPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
policyId
- The ID of the AWS Firewall Manager policy.public String getPolicyId()
The ID of the AWS Firewall Manager policy.
public Policy withPolicyId(String policyId)
The ID of the AWS Firewall Manager policy.
policyId
- The ID of the AWS Firewall Manager policy.public void setPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
policyName
- The friendly name of the AWS Firewall Manager policy.public String getPolicyName()
The friendly name of the AWS Firewall Manager policy.
public Policy withPolicyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
policyName
- The friendly name of the AWS Firewall Manager policy.public void setPolicyUpdateToken(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.
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.public String getPolicyUpdateToken()
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 Policy withPolicyUpdateToken(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.
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.public void setSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
securityServicePolicyData
- Details about the security service that is being used to protect the resources.public SecurityServicePolicyData getSecurityServicePolicyData()
Details about the security service that is being used to protect the resources.
public Policy withSecurityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
securityServicePolicyData
- Details about the security service that is being used to protect the resources.public void setResourceType(String resourceType)
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
.
resourceType
- 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
.public String getResourceType()
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
.
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
.public Policy withResourceType(String resourceType)
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
.
resourceType
- 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
.public List<String> getResourceTypeList()
An array of ResourceType
.
ResourceType
.public void setResourceTypeList(Collection<String> resourceTypeList)
An array of ResourceType
.
resourceTypeList
- An array of ResourceType
.public Policy withResourceTypeList(String... resourceTypeList)
An array of ResourceType
.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypeList(java.util.Collection)
or withResourceTypeList(java.util.Collection)
if you
want to override the existing values.
resourceTypeList
- An array of ResourceType
.public Policy withResourceTypeList(Collection<String> resourceTypeList)
An array of ResourceType
.
resourceTypeList
- An array of ResourceType
.public List<ResourceTag> getResourceTags()
An array of ResourceTag
objects.
ResourceTag
objects.public void setResourceTags(Collection<ResourceTag> resourceTags)
An array of ResourceTag
objects.
resourceTags
- An array of ResourceTag
objects.public Policy withResourceTags(ResourceTag... resourceTags)
An array of ResourceTag
objects.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTags(java.util.Collection)
or withResourceTags(java.util.Collection)
if you want to
override the existing values.
resourceTags
- An array of ResourceTag
objects.public Policy withResourceTags(Collection<ResourceTag> resourceTags)
An array of ResourceTag
objects.
resourceTags
- An array of ResourceTag
objects.public void setExcludeResourceTags(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.
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.public Boolean getExcludeResourceTags()
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 Policy withExcludeResourceTags(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.
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.public Boolean isExcludeResourceTags()
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 void setRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
remediationEnabled
- Indicates if the policy should be automatically applied to new resources.public Boolean getRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public Policy withRemediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
remediationEnabled
- Indicates if the policy should be automatically applied to new resources.public Boolean isRemediationEnabled()
Indicates if the policy should be automatically applied to new resources.
public Map<String,List<String>> getIncludeMap()
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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS 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”]}
.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS
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 void setIncludeMap(Map<String,List<String>> includeMap)
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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS 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”]}
.
includeMap
- 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS
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 Policy withIncludeMap(Map<String,List<String>> includeMap)
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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS 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”]}
.
includeMap
- 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS
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 Policy addIncludeMapEntry(String key, List<String> value)
public Policy clearIncludeMapEntries()
public Map<String,List<String>> getExcludeMap()
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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS 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”]}
.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS
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 void setExcludeMap(Map<String,List<String>> excludeMap)
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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS 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”]}
.
excludeMap
- 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS
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 Policy withExcludeMap(Map<String,List<String>> excludeMap)
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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS 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”]}
.
excludeMap
- 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.
You can specify inclusions or exclusions, but not both. If you specify an IncludeMap
, AWS
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 Policy addExcludeMapEntry(String key, List<String> value)
public Policy clearExcludeMapEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.