Class CfnResourcePolicyMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudtrail.mixins.CfnResourcePolicyMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
- Enclosing interface:
CfnResourcePolicyMixinProps
@Stability(Stable)
public static final class CfnResourcePolicyMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnResourcePolicyMixinProps>
A builder for
CfnResourcePolicyMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.resourceArn(String resourceArn) Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()resourcePolicy(Object resourcePolicy) Sets the value ofCfnResourcePolicyMixinProps.getResourcePolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceArn
Sets the value ofCfnResourcePolicyMixinProps.getResourceArn()- Parameters:
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- Returns:
this
-
resourcePolicy
Sets the value ofCfnResourcePolicyMixinProps.getResourcePolicy()- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnResourcePolicyMixinProps>- Returns:
- a new instance of
CfnResourcePolicyMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-