Package com.pulumi.aws.fms.inputs
Class PolicyState.Builder
- java.lang.Object
-
- com.pulumi.aws.fms.inputs.PolicyState.Builder
-
- Enclosing class:
- PolicyState
public static final class PolicyState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(PolicyState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyState.Builderarn(com.pulumi.core.Output<java.lang.String> arn)PolicyState.Builderarn(java.lang.String arn)PolicyStatebuild()PolicyState.BuilderdeleteAllPolicyResources(com.pulumi.core.Output<java.lang.Boolean> deleteAllPolicyResources)PolicyState.BuilderdeleteAllPolicyResources(java.lang.Boolean deleteAllPolicyResources)PolicyState.BuilderdeleteUnusedFmManagedResources(com.pulumi.core.Output<java.lang.Boolean> deleteUnusedFmManagedResources)PolicyState.BuilderdeleteUnusedFmManagedResources(java.lang.Boolean deleteUnusedFmManagedResources)PolicyState.Builderdescription(com.pulumi.core.Output<java.lang.String> description)PolicyState.Builderdescription(java.lang.String description)PolicyState.BuilderexcludeMap(PolicyExcludeMapArgs excludeMap)PolicyState.BuilderexcludeMap(com.pulumi.core.Output<PolicyExcludeMapArgs> excludeMap)PolicyState.BuilderexcludeResourceTags(com.pulumi.core.Output<java.lang.Boolean> excludeResourceTags)PolicyState.BuilderexcludeResourceTags(java.lang.Boolean excludeResourceTags)PolicyState.BuilderincludeMap(PolicyIncludeMapArgs includeMap)PolicyState.BuilderincludeMap(com.pulumi.core.Output<PolicyIncludeMapArgs> includeMap)PolicyState.Buildername(com.pulumi.core.Output<java.lang.String> name)PolicyState.Buildername(java.lang.String name)PolicyState.BuilderpolicyUpdateToken(com.pulumi.core.Output<java.lang.String> policyUpdateToken)PolicyState.BuilderpolicyUpdateToken(java.lang.String policyUpdateToken)PolicyState.Builderregion(com.pulumi.core.Output<java.lang.String> region)PolicyState.Builderregion(java.lang.String region)PolicyState.BuilderremediationEnabled(com.pulumi.core.Output<java.lang.Boolean> remediationEnabled)PolicyState.BuilderremediationEnabled(java.lang.Boolean remediationEnabled)PolicyState.BuilderresourceSetIds(com.pulumi.core.Output<java.util.List<java.lang.String>> resourceSetIds)PolicyState.BuilderresourceSetIds(java.lang.String... resourceSetIds)PolicyState.BuilderresourceSetIds(java.util.List<java.lang.String> resourceSetIds)PolicyState.BuilderresourceTagLogicalOperator(com.pulumi.core.Output<java.lang.String> resourceTagLogicalOperator)PolicyState.BuilderresourceTagLogicalOperator(java.lang.String resourceTagLogicalOperator)PolicyState.BuilderresourceTags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> resourceTags)PolicyState.BuilderresourceTags(java.util.Map<java.lang.String,java.lang.String> resourceTags)PolicyState.BuilderresourceType(com.pulumi.core.Output<java.lang.String> resourceType)PolicyState.BuilderresourceType(java.lang.String resourceType)PolicyState.BuilderresourceTypeLists(com.pulumi.core.Output<java.util.List<java.lang.String>> resourceTypeLists)PolicyState.BuilderresourceTypeLists(java.lang.String... resourceTypeLists)PolicyState.BuilderresourceTypeLists(java.util.List<java.lang.String> resourceTypeLists)PolicyState.BuildersecurityServicePolicyData(PolicySecurityServicePolicyDataArgs securityServicePolicyData)PolicyState.BuildersecurityServicePolicyData(com.pulumi.core.Output<PolicySecurityServicePolicyDataArgs> securityServicePolicyData)PolicyState.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)PolicyState.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)PolicyState.BuildertagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)PolicyState.BuildertagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PolicyState defaults)
-
-
Method Detail
-
arn
public PolicyState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn- ARN of the policy.- Returns:
- builder
-
arn
public PolicyState.Builder arn(java.lang.String arn)
- Parameters:
arn- ARN of the policy.- Returns:
- builder
-
deleteAllPolicyResources
public PolicyState.Builder deleteAllPolicyResources(@Nullable com.pulumi.core.Output<java.lang.Boolean> deleteAllPolicyResources)
- Parameters:
deleteAllPolicyResources- If true, the request will also perform a clean-up process. Defaults to `true`. More information can be found here [AWS Firewall Manager delete policy](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_DeletePolicy.html)- Returns:
- builder
-
deleteAllPolicyResources
public PolicyState.Builder deleteAllPolicyResources(java.lang.Boolean deleteAllPolicyResources)
- Parameters:
deleteAllPolicyResources- If true, the request will also perform a clean-up process. Defaults to `true`. More information can be found here [AWS Firewall Manager delete policy](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_DeletePolicy.html)- Returns:
- builder
-
deleteUnusedFmManagedResources
public PolicyState.Builder deleteUnusedFmManagedResources(@Nullable com.pulumi.core.Output<java.lang.Boolean> deleteUnusedFmManagedResources)
- Parameters:
deleteUnusedFmManagedResources- If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to `false`. More information can be found here [AWS Firewall Manager policy contents](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html)- Returns:
- builder
-
deleteUnusedFmManagedResources
public PolicyState.Builder deleteUnusedFmManagedResources(java.lang.Boolean deleteUnusedFmManagedResources)
- Parameters:
deleteUnusedFmManagedResources- If true, Firewall Manager will automatically remove protections from resources that leave the policy scope. Defaults to `false`. More information can be found here [AWS Firewall Manager policy contents](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html)- Returns:
- builder
-
description
public PolicyState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Description of the AWS Network Firewall firewall policy.- Returns:
- builder
-
description
public PolicyState.Builder description(java.lang.String description)
- Parameters:
description- Description of the AWS Network Firewall firewall policy.- Returns:
- builder
-
excludeMap
public PolicyState.Builder excludeMap(@Nullable com.pulumi.core.Output<PolicyExcludeMapArgs> excludeMap)
- Parameters:
excludeMap- Map of lists of accounts and OUs to exclude from the policy. See the `excludeMap` block.- Returns:
- builder
-
excludeMap
public PolicyState.Builder excludeMap(PolicyExcludeMapArgs excludeMap)
- Parameters:
excludeMap- Map of lists of accounts and OUs to exclude from the policy. See the `excludeMap` block.- Returns:
- builder
-
excludeResourceTags
public PolicyState.Builder excludeResourceTags(@Nullable com.pulumi.core.Output<java.lang.Boolean> excludeResourceTags)
- Parameters:
excludeResourceTags- Whether resources with the tags specified in `resourceTags` are excluded from protection. If `true`, tagged resources are not protected by this policy. If `false` and `resourceTags` are populated, resources that contain those tags are protected by this policy.- Returns:
- builder
-
excludeResourceTags
public PolicyState.Builder excludeResourceTags(java.lang.Boolean excludeResourceTags)
- Parameters:
excludeResourceTags- Whether resources with the tags specified in `resourceTags` are excluded from protection. If `true`, tagged resources are not protected by this policy. If `false` and `resourceTags` are populated, resources that contain those tags are protected by this policy.- Returns:
- builder
-
includeMap
public PolicyState.Builder includeMap(@Nullable com.pulumi.core.Output<PolicyIncludeMapArgs> includeMap)
- Parameters:
includeMap- Map of lists of accounts and OUs to include in the policy. See the `includeMap` block.- Returns:
- builder
-
includeMap
public PolicyState.Builder includeMap(PolicyIncludeMapArgs includeMap)
- Parameters:
includeMap- Map of lists of accounts and OUs to include in the policy. See the `includeMap` block.- Returns:
- builder
-
name
public PolicyState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Friendly name of the AWS Firewall Manager Policy.- Returns:
- builder
-
name
public PolicyState.Builder name(java.lang.String name)
- Parameters:
name- Friendly name of the AWS Firewall Manager Policy.- Returns:
- builder
-
policyUpdateToken
public PolicyState.Builder policyUpdateToken(@Nullable com.pulumi.core.Output<java.lang.String> policyUpdateToken)
- Parameters:
policyUpdateToken- Unique identifier for each update to the policy.- Returns:
- builder
-
policyUpdateToken
public PolicyState.Builder policyUpdateToken(java.lang.String policyUpdateToken)
- Parameters:
policyUpdateToken- Unique identifier for each update to the policy.- Returns:
- builder
-
region
public PolicyState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public PolicyState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
remediationEnabled
public PolicyState.Builder remediationEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> remediationEnabled)
- Parameters:
remediationEnabled- Whether the policy is automatically applied to resources that already exist in the account.- Returns:
- builder
-
remediationEnabled
public PolicyState.Builder remediationEnabled(java.lang.Boolean remediationEnabled)
- Parameters:
remediationEnabled- Whether the policy is automatically applied to resources that already exist in the account.- Returns:
- builder
-
resourceSetIds
public PolicyState.Builder resourceSetIds(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> resourceSetIds)
- Parameters:
resourceSetIds- Set of resource set IDs associated with the policy.- Returns:
- builder
-
resourceSetIds
public PolicyState.Builder resourceSetIds(java.util.List<java.lang.String> resourceSetIds)
- Parameters:
resourceSetIds- Set of resource set IDs associated with the policy.- Returns:
- builder
-
resourceSetIds
public PolicyState.Builder resourceSetIds(java.lang.String... resourceSetIds)
- Parameters:
resourceSetIds- Set of resource set IDs associated with the policy.- Returns:
- builder
-
resourceTagLogicalOperator
public PolicyState.Builder resourceTagLogicalOperator(@Nullable com.pulumi.core.Output<java.lang.String> resourceTagLogicalOperator)
- Parameters:
resourceTagLogicalOperator- Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are `AND` and `OR`.- Returns:
- builder
-
resourceTagLogicalOperator
public PolicyState.Builder resourceTagLogicalOperator(java.lang.String resourceTagLogicalOperator)
- Parameters:
resourceTagLogicalOperator- Controls how multiple resource tags are combined: with AND, so that a resource must have all tags to be included or excluded, or OR, so that a resource must have at least one tag. The valid values are `AND` and `OR`.- Returns:
- builder
-
resourceTags
public PolicyState.Builder resourceTags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> resourceTags)
- Parameters:
resourceTags- Map of resource tags that, if present, filter protections on resources based on `excludeResourceTags`.- Returns:
- builder
-
resourceTags
public PolicyState.Builder resourceTags(java.util.Map<java.lang.String,java.lang.String> resourceTags)
- Parameters:
resourceTags- Map of resource tags that, if present, filter protections on resources based on `excludeResourceTags`.- Returns:
- builder
-
resourceType
public PolicyState.Builder resourceType(@Nullable com.pulumi.core.Output<java.lang.String> resourceType)
- Parameters:
resourceType- Resource type to protect. Conflicts with `resourceTypeList`. See the [FMS API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html#fms-Type-Policy-ResourceType) for more information about supported values.- Returns:
- builder
-
resourceType
public PolicyState.Builder resourceType(java.lang.String resourceType)
- Parameters:
resourceType- Resource type to protect. Conflicts with `resourceTypeList`. See the [FMS API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html#fms-Type-Policy-ResourceType) for more information about supported values.- Returns:
- builder
-
resourceTypeLists
public PolicyState.Builder resourceTypeLists(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> resourceTypeLists)
- Parameters:
resourceTypeLists- List of resource types to protect. Conflicts with `resourceType`. See the [FMS API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html#fms-Type-Policy-ResourceType) for more information about supported values. Lists with only one element are not supported, instead use `resourceType`.- Returns:
- builder
-
resourceTypeLists
public PolicyState.Builder resourceTypeLists(java.util.List<java.lang.String> resourceTypeLists)
- Parameters:
resourceTypeLists- List of resource types to protect. Conflicts with `resourceType`. See the [FMS API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html#fms-Type-Policy-ResourceType) for more information about supported values. Lists with only one element are not supported, instead use `resourceType`.- Returns:
- builder
-
resourceTypeLists
public PolicyState.Builder resourceTypeLists(java.lang.String... resourceTypeLists)
- Parameters:
resourceTypeLists- List of resource types to protect. Conflicts with `resourceType`. See the [FMS API Reference](https://docs.aws.amazon.com/fms/2018-01-01/APIReference/API_Policy.html#fms-Type-Policy-ResourceType) for more information about supported values. Lists with only one element are not supported, instead use `resourceType`.- Returns:
- builder
-
securityServicePolicyData
public PolicyState.Builder securityServicePolicyData(@Nullable com.pulumi.core.Output<PolicySecurityServicePolicyDataArgs> securityServicePolicyData)
- Parameters:
securityServicePolicyData- Objects to include in Security Service Policy Data. See the `securityServicePolicyData` block.- Returns:
- builder
-
securityServicePolicyData
public PolicyState.Builder securityServicePolicyData(PolicySecurityServicePolicyDataArgs securityServicePolicyData)
- Parameters:
securityServicePolicyData- Objects to include in Security Service Policy Data. See the `securityServicePolicyData` block.- Returns:
- builder
-
tags
public PolicyState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level- Returns:
- builder
-
tags
public PolicyState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Key-value mapping of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level- Returns:
- builder
-
tagsAll
public PolicyState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public PolicyState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
build
public PolicyState build()
-
-