Class CfnResourceShare
Creates a resource share.
Inherited Members
Namespace: Amazon.CDK.AWS.RAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnResourceShare : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnResourceShare Inherits CfnResource Implements IInspectable, ITaggable
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
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 cfnResourceShare = new CfnResourceShare(this, "MyCfnResourceShare", 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
CfnResourceShare(Construct, string, ICfnResourceShareProps) | Creates a resource share. |
Properties
AllowExternalPrincipals | Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share. |
AttrArn | The Amazon Resource Name (ARN) of the resource share. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | Creates 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. |
ResourceArns | Specifies a list of one or more ARNs of the resources to associate with the resource share. |
Sources | Specifies from which source accounts the service principal has access to the resources in this resource share. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | Specifies one or more tags to attach to the resource share itself. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<string, object>) | Creates a resource share. |
Constructors
CfnResourceShare(Construct, string, ICfnResourceShareProps)
Creates a resource share.
public CfnResourceShare(Construct scope, string id, ICfnResourceShareProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnResourceShareProps
Resource properties.
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
Properties
AllowExternalPrincipals
Specifies whether principals outside your organization in AWS Organizations can be associated with a resource share.
public virtual object? AllowExternalPrincipals { get; set; }
Property Value
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
AttrArn
The Amazon Resource Name (ARN) of the resource share.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
CfnProperties
Creates a resource share.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
Name
Specifies the name of the resource share.
public virtual string Name { get; set; }
Property Value
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
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 virtual string[]? PermissionArns { get; set; }
Property Value
string[]
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
Principals
Specifies the principals to associate with the resource share.
public virtual string[]? Principals { get; set; }
Property Value
string[]
Remarks
The possible values are:.
ResourceArns
Specifies a list of one or more ARNs of the resources to associate with the resource share.
public virtual string[]? ResourceArns { get; set; }
Property Value
string[]
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
Sources
Specifies from which source accounts the service principal has access to the resources in this resource share.
public virtual string[]? Sources { get; set; }
Property Value
string[]
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
TagsRaw
Specifies one or more tags to attach to the resource share itself.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
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
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Creates a resource share.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
You can provide a list of the Amazon Resource Names (ARNs) for the resources that you want to share, a list of principals you want to share the resources with, and the permissions to grant those principals.
Sharing a resource makes it available for use by principals outside of the AWS account that created the resource. Sharing doesn't change any permissions or quotas that apply to the resource in the account that created it.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ram-resourceshare.html
CloudformationResource: AWS::RAM::ResourceShare
ExampleMetadata: fixture=_generated