Interface CreateResourcePolicyStatementRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateResourcePolicyStatementRequest.Builder,CreateResourcePolicyStatementRequest>,LexModelsV2Request.Builder,SdkBuilder<CreateResourcePolicyStatementRequest.Builder,CreateResourcePolicyStatementRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateResourcePolicyStatementRequest
public static interface CreateResourcePolicyStatementRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<CreateResourcePolicyStatementRequest.Builder,CreateResourcePolicyStatementRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateResourcePolicyStatementRequest.Builderaction(String... action)The Amazon Lex action that this policy either allows or denies.CreateResourcePolicyStatementRequest.Builderaction(Collection<String> action)The Amazon Lex action that this policy either allows or denies.CreateResourcePolicyStatementRequest.Buildercondition(Map<String,? extends Map<String,String>> condition)Specifies a condition when the policy is in effect.CreateResourcePolicyStatementRequest.Buildereffect(String effect)Determines whether the statement allows or denies access to the resource.CreateResourcePolicyStatementRequest.Buildereffect(Effect effect)Determines whether the statement allows or denies access to the resource.CreateResourcePolicyStatementRequest.BuilderexpectedRevisionId(String expectedRevisionId)The identifier of the revision of the policy to edit.CreateResourcePolicyStatementRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateResourcePolicyStatementRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateResourcePolicyStatementRequest.Builderprincipal(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.Builderprincipal(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.Builderprincipal(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.BuilderresourceArn(String resourceArn)The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.CreateResourcePolicyStatementRequest.BuilderstatementId(String statementId)The name of the statement.-
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.lexmodelsv2.model.LexModelsV2Request.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
CreateResourcePolicyStatementRequest.Builder resourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statementId
CreateResourcePolicyStatementRequest.Builder statementId(String statementId)
The name of the statement. The ID is the same as the
SidIAM property. The statement name must be unique within the policy. For more information, see IAM JSON policy elements: Sid.- Parameters:
statementId- The name of the statement. The ID is the same as theSidIAM property. The statement name must be unique within the policy. For more information, see IAM JSON policy elements: Sid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
effect
CreateResourcePolicyStatementRequest.Builder effect(String effect)
Determines whether the statement allows or denies access to the resource.
-
effect
CreateResourcePolicyStatementRequest.Builder effect(Effect effect)
Determines whether the statement allows or denies access to the resource.
-
principal
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.Builderavoiding the need to create one manually viaPrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#principal(List.) - Parameters:
principal- a consumer that will call methods onPrincipal.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#principal(java.util.Collection)
-
action
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
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 .
- Parameters:
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 .
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedRevisionId
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateResourcePolicyStatementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateResourcePolicyStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-