Class OrganizationPrincipal
A principal that represents an AWS Organization.
public class OrganizationPrincipal : PrincipalBase, IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
- Inheritance
-
OrganizationPrincipal
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IAM;
var organizationPrincipal = new OrganizationPrincipal("organizationId");
Remarks
ExampleMetadata: fixture=_generated
Constructors
OrganizationPrincipal(string)
public OrganizationPrincipal(string organizationId)
Parameters
organizationId
stringThe unique identifier (ID) of an organization (i.e. o-12345abcde).
Properties
OrganizationId
The unique identifier (ID) of an organization (i.e. o-12345abcde).
public virtual string OrganizationId { get; }
Property Value
PolicyFragment
Return the policy fragment that identifies this principal in a Policy.
public override PrincipalPolicyFragment PolicyFragment { get; }
Property Value
Methods
DedupeString()
Return whether or not this principal is equal to the given principal.
public override string? DedupeString()
Returns
ToString()
Returns a string representation of an object.
public override string ToString()