Interface PublicAccessBlockConfig.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PublicAccessBlockConfig.Builder,PublicAccessBlockConfig>,SdkBuilder<PublicAccessBlockConfig.Builder,PublicAccessBlockConfig>,SdkPojo
- Enclosing class:
- PublicAccessBlockConfig
public static interface PublicAccessBlockConfig.Builder extends SdkPojo, CopyableBuilder<PublicAccessBlockConfig.Builder,PublicAccessBlockConfig>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PublicAccessBlockConfig.BuilderblockPublicPolicy(Boolean blockPublicPolicy)To block the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytotrue.PublicAccessBlockConfig.BuilderrestrictPublicResource(Boolean restrictPublicResource)To block public access to your function, even if its resource-based policy allows it, setRestrictPublicResourcetotrue.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
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
BlockPublicPolicytotrue. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytofalse.- Parameters:
blockPublicPolicy- To block the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytotrue. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytofalse.- 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
RestrictPublicResourcetotrue. To allow public access to a function with a resource-based policy that permits it, setRestrictPublicResourcetofalse.- Parameters:
restrictPublicResource- To block public access to your function, even if its resource-based policy allows it, setRestrictPublicResourcetotrue. To allow public access to a function with a resource-based policy that permits it, setRestrictPublicResourcetofalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-