Interface PutPublicAccessBlockConfigRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutPublicAccessBlockConfigRequest.Builder,PutPublicAccessBlockConfigRequest>,LambdaRequest.Builder,SdkBuilder<PutPublicAccessBlockConfigRequest.Builder,PutPublicAccessBlockConfigRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutPublicAccessBlockConfigRequest
public static interface PutPublicAccessBlockConfigRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<PutPublicAccessBlockConfigRequest.Builder,PutPublicAccessBlockConfigRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PutPublicAccessBlockConfigRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutPublicAccessBlockConfigRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default PutPublicAccessBlockConfigRequest.BuilderpublicAccessBlockConfig(Consumer<PublicAccessBlockConfig.Builder> publicAccessBlockConfig)An object defining the public-access settings you want to apply.PutPublicAccessBlockConfigRequest.BuilderpublicAccessBlockConfig(PublicAccessBlockConfig publicAccessBlockConfig)An object defining the public-access settings you want to apply.PutPublicAccessBlockConfigRequest.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the function you want to configure public-access settings for.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
build
-
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
-
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
BlockPublicPolicytotrue. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytofalse.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.The default setting for both
BlockPublicPolicyandRestrictPublicResourceistrue.- 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
BlockPublicPolicytotrue. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytofalse.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.The default setting for both
BlockPublicPolicyandRestrictPublicResourceistrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicAccessBlockConfig
default PutPublicAccessBlockConfigRequest.Builder publicAccessBlockConfig(Consumer<PublicAccessBlockConfig.Builder> 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
BlockPublicPolicytotrue. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicytofalse.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.The default setting for both
This is a convenience method that creates an instance of theBlockPublicPolicyandRestrictPublicResourceistrue.PublicAccessBlockConfig.Builderavoiding the need to create one manually viaPublicAccessBlockConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topublicAccessBlockConfig(PublicAccessBlockConfig).- Parameters:
publicAccessBlockConfig- a consumer that will call methods onPublicAccessBlockConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
publicAccessBlockConfig(PublicAccessBlockConfig)
-
overrideConfiguration
PutPublicAccessBlockConfigRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutPublicAccessBlockConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-