@Stability(value=Stable) public static final class CfnResourcePolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnResourcePolicy>
CfnResourcePolicy.| Modifier and Type | Method and Description |
|---|---|
CfnResourcePolicy |
build() |
static CfnResourcePolicy.Builder |
create(Construct scope,
String id) |
CfnResourcePolicy.Builder |
policy(Object policy)
A policy you want to associate with a resource.
|
CfnResourcePolicy.Builder |
resourceArn(String resourceArn)
Amazon Resource Name (ARN) of the resource to which you want to attach a policy.
|
@Stability(value=Stable) public static CfnResourcePolicy.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnResourcePolicy.Builder.@Stability(value=Stable) public CfnResourcePolicy.Builder policy(Object policy)
policy - A policy you want to associate with a resource. This parameter is required.this@Stability(value=Stable) public CfnResourcePolicy.Builder resourceArn(String resourceArn)
resourceArn - Amazon Resource Name (ARN) of the resource to which you want to attach a policy. This parameter is required.this@Stability(value=Stable) public CfnResourcePolicy build()
build in interface software.amazon.jsii.Builder<CfnResourcePolicy>Copyright © 2023. All rights reserved.