Class CfnResourceShareProps
Properties for defining a CfnResourceShare
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.RAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceShareProps : Object, ICfnResourceShareProps
Syntax (vb)
Public Class CfnResourceShareProps
Inherits Object
Implements ICfnResourceShareProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
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 cfnResourceShareProps = new CfnResourceShareProps {
Name = "name",
// the properties below are optional
AllowExternalPrincipals = false,
PermissionArns = new [] { "permissionArns" },
Principals = new [] { "principals" },
ResourceArns = new [] { "resourceArns" },
Sources = new [] { "sources" },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnResourceShareProps() |
Properties
AllowExternalPrincipals | Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. |
Name | Specifies the name of the resource share. |
PermissionArns | Specifies the Amazon Resource Names (ARNs) of the AWS RAM permission to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share. |
Principals | Specifies the principals to associate with the resource share. The possible values are:. |
ResourceArns | Specifies a list of one or more ARNs of the resources to associate with the resource share. |
Sources | |
Tags | Specifies one or more tags to attach to the resource share itself. |
Constructors
CfnResourceShareProps()
public CfnResourceShareProps()
Properties
AllowExternalPrincipals
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
public object AllowExternalPrincipals { get; set; }
Property Value
System.Object
Remarks
A value of true
lets you share with individual AWS accounts that are not in your organization. A value of false
only has meaning if your account is a member of an AWS Organization. The default value is true
.
Name
Specifies the name of the resource share.
public string Name { get; set; }
Property Value
System.String
Remarks
PermissionArns
Specifies the Amazon Resource Names (ARNs) of the AWS RAM permission to associate with the resource share. If you do not specify an ARN for the permission, AWS RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
public string[] PermissionArns { get; set; }
Property Value
System.String[]
Remarks
Principals
Specifies the principals to associate with the resource share. The possible values are:.
public string[] Principals { get; set; }
Property Value
System.String[]
Remarks
Not all resource types can be shared with IAM roles and users. For more information, see the column <em>Can share with IAM roles and users</em> in the tables on <a href="https://docs.aws.amazon.com/ram/latest/userguide/shareable.html">Shareable AWS resources</a> in the <em>AWS Resource Access Manager User Guide</em> .
ResourceArns
Specifies a list of one or more ARNs of the resources to associate with the resource share.
public string[] ResourceArns { get; set; }
Property Value
System.String[]
Remarks
Sources
public string[] Sources { get; set; }
Property Value
System.String[]
Remarks
Tags
Specifies one or more tags to attach to the resource share itself.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
It doesn't attach the tags to the resources associated with the resource share.