CfnPrincipalAssociationProps
Struct External
Properties for defining a CfnPrincipalAssociation.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ram as ram } from 'aws-cdk-lib';
const cfnPrincipalAssociationProps: ram.CfnPrincipalAssociationProps = {
principal: 'principal',
resourceShareArn: 'resourceShareArn',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ram as ram
cfn_principal_association_props = ram.CfnPrincipalAssociationProps(
principal="principal",
resource_share_arn="resourceShareArn"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ram.*;
CfnPrincipalAssociationProps cfnPrincipalAssociationProps = CfnPrincipalAssociationProps.builder()
.principal("principal")
.resourceShareArn("resourceShareArn")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnPrincipalAssociationProps = new CfnPrincipalAssociationProps {
Principal = "principal",
ResourceShareArn = "resourceShareArn"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnPrincipalAssociationProps := &CfnPrincipalAssociationProps{
Principal: jsii.String("principal"),
ResourceShareArn: jsii.String("resourceShareArn"),
}
Properties
Specifies the principal to associate with the resource share. The possible values are:.
An AWS account ID
An Amazon Resource Name (ARN) of an organization in AWS Organizations
An ARN of an organizational unit (OU) in AWS Organizations
An ARN of an IAM role
An ARN of an IAM user