public static interface CreateResourcePolicyStatementRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<CreateResourcePolicyStatementRequest.Builder,CreateResourcePolicyStatementRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateResourcePolicyStatementRequest.Builder |
action(Collection<String> action)
The Amazon Lex action that this policy either allows or denies.
|
CreateResourcePolicyStatementRequest.Builder |
action(String... action)
The Amazon Lex action that this policy either allows or denies.
|
CreateResourcePolicyStatementRequest.Builder |
condition(Map<String,? extends Map<String,String>> condition)
Specifies a condition when the policy is in effect.
|
CreateResourcePolicyStatementRequest.Builder |
effect(Effect effect)
Determines whether the statement allows or denies access to the resource.
|
CreateResourcePolicyStatementRequest.Builder |
effect(String effect)
Determines whether the statement allows or denies access to the resource.
|
CreateResourcePolicyStatementRequest.Builder |
expectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to edit.
|
CreateResourcePolicyStatementRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateResourcePolicyStatementRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateResourcePolicyStatementRequest.Builder |
principal(Collection<Principal> principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied
access to a resource.
|
CreateResourcePolicyStatementRequest.Builder |
principal(Consumer<Principal.Builder>... principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied
access to a resource.
|
CreateResourcePolicyStatementRequest.Builder |
principal(Principal... principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied
access to a resource.
|
CreateResourcePolicyStatementRequest.Builder |
resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
|
CreateResourcePolicyStatementRequest.Builder |
statementId(String statementId)
The name of the statement.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateResourcePolicyStatementRequest.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.CreateResourcePolicyStatementRequest.Builder statementId(String statementId)
The name of the statement. The ID is the same as the Sid IAM property. The statement name must
be unique within the policy. For more information, see IAM JSON policy
elements: Sid.
statementId - The name of the statement. The ID is the same as the Sid IAM property. The statement name
must be unique within the policy. For more information, see IAM JSON
policy elements: Sid.CreateResourcePolicyStatementRequest.Builder effect(String effect)
Determines whether the statement allows or denies access to the resource.
CreateResourcePolicyStatementRequest.Builder effect(Effect effect)
Determines whether the statement allows or denies access to the resource.
CreateResourcePolicyStatementRequest.Builder principal(Collection<Principal> principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
principal - An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or
denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.CreateResourcePolicyStatementRequest.Builder principal(Principal... principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
principal - An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or
denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.CreateResourcePolicyStatementRequest.Builder principal(Consumer<Principal.Builder>... principal)
An IAM principal, such as an IAM user, IAM role, or Amazon Web Services services that is allowed or denied access to a resource. For more information, see Amazon Web Services JSON policy elements: Principal.
This is a convenience method that creates an instance of thePrincipal.Builder avoiding the need to create one
manually via Principal.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #principal(List.
principal - a consumer that will call methods on
Principal.Builder#principal(java.util.Collection) CreateResourcePolicyStatementRequest.Builder action(Collection<String> action)
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.
action - The Amazon Lex action that this policy either allows or denies. The action must apply to the resource
type of the specified ARN. For more information, see
Actions, resources, and condition keys for Amazon Lex V2.CreateResourcePolicyStatementRequest.Builder action(String... action)
The Amazon Lex action that this policy either allows or denies. The action must apply to the resource type of the specified ARN. For more information, see Actions, resources, and condition keys for Amazon Lex V2.
action - The Amazon Lex action that this policy either allows or denies. The action must apply to the resource
type of the specified ARN. For more information, see
Actions, resources, and condition keys for Amazon Lex V2.CreateResourcePolicyStatementRequest.Builder condition(Map<String,? extends Map<String,String>> condition)
Specifies a condition when the policy is in effect. If the principal of the policy is a service principal, you must provide two condition blocks, one with a SourceAccount global condition key and one with a SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
condition - Specifies a condition when the policy is in effect. If the principal of the policy is a service
principal, you must provide two condition blocks, one with a SourceAccount global condition key and
one with a SourceArn global condition key.
For more information, see IAM JSON policy elements: Condition .
CreateResourcePolicyStatementRequest.Builder expectedRevisionId(String expectedRevisionId)
The identifier of the revision of the policy to edit. 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 edit. 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.
CreateResourcePolicyStatementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateResourcePolicyStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.