Class PolicyArgs.Builder

  • Enclosing class:
    PolicyArgs

    public static final class PolicyArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(PolicyArgs defaults)
    • Method Detail

      • deleteAllPolicyResources

        public PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the AWS Network Firewall firewall policy.
        Returns:
        builder
      • excludeMap

        public PolicyArgs.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 PolicyArgs.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 PolicyArgs.Builder excludeResourceTags​(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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Friendly name of the AWS Firewall Manager Policy.
        Returns:
        builder
      • region

        public PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.Builder resourceSetIds​(java.util.List<java.lang.String> resourceSetIds)
        Parameters:
        resourceSetIds - Set of resource set IDs associated with the policy.
        Returns:
        builder
      • resourceSetIds

        public PolicyArgs.Builder resourceSetIds​(java.lang.String... resourceSetIds)
        Parameters:
        resourceSetIds - Set of resource set IDs associated with the policy.
        Returns:
        builder
      • resourceTagLogicalOperator

        public PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.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 PolicyArgs.Builder securityServicePolicyData​(com.pulumi.core.Output<PolicySecurityServicePolicyDataArgs> securityServicePolicyData)
        Parameters:
        securityServicePolicyData - Objects to include in Security Service Policy Data. See the `securityServicePolicyData` block.
        Returns:
        builder
      • securityServicePolicyData

        public PolicyArgs.Builder securityServicePolicyData​(PolicySecurityServicePolicyDataArgs securityServicePolicyData)
        Parameters:
        securityServicePolicyData - Objects to include in Security Service Policy Data. See the `securityServicePolicyData` block.
        Returns:
        builder
      • tags

        public PolicyArgs.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 PolicyArgs.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