Class CfnPrincipalAssociation
Associates a specified principal with a resource share.
Inherited Members
Namespace: Amazon.CDK.AWS.RAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPrincipalAssociation : CfnResource, IInspectable, IPrincipalAssociationRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnPrincipalAssociation Inherits CfnResource Implements IInspectable, IPrincipalAssociationRef, IConstruct, IDependable, IEnvironmentAware
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
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.RAM;
var cfnPrincipalAssociation = new CfnPrincipalAssociation(this, "MyCfnPrincipalAssociation", new CfnPrincipalAssociationProps {
Principal = "principal",
ResourceShareArn = "resourceShareArn"
});
Synopsis
Constructors
| CfnPrincipalAssociation(Construct, string, ICfnPrincipalAssociationProps) | Create a new |
Properties
| AttrAssociationType | The type of entity included in this association. |
| AttrCreationTime | The date and time when the association was created. |
| AttrExternal | Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share. |
| AttrLastUpdatedTime | The date and time when the association was last updated. |
| AttrStatus | The current status of the association. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Associates a specified principal with a resource share. |
| CfnPropertyNames | Associates a specified principal with a resource share. |
| Principal | Specifies the principal to associate with the resource share. |
| PrincipalAssociationRef | A reference to a PrincipalAssociation resource. |
| ResourceShareArn | Specifies the Amazon Resource Name (ARN) of the resource share. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| IsCfnPrincipalAssociation(object) | Checks whether the given object is a CfnPrincipalAssociation. |
| RenderProperties(IDictionary<string, object>) | Associates a specified principal with a resource share. |
Constructors
CfnPrincipalAssociation(Construct, string, ICfnPrincipalAssociationProps)
Create a new AWS::RAM::PrincipalAssociation.
public CfnPrincipalAssociation(Construct scope, string id, ICfnPrincipalAssociationProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnPrincipalAssociationProps
Resource properties.
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
Properties
AttrAssociationType
The type of entity included in this association.
public virtual string AttrAssociationType { get; }
Property Value
Remarks
CloudformationAttribute: AssociationType
AttrCreationTime
The date and time when the association was created.
public virtual string AttrCreationTime { get; }
Property Value
Remarks
CloudformationAttribute: CreationTime
AttrExternal
Indicates whether the principal belongs to the same organization in AWS Organizations as the AWS account that owns the resource share.
public virtual IResolvable AttrExternal { get; }
Property Value
Remarks
CloudformationAttribute: External
AttrLastUpdatedTime
The date and time when the association was last updated.
public virtual string AttrLastUpdatedTime { get; }
Property Value
Remarks
CloudformationAttribute: LastUpdatedTime
AttrStatus
The current status of the association.
public virtual string AttrStatus { get; }
Property Value
Remarks
CloudformationAttribute: Status
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
CfnProperties
Associates a specified principal with a resource share.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
CfnPropertyNames
Associates a specified principal with a resource share.
protected override IDictionary<string, string> CfnPropertyNames { get; }
Property Value
Overrides
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
Principal
Specifies the principal to associate with the resource share.
public virtual string Principal { get; set; }
Property Value
Remarks
The possible values are:.
PrincipalAssociationRef
A reference to a PrincipalAssociation resource.
public virtual IPrincipalAssociationReference PrincipalAssociationRef { get; }
Property Value
IPrincipalAssociationReference
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
ResourceShareArn
Specifies the Amazon Resource Name (ARN) of the resource share.
public virtual string ResourceShareArn { get; set; }
Property Value
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
IsCfnPrincipalAssociation(object)
Checks whether the given object is a CfnPrincipalAssociation.
public static bool IsCfnPrincipalAssociation(object x)
Parameters
- x object
Returns
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Associates a specified principal with a resource share.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
CloudformationResource: AWS::RAM::PrincipalAssociation
ExampleMetadata: fixture=_generated