AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Creates a grant for the specified license. A grant shares the use of license entitlements with a specific Amazon Web Services account, an organization, or an organizational unit (OU). For more information, see Granted licenses in License Manager in the License Manager User Guide.
For .NET Core this operation is only available in asynchronous form. Please refer to CreateGrantAsync.
Namespace: Amazon.LicenseManager
Assembly: AWSSDK.LicenseManager.dll
Version: 3.x.y.z
public abstract CreateGrantResponse CreateGrant( CreateGrantRequest request )
Container for the necessary parameters to execute the CreateGrant service method.
Exception | Condition |
---|---|
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. |
ResourceLimitExceededException | Your resource limits have been exceeded. |
ServerInternalException | The server experienced an internal error. Try again. |
ValidationException | The provided input is not valid. Try your request again. |
.NET Framework:
Supported in: 4.5 and newer, 3.5