Class CfnLicense
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.licensemanager.CfnLicense
- All Implemented Interfaces:
- IConstruct,- IDependable,- IInspectable,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
           date="2023-06-19T16:29:59.684Z")
@Stability(Stable)
public class CfnLicense
extends CfnResource
implements IInspectable
A CloudFormation 
AWS::LicenseManager::License.
 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();
 - 
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.amazon.awscdk.core.IConstructIConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectableIInspectable.Jsii$Default, IInspectable.Jsii$Proxy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionCfnLicense(Construct scope, String id, CfnLicenseProps props) Create a newAWS::LicenseManager::License.protectedCfnLicense(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLicense(software.amazon.jsii.JsiiObjectRef objRef) 
- 
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.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.core.CfnResourceaddDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElementgetRefMethods inherited from class software.amazon.awscdk.core.CfnElementgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.ConstructgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnLicenseProps props) Create a newAWS::LicenseManager::License.- Parameters:
- scope-- scope in which this resource is defined.
 
- id-- scoped id of the resource.
 
- props-- resource properties.
 
 
 
- 
- 
Method Details- 
inspectExamines the CloudFormation resource and discloses attributes.- Specified by:
- inspectin interface- IInspectable
- Parameters:
- inspector-- tree inspector to collect and process attributes.
 
 
- 
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
 
- 
getConsumptionConfigurationConfiguration for consumption of the license.
- 
setConsumptionConfiguration@Stability(Stable) public void setConsumptionConfiguration(@NotNull CfnLicense.ConsumptionConfigurationProperty value) Configuration for consumption of the license.
- 
setConsumptionConfigurationConfiguration for consumption of the license.
- 
getEntitlementsLicense entitlements.
- 
setEntitlementsLicense entitlements.
- 
setEntitlementsLicense entitlements.
- 
getHomeRegionHome Region of the license.
- 
setHomeRegionHome Region of the license.
- 
getIssuerLicense issuer.
- 
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.
- 
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.
- 
setLicenseMetadataLicense metadata.
- 
setLicenseMetadataLicense metadata.
- 
getProductSkuProduct SKU.
- 
setProductSkuProduct SKU.
- 
getStatusLicense status.
- 
setStatusLicense status.
 
-