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:
IEnvironmentAware,IInspectable,ILicenseRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:09.114Z")
@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 Summary
Nested 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.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.licensemanager.ILicenseRef
ILicenseRef.Jsii$Default, ILicenseRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnLicense(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLicense(software.amazon.jsii.JsiiObjectRef objRef) CfnLicense(software.constructs.Construct scope, String id, CfnLicenseProps props) -
Method Summary
Modifier 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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLicense
protected CfnLicense(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLicense
protected 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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 classCfnResource- Parameters:
props- This parameter is required.
-
getAttrLicenseArn
The Amazon Resource Name (ARN) of the license. -
getAttrVersion
The license version. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getLicenseRef
A reference to a License resource.- Specified by:
getLicenseRefin interfaceILicenseRef
-
getConsumptionConfiguration
Configuration for consumption of the license.Returns union: either
IResolvableorCfnLicense.ConsumptionConfigurationProperty -
setConsumptionConfiguration
Configuration for consumption of the license. -
setConsumptionConfiguration
@Stability(Stable) public void setConsumptionConfiguration(@NotNull CfnLicense.ConsumptionConfigurationProperty value) Configuration for consumption of the license. -
getEntitlements
License entitlements.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLicense.EntitlementProperty> -
setEntitlements
License entitlements. -
setEntitlements
License entitlements. -
getHomeRegion
Home Region of the license. -
setHomeRegion
Home Region of the license. -
getIssuer
License issuer.Returns union: either
IResolvableorCfnLicense.IssuerDataProperty -
setIssuer
License issuer. -
setIssuer
License issuer. -
getLicenseName
License name. -
setLicenseName
License name. -
getProductName
Product name. -
setProductName
Product name. -
getValidity
Date and time range during which the license is valid, in ISO8601-UTC format.Returns union: either
IResolvableorCfnLicense.ValidityDateFormatProperty -
setValidity
Date and time range during which the license is valid, in ISO8601-UTC format. -
setValidity
Date and time range during which the license is valid, in ISO8601-UTC format. -
getBeneficiary
License beneficiary. -
setBeneficiary
License beneficiary. -
getLicenseMetadata
License metadata.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnLicense.MetadataProperty> -
setLicenseMetadata
License metadata. -
setLicenseMetadata
License metadata. -
getProductSku
Product SKU. -
setProductSku
Product SKU. -
getStatus
License status. -
setStatus
License status.
-