Class OrganizationPrincipal
A principal that represents an AWS Organization.
Inherited Members
Namespace: Amazon.CDK.AWS.IAM
Assembly: Amazon.CDK.AWS.IAM.dll
Syntax (csharp)
public class OrganizationPrincipal : PrincipalBase, IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Syntax (vb)
Public Class OrganizationPrincipal
Inherits PrincipalBase
Implements IAssumeRolePrincipal, IComparablePrincipal, IPrincipal, IGrantable
Remarks
ExampleMetadata: fixture=_generated
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");
Synopsis
Constructors
OrganizationPrincipal(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
OrganizationPrincipal(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
OrganizationPrincipal(String) |
Properties
OrganizationId | The unique identifier (ID) of an organization (i.e. o-12345abcde). |
PolicyFragment | Return the policy fragment that identifies this principal in a Policy. |
Methods
DedupeString() | Return whether or not this principal is equal to the given principal. |
ToString() | Returns a string representation of an object. |
Constructors
OrganizationPrincipal(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected OrganizationPrincipal(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
OrganizationPrincipal(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected OrganizationPrincipal(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
OrganizationPrincipal(String)
public OrganizationPrincipal(string organizationId)
Parameters
- organizationId System.String
The 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
System.String
PolicyFragment
Return the policy fragment that identifies this principal in a Policy.
public override PrincipalPolicyFragment PolicyFragment { get; }
Property Value
Overrides
Methods
DedupeString()
Return whether or not this principal is equal to the given principal.
public override string DedupeString()
Returns
System.String
Overrides
ToString()
Returns a string representation of an object.
public override string ToString()
Returns
System.String