CfnLicensePropsMixin
- class aws_cdk.mixins_preview.aws_licensemanager.mixins.CfnLicensePropsMixin(props, *, strategy=None)
Bases:
MixinSpecifies 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 License Manager User Guide .
- See:
- CloudformationResource:
AWS::LicenseManager::License
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins cfn_license_props_mixin = licensemanager_mixins.CfnLicensePropsMixin(licensemanager_mixins.CfnLicenseMixinProps( beneficiary="beneficiary", consumption_configuration=licensemanager_mixins.CfnLicensePropsMixin.ConsumptionConfigurationProperty( borrow_configuration=licensemanager_mixins.CfnLicensePropsMixin.BorrowConfigurationProperty( allow_early_check_in=False, max_time_to_live_in_minutes=123 ), provisional_configuration=licensemanager_mixins.CfnLicensePropsMixin.ProvisionalConfigurationProperty( max_time_to_live_in_minutes=123 ), renew_type="renewType" ), entitlements=[licensemanager_mixins.CfnLicensePropsMixin.EntitlementProperty( allow_check_in=False, max_count=123, name="name", overage=False, unit="unit", value="value" )], home_region="homeRegion", issuer=licensemanager_mixins.CfnLicensePropsMixin.IssuerDataProperty( name="name", sign_key="signKey" ), license_metadata=[licensemanager_mixins.CfnLicensePropsMixin.MetadataProperty( name="name", value="value" )], license_name="licenseName", product_name="productName", product_sku="productSku", status="status", validity=licensemanager_mixins.CfnLicensePropsMixin.ValidityDateFormatProperty( begin="begin", end="end" ) ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::LicenseManager::License.- Parameters:
props (
Union[CfnLicenseMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['beneficiary', 'consumptionConfiguration', 'entitlements', 'homeRegion', 'issuer', 'licenseMetadata', 'licenseName', 'productName', 'productSku', 'status', 'validity']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
BorrowConfigurationProperty
- class CfnLicensePropsMixin.BorrowConfigurationProperty(*, allow_early_check_in=None, max_time_to_live_in_minutes=None)
Bases:
objectDetails about a borrow configuration.
- Parameters:
allow_early_check_in (
Union[bool,IResolvable,None]) – Indicates whether early check-ins are allowed.max_time_to_live_in_minutes (
Union[int,float,None]) – Maximum time for the borrow configuration, in minutes.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins borrow_configuration_property = licensemanager_mixins.CfnLicensePropsMixin.BorrowConfigurationProperty( allow_early_check_in=False, max_time_to_live_in_minutes=123 )
Attributes
- allow_early_check_in
Indicates whether early check-ins are allowed.
- max_time_to_live_in_minutes
Maximum time for the borrow configuration, in minutes.
ConsumptionConfigurationProperty
- class CfnLicensePropsMixin.ConsumptionConfigurationProperty(*, borrow_configuration=None, provisional_configuration=None, renew_type=None)
Bases:
objectDetails about a consumption configuration.
- Parameters:
borrow_configuration (
Union[IResolvable,BorrowConfigurationProperty,Dict[str,Any],None]) – Details about a borrow configuration.provisional_configuration (
Union[IResolvable,ProvisionalConfigurationProperty,Dict[str,Any],None]) – Details about a provisional configuration.renew_type (
Optional[str]) – Renewal frequency.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins consumption_configuration_property = licensemanager_mixins.CfnLicensePropsMixin.ConsumptionConfigurationProperty( borrow_configuration=licensemanager_mixins.CfnLicensePropsMixin.BorrowConfigurationProperty( allow_early_check_in=False, max_time_to_live_in_minutes=123 ), provisional_configuration=licensemanager_mixins.CfnLicensePropsMixin.ProvisionalConfigurationProperty( max_time_to_live_in_minutes=123 ), renew_type="renewType" )
Attributes
- borrow_configuration
Details about a borrow configuration.
- provisional_configuration
Details about a provisional configuration.
EntitlementProperty
- class CfnLicensePropsMixin.EntitlementProperty(*, allow_check_in=None, max_count=None, name=None, overage=None, unit=None, value=None)
Bases:
objectDescribes a resource entitled for use with a license.
- Parameters:
allow_check_in (
Union[bool,IResolvable,None]) – Indicates whether check-ins are allowed.max_count (
Union[int,float,None]) – Maximum entitlement count. Use if the unit is not None.name (
Optional[str]) – Entitlement name.overage (
Union[bool,IResolvable,None]) – Indicates whether overages are allowed.unit (
Optional[str]) – Entitlement unit.value (
Optional[str]) – Entitlement resource. Use only if the unit is None.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins entitlement_property = licensemanager_mixins.CfnLicensePropsMixin.EntitlementProperty( allow_check_in=False, max_count=123, name="name", overage=False, unit="unit", value="value" )
Attributes
- allow_check_in
Indicates whether check-ins are allowed.
- max_count
Maximum entitlement count.
Use if the unit is not None.
- name
Entitlement name.
- overage
Indicates whether overages are allowed.
- unit
Entitlement unit.
- value
Entitlement resource.
Use only if the unit is None.
IssuerDataProperty
- class CfnLicensePropsMixin.IssuerDataProperty(*, name=None, sign_key=None)
Bases:
objectDetails associated with the issuer of a license.
- Parameters:
name (
Optional[str]) – Issuer name.sign_key (
Optional[str]) – Asymmetric KMS key from AWS Key Management Service . The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins issuer_data_property = licensemanager_mixins.CfnLicensePropsMixin.IssuerDataProperty( name="name", sign_key="signKey" )
Attributes
- name
Issuer name.
- sign_key
Asymmetric KMS key from AWS Key Management Service .
The KMS key must have a key usage of sign and verify, and support the RSASSA-PSS SHA-256 signing algorithm.
MetadataProperty
- class CfnLicensePropsMixin.MetadataProperty(*, name=None, value=None)
Bases:
objectDescribes key/value pairs.
- Parameters:
name (
Optional[str]) – The key name.value (
Optional[str]) – The value.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins metadata_property = licensemanager_mixins.CfnLicensePropsMixin.MetadataProperty( name="name", value="value" )
Attributes
- name
The key name.
ProvisionalConfigurationProperty
- class CfnLicensePropsMixin.ProvisionalConfigurationProperty(*, max_time_to_live_in_minutes=None)
Bases:
objectDetails about a provisional configuration.
- Parameters:
max_time_to_live_in_minutes (
Union[int,float,None]) – Maximum time for the provisional configuration, in minutes.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins provisional_configuration_property = licensemanager_mixins.CfnLicensePropsMixin.ProvisionalConfigurationProperty( max_time_to_live_in_minutes=123 )
Attributes
- max_time_to_live_in_minutes
Maximum time for the provisional configuration, in minutes.
ValidityDateFormatProperty
- class CfnLicensePropsMixin.ValidityDateFormatProperty(*, begin=None, end=None)
Bases:
objectDate and time range during which the license is valid, in ISO8601-UTC format.
- Parameters:
begin (
Optional[str]) – Start of the time range.end (
Optional[str]) – End of the time range.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_licensemanager import mixins as licensemanager_mixins validity_date_format_property = licensemanager_mixins.CfnLicensePropsMixin.ValidityDateFormatProperty( begin="begin", end="end" )
Attributes
- begin
Start of the time range.