@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.778Z") @Stability(value=Stable) public class OrganizationPrincipal extends PrincipalBase
Example:
// Grant permissions to an entire AWS organization
Function fn;
OrganizationPrincipal org = new OrganizationPrincipal("o-xxxxxxxxxx");
fn.grantInvoke(org);
software.amazon.jsii.JsiiObject.InitializationModeIAssumeRolePrincipal.Jsii$DefaultIComparablePrincipal.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
OrganizationPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
OrganizationPrincipal(software.amazon.jsii.JsiiObjectRef objRef) |
|
OrganizationPrincipal(String organizationId) |
| Modifier and Type | Method and Description |
|---|---|
String |
dedupeString()
Return whether or not this principal is equal to the given principal.
|
String |
getOrganizationId()
The unique identifier (ID) of an organization (i.e.
|
PrincipalPolicyFragment |
getPolicyFragment()
Return the policy fragment that identifies this principal in a Policy.
|
String |
toString()
Returns a string representation of an object.
|
addToAssumeRolePolicy, addToPolicy, addToPrincipalPolicy, getAssumeRoleAction, getGrantPrincipal, getPrincipalAccount, toJSON, withConditions, withSessionTagsprotected OrganizationPrincipal(software.amazon.jsii.JsiiObjectRef objRef)
protected OrganizationPrincipal(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public OrganizationPrincipal(@NotNull
String organizationId)
organizationId - The unique identifier (ID) of an organization (i.e. o-12345abcde). This parameter is required.@Stability(value=Stable) @Nullable public String dedupeString()
dedupeString in interface IComparablePrincipaldedupeString in class PrincipalBase@Stability(value=Stable) @NotNull public String toString()
toString in class PrincipalBase@Stability(value=Stable) @NotNull public String getOrganizationId()
@Stability(value=Stable) @NotNull public PrincipalPolicyFragment getPolicyFragment()
getPolicyFragment in interface IPrincipalgetPolicyFragment in class PrincipalBaseCopyright © 2022. All rights reserved.