/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the license-manager-user-subscriptions-2018-05-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.LicenseManagerUserSubscriptions.Model; using Amazon.LicenseManagerUserSubscriptions.Model.Internal.MarshallTransformations; using Amazon.LicenseManagerUserSubscriptions.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.LicenseManagerUserSubscriptions { /// /// Implementation for accessing LicenseManagerUserSubscriptions /// /// With License Manager, you can create user-based subscriptions to utilize licensed /// software with a per user subscription fee on Amazon EC2 instances. /// public partial class AmazonLicenseManagerUserSubscriptionsClient : AmazonServiceClient, IAmazonLicenseManagerUserSubscriptions { private static IServiceMetadata serviceMetadata = new AmazonLicenseManagerUserSubscriptionsMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ILicenseManagerUserSubscriptionsPaginatorFactory _paginators; /// /// Paginators for the service /// public ILicenseManagerUserSubscriptionsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new LicenseManagerUserSubscriptionsPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonLicenseManagerUserSubscriptionsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonLicenseManagerUserSubscriptionsConfig()) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonLicenseManagerUserSubscriptionsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonLicenseManagerUserSubscriptionsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonLicenseManagerUserSubscriptionsClient Configuration Object public AmazonLicenseManagerUserSubscriptionsClient(AmazonLicenseManagerUserSubscriptionsConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Credentials /// /// AWS Credentials public AmazonLicenseManagerUserSubscriptionsClient(AWSCredentials credentials) : this(credentials, new AmazonLicenseManagerUserSubscriptionsConfig()) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonLicenseManagerUserSubscriptionsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonLicenseManagerUserSubscriptionsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Credentials and an /// AmazonLicenseManagerUserSubscriptionsClient Configuration object. /// /// AWS Credentials /// The AmazonLicenseManagerUserSubscriptionsClient Configuration Object public AmazonLicenseManagerUserSubscriptionsClient(AWSCredentials credentials, AmazonLicenseManagerUserSubscriptionsConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonLicenseManagerUserSubscriptionsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonLicenseManagerUserSubscriptionsConfig()) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonLicenseManagerUserSubscriptionsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonLicenseManagerUserSubscriptionsConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonLicenseManagerUserSubscriptionsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonLicenseManagerUserSubscriptionsClient Configuration Object public AmazonLicenseManagerUserSubscriptionsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonLicenseManagerUserSubscriptionsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonLicenseManagerUserSubscriptionsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLicenseManagerUserSubscriptionsConfig()) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonLicenseManagerUserSubscriptionsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLicenseManagerUserSubscriptionsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonLicenseManagerUserSubscriptionsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonLicenseManagerUserSubscriptionsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonLicenseManagerUserSubscriptionsClient Configuration Object public AmazonLicenseManagerUserSubscriptionsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonLicenseManagerUserSubscriptionsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonLicenseManagerUserSubscriptionsEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AssociateUser /// /// Associates the user to an EC2 instance to utilize user-based subscriptions. /// /// /// /// Your estimated bill for charges on the number of users and related costs will take /// 48 hours to appear for billing periods that haven't closed (marked as Pending /// billing status) in Amazon Web Services Billing. For more information, see Viewing /// your monthly charges in the Amazon Web Services Billing User Guide. /// /// /// /// Container for the necessary parameters to execute the AssociateUser service method. /// /// The response from the AssociateUser service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for AssociateUser Operation public virtual AssociateUserResponse AssociateUser(AssociateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the AssociateUser operation. /// /// /// Container for the necessary parameters to execute the AssociateUser operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAssociateUser /// operation. /// REST API Reference for AssociateUser Operation public virtual IAsyncResult BeginAssociateUser(AssociateUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AssociateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = AssociateUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the AssociateUser operation. /// /// /// The IAsyncResult returned by the call to BeginAssociateUser. /// /// Returns a AssociateUserResult from LicenseManagerUserSubscriptions. /// REST API Reference for AssociateUser Operation public virtual AssociateUserResponse EndAssociateUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeregisterIdentityProvider /// /// Deregisters the identity provider from providing user-based subscriptions. /// /// Container for the necessary parameters to execute the DeregisterIdentityProvider service method. /// /// The response from the DeregisterIdentityProvider service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for DeregisterIdentityProvider Operation public virtual DeregisterIdentityProviderResponse DeregisterIdentityProvider(DeregisterIdentityProviderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterIdentityProviderRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterIdentityProviderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeregisterIdentityProvider operation. /// /// /// Container for the necessary parameters to execute the DeregisterIdentityProvider operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeregisterIdentityProvider /// operation. /// REST API Reference for DeregisterIdentityProvider Operation public virtual IAsyncResult BeginDeregisterIdentityProvider(DeregisterIdentityProviderRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeregisterIdentityProviderRequestMarshaller.Instance; options.ResponseUnmarshaller = DeregisterIdentityProviderResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeregisterIdentityProvider operation. /// /// /// The IAsyncResult returned by the call to BeginDeregisterIdentityProvider. /// /// Returns a DeregisterIdentityProviderResult from LicenseManagerUserSubscriptions. /// REST API Reference for DeregisterIdentityProvider Operation public virtual DeregisterIdentityProviderResponse EndDeregisterIdentityProvider(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DisassociateUser /// /// Disassociates the user from an EC2 instance providing user-based subscriptions. /// /// Container for the necessary parameters to execute the DisassociateUser service method. /// /// The response from the DisassociateUser service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for DisassociateUser Operation public virtual DisassociateUserResponse DisassociateUser(DisassociateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DisassociateUser operation. /// /// /// Container for the necessary parameters to execute the DisassociateUser operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisassociateUser /// operation. /// REST API Reference for DisassociateUser Operation public virtual IAsyncResult BeginDisassociateUser(DisassociateUserRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisassociateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DisassociateUserResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DisassociateUser operation. /// /// /// The IAsyncResult returned by the call to BeginDisassociateUser. /// /// Returns a DisassociateUserResult from LicenseManagerUserSubscriptions. /// REST API Reference for DisassociateUser Operation public virtual DisassociateUserResponse EndDisassociateUser(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListIdentityProviders /// /// Lists the identity providers for user-based subscriptions. /// /// Container for the necessary parameters to execute the ListIdentityProviders service method. /// /// The response from the ListIdentityProviders service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for ListIdentityProviders Operation public virtual ListIdentityProvidersResponse ListIdentityProviders(ListIdentityProvidersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIdentityProvidersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIdentityProvidersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListIdentityProviders operation. /// /// /// Container for the necessary parameters to execute the ListIdentityProviders operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListIdentityProviders /// operation. /// REST API Reference for ListIdentityProviders Operation public virtual IAsyncResult BeginListIdentityProviders(ListIdentityProvidersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListIdentityProvidersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIdentityProvidersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListIdentityProviders operation. /// /// /// The IAsyncResult returned by the call to BeginListIdentityProviders. /// /// Returns a ListIdentityProvidersResult from LicenseManagerUserSubscriptions. /// REST API Reference for ListIdentityProviders Operation public virtual ListIdentityProvidersResponse EndListIdentityProviders(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListInstances /// /// Lists the EC2 instances providing user-based subscriptions. /// /// Container for the necessary parameters to execute the ListInstances service method. /// /// The response from the ListInstances service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for ListInstances Operation public virtual ListInstancesResponse ListInstances(ListInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInstancesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListInstances operation. /// /// /// Container for the necessary parameters to execute the ListInstances operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListInstances /// operation. /// REST API Reference for ListInstances Operation public virtual IAsyncResult BeginListInstances(ListInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListInstances operation. /// /// /// The IAsyncResult returned by the call to BeginListInstances. /// /// Returns a ListInstancesResult from LicenseManagerUserSubscriptions. /// REST API Reference for ListInstances Operation public virtual ListInstancesResponse EndListInstances(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListProductSubscriptions /// /// Lists the user-based subscription products available from an identity provider. /// /// Container for the necessary parameters to execute the ListProductSubscriptions service method. /// /// The response from the ListProductSubscriptions service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for ListProductSubscriptions Operation public virtual ListProductSubscriptionsResponse ListProductSubscriptions(ListProductSubscriptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProductSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProductSubscriptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListProductSubscriptions operation. /// /// /// Container for the necessary parameters to execute the ListProductSubscriptions operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProductSubscriptions /// operation. /// REST API Reference for ListProductSubscriptions Operation public virtual IAsyncResult BeginListProductSubscriptions(ListProductSubscriptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListProductSubscriptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProductSubscriptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListProductSubscriptions operation. /// /// /// The IAsyncResult returned by the call to BeginListProductSubscriptions. /// /// Returns a ListProductSubscriptionsResult from LicenseManagerUserSubscriptions. /// REST API Reference for ListProductSubscriptions Operation public virtual ListProductSubscriptionsResponse EndListProductSubscriptions(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListUserAssociations /// /// Lists user associations for an identity provider. /// /// Container for the necessary parameters to execute the ListUserAssociations service method. /// /// The response from the ListUserAssociations service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for ListUserAssociations Operation public virtual ListUserAssociationsResponse ListUserAssociations(ListUserAssociationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListUserAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListUserAssociationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListUserAssociations operation. /// /// /// Container for the necessary parameters to execute the ListUserAssociations operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListUserAssociations /// operation. /// REST API Reference for ListUserAssociations Operation public virtual IAsyncResult BeginListUserAssociations(ListUserAssociationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListUserAssociationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListUserAssociationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListUserAssociations operation. /// /// /// The IAsyncResult returned by the call to BeginListUserAssociations. /// /// Returns a ListUserAssociationsResult from LicenseManagerUserSubscriptions. /// REST API Reference for ListUserAssociations Operation public virtual ListUserAssociationsResponse EndListUserAssociations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RegisterIdentityProvider /// /// Registers an identity provider for user-based subscriptions. /// /// Container for the necessary parameters to execute the RegisterIdentityProvider service method. /// /// The response from the RegisterIdentityProvider service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for RegisterIdentityProvider Operation public virtual RegisterIdentityProviderResponse RegisterIdentityProvider(RegisterIdentityProviderRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterIdentityProviderRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterIdentityProviderResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RegisterIdentityProvider operation. /// /// /// Container for the necessary parameters to execute the RegisterIdentityProvider operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRegisterIdentityProvider /// operation. /// REST API Reference for RegisterIdentityProvider Operation public virtual IAsyncResult BeginRegisterIdentityProvider(RegisterIdentityProviderRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterIdentityProviderRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterIdentityProviderResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RegisterIdentityProvider operation. /// /// /// The IAsyncResult returned by the call to BeginRegisterIdentityProvider. /// /// Returns a RegisterIdentityProviderResult from LicenseManagerUserSubscriptions. /// REST API Reference for RegisterIdentityProvider Operation public virtual RegisterIdentityProviderResponse EndRegisterIdentityProvider(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartProductSubscription /// /// Starts a product subscription for a user with the specified identity provider. /// /// /// /// Your estimated bill for charges on the number of users and related costs will take /// 48 hours to appear for billing periods that haven't closed (marked as Pending /// billing status) in Amazon Web Services Billing. For more information, see Viewing /// your monthly charges in the Amazon Web Services Billing User Guide. /// /// /// /// Container for the necessary parameters to execute the StartProductSubscription service method. /// /// The response from the StartProductSubscription service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for StartProductSubscription Operation public virtual StartProductSubscriptionResponse StartProductSubscription(StartProductSubscriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartProductSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartProductSubscriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartProductSubscription operation. /// /// /// Container for the necessary parameters to execute the StartProductSubscription operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartProductSubscription /// operation. /// REST API Reference for StartProductSubscription Operation public virtual IAsyncResult BeginStartProductSubscription(StartProductSubscriptionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartProductSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartProductSubscriptionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartProductSubscription operation. /// /// /// The IAsyncResult returned by the call to BeginStartProductSubscription. /// /// Returns a StartProductSubscriptionResult from LicenseManagerUserSubscriptions. /// REST API Reference for StartProductSubscription Operation public virtual StartProductSubscriptionResponse EndStartProductSubscription(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopProductSubscription /// /// Stops a product subscription for a user with the specified identity provider. /// /// Container for the necessary parameters to execute the StopProductSubscription service method. /// /// The response from the StopProductSubscription service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// The request couldn't be completed because it conflicted with the current state of /// the resource. /// /// /// An exception occurred with the service. /// /// /// The resource couldn't be found. /// /// /// The request failed because a service quota is exceeded. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for StopProductSubscription Operation public virtual StopProductSubscriptionResponse StopProductSubscription(StopProductSubscriptionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopProductSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopProductSubscriptionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopProductSubscription operation. /// /// /// Container for the necessary parameters to execute the StopProductSubscription operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStopProductSubscription /// operation. /// REST API Reference for StopProductSubscription Operation public virtual IAsyncResult BeginStopProductSubscription(StopProductSubscriptionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopProductSubscriptionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopProductSubscriptionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopProductSubscription operation. /// /// /// The IAsyncResult returned by the call to BeginStopProductSubscription. /// /// Returns a StopProductSubscriptionResult from LicenseManagerUserSubscriptions. /// REST API Reference for StopProductSubscription Operation public virtual StopProductSubscriptionResponse EndStopProductSubscription(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateIdentityProviderSettings /// /// Updates additional product configuration settings for the registered identity provider. /// /// Container for the necessary parameters to execute the UpdateIdentityProviderSettings service method. /// /// The response from the UpdateIdentityProviderSettings service method, as returned by LicenseManagerUserSubscriptions. /// /// You don't have sufficient access to perform this action. /// /// /// An exception occurred with the service. /// /// /// The request was denied because of request throttling. Retry the request. /// /// /// A parameter is not valid. /// /// REST API Reference for UpdateIdentityProviderSettings Operation public virtual UpdateIdentityProviderSettingsResponse UpdateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIdentityProviderSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIdentityProviderSettingsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateIdentityProviderSettings operation. /// /// /// Container for the necessary parameters to execute the UpdateIdentityProviderSettings operation on AmazonLicenseManagerUserSubscriptionsClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateIdentityProviderSettings /// operation. /// REST API Reference for UpdateIdentityProviderSettings Operation public virtual IAsyncResult BeginUpdateIdentityProviderSettings(UpdateIdentityProviderSettingsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIdentityProviderSettingsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIdentityProviderSettingsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateIdentityProviderSettings operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateIdentityProviderSettings. /// /// Returns a UpdateIdentityProviderSettingsResult from LicenseManagerUserSubscriptions. /// REST API Reference for UpdateIdentityProviderSettings Operation public virtual UpdateIdentityProviderSettingsResponse EndUpdateIdentityProviderSettings(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }