Class ResourcePolicyArgs.Builder

  • Enclosing class:
    ResourcePolicyArgs

    public static final class ResourcePolicyArgs.Builder
    extends java.lang.Object
    • Method Detail

      • policy

        public ResourcePolicyArgs.Builder policy​(com.pulumi.core.Output<java.lang.String> policy)
        Parameters:
        policy - JSON formatted policy document that controls access to the Network Firewall resource. The policy must be provided **without whitespaces**. We recommend using jsonencode for formatting as seen in the examples above. For more details, including available policy statement Actions, see the [Policy](https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_PutResourcePolicy.html#API_PutResourcePolicy_RequestSyntax) parameter in the AWS API documentation.
        Returns:
        builder
      • policy

        public ResourcePolicyArgs.Builder policy​(java.lang.String policy)
        Parameters:
        policy - JSON formatted policy document that controls access to the Network Firewall resource. The policy must be provided **without whitespaces**. We recommend using jsonencode for formatting as seen in the examples above. For more details, including available policy statement Actions, see the [Policy](https://docs.aws.amazon.com/network-firewall/latest/APIReference/API_PutResourcePolicy.html#API_PutResourcePolicy_RequestSyntax) parameter in the AWS API documentation.
        Returns:
        builder
      • region

        public ResourcePolicyArgs.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 ResourcePolicyArgs.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
      • resourceArn

        public ResourcePolicyArgs.Builder resourceArn​(com.pulumi.core.Output<java.lang.String> resourceArn)
        Parameters:
        resourceArn - ARN of the rule group or firewall policy.
        Returns:
        builder
      • resourceArn

        public ResourcePolicyArgs.Builder resourceArn​(java.lang.String resourceArn)
        Parameters:
        resourceArn - ARN of the rule group or firewall policy.
        Returns:
        builder