Interface CfnResourcePolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnResourcePolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.904Z")
@Stability(Stable)
public interface CfnResourcePolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnResourcePolicy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudtrail.*;
Object resourcePolicy;
CfnResourcePolicyProps cfnResourcePolicyProps = CfnResourcePolicyProps.builder()
.resourceArn("resourceArn")
.resourcePolicy(resourcePolicy)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnResourcePolicyPropsstatic final classAn implementation forCfnResourcePolicyProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.A JSON-formatted string for an AWS resource-based policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceArn
The Amazon Resource Name (ARN) of the CloudTrail channel attached to the resource-based policy.The following is the format of a resource ARN:
arn:aws:cloudtrail:us-east-2:123456789012:channel/MyChannel. -
getResourcePolicy
A JSON-formatted string for an AWS resource-based policy.The following are requirements for the resource policy:
- Contains only one action: cloudtrail-data:PutAuditEvents
- Contains at least one statement. The policy can have a maximum of 20 statements.
- Each statement contains at least one principal. A statement can have a maximum of 50 principals.
-
builder
- Returns:
- a
CfnResourcePolicyProps.BuilderofCfnResourcePolicyProps
-