public static interface UpdateResourcePolicyRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<UpdateResourcePolicyRequest.Builder,UpdateResourcePolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
UpdateResourcePolicyRequest.Builder |
expectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to update.
|
UpdateResourcePolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateResourcePolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdateResourcePolicyRequest.Builder |
policy(String policy)
A resource policy to add to the resource.
|
UpdateResourcePolicyRequest.Builder |
resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateResourcePolicyRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.UpdateResourcePolicyRequest.Builder policy(String policy)
A resource policy to add to the resource. The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON policy document, see IAM JSON policy reference .
If the policy isn't valid, Amazon Lex returns a validation exception.
policy - A resource policy to add to the resource. The policy is a JSON structure that contains one or more
statements that define the policy. The policy must follow the IAM syntax. For more information about
the contents of a JSON policy document, see IAM JSON policy
reference .
If the policy isn't valid, Amazon Lex returns a validation exception.
UpdateResourcePolicyRequest.Builder expectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to update. If this revision ID doesn't match the current revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
expectedRevisionId - The identifier of the revision of the policy to update. If this revision ID doesn't match the current
revision ID, Amazon Lex throws an exception.
If you don't specify a revision, Amazon Lex overwrites the contents of the policy with the new values.
UpdateResourcePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateResourcePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.