/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
private ILicenseManagerUserSubscriptionsPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ILicenseManagerUserSubscriptionsPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new LicenseManagerUserSubscriptionsPaginatorFactory(this);
}
return this._paginators;
}
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task AssociateUserAsync(AssociateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateUserResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Deregisters the identity provider from providing user-based subscriptions.
///
/// Container for the necessary parameters to execute the DeregisterIdentityProvider service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeregisterIdentityProviderAsync(DeregisterIdentityProviderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeregisterIdentityProviderRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeregisterIdentityProviderResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Disassociates the user from an EC2 instance providing user-based subscriptions.
///
/// Container for the necessary parameters to execute the DisassociateUser service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DisassociateUserAsync(DisassociateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateUserRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateUserResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists the identity providers for user-based subscriptions.
///
/// Container for the necessary parameters to execute the ListIdentityProviders service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListIdentityProvidersAsync(ListIdentityProvidersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListIdentityProvidersRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListIdentityProvidersResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists the EC2 instances providing user-based subscriptions.
///
/// Container for the necessary parameters to execute the ListInstances service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListInstancesAsync(ListInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListInstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListInstancesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists the user-based subscription products available from an identity provider.
///
/// Container for the necessary parameters to execute the ListProductSubscriptions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListProductSubscriptionsAsync(ListProductSubscriptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProductSubscriptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProductSubscriptionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Lists user associations for an identity provider.
///
/// Container for the necessary parameters to execute the ListUserAssociations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListUserAssociationsAsync(ListUserAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListUserAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListUserAssociationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Registers an identity provider for user-based subscriptions.
///
/// Container for the necessary parameters to execute the RegisterIdentityProvider service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RegisterIdentityProviderAsync(RegisterIdentityProviderRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RegisterIdentityProviderRequestMarshaller.Instance;
options.ResponseUnmarshaller = RegisterIdentityProviderResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task StartProductSubscriptionAsync(StartProductSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartProductSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartProductSubscriptionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Stops a product subscription for a user with the specified identity provider.
///
/// Container for the necessary parameters to execute the StopProductSubscription service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task StopProductSubscriptionAsync(StopProductSubscriptionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StopProductSubscriptionRequestMarshaller.Instance;
options.ResponseUnmarshaller = StopProductSubscriptionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Updates additional product configuration settings for the registered identity provider.
///
/// Container for the necessary parameters to execute the UpdateIdentityProviderSettings service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateIdentityProviderSettingsAsync(UpdateIdentityProviderSettingsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateIdentityProviderSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateIdentityProviderSettingsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}