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.101.0 (build b95fe5d)", date="2024-07-12T19:34:02.987Z") @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