Interface PublicAccessBlockConfig.Builder

    • Method Detail

      • blockPublicPolicy

        PublicAccessBlockConfig.Builder blockPublicPolicy​(Boolean blockPublicPolicy)

        To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.

        Parameters:
        blockPublicPolicy - To block the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to true. To allow the creation of resource-based policies that would grant public access to your function, set BlockPublicPolicy to false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • restrictPublicResource

        PublicAccessBlockConfig.Builder restrictPublicResource​(Boolean restrictPublicResource)

        To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.

        Parameters:
        restrictPublicResource - To block public access to your function, even if its resource-based policy allows it, set RestrictPublicResource to true. To allow public access to a function with a resource-based policy that permits it, set RestrictPublicResource to false.
        Returns:
        Returns a reference to this object so that method calls can be chained together.