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.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PutPublicAccessBlockConfigRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
default PutPublicAccessBlockConfigRequest.Builder
publicAccessBlockConfig(Consumer<PublicAccessBlockConfig.Builder> publicAccessBlockConfig)
An object defining the public-access settings you want to apply.PutPublicAccessBlockConfigRequest.Builder
publicAccessBlockConfig(PublicAccessBlockConfig publicAccessBlockConfig)
An object defining the public-access settings you want to apply.PutPublicAccessBlockConfigRequest.Builder
resourceArn(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
BlockPublicPolicy
totrue
. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicy
tofalse
.To block public access to your function, even if its resource-based policy allows it, set
RestrictPublicResource
totrue
. To allow public access to a function with a resource-based policy that permits it, setRestrictPublicResource
tofalse
.The default setting for both
BlockPublicPolicy
andRestrictPublicResource
istrue
.- 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
totrue
. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicy
tofalse
.To block public access to your function, even if its resource-based policy allows it, set
RestrictPublicResource
totrue
. To allow public access to a function with a resource-based policy that permits it, setRestrictPublicResource
tofalse
.The default setting for both
BlockPublicPolicy
andRestrictPublicResource
istrue
.- 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
BlockPublicPolicy
totrue
. To allow the creation of resource-based policies that would grant public access to your function, setBlockPublicPolicy
tofalse
.To block public access to your function, even if its resource-based policy allows it, set
RestrictPublicResource
totrue
. To allow public access to a function with a resource-based policy that permits it, setRestrictPublicResource
tofalse
.The default setting for both
This is a convenience method that creates an instance of theBlockPublicPolicy
andRestrictPublicResource
istrue
.PublicAccessBlockConfig.Builder
avoiding the need to create one manually viaPublicAccessBlockConfig.builder()
.When the
Consumer
completes,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:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PutPublicAccessBlockConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-