create_license
async
¶
create_license(
license_name: String,
product_name: String,
product_sku: String,
issuer: Issuer,
home_region: String,
validity: DatetimeRange,
entitlements: EntitlementList,
beneficiary: String,
consumption_configuration: ConsumptionConfiguration,
client_token: ClientToken,
*,
config_overrides: Optional[AsyncLicenseManagerClientConfig] = None,
license_metadata: Optional[MetadataList] = None,
tags: Optional[TagList] = None,
) -> CreateLicenseResponse
Creates a license.
Parameters:
-
license_name(String) –License name.
-
product_name(String) –Product name.
-
product_sku(String) –Product SKU.
-
issuer(Issuer) –License issuer.
-
home_region(String) –Home Region for the license.
-
validity(DatetimeRange) –Date and time range during which the license is valid, in ISO8601-UTC format.
-
entitlements(EntitlementList) –License entitlements.
-
beneficiary(String) –License beneficiary.
-
consumption_configuration(ConsumptionConfiguration) –Configuration for consumption of the license. Choose a provisional configuration for workloads running with continuous connectivity. Choose a borrow configuration for workloads with offline usage.
-
license_metadata(Optional[MetadataList], default:None) –Information about the license.
-
client_token(ClientToken) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
-
tags(Optional[TagList], default:None) –Tags to add to the license. For more information about tagging support in License Manager, see the TagResource operation.
Raises:
-
AccessDeniedException–Access to resource denied.
-
AuthorizationException–The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
RateLimitExceededException–Too many requests have been submitted. Try again after a brief wait.
-
RedirectException–This is not the correct Region for the resource. Try again.
-
ServerInternalException–The server experienced an internal error. Try again.
-
ValidationException–The provided input is not valid. Try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_license_manager/_services/async_license_manager.py
731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 | |