@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:07.164Z") @Stability(value=Stable) public class CfnLicense extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnLicense.BorrowConfigurationProperty
Example:
|
static class |
CfnLicense.Builder
A fluent builder for
CfnLicense. |
static interface |
CfnLicense.ConsumptionConfigurationProperty
Example:
|
static interface |
CfnLicense.EntitlementProperty
Example:
|
static interface |
CfnLicense.IssuerDataProperty
Example:
|
static interface |
CfnLicense.MetadataProperty
Example:
|
static interface |
CfnLicense.ProvisionalConfigurationProperty
Example:
|
static interface |
CfnLicense.ValidityDateFormatProperty
Example:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLicense(software.constructs.Construct scope,
String id,
CfnLicenseProps props)
Create a new `AWS::LicenseManager::License`.
|
protected |
CfnLicense(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLicense(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrLicenseArn() |
String |
getAttrVersion() |
String |
getBeneficiary()
`AWS::LicenseManager::License.Beneficiary`.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getConsumptionConfiguration()
`AWS::LicenseManager::License.ConsumptionConfiguration`.
|
Object |
getEntitlements()
`AWS::LicenseManager::License.Entitlements`.
|
String |
getHomeRegion()
`AWS::LicenseManager::License.HomeRegion`.
|
Object |
getIssuer()
`AWS::LicenseManager::License.Issuer`.
|
Object |
getLicenseMetadata()
`AWS::LicenseManager::License.LicenseMetadata`.
|
String |
getLicenseName()
`AWS::LicenseManager::License.LicenseName`.
|
String |
getProductName()
`AWS::LicenseManager::License.ProductName`.
|
String |
getProductSku()
`AWS::LicenseManager::License.ProductSKU`.
|
String |
getStatus()
`AWS::LicenseManager::License.Status`.
|
Object |
getValidity()
`AWS::LicenseManager::License.Validity`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setBeneficiary(String value)
`AWS::LicenseManager::License.Beneficiary`.
|
void |
setConsumptionConfiguration(CfnLicense.ConsumptionConfigurationProperty value)
`AWS::LicenseManager::License.ConsumptionConfiguration`.
|
void |
setConsumptionConfiguration(IResolvable value)
`AWS::LicenseManager::License.ConsumptionConfiguration`.
|
void |
setEntitlements(IResolvable value)
`AWS::LicenseManager::License.Entitlements`.
|
void |
setEntitlements(List<Object> value)
`AWS::LicenseManager::License.Entitlements`.
|
void |
setHomeRegion(String value)
`AWS::LicenseManager::License.HomeRegion`.
|
void |
setIssuer(CfnLicense.IssuerDataProperty value)
`AWS::LicenseManager::License.Issuer`.
|
void |
setIssuer(IResolvable value)
`AWS::LicenseManager::License.Issuer`.
|
void |
setLicenseMetadata(IResolvable value)
`AWS::LicenseManager::License.LicenseMetadata`.
|
void |
setLicenseMetadata(List<Object> value)
`AWS::LicenseManager::License.LicenseMetadata`.
|
void |
setLicenseName(String value)
`AWS::LicenseManager::License.LicenseName`.
|
void |
setProductName(String value)
`AWS::LicenseManager::License.ProductName`.
|
void |
setProductSku(String value)
`AWS::LicenseManager::License.ProductSKU`.
|
void |
setStatus(String value)
`AWS::LicenseManager::License.Status`.
|
void |
setValidity(CfnLicense.ValidityDateFormatProperty value)
`AWS::LicenseManager::License.Validity`.
|
void |
setValidity(IResolvable value)
`AWS::LicenseManager::License.Validity`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLicense(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLicense(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLicense(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnLicenseProps 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. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrLicenseArn()
@Stability(value=Stable) @NotNull public String getAttrVersion()
@Stability(value=Stable) @Nullable public String getBeneficiary()
@Stability(value=Stable)
public void setBeneficiary(@Nullable
String value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getConsumptionConfiguration()
@Stability(value=Stable)
public void setConsumptionConfiguration(@NotNull
CfnLicense.ConsumptionConfigurationProperty value)
@Stability(value=Stable)
public void setConsumptionConfiguration(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public Object getEntitlements()
@Stability(value=Stable)
public void setEntitlements(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setEntitlements(@NotNull
List<Object> value)
@Stability(value=Stable) @NotNull public String getHomeRegion()
@Stability(value=Stable)
public void setHomeRegion(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getIssuer()
@Stability(value=Stable)
public void setIssuer(@NotNull
CfnLicense.IssuerDataProperty value)
@Stability(value=Stable)
public void setIssuer(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public Object getLicenseMetadata()
@Stability(value=Stable)
public void setLicenseMetadata(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setLicenseMetadata(@Nullable
List<Object> value)
@Stability(value=Stable) @NotNull public String getLicenseName()
@Stability(value=Stable)
public void setLicenseName(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getProductName()
@Stability(value=Stable)
public void setProductName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getProductSku()
@Stability(value=Stable)
public void setProductSku(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getStatus()
@Stability(value=Stable)
public void setStatus(@Nullable
String value)
@Stability(value=Stable) @NotNull public Object getValidity()
@Stability(value=Stable)
public void setValidity(@NotNull
CfnLicense.ValidityDateFormatProperty value)
@Stability(value=Stable)
public void setValidity(@NotNull
IResolvable value)
Copyright © 2021. All rights reserved.