@Stability(value=Stable) public static final class CfnResourcePolicyProps.Builder extends Object implements software.amazon.jsii.Builder<CfnResourcePolicyProps>
CfnResourcePolicyProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnResourcePolicyProps |
build()
Builds the configured instance.
|
CfnResourcePolicyProps.Builder |
policy(Object policy)
Sets the value of
CfnResourcePolicyProps.getPolicy() |
CfnResourcePolicyProps.Builder |
resourceArn(String resourceArn)
Sets the value of
CfnResourcePolicyProps.getResourceArn() |
@Stability(value=Stable) public CfnResourcePolicyProps.Builder policy(Object policy)
CfnResourcePolicyProps.getPolicy()policy - A resource policy to add to the resource. This parameter is required.
The policy is a JSON structure that contains one or more statements that define the policy. The policy must follow IAM syntax. If the policy isn't valid, Amazon Lex returns a validation exception.this@Stability(value=Stable) public CfnResourcePolicyProps.Builder resourceArn(String resourceArn)
CfnResourcePolicyProps.getResourceArn()resourceArn - The Amazon Resource Name (ARN) of the bot or bot alias that the resource policy is attached to. This parameter is required.this@Stability(value=Stable) public CfnResourcePolicyProps build()
build in interface software.amazon.jsii.Builder<CfnResourcePolicyProps>CfnResourcePolicyPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.