AWS SDK Version 3 for .NET
API Reference

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.

Note:

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

Syntax

C#
public abstract CreateGrantResponse CreateGrant(
         CreateGrantRequest request
)

Parameters

request
Type: Amazon.LicenseManager.Model.CreateGrantRequest

Container for the necessary parameters to execute the CreateGrant service method.

Return Value


The response from the CreateGrant service method, as returned by LicenseManager.

Exceptions

ExceptionCondition
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.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also