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.99.0 (build 8f757e4)", date="2024-06-13T18:49:19.913Z") @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