Interface PutResourcePolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>,LambdaRequest.Builder,SdkBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutResourcePolicyRequest
public static interface PutResourcePolicyRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<PutResourcePolicyRequest.Builder,PutResourcePolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PutResourcePolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutResourcePolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutResourcePolicyRequest.Builderpolicy(String policy)The JSON resource-based policy you want to add to your function.PutResourcePolicyRequest.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the function you want to add the policy to.PutResourcePolicyRequest.BuilderrevisionId(String revisionId)Replace the existing policy only if its revision ID matches the string you specify.-
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
PutResourcePolicyRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the function you want to add the policy to. You can use either a qualified or an unqualified ARN, but the value you specify must be a complete ARN and wildcard characters are not accepted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
PutResourcePolicyRequest.Builder policy(String policy)
The JSON resource-based policy you want to add to your function.
To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.
- Parameters:
policy- The JSON resource-based policy you want to add to your function.To learn more about creating resource-based policies for controlling access to Lambda, see Working with resource-based IAM policies in Lambda in the Lambda Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revisionId
PutResourcePolicyRequest.Builder revisionId(String revisionId)
Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.
- Parameters:
revisionId- Replace the existing policy only if its revision ID matches the string you specify. To find the revision ID of the policy currently attached to your function, use the GetResourcePolicy action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-