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.120.0 (build 192dc88)",
date="2025-12-05T22:26:37.937Z")
@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);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IAssumeRolePrincipal
IAssumeRolePrincipal.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IComparablePrincipal
IComparablePrincipal.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionOrganizationPrincipal(String organizationId) protectedOrganizationPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedOrganizationPrincipal(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturn whether or not this principal is equal to the given principal.The unique identifier (ID) of an organization (i.e.Return the policy fragment that identifies this principal in a Policy.toString()Returns a string representation of an object.Methods inherited from class software.amazon.awscdk.services.iam.PrincipalBase
addToAssumeRolePolicy, addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getGrantPrincipal, getPrincipalAccount, toJSON, withConditions, withSessionTagsMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
OrganizationPrincipal
protected OrganizationPrincipal(software.amazon.jsii.JsiiObjectRef objRef) -
OrganizationPrincipal
protected OrganizationPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
OrganizationPrincipal
- Parameters:
organizationId- The unique identifier (ID) of an organization (i.e. o-12345abcde) It must match regex pattern ^o-[a-z0-9]{10,32}$. This parameter is required.- See Also:
-
-
Method Details
-
dedupeString
Return whether or not this principal is equal to the given principal.- Specified by:
dedupeStringin interfaceIComparablePrincipal- Specified by:
dedupeStringin classPrincipalBase
-
toString
Returns a string representation of an object.- Overrides:
toStringin classPrincipalBase
-
getOrganizationId
The unique identifier (ID) of an organization (i.e. o-12345abcde) It must match regex pattern ^o-[a-z0-9]{10,32}$. -
getPolicyFragment
Return the policy fragment that identifies this principal in a Policy.- Specified by:
getPolicyFragmentin interfaceIPrincipal- Specified by:
getPolicyFragmentin classPrincipalBase
-