public static interface Policy.Builder extends SdkPojo, CopyableBuilder<Policy.Builder,Policy>
| Modifier and Type | Method and Description |
|---|---|
Policy.Builder |
excludeMap(Map<CustomerPolicyScopeIdType,? extends Collection<String>> excludeMap)
Specifies the AWS account IDs to exclude from the policy.
|
Policy.Builder |
excludeMapWithStrings(Map<String,? extends Collection<String>> excludeMap)
Specifies the AWS account IDs to exclude from the policy.
|
Policy.Builder |
excludeResourceTags(Boolean excludeResourceTags)
If set to
True, resources with the tags that are specified in the ResourceTag array
are not protected by the policy. |
Policy.Builder |
includeMap(Map<CustomerPolicyScopeIdType,? extends Collection<String>> includeMap)
Specifies the AWS account IDs to include in the policy.
|
Policy.Builder |
includeMapWithStrings(Map<String,? extends Collection<String>> includeMap)
Specifies the AWS account IDs to include in the policy.
|
Policy.Builder |
policyId(String policyId)
The ID of the AWS Firewall Manager policy.
|
Policy.Builder |
policyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
|
Policy.Builder |
policyUpdateToken(String policyUpdateToken)
A unique identifier for each update to the policy.
|
Policy.Builder |
remediationEnabled(Boolean remediationEnabled)
Indicates if the policy should be automatically applied to new resources.
|
Policy.Builder |
resourceTags(Collection<ResourceTag> resourceTags)
An array of
ResourceTag objects. |
Policy.Builder |
resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
An array of
ResourceTag objects. |
Policy.Builder |
resourceTags(ResourceTag... resourceTags)
An array of
ResourceTag objects. |
Policy.Builder |
resourceType(String resourceType)
The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront
distribution.
|
default Policy.Builder |
securityServicePolicyData(Consumer<SecurityServicePolicyData.Builder> securityServicePolicyData)
Details about the security service that is being used to protect the resources.
|
Policy.Builder |
securityServicePolicyData(SecurityServicePolicyData securityServicePolicyData)
Details about the security service that is being used to protect the resources.
|
copyapplyMutation, buildPolicy.Builder policyId(String policyId)
The ID of the AWS Firewall Manager policy.
policyId - The ID of the AWS Firewall Manager policy.Policy.Builder policyName(String policyName)
The friendly name of the AWS Firewall Manager policy.
policyName - The friendly name of the AWS Firewall Manager policy.Policy.Builder policyUpdateToken(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.Policy.Builder securityServicePolicyData(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.default Policy.Builder securityServicePolicyData(Consumer<SecurityServicePolicyData.Builder> securityServicePolicyData)
Details about the security service that is being used to protect the resources.
This is a convenience that creates an instance of theSecurityServicePolicyData.Builder avoiding the
need to create one manually via SecurityServicePolicyData.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to securityServicePolicyData(SecurityServicePolicyData).securityServicePolicyData - a consumer that will call methods on SecurityServicePolicyData.BuildersecurityServicePolicyData(SecurityServicePolicyData)Policy.Builder resourceType(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.
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.Policy.Builder resourceTags(Collection<ResourceTag> resourceTags)
An array of ResourceTag objects.
resourceTags - An array of ResourceTag objects.Policy.Builder resourceTags(ResourceTag... resourceTags)
An array of ResourceTag objects.
resourceTags - An array of ResourceTag objects.Policy.Builder resourceTags(Consumer<ResourceTag.Builder>... resourceTags)
An array of ResourceTag objects.
List.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #resourceTags(List) .resourceTags - a consumer that will call methods on List.Builder #resourceTags(List) Policy.Builder excludeResourceTags(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.
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.Policy.Builder remediationEnabled(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.Policy.Builder includeMapWithStrings(Map<String,? extends Collection<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”]}.
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”]}.
Policy.Builder includeMap(Map<CustomerPolicyScopeIdType,? extends Collection<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”]}.
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”]}.
Policy.Builder excludeMapWithStrings(Map<String,? extends Collection<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”]}.
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”]}.
Policy.Builder excludeMap(Map<CustomerPolicyScopeIdType,? extends Collection<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”]}.
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”]}.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.