Class CfnResourcePolicyPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudtrail.CfnResourcePolicyPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
- Enclosing class:
CfnResourcePolicyPropsMixin
@Stability(Stable)
public static final class CfnResourcePolicyPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>
A fluent builder for
CfnResourcePolicyPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy.resourcePolicy(Object resourcePolicy) A JSON-formatted string for an AWS resource-based policy.
-
Method Details
-
create
@Stability(Stable) public static CfnResourcePolicyPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnResourcePolicyPropsMixin.Builder.
-
resourceArn
The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy.Example event data store ARN format:
arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLEExample dashboard ARN format:
arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDashExample channel ARN format:
arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel attached to the resource-based policy. This parameter is required.- Returns:
this- See Also:
-
resourcePolicy
A JSON-formatted string for an AWS resource-based policy.For example resource-based policies, see CloudTrail resource-based policy examples in the CloudTrail User Guide .
- Parameters:
resourcePolicy- A JSON-formatted string for an AWS resource-based policy. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyPropsMixin>- Returns:
- a newly built instance of
CfnResourcePolicyPropsMixin.
-