UNPKG

advanced-cdk-constructs

Version:

[![codecov](https://codecov.io/gh/spensireli/advanced-cdk-constructs/graph/badge.svg?token=50IITI207T)](https://codecov.io/gh/spensireli/advanced-cdk-constructs)

54 lines (53 loc) 1.82 kB
import { Construct } from 'constructs'; /** * Properties for configuring a {@link ResourceControlPolicy}. */ export interface ResourceControlPolicyProps { /** * The list of target IDs (accounts, OUs, or roots) to which the policy will be attached. */ readonly targetIds: string[]; /** * The AWS Organization ID to enforce as the source organization in the policy. */ readonly sourceOrgID: string; /** * The name of the resource control policy. * If not provided, a default name will be generated. * @default - Automatically generated name based on construct ID. */ readonly name?: string; /** * Optional list of allowed source AWS account IDs. * If provided, only these accounts are allowed as source accounts. */ readonly sourceAccount?: string[]; /** * Whether to enforce Confused Deputy Protection in the policy. */ readonly enforceConfusedDeputyProtection: boolean; /** * Whether to enforce Secure Transport in the policy. */ readonly enforceSecureTransport: boolean; } /** * A CDK construct that creates and attaches an AWS Organizations Resource Control Policy. * * This policy can enforce Confused Deputy Protection and Secure Transport requirements * across specified AWS accounts, OUs, or roots. */ export declare class ResourceControlPolicy extends Construct { /** * The ARN of the created Resource Control Policy. */ readonly resourceControlPolicyArn: string; /** * Creates a new {@link ResourceControlPolicy}. * * @param scope The parent construct. * @param id The construct ID. * @param props The properties for the resource control policy. */ constructor(scope: Construct, id: string, props: ResourceControlPolicyProps); }