Class OrganizationPrincipal

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.iam.PrincipalBase
software.amazon.awscdk.services.iam.OrganizationPrincipal
All Implemented Interfaces:
IAssumeRolePrincipal, IComparablePrincipal, IGrantable, IPrincipal, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-11T15:56:00.022Z") @Stability(Stable) public class OrganizationPrincipal extends PrincipalBase
A principal that represents an AWS Organization.

Example:

 // Grant permissions to an entire AWS organization
 Function fn;
 OrganizationPrincipal org = new OrganizationPrincipal("o-xxxxxxxxxx");
 fn.grantInvoke(org);
 
  • Constructor Details

    • OrganizationPrincipal

      protected OrganizationPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
    • OrganizationPrincipal

      protected OrganizationPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • OrganizationPrincipal

      @Stability(Stable) public OrganizationPrincipal(@NotNull String organizationId)
      Parameters:
      organizationId - The unique identifier (ID) of an organization (i.e. o-12345abcde). This parameter is required.
  • Method Details