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.102.0 (build e354887)", date="2024-08-29T22:54:19.992Z") @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