# Copyright (c) 2012-2024, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
from . import AWSObject, AWSProperty, PropsDictType
from .validators import boolean, integer
[docs]class Grant(AWSObject):
"""
`Grant <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-licensemanager-grant.html>`__
"""
resource_type = "AWS::LicenseManager::Grant"
props: PropsDictType = {
"AllowedOperations": ([str], False),
"GrantName": (str, False),
"HomeRegion": (str, False),
"LicenseArn": (str, False),
"Principals": ([str], False),
"Status": (str, False),
}
[docs]class BorrowConfiguration(AWSProperty):
"""
`BorrowConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-licensemanager-license-borrowconfiguration.html>`__
"""
props: PropsDictType = {
"AllowEarlyCheckIn": (boolean, True),
"MaxTimeToLiveInMinutes": (integer, True),
}
[docs]class ProvisionalConfiguration(AWSProperty):
"""
`ProvisionalConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-licensemanager-license-provisionalconfiguration.html>`__
"""
props: PropsDictType = {
"MaxTimeToLiveInMinutes": (integer, True),
}
[docs]class ConsumptionConfiguration(AWSProperty):
"""
`ConsumptionConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-licensemanager-license-consumptionconfiguration.html>`__
"""
props: PropsDictType = {
"BorrowConfiguration": (BorrowConfiguration, False),
"ProvisionalConfiguration": (ProvisionalConfiguration, False),
"RenewType": (str, False),
}
[docs]class Entitlement(AWSProperty):
"""
`Entitlement <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-licensemanager-license-entitlement.html>`__
"""
props: PropsDictType = {
"AllowCheckIn": (boolean, False),
"MaxCount": (integer, False),
"Name": (str, True),
"Overage": (boolean, False),
"Unit": (str, True),
"Value": (str, False),
}
[docs]class IssuerData(AWSProperty):
"""
`IssuerData <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-licensemanager-license-issuerdata.html>`__
"""
props: PropsDictType = {
"Name": (str, True),
"SignKey": (str, False),
}
[docs]class License(AWSObject):
"""
`License <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-licensemanager-license.html>`__
"""
resource_type = "AWS::LicenseManager::License"
props: PropsDictType = {
"Beneficiary": (str, False),
"ConsumptionConfiguration": (ConsumptionConfiguration, True),
"Entitlements": ([Entitlement], True),
"HomeRegion": (str, True),
"Issuer": (IssuerData, True),
"LicenseMetadata": ([Metadata], False),
"LicenseName": (str, True),
"ProductName": (str, True),
"ProductSKU": (str, False),
"Status": (str, False),
"Validity": (ValidityDateFormat, True),
}