Interface PutPublicAccessBlockConfigRequest.Builder

    • Method Detail

      • resourceArn

        PutPublicAccessBlockConfigRequest.Builder resourceArn​(String resourceArn)

        The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.

        Parameters:
        resourceArn - The Amazon Resource Name (ARN) of the function you want to configure public-access settings for. Public-access settings are applied at the function level, so you can't apply different settings to function versions or aliases.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • publicAccessBlockConfig

        PutPublicAccessBlockConfigRequest.Builder publicAccessBlockConfig​(PublicAccessBlockConfig publicAccessBlockConfig)

        An object defining the public-access settings you want to apply.

        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.

        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.

        The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

        Parameters:
        publicAccessBlockConfig - An object defining the public-access settings you want to apply.

        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.

        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.

        The default setting for both BlockPublicPolicy and RestrictPublicResource is true.

        Returns:
        Returns a reference to this object so that method calls can be chained together.