/*
* Copyright 2010-2014 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 iam-2010-05-08.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.IdentityManagement.Model;
using Amazon.IdentityManagement.Model.Internal.MarshallTransformations;
using Amazon.IdentityManagement.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.IdentityManagement
{
///
/// Implementation for accessing IdentityManagementService
///
/// AWS Identity and Access Management
///
/// AWS Identity and Access Management (IAM) is a web service that you can use to manage
/// users and user permissions under your AWS account. This guide provides descriptions
/// of IAM actions that you can call programmatically. For general information about IAM,
/// see AWS Identity and Access Management (IAM).
/// For the user guide for IAM, see Using
/// IAM.
///
///
///
/// AWS provides SDKs that consist of libraries and sample code for various programming
/// languages and platforms (Java, Ruby, .NET, iOS, Android, etc.). The SDKs provide a
/// convenient way to create programmatic access to IAM and AWS. For example, the SDKs
/// take care of tasks such as cryptographically signing requests (see below), managing
/// errors, and retrying requests automatically. For information about the AWS SDKs, including
/// how to download and install them, see the Tools
/// for Amazon Web Services page.
///
///
///
/// We recommend that you use the AWS SDKs to make programmatic API calls to IAM. However,
/// you can also use the IAM Query API to make direct calls to the IAM web service. To
/// learn more about the IAM Query API, see Making
/// Query Requests in the Using IAM guide. IAM supports GET and POST requests
/// for all actions. That is, the API does not require you to use GET for some actions
/// and POST for others. However, GET requests are subject to the limitation size of a
/// URL. Therefore, for operations that require larger sizes, use a POST request.
///
///
///
/// Signing Requests
///
///
///
/// Requests must be signed using an access key ID and a secret access key. We strongly
/// recommend that you do not use your AWS account access key ID and secret access key
/// for everyday work with IAM. You can use the access key ID and secret access key for
/// an IAM user or you can use the AWS Security Token Service to generate temporary security
/// credentials and use those to sign requests.
///
///
///
/// To sign requests, we recommend that you use Signature
/// Version 4. If you have an existing application that uses Signature Version 2,
/// you do not have to update it to use Signature Version 4. However, some operations
/// now require Signature Version 4. The documentation for operations that require version
/// 4 indicate this requirement.
///
///
///
/// Additional Resources
///
///
///
/// For more information, see the following:
///
/// -
///
/// AWS
/// Security Credentials. This topic provides general information about the types
/// of credentials used for accessing AWS.
///
///
-
///
/// IAM
/// Best Practices. This topic presents a list of suggestions for using the IAM service
/// to help secure your AWS resources.
///
///
-
///
/// Signing
/// AWS API Requests. This set of topics walk you through the process of signing a
/// request using an access key ID and secret access key.
///
///
///
public partial class AmazonIdentityManagementServiceClient : AmazonServiceClient, IAmazonIdentityManagementService
{
private static IServiceMetadata serviceMetadata = new AmazonIdentityManagementServiceMetadata();
#region Constructors
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Credentials
///
/// AWS Credentials
public AmazonIdentityManagementServiceClient(AWSCredentials credentials)
: this(credentials, new AmazonIdentityManagementServiceConfig())
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonIdentityManagementServiceClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonIdentityManagementServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Credentials and an
/// AmazonIdentityManagementServiceClient Configuration object.
///
/// AWS Credentials
/// The AmazonIdentityManagementServiceClient Configuration Object
public AmazonIdentityManagementServiceClient(AWSCredentials credentials, AmazonIdentityManagementServiceConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonIdentityManagementServiceClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIdentityManagementServiceConfig())
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonIdentityManagementServiceClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIdentityManagementServiceConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIdentityManagementServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonIdentityManagementServiceClient Configuration Object
public AmazonIdentityManagementServiceClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIdentityManagementServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonIdentityManagementServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIdentityManagementServiceConfig())
{
}
///
/// Constructs AmazonIdentityManagementServiceClient 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 AmazonIdentityManagementServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIdentityManagementServiceConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIdentityManagementServiceClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIdentityManagementServiceClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonIdentityManagementServiceClient Configuration Object
public AmazonIdentityManagementServiceClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIdentityManagementServiceConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// 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 AddClientIDToOpenIDConnectProvider
///
/// Initiates the asynchronous execution of the AddClientIDToOpenIDConnectProvider operation.
///
///
/// Container for the necessary parameters to execute the AddClientIDToOpenIDConnectProvider operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for AddClientIDToOpenIDConnectProvider Operation
public virtual void AddClientIDToOpenIDConnectProviderAsync(AddClientIDToOpenIDConnectProviderRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = AddClientIDToOpenIDConnectProviderRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = AddClientIDToOpenIDConnectProviderResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((AddClientIDToOpenIDConnectProviderRequest)req, (AddClientIDToOpenIDConnectProviderResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region AddRoleToInstanceProfile
///
/// Initiates the asynchronous execution of the AddRoleToInstanceProfile operation.
///
///
/// Container for the necessary parameters to execute the AddRoleToInstanceProfile operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for AddRoleToInstanceProfile Operation
public virtual void AddRoleToInstanceProfileAsync(AddRoleToInstanceProfileRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = AddRoleToInstanceProfileRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = AddRoleToInstanceProfileResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((AddRoleToInstanceProfileRequest)req, (AddRoleToInstanceProfileResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region AddUserToGroup
///
/// Initiates the asynchronous execution of the AddUserToGroup operation.
///
///
/// Container for the necessary parameters to execute the AddUserToGroup operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for AddUserToGroup Operation
public virtual void AddUserToGroupAsync(AddUserToGroupRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = AddUserToGroupRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = AddUserToGroupResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((AddUserToGroupRequest)req, (AddUserToGroupResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region AttachGroupPolicy
///
/// Initiates the asynchronous execution of the AttachGroupPolicy operation.
///
///
/// Container for the necessary parameters to execute the AttachGroupPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for AttachGroupPolicy Operation
public virtual void AttachGroupPolicyAsync(AttachGroupPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = AttachGroupPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = AttachGroupPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((AttachGroupPolicyRequest)req, (AttachGroupPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region AttachRolePolicy
///
/// Initiates the asynchronous execution of the AttachRolePolicy operation.
///
///
/// Container for the necessary parameters to execute the AttachRolePolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for AttachRolePolicy Operation
public virtual void AttachRolePolicyAsync(AttachRolePolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = AttachRolePolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = AttachRolePolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((AttachRolePolicyRequest)req, (AttachRolePolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region AttachUserPolicy
///
/// Initiates the asynchronous execution of the AttachUserPolicy operation.
///
///
/// Container for the necessary parameters to execute the AttachUserPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for AttachUserPolicy Operation
public virtual void AttachUserPolicyAsync(AttachUserPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = AttachUserPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = AttachUserPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((AttachUserPolicyRequest)req, (AttachUserPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region ChangePassword
///
/// Initiates the asynchronous execution of the ChangePassword operation.
///
///
/// Container for the necessary parameters to execute the ChangePassword operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for ChangePassword Operation
public virtual void ChangePasswordAsync(ChangePasswordRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = ChangePasswordRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = ChangePasswordResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((ChangePasswordRequest)req, (ChangePasswordResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateAccessKey
///
/// Creates a new AWS secret access key and corresponding AWS access key ID for the specified
/// user. The default status for new keys is Active
.
///
///
///
/// If you do not specify a user name, IAM determines the user name implicitly based on
/// the AWS access key ID signing the request. This operation works for access keys under
/// the AWS account. Consequently, you can use this operation to manage AWS account root
/// user credentials. This is true even if the AWS account has no associated users.
///
///
///
/// For information about limits on the number of keys you can create, see Limitations
/// on IAM Entities in the IAM User Guide.
///
///
///
/// To ensure the security of your AWS account, the secret access key is accessible only
/// during key and user creation. You must save the key (for example, in a text file)
/// if you want to be able to access it again. If a secret key is lost, you can delete
/// the access keys for the associated user and then create new keys.
///
///
///
/// An Action 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.
///
///
/// The response from the CreateAccessKey service method, as returned by IdentityManagementService.
///
/// The request was rejected because it attempted to create resources beyond the current
/// AWS account limits. The error message describes the limit exceeded.
///
///
/// The request was rejected because it referenced a resource entity that does not exist.
/// The error message describes the resource.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
/// REST API Reference for CreateAccessKey Operation
public virtual void CreateAccessKeyAsync(AmazonServiceCallback callback, AsyncOptions options = null)
{
CreateAccessKeyAsync(new CreateAccessKeyRequest(), callback, options);
}
///
/// Initiates the asynchronous execution of the CreateAccessKey operation.
///
///
/// Container for the necessary parameters to execute the CreateAccessKey operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateAccessKey Operation
public virtual void CreateAccessKeyAsync(CreateAccessKeyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateAccessKeyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateAccessKeyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateAccessKeyRequest)req, (CreateAccessKeyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateAccountAlias
///
/// Initiates the asynchronous execution of the CreateAccountAlias operation.
///
///
/// Container for the necessary parameters to execute the CreateAccountAlias operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateAccountAlias Operation
public virtual void CreateAccountAliasAsync(CreateAccountAliasRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateAccountAliasRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateAccountAliasResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateAccountAliasRequest)req, (CreateAccountAliasResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateGroup
///
/// Initiates the asynchronous execution of the CreateGroup operation.
///
///
/// Container for the necessary parameters to execute the CreateGroup operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateGroup Operation
public virtual void CreateGroupAsync(CreateGroupRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateGroupRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateGroupRequest)req, (CreateGroupResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateInstanceProfile
///
/// Initiates the asynchronous execution of the CreateInstanceProfile operation.
///
///
/// Container for the necessary parameters to execute the CreateInstanceProfile operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateInstanceProfile Operation
public virtual void CreateInstanceProfileAsync(CreateInstanceProfileRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateInstanceProfileRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateInstanceProfileResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateInstanceProfileRequest)req, (CreateInstanceProfileResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateLoginProfile
///
/// Initiates the asynchronous execution of the CreateLoginProfile operation.
///
///
/// Container for the necessary parameters to execute the CreateLoginProfile operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateLoginProfile Operation
public virtual void CreateLoginProfileAsync(CreateLoginProfileRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateLoginProfileRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateLoginProfileResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateLoginProfileRequest)req, (CreateLoginProfileResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateOpenIDConnectProvider
///
/// Initiates the asynchronous execution of the CreateOpenIDConnectProvider operation.
///
///
/// Container for the necessary parameters to execute the CreateOpenIDConnectProvider operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateOpenIDConnectProvider Operation
public virtual void CreateOpenIDConnectProviderAsync(CreateOpenIDConnectProviderRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateOpenIDConnectProviderRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateOpenIDConnectProviderResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateOpenIDConnectProviderRequest)req, (CreateOpenIDConnectProviderResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreatePolicy
///
/// Initiates the asynchronous execution of the CreatePolicy operation.
///
///
/// Container for the necessary parameters to execute the CreatePolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreatePolicy Operation
public virtual void CreatePolicyAsync(CreatePolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreatePolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreatePolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreatePolicyRequest)req, (CreatePolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreatePolicyVersion
///
/// Initiates the asynchronous execution of the CreatePolicyVersion operation.
///
///
/// Container for the necessary parameters to execute the CreatePolicyVersion operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreatePolicyVersion Operation
public virtual void CreatePolicyVersionAsync(CreatePolicyVersionRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreatePolicyVersionRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreatePolicyVersionResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreatePolicyVersionRequest)req, (CreatePolicyVersionResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateRole
///
/// Initiates the asynchronous execution of the CreateRole operation.
///
///
/// Container for the necessary parameters to execute the CreateRole operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateRole Operation
public virtual void CreateRoleAsync(CreateRoleRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateRoleRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateRoleResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateRoleRequest)req, (CreateRoleResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateSAMLProvider
///
/// Initiates the asynchronous execution of the CreateSAMLProvider operation.
///
///
/// Container for the necessary parameters to execute the CreateSAMLProvider operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateSAMLProvider Operation
public virtual void CreateSAMLProviderAsync(CreateSAMLProviderRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateSAMLProviderRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateSAMLProviderResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateSAMLProviderRequest)req, (CreateSAMLProviderResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateServiceLinkedRole
///
/// Initiates the asynchronous execution of the CreateServiceLinkedRole operation.
///
///
/// Container for the necessary parameters to execute the CreateServiceLinkedRole operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateServiceLinkedRole Operation
public virtual void CreateServiceLinkedRoleAsync(CreateServiceLinkedRoleRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateServiceLinkedRoleRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateServiceLinkedRoleResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateServiceLinkedRoleRequest)req, (CreateServiceLinkedRoleResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateServiceSpecificCredential
///
/// Initiates the asynchronous execution of the CreateServiceSpecificCredential operation.
///
///
/// Container for the necessary parameters to execute the CreateServiceSpecificCredential operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateServiceSpecificCredential Operation
public virtual void CreateServiceSpecificCredentialAsync(CreateServiceSpecificCredentialRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateServiceSpecificCredentialRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateServiceSpecificCredentialResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateServiceSpecificCredentialRequest)req, (CreateServiceSpecificCredentialResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateUser
///
/// Initiates the asynchronous execution of the CreateUser operation.
///
///
/// Container for the necessary parameters to execute the CreateUser operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateUser Operation
public virtual void CreateUserAsync(CreateUserRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateUserRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateUserRequest)req, (CreateUserResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region CreateVirtualMFADevice
///
/// Initiates the asynchronous execution of the CreateVirtualMFADevice operation.
///
///
/// Container for the necessary parameters to execute the CreateVirtualMFADevice operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for CreateVirtualMFADevice Operation
public virtual void CreateVirtualMFADeviceAsync(CreateVirtualMFADeviceRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = CreateVirtualMFADeviceRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = CreateVirtualMFADeviceResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((CreateVirtualMFADeviceRequest)req, (CreateVirtualMFADeviceResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeactivateMFADevice
///
/// Initiates the asynchronous execution of the DeactivateMFADevice operation.
///
///
/// Container for the necessary parameters to execute the DeactivateMFADevice operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeactivateMFADevice Operation
public virtual void DeactivateMFADeviceAsync(DeactivateMFADeviceRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeactivateMFADeviceRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeactivateMFADeviceResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeactivateMFADeviceRequest)req, (DeactivateMFADeviceResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteAccessKey
///
/// Initiates the asynchronous execution of the DeleteAccessKey operation.
///
///
/// Container for the necessary parameters to execute the DeleteAccessKey operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteAccessKey Operation
public virtual void DeleteAccessKeyAsync(DeleteAccessKeyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteAccessKeyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteAccessKeyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteAccessKeyRequest)req, (DeleteAccessKeyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteAccountAlias
///
/// Initiates the asynchronous execution of the DeleteAccountAlias operation.
///
///
/// Container for the necessary parameters to execute the DeleteAccountAlias operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteAccountAlias Operation
public virtual void DeleteAccountAliasAsync(DeleteAccountAliasRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteAccountAliasRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteAccountAliasResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteAccountAliasRequest)req, (DeleteAccountAliasResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteAccountPasswordPolicy
///
/// Deletes the password policy for the AWS account. There are no parameters.
///
/// An Action 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.
///
///
/// The response from the DeleteAccountPasswordPolicy service method, as returned by IdentityManagementService.
///
/// The request was rejected because it attempted to create resources beyond the current
/// AWS account limits. The error message describes the limit exceeded.
///
///
/// The request was rejected because it referenced a resource entity that does not exist.
/// The error message describes the resource.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
/// REST API Reference for DeleteAccountPasswordPolicy Operation
public virtual void DeleteAccountPasswordPolicyAsync(AmazonServiceCallback callback, AsyncOptions options = null)
{
DeleteAccountPasswordPolicyAsync(new DeleteAccountPasswordPolicyRequest(), callback, options);
}
///
/// Initiates the asynchronous execution of the DeleteAccountPasswordPolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteAccountPasswordPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteAccountPasswordPolicy Operation
public virtual void DeleteAccountPasswordPolicyAsync(DeleteAccountPasswordPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteAccountPasswordPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteAccountPasswordPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteAccountPasswordPolicyRequest)req, (DeleteAccountPasswordPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteGroup
///
/// Initiates the asynchronous execution of the DeleteGroup operation.
///
///
/// Container for the necessary parameters to execute the DeleteGroup operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteGroup Operation
public virtual void DeleteGroupAsync(DeleteGroupRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteGroupRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteGroupRequest)req, (DeleteGroupResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteGroupPolicy
///
/// Initiates the asynchronous execution of the DeleteGroupPolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteGroupPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteGroupPolicy Operation
public virtual void DeleteGroupPolicyAsync(DeleteGroupPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteGroupPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteGroupPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteGroupPolicyRequest)req, (DeleteGroupPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteInstanceProfile
///
/// Initiates the asynchronous execution of the DeleteInstanceProfile operation.
///
///
/// Container for the necessary parameters to execute the DeleteInstanceProfile operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteInstanceProfile Operation
public virtual void DeleteInstanceProfileAsync(DeleteInstanceProfileRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteInstanceProfileRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteInstanceProfileResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteInstanceProfileRequest)req, (DeleteInstanceProfileResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteLoginProfile
///
/// Initiates the asynchronous execution of the DeleteLoginProfile operation.
///
///
/// Container for the necessary parameters to execute the DeleteLoginProfile operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteLoginProfile Operation
public virtual void DeleteLoginProfileAsync(DeleteLoginProfileRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteLoginProfileRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteLoginProfileResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteLoginProfileRequest)req, (DeleteLoginProfileResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteOpenIDConnectProvider
///
/// Initiates the asynchronous execution of the DeleteOpenIDConnectProvider operation.
///
///
/// Container for the necessary parameters to execute the DeleteOpenIDConnectProvider operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteOpenIDConnectProvider Operation
public virtual void DeleteOpenIDConnectProviderAsync(DeleteOpenIDConnectProviderRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteOpenIDConnectProviderRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteOpenIDConnectProviderResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteOpenIDConnectProviderRequest)req, (DeleteOpenIDConnectProviderResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeletePolicy
///
/// Initiates the asynchronous execution of the DeletePolicy operation.
///
///
/// Container for the necessary parameters to execute the DeletePolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeletePolicy Operation
public virtual void DeletePolicyAsync(DeletePolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeletePolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeletePolicyRequest)req, (DeletePolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeletePolicyVersion
///
/// Initiates the asynchronous execution of the DeletePolicyVersion operation.
///
///
/// Container for the necessary parameters to execute the DeletePolicyVersion operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeletePolicyVersion Operation
public virtual void DeletePolicyVersionAsync(DeletePolicyVersionRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeletePolicyVersionRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeletePolicyVersionResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeletePolicyVersionRequest)req, (DeletePolicyVersionResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteRole
///
/// Initiates the asynchronous execution of the DeleteRole operation.
///
///
/// Container for the necessary parameters to execute the DeleteRole operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteRole Operation
public virtual void DeleteRoleAsync(DeleteRoleRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteRoleRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteRoleResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteRoleRequest)req, (DeleteRoleResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteRolePermissionsBoundary
///
/// Initiates the asynchronous execution of the DeleteRolePermissionsBoundary operation.
///
///
/// Container for the necessary parameters to execute the DeleteRolePermissionsBoundary operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteRolePermissionsBoundary Operation
public virtual void DeleteRolePermissionsBoundaryAsync(DeleteRolePermissionsBoundaryRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteRolePermissionsBoundaryRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteRolePermissionsBoundaryResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteRolePermissionsBoundaryRequest)req, (DeleteRolePermissionsBoundaryResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteRolePolicy
///
/// Initiates the asynchronous execution of the DeleteRolePolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteRolePolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteRolePolicy Operation
public virtual void DeleteRolePolicyAsync(DeleteRolePolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteRolePolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteRolePolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteRolePolicyRequest)req, (DeleteRolePolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteSAMLProvider
///
/// Initiates the asynchronous execution of the DeleteSAMLProvider operation.
///
///
/// Container for the necessary parameters to execute the DeleteSAMLProvider operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteSAMLProvider Operation
public virtual void DeleteSAMLProviderAsync(DeleteSAMLProviderRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteSAMLProviderRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteSAMLProviderResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteSAMLProviderRequest)req, (DeleteSAMLProviderResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteServerCertificate
///
/// Initiates the asynchronous execution of the DeleteServerCertificate operation.
///
///
/// Container for the necessary parameters to execute the DeleteServerCertificate operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteServerCertificate Operation
public virtual void DeleteServerCertificateAsync(DeleteServerCertificateRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteServerCertificateRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteServerCertificateResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteServerCertificateRequest)req, (DeleteServerCertificateResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteServiceLinkedRole
///
/// Initiates the asynchronous execution of the DeleteServiceLinkedRole operation.
///
///
/// Container for the necessary parameters to execute the DeleteServiceLinkedRole operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteServiceLinkedRole Operation
public virtual void DeleteServiceLinkedRoleAsync(DeleteServiceLinkedRoleRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteServiceLinkedRoleRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteServiceLinkedRoleResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteServiceLinkedRoleRequest)req, (DeleteServiceLinkedRoleResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteServiceSpecificCredential
///
/// Initiates the asynchronous execution of the DeleteServiceSpecificCredential operation.
///
///
/// Container for the necessary parameters to execute the DeleteServiceSpecificCredential operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteServiceSpecificCredential Operation
public virtual void DeleteServiceSpecificCredentialAsync(DeleteServiceSpecificCredentialRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteServiceSpecificCredentialRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteServiceSpecificCredentialResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteServiceSpecificCredentialRequest)req, (DeleteServiceSpecificCredentialResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteSigningCertificate
///
/// Initiates the asynchronous execution of the DeleteSigningCertificate operation.
///
///
/// Container for the necessary parameters to execute the DeleteSigningCertificate operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteSigningCertificate Operation
public virtual void DeleteSigningCertificateAsync(DeleteSigningCertificateRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteSigningCertificateRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteSigningCertificateResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteSigningCertificateRequest)req, (DeleteSigningCertificateResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteSSHPublicKey
///
/// Initiates the asynchronous execution of the DeleteSSHPublicKey operation.
///
///
/// Container for the necessary parameters to execute the DeleteSSHPublicKey operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteSSHPublicKey Operation
public virtual void DeleteSSHPublicKeyAsync(DeleteSSHPublicKeyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteSSHPublicKeyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteSSHPublicKeyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteSSHPublicKeyRequest)req, (DeleteSSHPublicKeyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteUser
///
/// Initiates the asynchronous execution of the DeleteUser operation.
///
///
/// Container for the necessary parameters to execute the DeleteUser operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteUser Operation
public virtual void DeleteUserAsync(DeleteUserRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteUserRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteUserRequest)req, (DeleteUserResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteUserPermissionsBoundary
///
/// Initiates the asynchronous execution of the DeleteUserPermissionsBoundary operation.
///
///
/// Container for the necessary parameters to execute the DeleteUserPermissionsBoundary operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteUserPermissionsBoundary Operation
public virtual void DeleteUserPermissionsBoundaryAsync(DeleteUserPermissionsBoundaryRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteUserPermissionsBoundaryRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteUserPermissionsBoundaryResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteUserPermissionsBoundaryRequest)req, (DeleteUserPermissionsBoundaryResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteUserPolicy
///
/// Initiates the asynchronous execution of the DeleteUserPolicy operation.
///
///
/// Container for the necessary parameters to execute the DeleteUserPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteUserPolicy Operation
public virtual void DeleteUserPolicyAsync(DeleteUserPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteUserPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteUserPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteUserPolicyRequest)req, (DeleteUserPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DeleteVirtualMFADevice
///
/// Initiates the asynchronous execution of the DeleteVirtualMFADevice operation.
///
///
/// Container for the necessary parameters to execute the DeleteVirtualMFADevice operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DeleteVirtualMFADevice Operation
public virtual void DeleteVirtualMFADeviceAsync(DeleteVirtualMFADeviceRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DeleteVirtualMFADeviceRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DeleteVirtualMFADeviceResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DeleteVirtualMFADeviceRequest)req, (DeleteVirtualMFADeviceResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DetachGroupPolicy
///
/// Initiates the asynchronous execution of the DetachGroupPolicy operation.
///
///
/// Container for the necessary parameters to execute the DetachGroupPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DetachGroupPolicy Operation
public virtual void DetachGroupPolicyAsync(DetachGroupPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DetachGroupPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DetachGroupPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DetachGroupPolicyRequest)req, (DetachGroupPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DetachRolePolicy
///
/// Initiates the asynchronous execution of the DetachRolePolicy operation.
///
///
/// Container for the necessary parameters to execute the DetachRolePolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DetachRolePolicy Operation
public virtual void DetachRolePolicyAsync(DetachRolePolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DetachRolePolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DetachRolePolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DetachRolePolicyRequest)req, (DetachRolePolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region DetachUserPolicy
///
/// Initiates the asynchronous execution of the DetachUserPolicy operation.
///
///
/// Container for the necessary parameters to execute the DetachUserPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for DetachUserPolicy Operation
public virtual void DetachUserPolicyAsync(DetachUserPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = DetachUserPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = DetachUserPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((DetachUserPolicyRequest)req, (DetachUserPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region EnableMFADevice
///
/// Initiates the asynchronous execution of the EnableMFADevice operation.
///
///
/// Container for the necessary parameters to execute the EnableMFADevice operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for EnableMFADevice Operation
public virtual void EnableMFADeviceAsync(EnableMFADeviceRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = EnableMFADeviceRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = EnableMFADeviceResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((EnableMFADeviceRequest)req, (EnableMFADeviceResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GenerateCredentialReport
///
/// Generates a credential report for the AWS account. For more information about the
/// credential report, see Getting
/// Credential Reports in the IAM User Guide.
///
/// An Action 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.
///
///
/// The response from the GenerateCredentialReport service method, as returned by IdentityManagementService.
///
/// The request was rejected because it attempted to create resources beyond the current
/// AWS account limits. The error message describes the limit exceeded.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
/// REST API Reference for GenerateCredentialReport Operation
public virtual void GenerateCredentialReportAsync(AmazonServiceCallback callback, AsyncOptions options = null)
{
GenerateCredentialReportAsync(new GenerateCredentialReportRequest(), callback, options);
}
///
/// Initiates the asynchronous execution of the GenerateCredentialReport operation.
///
///
/// Container for the necessary parameters to execute the GenerateCredentialReport operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GenerateCredentialReport Operation
public virtual void GenerateCredentialReportAsync(GenerateCredentialReportRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GenerateCredentialReportRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GenerateCredentialReportResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GenerateCredentialReportRequest)req, (GenerateCredentialReportResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GenerateOrganizationsAccessReport
///
/// Initiates the asynchronous execution of the GenerateOrganizationsAccessReport operation.
///
///
/// Container for the necessary parameters to execute the GenerateOrganizationsAccessReport operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GenerateOrganizationsAccessReport Operation
public virtual void GenerateOrganizationsAccessReportAsync(GenerateOrganizationsAccessReportRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GenerateOrganizationsAccessReportRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GenerateOrganizationsAccessReportResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GenerateOrganizationsAccessReportRequest)req, (GenerateOrganizationsAccessReportResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GenerateServiceLastAccessedDetails
///
/// Initiates the asynchronous execution of the GenerateServiceLastAccessedDetails operation.
///
///
/// Container for the necessary parameters to execute the GenerateServiceLastAccessedDetails operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GenerateServiceLastAccessedDetails Operation
public virtual void GenerateServiceLastAccessedDetailsAsync(GenerateServiceLastAccessedDetailsRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GenerateServiceLastAccessedDetailsRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GenerateServiceLastAccessedDetailsResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GenerateServiceLastAccessedDetailsRequest)req, (GenerateServiceLastAccessedDetailsResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetAccessKeyLastUsed
///
/// Initiates the asynchronous execution of the GetAccessKeyLastUsed operation.
///
///
/// Container for the necessary parameters to execute the GetAccessKeyLastUsed operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetAccessKeyLastUsed Operation
public virtual void GetAccessKeyLastUsedAsync(GetAccessKeyLastUsedRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetAccessKeyLastUsedRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetAccessKeyLastUsedResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetAccessKeyLastUsedRequest)req, (GetAccessKeyLastUsedResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetAccountAuthorizationDetails
///
/// Initiates the asynchronous execution of the GetAccountAuthorizationDetails operation.
///
///
/// Container for the necessary parameters to execute the GetAccountAuthorizationDetails operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetAccountAuthorizationDetails Operation
public virtual void GetAccountAuthorizationDetailsAsync(GetAccountAuthorizationDetailsRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetAccountAuthorizationDetailsRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetAccountAuthorizationDetailsResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetAccountAuthorizationDetailsRequest)req, (GetAccountAuthorizationDetailsResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetAccountPasswordPolicy
///
/// Retrieves the password policy for the AWS account. For more information about using
/// a password policy, go to Managing
/// an IAM Password Policy.
///
/// An Action 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.
///
///
/// The response from the GetAccountPasswordPolicy service method, as returned by IdentityManagementService.
///
/// The request was rejected because it referenced a resource entity that does not exist.
/// The error message describes the resource.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
/// REST API Reference for GetAccountPasswordPolicy Operation
public virtual void GetAccountPasswordPolicyAsync(AmazonServiceCallback callback, AsyncOptions options = null)
{
GetAccountPasswordPolicyAsync(new GetAccountPasswordPolicyRequest(), callback, options);
}
///
/// Initiates the asynchronous execution of the GetAccountPasswordPolicy operation.
///
///
/// Container for the necessary parameters to execute the GetAccountPasswordPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetAccountPasswordPolicy Operation
public virtual void GetAccountPasswordPolicyAsync(GetAccountPasswordPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetAccountPasswordPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetAccountPasswordPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetAccountPasswordPolicyRequest)req, (GetAccountPasswordPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetAccountSummary
///
/// Retrieves information about IAM entity usage and IAM quotas in the AWS account.
///
///
///
/// For information about limitations on IAM entities, see Limitations
/// on IAM Entities in the IAM User Guide.
///
///
/// An Action 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.
///
///
/// The response from the GetAccountSummary service method, as returned by IdentityManagementService.
///
/// The request processing has failed because of an unknown error, exception or failure.
///
/// REST API Reference for GetAccountSummary Operation
public virtual void GetAccountSummaryAsync(AmazonServiceCallback callback, AsyncOptions options = null)
{
GetAccountSummaryAsync(new GetAccountSummaryRequest(), callback, options);
}
///
/// Initiates the asynchronous execution of the GetAccountSummary operation.
///
///
/// Container for the necessary parameters to execute the GetAccountSummary operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetAccountSummary Operation
public virtual void GetAccountSummaryAsync(GetAccountSummaryRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetAccountSummaryRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetAccountSummaryResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetAccountSummaryRequest)req, (GetAccountSummaryResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetContextKeysForCustomPolicy
///
/// Gets a list of all of the context keys referenced in the input policies. The policies
/// are supplied as a list of one or more strings. To get the context keys from policies
/// associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy.
///
///
///
/// Context keys are variables maintained by AWS and its services that provide details
/// about the context of an API query request. Context keys can be evaluated by testing
/// against a value specified in an IAM policy. Use GetContextKeysForCustomPolicy
/// to understand what key names and values you must supply when you call SimulateCustomPolicy.
/// Note that all parameters are shown in unencoded form here for clarity but must be
/// URL encoded to be included as a part of a real HTML request.
///
///
/// A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. The regex pattern used to validate this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character (
\u0020
) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement character set (through
\u00FF
) - The special characters tab (
\u0009
), line feed (\u000A
), and carriage return (\u000D
)
/// An Action 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.
///
///
/// The response from the GetContextKeysForCustomPolicy service method, as returned by IdentityManagementService.
///
/// The request was rejected because an invalid or out-of-range value was supplied for
/// an input parameter.
///
/// REST API Reference for GetContextKeysForCustomPolicy Operation
public virtual void GetContextKeysForCustomPolicyAsync(List policyInputList, AmazonServiceCallback callback, AsyncOptions options = null)
{
var request = new GetContextKeysForCustomPolicyRequest();
request.PolicyInputList = policyInputList;
GetContextKeysForCustomPolicyAsync(request, callback, options);
}
///
/// Initiates the asynchronous execution of the GetContextKeysForCustomPolicy operation.
///
///
/// Container for the necessary parameters to execute the GetContextKeysForCustomPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetContextKeysForCustomPolicy Operation
public virtual void GetContextKeysForCustomPolicyAsync(GetContextKeysForCustomPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetContextKeysForCustomPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetContextKeysForCustomPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetContextKeysForCustomPolicyRequest)req, (GetContextKeysForCustomPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetContextKeysForPrincipalPolicy
///
/// Gets a list of all of the context keys referenced in all the IAM policies that are
/// attached to the specified IAM entity. The entity can be an IAM user, group, or role.
/// If you specify a user, then the request also includes all of the policies attached
/// to groups that the user is a member of.
///
///
///
/// You can optionally include a list of one or more additional policies, specified as
/// strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy
/// instead.
///
///
///
/// Note: This API discloses information about the permissions granted to other
/// users. If you do not want users to see other user's permissions, then consider allowing
/// them to use GetContextKeysForCustomPolicy instead.
///
///
///
/// Context keys are variables maintained by AWS and its services that provide details
/// about the context of an API query request. Context keys can be evaluated by testing
/// against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy to understand
/// what key names and values you must supply when you call SimulatePrincipalPolicy.
///
///
/// The ARN of a user, group, or role whose policies contain the context keys that you want listed. If you specify a user, the list includes context keys that are found in all policies that are attached to the user. The list also includes all groups that the user is a member of. If you pick a group or a role, then it includes only those context keys that are found in policies attached to that entity. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
/// An Action 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.
///
///
/// The response from the GetContextKeysForPrincipalPolicy service method, as returned by IdentityManagementService.
///
/// The request was rejected because an invalid or out-of-range value was supplied for
/// an input parameter.
///
///
/// The request was rejected because it referenced a resource entity that does not exist.
/// The error message describes the resource.
///
/// REST API Reference for GetContextKeysForPrincipalPolicy Operation
public virtual void GetContextKeysForPrincipalPolicyAsync(string policySourceArn, AmazonServiceCallback callback, AsyncOptions options = null)
{
var request = new GetContextKeysForPrincipalPolicyRequest();
request.PolicySourceArn = policySourceArn;
GetContextKeysForPrincipalPolicyAsync(request, callback, options);
}
///
/// Gets a list of all of the context keys referenced in all the IAM policies that are
/// attached to the specified IAM entity. The entity can be an IAM user, group, or role.
/// If you specify a user, then the request also includes all of the policies attached
/// to groups that the user is a member of.
///
///
///
/// You can optionally include a list of one or more additional policies, specified as
/// strings. If you want to include only a list of policies by string, use GetContextKeysForCustomPolicy
/// instead.
///
///
///
/// Note: This API discloses information about the permissions granted to other
/// users. If you do not want users to see other user's permissions, then consider allowing
/// them to use GetContextKeysForCustomPolicy instead.
///
///
///
/// Context keys are variables maintained by AWS and its services that provide details
/// about the context of an API query request. Context keys can be evaluated by testing
/// against a value in an IAM policy. Use GetContextKeysForPrincipalPolicy to understand
/// what key names and values you must supply when you call SimulatePrincipalPolicy.
///
///
/// The ARN of a user, group, or role whose policies contain the context keys that you want listed. If you specify a user, the list includes context keys that are found in all policies that are attached to the user. The list also includes all groups that the user is a member of. If you pick a group or a role, then it includes only those context keys that are found in policies attached to that entity. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
/// An optional list of additional policies for which you want the list of context keys that are referenced. The regex pattern used to validate this parameter is a string of characters consisting of the following: - Any printable ASCII character ranging from the space character (
\u0020
) through the end of the ASCII character range - The printable characters in the Basic Latin and Latin-1 Supplement character set (through
\u00FF
) - The special characters tab (
\u0009
), line feed (\u000A
), and carriage return (\u000D
)
/// An Action 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.
///
///
/// The response from the GetContextKeysForPrincipalPolicy service method, as returned by IdentityManagementService.
///
/// The request was rejected because an invalid or out-of-range value was supplied for
/// an input parameter.
///
///
/// The request was rejected because it referenced a resource entity that does not exist.
/// The error message describes the resource.
///
/// REST API Reference for GetContextKeysForPrincipalPolicy Operation
public virtual void GetContextKeysForPrincipalPolicyAsync(string policySourceArn, List policyInputList, AmazonServiceCallback callback, AsyncOptions options = null)
{
var request = new GetContextKeysForPrincipalPolicyRequest();
request.PolicySourceArn = policySourceArn;
request.PolicyInputList = policyInputList;
GetContextKeysForPrincipalPolicyAsync(request, callback, options);
}
///
/// Initiates the asynchronous execution of the GetContextKeysForPrincipalPolicy operation.
///
///
/// Container for the necessary parameters to execute the GetContextKeysForPrincipalPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetContextKeysForPrincipalPolicy Operation
public virtual void GetContextKeysForPrincipalPolicyAsync(GetContextKeysForPrincipalPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetContextKeysForPrincipalPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetContextKeysForPrincipalPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetContextKeysForPrincipalPolicyRequest)req, (GetContextKeysForPrincipalPolicyResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetCredentialReport
///
/// Retrieves a credential report for the AWS account. For more information about the
/// credential report, see Getting
/// Credential Reports in the IAM User Guide.
///
/// An Action 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.
///
///
/// The response from the GetCredentialReport service method, as returned by IdentityManagementService.
///
/// The request was rejected because the most recent credential report has expired. To
/// generate a new credential report, use GenerateCredentialReport. For more information
/// about credential report expiration, see Getting
/// Credential Reports in the IAM User Guide.
///
///
/// The request was rejected because the credential report does not exist. To generate
/// a credential report, use GenerateCredentialReport.
///
///
/// The request was rejected because the credential report is still being generated.
///
///
/// The request processing has failed because of an unknown error, exception or failure.
///
/// REST API Reference for GetCredentialReport Operation
public virtual void GetCredentialReportAsync(AmazonServiceCallback callback, AsyncOptions options = null)
{
GetCredentialReportAsync(new GetCredentialReportRequest(), callback, options);
}
///
/// Initiates the asynchronous execution of the GetCredentialReport operation.
///
///
/// Container for the necessary parameters to execute the GetCredentialReport operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetCredentialReport Operation
public virtual void GetCredentialReportAsync(GetCredentialReportRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetCredentialReportRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetCredentialReportResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetCredentialReportRequest)req, (GetCredentialReportResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetGroup
///
/// Initiates the asynchronous execution of the GetGroup operation.
///
///
/// Container for the necessary parameters to execute the GetGroup operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetGroup Operation
public virtual void GetGroupAsync(GetGroupRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetGroupRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetGroupResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult((GetGroupRequest)req, (GetGroupResponse)res, ex , ao.State);
callback(responseObject);
};
BeginInvoke(request, invokeOptions, options, callbackHelper);
}
#endregion
#region GetGroupPolicy
///
/// Initiates the asynchronous execution of the GetGroupPolicy operation.
///
///
/// Container for the necessary parameters to execute the GetGroupPolicy operation on AmazonIdentityManagementServiceClient.
/// An Action 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.
/// REST API Reference for GetGroupPolicy Operation
public virtual void GetGroupPolicyAsync(GetGroupPolicyRequest request, AmazonServiceCallback callback, AsyncOptions options = null)
{
options = options == null?new AsyncOptions():options;
var invokeOptions = new InvokeOptions();
invokeOptions.RequestMarshaller = GetGroupPolicyRequestMarshaller.Instance;
invokeOptions.ResponseUnmarshaller = GetGroupPolicyResponseUnmarshaller.Instance;
Action callbackHelper = null;
if(callback !=null )
callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => {
AmazonServiceResult responseObject
= new AmazonServiceResult