Class PolicyState.Builder

  • Enclosing class:
    PolicyState

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

      • Builder

        public Builder()
    • Method Detail

      • arn

        public PolicyState.Builder arn​(@Nullable
                                       com.pulumi.core.Output<java.lang.String> arn)
      • 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 - The description of the AWS Network Firewall firewall policy.
        Returns:
        builder
      • description

        public PolicyState.Builder description​(java.lang.String description)
        Parameters:
        description - The description of the AWS Network Firewall firewall policy.
        Returns:
        builder
      • excludeMap

        public PolicyState.Builder excludeMap​(@Nullable
                                              com.pulumi.core.Output<PolicyExcludeMapArgs> excludeMap)
        Parameters:
        excludeMap - A map of lists of accounts and OU's to exclude from the policy.
        Returns:
        builder
      • excludeMap

        public PolicyState.Builder excludeMap​(PolicyExcludeMapArgs excludeMap)
        Parameters:
        excludeMap - A map of lists of accounts and OU's to exclude from the policy.
        Returns:
        builder
      • excludeResourceTags

        public PolicyState.Builder excludeResourceTags​(@Nullable
                                                       com.pulumi.core.Output<java.lang.Boolean> excludeResourceTags)
        Parameters:
        excludeResourceTags - A boolean value, if true the tags that are specified in the `resource_tags` are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.
        Returns:
        builder
      • excludeResourceTags

        public PolicyState.Builder excludeResourceTags​(java.lang.Boolean excludeResourceTags)
        Parameters:
        excludeResourceTags - A boolean value, if true the tags that are specified in the `resource_tags` are not protected by this policy. If set to false and resource_tags are populated, resources that contain tags will be protected by this policy.
        Returns:
        builder
      • includeMap

        public PolicyState.Builder includeMap​(@Nullable
                                              com.pulumi.core.Output<PolicyIncludeMapArgs> includeMap)
        Parameters:
        includeMap - A map of lists of accounts and OU's to include in the policy.
        Returns:
        builder
      • name

        public PolicyState.Builder name​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - The friendly name of the AWS Firewall Manager Policy.
        Returns:
        builder
      • name

        public PolicyState.Builder name​(java.lang.String name)
        Parameters:
        name - The 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 - A unique identifier for each update to the policy.
        Returns:
        builder
      • policyUpdateToken

        public PolicyState.Builder policyUpdateToken​(java.lang.String policyUpdateToken)
        Parameters:
        policyUpdateToken - A unique identifier for each update to the policy.
        Returns:
        builder
      • remediationEnabled

        public PolicyState.Builder remediationEnabled​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Boolean> remediationEnabled)
        Parameters:
        remediationEnabled - A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
        Returns:
        builder
      • remediationEnabled

        public PolicyState.Builder remediationEnabled​(java.lang.Boolean remediationEnabled)
        Parameters:
        remediationEnabled - A boolean value, indicates if the policy should automatically applied to resources that already exist in the account.
        Returns:
        builder
      • resourceTags

        public PolicyState.Builder resourceTags​(@Nullable
                                                com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> resourceTags)
        Parameters:
        resourceTags - A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
        Returns:
        builder
      • resourceTags

        public PolicyState.Builder resourceTags​(java.util.Map<java.lang.String,​java.lang.String> resourceTags)
        Parameters:
        resourceTags - A map of resource tags, that if present will filter protections on resources based on the exclude_resource_tags.
        Returns:
        builder
      • resourceType

        public PolicyState.Builder resourceType​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> resourceType)
        Parameters:
        resourceType - A resource type to protect. Conflicts with `resource_type_list`. 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 - A resource type to protect. Conflicts with `resource_type_list`. 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 - A list of resource types to protect. Conflicts with `resource_type`. 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 `resource_type`.
        Returns:
        builder
      • resourceTypeLists

        public PolicyState.Builder resourceTypeLists​(java.util.List<java.lang.String> resourceTypeLists)
        Parameters:
        resourceTypeLists - A list of resource types to protect. Conflicts with `resource_type`. 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 `resource_type`.
        Returns:
        builder
      • resourceTypeLists

        public PolicyState.Builder resourceTypeLists​(java.lang.String... resourceTypeLists)
        Parameters:
        resourceTypeLists - A list of resource types to protect. Conflicts with `resource_type`. 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 `resource_type`.
        Returns:
        builder
      • securityServicePolicyData

        public PolicyState.Builder securityServicePolicyData​(@Nullable
                                                             com.pulumi.core.Output<PolicySecurityServicePolicyDataArgs> securityServicePolicyData)
        Parameters:
        securityServicePolicyData - The objects to include in Security Service Policy Data. Documented below.
        Returns:
        builder
      • securityServicePolicyData

        public PolicyState.Builder securityServicePolicyData​(PolicySecurityServicePolicyDataArgs securityServicePolicyData)
        Parameters:
        securityServicePolicyData - The objects to include in Security Service Policy Data. Documented below.
        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 `default_tags` 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 `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level
        Returns:
        builder
      • tagsAll

        @Deprecated
        public PolicyState.Builder tagsAll​(@Nullable
                                           com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder
      • tagsAll

        @Deprecated
        public PolicyState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Deprecated.
        Please use `tags` instead.
        Parameters:
        tagsAll - A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
        Returns:
        builder