Class CfnGrant
Specifies a grant.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.LicenseManager
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGrant : CfnResource, IInspectable
Syntax (vb)
Public Class CfnGrant
Inherits CfnResource
Implements IInspectable
Remarks
A grant shares the use of license entitlements with specific AWS accounts . For more information, see Granted licenses in the AWS License Manager User Guide .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-licensemanager-grant.html
CloudformationResource: AWS::LicenseManager::Grant
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.LicenseManager;
var cfnGrant = new CfnGrant(this, "MyCfnGrant", new CfnGrantProps {
AllowedOperations = new [] { "allowedOperations" },
GrantName = "grantName",
HomeRegion = "homeRegion",
LicenseArn = "licenseArn",
Principals = new [] { "principals" },
Status = "status"
});
Synopsis
Constructors
CfnGrant(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnGrant(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnGrant(Construct, String, ICfnGrantProps) |
Properties
AllowedOperations | Allowed operations for the grant. |
AttrGrantArn | The Amazon Resource Name (ARN) of the grant. |
AttrVersion | The grant version. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
GrantName | Grant name. |
HomeRegion | Home Region of the grant. |
LicenseArn | License ARN. |
Principals | The grant principals. |
Status | Granted license status. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnGrant(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnGrant(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnGrant(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnGrant(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnGrant(Construct, String, ICfnGrantProps)
public CfnGrant(Construct scope, string id, ICfnGrantProps props = null)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnGrantProps
Resource properties.
Properties
AllowedOperations
Allowed operations for the grant.
public virtual string[] AllowedOperations { get; set; }
Property Value
System.String[]
AttrGrantArn
The Amazon Resource Name (ARN) of the grant.
public virtual string AttrGrantArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: GrantArn
AttrVersion
The grant version.
public virtual string AttrVersion { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Version
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
GrantName
Grant name.
public virtual string GrantName { get; set; }
Property Value
System.String
HomeRegion
Home Region of the grant.
public virtual string HomeRegion { get; set; }
Property Value
System.String
LicenseArn
License ARN.
public virtual string LicenseArn { get; set; }
Property Value
System.String
Principals
The grant principals.
public virtual string[] Principals { get; set; }
Property Value
System.String[]
Remarks
You can specify one of the following as an Amazon Resource Name (ARN):.
Status
Granted license status.
public virtual string Status { get; set; }
Property Value
System.String
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>