Class CfnLicense
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.licensemanager.CfnLicense
- All Implemented Interfaces:
- IInspectable,- ILicenseRef,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct,- software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:42.946Z")
@Stability(Stable)
public class CfnLicense
extends CfnResource
implements IInspectable, ILicenseRef
Specifies a granted license.
 
Granted licenses are licenses for products that your organization purchased from AWS Marketplace or directly from a seller who integrated their software with managed entitlements. 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.*;
 CfnLicense cfnLicense = CfnLicense.Builder.create(this, "MyCfnLicense")
         .consumptionConfiguration(ConsumptionConfigurationProperty.builder()
                 .borrowConfiguration(BorrowConfigurationProperty.builder()
                         .allowEarlyCheckIn(false)
                         .maxTimeToLiveInMinutes(123)
                         .build())
                 .provisionalConfiguration(ProvisionalConfigurationProperty.builder()
                         .maxTimeToLiveInMinutes(123)
                         .build())
                 .renewType("renewType")
                 .build())
         .entitlements(List.of(EntitlementProperty.builder()
                 .name("name")
                 .unit("unit")
                 // the properties below are optional
                 .allowCheckIn(false)
                 .maxCount(123)
                 .overage(false)
                 .value("value")
                 .build()))
         .homeRegion("homeRegion")
         .issuer(IssuerDataProperty.builder()
                 .name("name")
                 // the properties below are optional
                 .signKey("signKey")
                 .build())
         .licenseName("licenseName")
         .productName("productName")
         .validity(ValidityDateFormatProperty.builder()
                 .begin("begin")
                 .end("end")
                 .build())
         // the properties below are optional
         .beneficiary("beneficiary")
         .licenseMetadata(List.of(MetadataProperty.builder()
                 .name("name")
                 .value("value")
                 .build()))
         .productSku("productSku")
         .status("status")
         .build();
 - See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceDetails about a borrow configuration.static final classA fluent builder forCfnLicense.static interfaceDetails about a consumption configuration.static interfaceDescribes a resource entitled for use with a license.static interfaceDetails associated with the issuer of a license.static interfaceDescribes key/value pairs.static interfaceDetails about a provisional configuration.static interfaceDate and time range during which the license is valid, in ISO8601-UTC format.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.licensemanager.ILicenseRefILicenseRef.Jsii$Default, ILicenseRef.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCfnLicense(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLicense(software.amazon.jsii.JsiiObjectRef objRef) CfnLicense(software.constructs.Construct scope, String id, CfnLicenseProps props) 
- 
Method SummaryModifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the license.The license version.License beneficiary.Configuration for consumption of the license.License entitlements.Home Region of the license.License issuer.License metadata.License name.A reference to a License resource.Product name.Product SKU.License status.Date and time range during which the license is valid, in ISO8601-UTC format.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetBeneficiary(String value) License beneficiary.voidConfiguration for consumption of the license.voidConfiguration for consumption of the license.voidsetEntitlements(List<Object> value) License entitlements.voidsetEntitlements(IResolvable value) License entitlements.voidsetHomeRegion(String value) Home Region of the license.voidsetIssuer(IResolvable value) License issuer.voidLicense issuer.voidsetLicenseMetadata(List<Object> value) License metadata.voidsetLicenseMetadata(IResolvable value) License metadata.voidsetLicenseName(String value) License name.voidsetProductName(String value) Product name.voidsetProductSku(String value) Product SKU.voidLicense status.voidsetValidity(IResolvable value) Date and time range during which the license is valid, in ISO8601-UTC format.voidDate and time range during which the license is valid, in ISO8601-UTC format.Methods inherited from class software.amazon.awscdk.CfnResourceaddDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.ConstructgetNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
CFN_RESOURCE_TYPE_NAMEThe CloudFormation resource type name for this resource class.
 
- 
- 
Constructor Details- 
CfnLicenseprotected CfnLicense(software.amazon.jsii.JsiiObjectRef objRef) 
- 
CfnLicenseprotected CfnLicense(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
CfnLicense@Stability(Stable) public CfnLicense(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLicenseProps props) - Parameters:
- scope- Scope in which this resource is defined. This parameter is required.
- id- Construct identifier for this resource (unique in its scope). This parameter is required.
- props- Resource properties. This parameter is required.
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector- tree inspector to collect and process attributes. This parameter is required.
 
- 
renderProperties@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
- renderPropertiesin class- CfnResource
- Parameters:
- props- This parameter is required.
 
- 
getAttrLicenseArnThe Amazon Resource Name (ARN) of the license.
- 
getAttrVersionThe license version.
- 
getCfnProperties- Overrides:
- getCfnPropertiesin class- CfnResource
 
- 
getLicenseRefA reference to a License resource.- Specified by:
- getLicenseRefin interface- ILicenseRef
 
- 
getConsumptionConfigurationConfiguration for consumption of the license.Returns union: either IResolvableorCfnLicense.ConsumptionConfigurationProperty
- 
setConsumptionConfigurationConfiguration for consumption of the license.
- 
setConsumptionConfiguration@Stability(Stable) public void setConsumptionConfiguration(@NotNull CfnLicense.ConsumptionConfigurationProperty value) Configuration for consumption of the license.
- 
getEntitlementsLicense entitlements.Returns union: either IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLicense.EntitlementProperty>
- 
setEntitlementsLicense entitlements.
- 
setEntitlementsLicense entitlements.
- 
getHomeRegionHome Region of the license.
- 
setHomeRegionHome Region of the license.
- 
getIssuerLicense issuer.Returns union: either IResolvableorCfnLicense.IssuerDataProperty
- 
setIssuerLicense issuer.
- 
setIssuerLicense issuer.
- 
getLicenseNameLicense name.
- 
setLicenseNameLicense name.
- 
getProductNameProduct name.
- 
setProductNameProduct name.
- 
getValidityDate and time range during which the license is valid, in ISO8601-UTC format.Returns union: either IResolvableorCfnLicense.ValidityDateFormatProperty
- 
setValidityDate and time range during which the license is valid, in ISO8601-UTC format.
- 
setValidityDate and time range during which the license is valid, in ISO8601-UTC format.
- 
getBeneficiaryLicense beneficiary.
- 
setBeneficiaryLicense beneficiary.
- 
getLicenseMetadataLicense metadata.Returns union: either IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLicense.MetadataProperty>
- 
setLicenseMetadataLicense metadata.
- 
setLicenseMetadataLicense metadata.
- 
getProductSkuProduct SKU.
- 
setProductSkuProduct SKU.
- 
getStatusLicense status.
- 
setStatusLicense status.
 
-