@Generated(value="jsii-pacmak/1.60.0 (build ebcefe6)", date="2022-06-22T23:27:51.558Z") public class CfnGrant extends CfnResource implements IInspectable
Specifies a grant.
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 .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.licensemanager.*; CfnGrant cfnGrant = CfnGrant.Builder.create(this, "MyCfnGrant") .allowedOperations(List.of("allowedOperations")) .grantName("grantName") .homeRegion("homeRegion") .licenseArn("licenseArn") .principals(List.of("principals")) .status("status") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnGrant.Builder
A fluent builder for
CfnGrant . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnGrant(Construct scope,
java.lang.String id)
Create a new `AWS::LicenseManager::Grant`.
|
|
CfnGrant(Construct scope,
java.lang.String id,
CfnGrantProps props)
Create a new `AWS::LicenseManager::Grant`.
|
protected |
CfnGrant(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnGrant(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAllowedOperations()
Allowed operations for the grant.
|
java.lang.String |
getAttrGrantArn()
The Amazon Resource Name (ARN) of the grant.
|
java.lang.String |
getAttrVersion()
The grant version.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getGrantName()
Grant name.
|
java.lang.String |
getHomeRegion()
Home Region of the grant.
|
java.lang.String |
getLicenseArn()
License ARN.
|
java.util.List<java.lang.String> |
getPrincipals()
The grant principals.
|
java.lang.String |
getStatus()
Granted license status.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setAllowedOperations(java.util.List<java.lang.String> value)
Allowed operations for the grant.
|
void |
setGrantName(java.lang.String value)
Grant name.
|
void |
setHomeRegion(java.lang.String value)
Home Region of the grant.
|
void |
setLicenseArn(java.lang.String value)
License ARN.
|
void |
setPrincipals(java.util.List<java.lang.String> value)
The grant principals.
|
void |
setStatus(java.lang.String value)
Granted license status.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnGrant(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnGrant(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnGrant(Construct scope, java.lang.String id, CfnGrantProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnGrant(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrGrantArn()
public java.lang.String getAttrVersion()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.util.List<java.lang.String> getAllowedOperations()
public void setAllowedOperations(java.util.List<java.lang.String> value)
public java.lang.String getGrantName()
public void setGrantName(java.lang.String value)
public java.lang.String getHomeRegion()
public void setHomeRegion(java.lang.String value)
public java.lang.String getLicenseArn()
public void setLicenseArn(java.lang.String value)
public java.util.List<java.lang.String> getPrincipals()
public void setPrincipals(java.util.List<java.lang.String> value)
public java.lang.String getStatus()
public void setStatus(java.lang.String value)