/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the rolesanywhere-2018-05-10.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.IAMRolesAnywhere.Model;
using Amazon.IAMRolesAnywhere.Model.Internal.MarshallTransformations;
using Amazon.IAMRolesAnywhere.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.IAMRolesAnywhere
{
///
/// Implementation for accessing IAMRolesAnywhere
///
/// Identity and Access Management Roles Anywhere provides a secure way for your workloads
/// such as servers, containers, and applications that run outside of Amazon Web Services
/// to obtain temporary Amazon Web Services credentials. Your workloads can use the same
/// IAM policies and roles you have for native Amazon Web Services applications to access
/// Amazon Web Services resources. Using IAM Roles Anywhere eliminates the need to manage
/// long-term credentials for workloads running outside of Amazon Web Services.
///
///
///
/// To use IAM Roles Anywhere, your workloads must use X.509 certificates issued by their
/// certificate authority (CA). You register the CA with IAM Roles Anywhere as a trust
/// anchor to establish trust between your public key infrastructure (PKI) and IAM Roles
/// Anywhere. If you don't manage your own PKI system, you can use Private Certificate
/// Authority to create a CA and then use that to establish trust with IAM Roles Anywhere.
///
///
///
///
/// This guide describes the IAM Roles Anywhere operations that you can call programmatically.
/// For more information about IAM Roles Anywhere, see the IAM
/// Roles Anywhere User Guide.
///
///
public partial class AmazonIAMRolesAnywhereClient : AmazonServiceClient, IAmazonIAMRolesAnywhere
{
private static IServiceMetadata serviceMetadata = new AmazonIAMRolesAnywhereMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IIAMRolesAnywherePaginatorFactory _paginators;
///
/// Paginators for the service
///
public IIAMRolesAnywherePaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new IAMRolesAnywherePaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonIAMRolesAnywhereClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonIAMRolesAnywhereClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIAMRolesAnywhereConfig()) { }
///
/// Constructs AmazonIAMRolesAnywhereClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonIAMRolesAnywhereClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonIAMRolesAnywhereConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonIAMRolesAnywhereClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonIAMRolesAnywhereClient Configuration Object
public AmazonIAMRolesAnywhereClient(AmazonIAMRolesAnywhereConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Credentials
///
/// AWS Credentials
public AmazonIAMRolesAnywhereClient(AWSCredentials credentials)
: this(credentials, new AmazonIAMRolesAnywhereConfig())
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonIAMRolesAnywhereClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonIAMRolesAnywhereConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Credentials and an
/// AmazonIAMRolesAnywhereClient Configuration object.
///
/// AWS Credentials
/// The AmazonIAMRolesAnywhereClient Configuration Object
public AmazonIAMRolesAnywhereClient(AWSCredentials credentials, AmazonIAMRolesAnywhereConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonIAMRolesAnywhereClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIAMRolesAnywhereConfig())
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonIAMRolesAnywhereClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonIAMRolesAnywhereConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIAMRolesAnywhereClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonIAMRolesAnywhereClient Configuration Object
public AmazonIAMRolesAnywhereClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIAMRolesAnywhereConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonIAMRolesAnywhereClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIAMRolesAnywhereConfig())
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient 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 AmazonIAMRolesAnywhereClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIAMRolesAnywhereConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonIAMRolesAnywhereClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonIAMRolesAnywhereClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonIAMRolesAnywhereClient Configuration Object
public AmazonIAMRolesAnywhereClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIAMRolesAnywhereConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonIAMRolesAnywhereEndpointResolver());
}
///
/// 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 CreateProfile
///
/// Creates a profile, a list of the roles that Roles Anywhere service is trusted
/// to assume. You use profiles to intersect permissions with IAM managed policies.
///
///
///
/// Required permissions: rolesanywhere:CreateProfile
.
///
///
/// Container for the necessary parameters to execute the CreateProfile service method.
///
/// The response from the CreateProfile service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for CreateProfile Operation
public virtual CreateProfileResponse CreateProfile(CreateProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateProfile operation.
///
///
/// Container for the necessary parameters to execute the CreateProfile operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateProfile
/// operation.
/// REST API Reference for CreateProfile Operation
public virtual IAsyncResult BeginCreateProfile(CreateProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateProfile operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateProfile.
///
/// Returns a CreateProfileResult from IAMRolesAnywhere.
/// REST API Reference for CreateProfile Operation
public virtual CreateProfileResponse EndCreateProfile(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateTrustAnchor
///
/// Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate
/// authority (CA). You can define a trust anchor as a reference to an Private Certificate
/// Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services
/// workloads can authenticate with the trust anchor using certificates issued by the
/// CA in exchange for temporary Amazon Web Services credentials.
///
///
///
/// Required permissions: rolesanywhere:CreateTrustAnchor
.
///
///
/// Container for the necessary parameters to execute the CreateTrustAnchor service method.
///
/// The response from the CreateTrustAnchor service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for CreateTrustAnchor Operation
public virtual CreateTrustAnchorResponse CreateTrustAnchor(CreateTrustAnchorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTrustAnchorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateTrustAnchor operation.
///
///
/// Container for the necessary parameters to execute the CreateTrustAnchor operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTrustAnchor
/// operation.
/// REST API Reference for CreateTrustAnchor Operation
public virtual IAsyncResult BeginCreateTrustAnchor(CreateTrustAnchorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTrustAnchorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateTrustAnchor operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateTrustAnchor.
///
/// Returns a CreateTrustAnchorResult from IAMRolesAnywhere.
/// REST API Reference for CreateTrustAnchor Operation
public virtual CreateTrustAnchorResponse EndCreateTrustAnchor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteCrl
///
/// Deletes a certificate revocation list (CRL).
///
///
///
/// Required permissions: rolesanywhere:DeleteCrl
.
///
///
/// Container for the necessary parameters to execute the DeleteCrl service method.
///
/// The response from the DeleteCrl service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for DeleteCrl Operation
public virtual DeleteCrlResponse DeleteCrl(DeleteCrlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCrlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteCrl operation.
///
///
/// Container for the necessary parameters to execute the DeleteCrl operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCrl
/// operation.
/// REST API Reference for DeleteCrl Operation
public virtual IAsyncResult BeginDeleteCrl(DeleteCrlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteCrlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteCrl operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteCrl.
///
/// Returns a DeleteCrlResult from IAMRolesAnywhere.
/// REST API Reference for DeleteCrl Operation
public virtual DeleteCrlResponse EndDeleteCrl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteProfile
///
/// Deletes a profile.
///
///
///
/// Required permissions: rolesanywhere:DeleteProfile
.
///
///
/// Container for the necessary parameters to execute the DeleteProfile service method.
///
/// The response from the DeleteProfile service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for DeleteProfile Operation
public virtual DeleteProfileResponse DeleteProfile(DeleteProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteProfile operation.
///
///
/// Container for the necessary parameters to execute the DeleteProfile operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteProfile
/// operation.
/// REST API Reference for DeleteProfile Operation
public virtual IAsyncResult BeginDeleteProfile(DeleteProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteProfile operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteProfile.
///
/// Returns a DeleteProfileResult from IAMRolesAnywhere.
/// REST API Reference for DeleteProfile Operation
public virtual DeleteProfileResponse EndDeleteProfile(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteTrustAnchor
///
/// Deletes a trust anchor.
///
///
///
/// Required permissions: rolesanywhere:DeleteTrustAnchor
.
///
///
/// Container for the necessary parameters to execute the DeleteTrustAnchor service method.
///
/// The response from the DeleteTrustAnchor service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for DeleteTrustAnchor Operation
public virtual DeleteTrustAnchorResponse DeleteTrustAnchor(DeleteTrustAnchorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTrustAnchorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteTrustAnchor operation.
///
///
/// Container for the necessary parameters to execute the DeleteTrustAnchor operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTrustAnchor
/// operation.
/// REST API Reference for DeleteTrustAnchor Operation
public virtual IAsyncResult BeginDeleteTrustAnchor(DeleteTrustAnchorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteTrustAnchorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteTrustAnchor operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteTrustAnchor.
///
/// Returns a DeleteTrustAnchorResult from IAMRolesAnywhere.
/// REST API Reference for DeleteTrustAnchor Operation
public virtual DeleteTrustAnchorResponse EndDeleteTrustAnchor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisableCrl
///
/// Disables a certificate revocation list (CRL).
///
///
///
/// Required permissions: rolesanywhere:DisableCrl
.
///
///
/// Container for the necessary parameters to execute the DisableCrl service method.
///
/// The response from the DisableCrl service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for DisableCrl Operation
public virtual DisableCrlResponse DisableCrl(DisableCrlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableCrlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisableCrl operation.
///
///
/// Container for the necessary parameters to execute the DisableCrl operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableCrl
/// operation.
/// REST API Reference for DisableCrl Operation
public virtual IAsyncResult BeginDisableCrl(DisableCrlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableCrlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisableCrl operation.
///
///
/// The IAsyncResult returned by the call to BeginDisableCrl.
///
/// Returns a DisableCrlResult from IAMRolesAnywhere.
/// REST API Reference for DisableCrl Operation
public virtual DisableCrlResponse EndDisableCrl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisableProfile
///
/// Disables a profile. When disabled, temporary credential requests with this profile
/// fail.
///
///
///
/// Required permissions: rolesanywhere:DisableProfile
.
///
///
/// Container for the necessary parameters to execute the DisableProfile service method.
///
/// The response from the DisableProfile service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for DisableProfile Operation
public virtual DisableProfileResponse DisableProfile(DisableProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisableProfile operation.
///
///
/// Container for the necessary parameters to execute the DisableProfile operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableProfile
/// operation.
/// REST API Reference for DisableProfile Operation
public virtual IAsyncResult BeginDisableProfile(DisableProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisableProfile operation.
///
///
/// The IAsyncResult returned by the call to BeginDisableProfile.
///
/// Returns a DisableProfileResult from IAMRolesAnywhere.
/// REST API Reference for DisableProfile Operation
public virtual DisableProfileResponse EndDisableProfile(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DisableTrustAnchor
///
/// Disables a trust anchor. When disabled, temporary credential requests specifying this
/// trust anchor are unauthorized.
///
///
///
/// Required permissions: rolesanywhere:DisableTrustAnchor
.
///
///
/// Container for the necessary parameters to execute the DisableTrustAnchor service method.
///
/// The response from the DisableTrustAnchor service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for DisableTrustAnchor Operation
public virtual DisableTrustAnchorResponse DisableTrustAnchor(DisableTrustAnchorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableTrustAnchorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DisableTrustAnchor operation.
///
///
/// Container for the necessary parameters to execute the DisableTrustAnchor operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableTrustAnchor
/// operation.
/// REST API Reference for DisableTrustAnchor Operation
public virtual IAsyncResult BeginDisableTrustAnchor(DisableTrustAnchorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisableTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisableTrustAnchorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DisableTrustAnchor operation.
///
///
/// The IAsyncResult returned by the call to BeginDisableTrustAnchor.
///
/// Returns a DisableTrustAnchorResult from IAMRolesAnywhere.
/// REST API Reference for DisableTrustAnchor Operation
public virtual DisableTrustAnchorResponse EndDisableTrustAnchor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region EnableCrl
///
/// Enables a certificate revocation list (CRL). When enabled, certificates stored in
/// the CRL are unauthorized to receive session credentials.
///
///
///
/// Required permissions: rolesanywhere:EnableCrl
.
///
///
/// Container for the necessary parameters to execute the EnableCrl service method.
///
/// The response from the EnableCrl service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for EnableCrl Operation
public virtual EnableCrlResponse EnableCrl(EnableCrlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableCrlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the EnableCrl operation.
///
///
/// Container for the necessary parameters to execute the EnableCrl operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableCrl
/// operation.
/// REST API Reference for EnableCrl Operation
public virtual IAsyncResult BeginEnableCrl(EnableCrlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableCrlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the EnableCrl operation.
///
///
/// The IAsyncResult returned by the call to BeginEnableCrl.
///
/// Returns a EnableCrlResult from IAMRolesAnywhere.
/// REST API Reference for EnableCrl Operation
public virtual EnableCrlResponse EndEnableCrl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region EnableProfile
///
/// Enables temporary credential requests for a profile.
///
///
///
/// Required permissions: rolesanywhere:EnableProfile
.
///
///
/// Container for the necessary parameters to execute the EnableProfile service method.
///
/// The response from the EnableProfile service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for EnableProfile Operation
public virtual EnableProfileResponse EnableProfile(EnableProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the EnableProfile operation.
///
///
/// Container for the necessary parameters to execute the EnableProfile operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableProfile
/// operation.
/// REST API Reference for EnableProfile Operation
public virtual IAsyncResult BeginEnableProfile(EnableProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the EnableProfile operation.
///
///
/// The IAsyncResult returned by the call to BeginEnableProfile.
///
/// Returns a EnableProfileResult from IAMRolesAnywhere.
/// REST API Reference for EnableProfile Operation
public virtual EnableProfileResponse EndEnableProfile(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region EnableTrustAnchor
///
/// Enables a trust anchor. When enabled, certificates in the trust anchor chain are authorized
/// for trust validation.
///
///
///
/// Required permissions: rolesanywhere:EnableTrustAnchor
.
///
///
/// Container for the necessary parameters to execute the EnableTrustAnchor service method.
///
/// The response from the EnableTrustAnchor service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for EnableTrustAnchor Operation
public virtual EnableTrustAnchorResponse EnableTrustAnchor(EnableTrustAnchorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableTrustAnchorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the EnableTrustAnchor operation.
///
///
/// Container for the necessary parameters to execute the EnableTrustAnchor operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableTrustAnchor
/// operation.
/// REST API Reference for EnableTrustAnchor Operation
public virtual IAsyncResult BeginEnableTrustAnchor(EnableTrustAnchorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = EnableTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = EnableTrustAnchorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the EnableTrustAnchor operation.
///
///
/// The IAsyncResult returned by the call to BeginEnableTrustAnchor.
///
/// Returns a EnableTrustAnchorResult from IAMRolesAnywhere.
/// REST API Reference for EnableTrustAnchor Operation
public virtual EnableTrustAnchorResponse EndEnableTrustAnchor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetCrl
///
/// Gets a certificate revocation list (CRL).
///
///
///
/// Required permissions: rolesanywhere:GetCrl
.
///
///
/// Container for the necessary parameters to execute the GetCrl service method.
///
/// The response from the GetCrl service method, as returned by IAMRolesAnywhere.
///
/// The resource could not be found.
///
/// REST API Reference for GetCrl Operation
public virtual GetCrlResponse GetCrl(GetCrlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCrlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetCrl operation.
///
///
/// Container for the necessary parameters to execute the GetCrl operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCrl
/// operation.
/// REST API Reference for GetCrl Operation
public virtual IAsyncResult BeginGetCrl(GetCrlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCrlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetCrl operation.
///
///
/// The IAsyncResult returned by the call to BeginGetCrl.
///
/// Returns a GetCrlResult from IAMRolesAnywhere.
/// REST API Reference for GetCrl Operation
public virtual GetCrlResponse EndGetCrl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetProfile
///
/// Gets a profile.
///
///
///
/// Required permissions: rolesanywhere:GetProfile
.
///
///
/// Container for the necessary parameters to execute the GetProfile service method.
///
/// The response from the GetProfile service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for GetProfile Operation
public virtual GetProfileResponse GetProfile(GetProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetProfile operation.
///
///
/// Container for the necessary parameters to execute the GetProfile operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetProfile
/// operation.
/// REST API Reference for GetProfile Operation
public virtual IAsyncResult BeginGetProfile(GetProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetProfile operation.
///
///
/// The IAsyncResult returned by the call to BeginGetProfile.
///
/// Returns a GetProfileResult from IAMRolesAnywhere.
/// REST API Reference for GetProfile Operation
public virtual GetProfileResponse EndGetProfile(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetSubject
///
/// Gets a subject, which associates a certificate identity with authentication
/// attempts. The subject stores auditing information such as the status of the last authentication
/// attempt, the certificate data used in the attempt, and the last time the associated
/// identity attempted authentication.
///
///
///
/// Required permissions: rolesanywhere:GetSubject
.
///
///
/// Container for the necessary parameters to execute the GetSubject service method.
///
/// The response from the GetSubject service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
/// REST API Reference for GetSubject Operation
public virtual GetSubjectResponse GetSubject(GetSubjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSubjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSubjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetSubject operation.
///
///
/// Container for the necessary parameters to execute the GetSubject operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetSubject
/// operation.
/// REST API Reference for GetSubject Operation
public virtual IAsyncResult BeginGetSubject(GetSubjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSubjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSubjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetSubject operation.
///
///
/// The IAsyncResult returned by the call to BeginGetSubject.
///
/// Returns a GetSubjectResult from IAMRolesAnywhere.
/// REST API Reference for GetSubject Operation
public virtual GetSubjectResponse EndGetSubject(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region GetTrustAnchor
///
/// Gets a trust anchor.
///
///
///
/// Required permissions: rolesanywhere:GetTrustAnchor
.
///
///
/// Container for the necessary parameters to execute the GetTrustAnchor service method.
///
/// The response from the GetTrustAnchor service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for GetTrustAnchor Operation
public virtual GetTrustAnchorResponse GetTrustAnchor(GetTrustAnchorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTrustAnchorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the GetTrustAnchor operation.
///
///
/// Container for the necessary parameters to execute the GetTrustAnchor operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTrustAnchor
/// operation.
/// REST API Reference for GetTrustAnchor Operation
public virtual IAsyncResult BeginGetTrustAnchor(GetTrustAnchorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetTrustAnchorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the GetTrustAnchor operation.
///
///
/// The IAsyncResult returned by the call to BeginGetTrustAnchor.
///
/// Returns a GetTrustAnchorResult from IAMRolesAnywhere.
/// REST API Reference for GetTrustAnchor Operation
public virtual GetTrustAnchorResponse EndGetTrustAnchor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ImportCrl
///
/// Imports the certificate revocation list (CRL). A CRL is a list of certificates that
/// have been revoked by the issuing certificate Authority (CA). IAM Roles Anywhere validates
/// against the CRL before issuing credentials.
///
///
///
/// Required permissions: rolesanywhere:ImportCrl
.
///
///
/// Container for the necessary parameters to execute the ImportCrl service method.
///
/// The response from the ImportCrl service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for ImportCrl Operation
public virtual ImportCrlResponse ImportCrl(ImportCrlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ImportCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = ImportCrlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ImportCrl operation.
///
///
/// Container for the necessary parameters to execute the ImportCrl operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportCrl
/// operation.
/// REST API Reference for ImportCrl Operation
public virtual IAsyncResult BeginImportCrl(ImportCrlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ImportCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = ImportCrlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ImportCrl operation.
///
///
/// The IAsyncResult returned by the call to BeginImportCrl.
///
/// Returns a ImportCrlResult from IAMRolesAnywhere.
/// REST API Reference for ImportCrl Operation
public virtual ImportCrlResponse EndImportCrl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListCrls
///
/// Lists all certificate revocation lists (CRL) in the authenticated account and Amazon
/// Web Services Region.
///
///
///
/// Required permissions: rolesanywhere:ListCrls
.
///
///
/// Container for the necessary parameters to execute the ListCrls service method.
///
/// The response from the ListCrls service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for ListCrls Operation
public virtual ListCrlsResponse ListCrls(ListCrlsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCrlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCrlsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListCrls operation.
///
///
/// Container for the necessary parameters to execute the ListCrls operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCrls
/// operation.
/// REST API Reference for ListCrls Operation
public virtual IAsyncResult BeginListCrls(ListCrlsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCrlsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCrlsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListCrls operation.
///
///
/// The IAsyncResult returned by the call to BeginListCrls.
///
/// Returns a ListCrlsResult from IAMRolesAnywhere.
/// REST API Reference for ListCrls Operation
public virtual ListCrlsResponse EndListCrls(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListProfiles
///
/// Lists all profiles in the authenticated account and Amazon Web Services Region.
///
///
///
/// Required permissions: rolesanywhere:ListProfiles
.
///
///
/// Container for the necessary parameters to execute the ListProfiles service method.
///
/// The response from the ListProfiles service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for ListProfiles Operation
public virtual ListProfilesResponse ListProfiles(ListProfilesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProfilesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProfilesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListProfiles operation.
///
///
/// Container for the necessary parameters to execute the ListProfiles operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProfiles
/// operation.
/// REST API Reference for ListProfiles Operation
public virtual IAsyncResult BeginListProfiles(ListProfilesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProfilesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProfilesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListProfiles operation.
///
///
/// The IAsyncResult returned by the call to BeginListProfiles.
///
/// Returns a ListProfilesResult from IAMRolesAnywhere.
/// REST API Reference for ListProfiles Operation
public virtual ListProfilesResponse EndListProfiles(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListSubjects
///
/// Lists the subjects in the authenticated account and Amazon Web Services Region.
///
///
///
/// Required permissions: rolesanywhere:ListSubjects
.
///
///
/// Container for the necessary parameters to execute the ListSubjects service method.
///
/// The response from the ListSubjects service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for ListSubjects Operation
public virtual ListSubjectsResponse ListSubjects(ListSubjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSubjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSubjectsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListSubjects operation.
///
///
/// Container for the necessary parameters to execute the ListSubjects operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListSubjects
/// operation.
/// REST API Reference for ListSubjects Operation
public virtual IAsyncResult BeginListSubjects(ListSubjectsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListSubjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListSubjectsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListSubjects operation.
///
///
/// The IAsyncResult returned by the call to BeginListSubjects.
///
/// Returns a ListSubjectsResult from IAMRolesAnywhere.
/// REST API Reference for ListSubjects Operation
public virtual ListSubjectsResponse EndListSubjects(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// Lists the tags attached to the resource.
///
///
///
/// Required permissions: rolesanywhere:ListTagsForResource
.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTagsForResource operation.
///
///
/// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from IAMRolesAnywhere.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTrustAnchors
///
/// Lists the trust anchors in the authenticated account and Amazon Web Services Region.
///
///
///
/// Required permissions: rolesanywhere:ListTrustAnchors
.
///
///
/// Container for the necessary parameters to execute the ListTrustAnchors service method.
///
/// The response from the ListTrustAnchors service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// Validation exception error.
///
/// REST API Reference for ListTrustAnchors Operation
public virtual ListTrustAnchorsResponse ListTrustAnchors(ListTrustAnchorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTrustAnchorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTrustAnchorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTrustAnchors operation.
///
///
/// Container for the necessary parameters to execute the ListTrustAnchors operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTrustAnchors
/// operation.
/// REST API Reference for ListTrustAnchors Operation
public virtual IAsyncResult BeginListTrustAnchors(ListTrustAnchorsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTrustAnchorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTrustAnchorsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTrustAnchors operation.
///
///
/// The IAsyncResult returned by the call to BeginListTrustAnchors.
///
/// Returns a ListTrustAnchorsResult from IAMRolesAnywhere.
/// REST API Reference for ListTrustAnchors Operation
public virtual ListTrustAnchorsResponse EndListTrustAnchors(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region PutNotificationSettings
///
/// Attaches a list of notification settings to a trust anchor.
///
///
///
/// A notification setting includes information such as event name, threshold, status
/// of the notification setting, and the channel to notify.
///
///
///
/// Required permissions: rolesanywhere:PutNotificationSettings
.
///
///
///
/// Container for the necessary parameters to execute the PutNotificationSettings service method.
///
/// The response from the PutNotificationSettings service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for PutNotificationSettings Operation
public virtual PutNotificationSettingsResponse PutNotificationSettings(PutNotificationSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutNotificationSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutNotificationSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the PutNotificationSettings operation.
///
///
/// Container for the necessary parameters to execute the PutNotificationSettings operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutNotificationSettings
/// operation.
/// REST API Reference for PutNotificationSettings Operation
public virtual IAsyncResult BeginPutNotificationSettings(PutNotificationSettingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutNotificationSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutNotificationSettingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the PutNotificationSettings operation.
///
///
/// The IAsyncResult returned by the call to BeginPutNotificationSettings.
///
/// Returns a PutNotificationSettingsResult from IAMRolesAnywhere.
/// REST API Reference for PutNotificationSettings Operation
public virtual PutNotificationSettingsResponse EndPutNotificationSettings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ResetNotificationSettings
///
/// Resets the custom notification setting to IAM Roles Anywhere default setting.
///
///
///
///
/// Required permissions: rolesanywhere:ResetNotificationSettings
.
///
///
///
/// Container for the necessary parameters to execute the ResetNotificationSettings service method.
///
/// The response from the ResetNotificationSettings service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for ResetNotificationSettings Operation
public virtual ResetNotificationSettingsResponse ResetNotificationSettings(ResetNotificationSettingsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResetNotificationSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResetNotificationSettingsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ResetNotificationSettings operation.
///
///
/// Container for the necessary parameters to execute the ResetNotificationSettings operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResetNotificationSettings
/// operation.
/// REST API Reference for ResetNotificationSettings Operation
public virtual IAsyncResult BeginResetNotificationSettings(ResetNotificationSettingsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResetNotificationSettingsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResetNotificationSettingsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ResetNotificationSettings operation.
///
///
/// The IAsyncResult returned by the call to BeginResetNotificationSettings.
///
/// Returns a ResetNotificationSettingsResult from IAMRolesAnywhere.
/// REST API Reference for ResetNotificationSettings Operation
public virtual ResetNotificationSettingsResponse EndResetNotificationSettings(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Attaches tags to a resource.
///
///
///
/// Required permissions: rolesanywhere:TagResource
.
///
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Too many tags.
///
///
/// Validation exception error.
///
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the TagResource operation.
///
///
/// Container for the necessary parameters to execute the TagResource operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from IAMRolesAnywhere.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// Removes tags from the resource.
///
///
///
/// Required permissions: rolesanywhere:UntagResource
.
///
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UntagResource operation.
///
///
/// Container for the necessary parameters to execute the UntagResource operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from IAMRolesAnywhere.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateCrl
///
/// Updates the certificate revocation list (CRL). A CRL is a list of certificates that
/// have been revoked by the issuing certificate authority (CA). IAM Roles Anywhere validates
/// against the CRL before issuing credentials.
///
///
///
/// Required permissions: rolesanywhere:UpdateCrl
.
///
///
/// Container for the necessary parameters to execute the UpdateCrl service method.
///
/// The response from the UpdateCrl service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for UpdateCrl Operation
public virtual UpdateCrlResponse UpdateCrl(UpdateCrlRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCrlResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateCrl operation.
///
///
/// Container for the necessary parameters to execute the UpdateCrl operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCrl
/// operation.
/// REST API Reference for UpdateCrl Operation
public virtual IAsyncResult BeginUpdateCrl(UpdateCrlRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateCrlRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateCrlResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateCrl operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateCrl.
///
/// Returns a UpdateCrlResult from IAMRolesAnywhere.
/// REST API Reference for UpdateCrl Operation
public virtual UpdateCrlResponse EndUpdateCrl(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateProfile
///
/// Updates a profile, a list of the roles that IAM Roles Anywhere service is trusted
/// to assume. You use profiles to intersect permissions with IAM managed policies.
///
///
///
/// Required permissions: rolesanywhere:UpdateProfile
.
///
///
/// Container for the necessary parameters to execute the UpdateProfile service method.
///
/// The response from the UpdateProfile service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for UpdateProfile Operation
public virtual UpdateProfileResponse UpdateProfile(UpdateProfileRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProfileResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateProfile operation.
///
///
/// Container for the necessary parameters to execute the UpdateProfile operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateProfile
/// operation.
/// REST API Reference for UpdateProfile Operation
public virtual IAsyncResult BeginUpdateProfile(UpdateProfileRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProfileRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProfileResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateProfile operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateProfile.
///
/// Returns a UpdateProfileResult from IAMRolesAnywhere.
/// REST API Reference for UpdateProfile Operation
public virtual UpdateProfileResponse EndUpdateProfile(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateTrustAnchor
///
/// Updates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate
/// authority (CA) by configuring a trust anchor. You can define a trust anchor as a reference
/// to an Private Certificate Authority (Private CA) or by uploading a CA certificate.
/// Your Amazon Web Services workloads can authenticate with the trust anchor using certificates
/// issued by the CA in exchange for temporary Amazon Web Services credentials.
///
///
///
/// Required permissions: rolesanywhere:UpdateTrustAnchor
.
///
///
/// Container for the necessary parameters to execute the UpdateTrustAnchor service method.
///
/// The response from the UpdateTrustAnchor service method, as returned by IAMRolesAnywhere.
///
/// You do not have sufficient access to perform this action.
///
///
/// The resource could not be found.
///
///
/// Validation exception error.
///
/// REST API Reference for UpdateTrustAnchor Operation
public virtual UpdateTrustAnchorResponse UpdateTrustAnchor(UpdateTrustAnchorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateTrustAnchorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateTrustAnchor operation.
///
///
/// Container for the necessary parameters to execute the UpdateTrustAnchor operation on AmazonIAMRolesAnywhereClient.
/// An AsyncCallback delegate that is invoked when the operation completes.
/// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateTrustAnchor
/// operation.
/// REST API Reference for UpdateTrustAnchor Operation
public virtual IAsyncResult BeginUpdateTrustAnchor(UpdateTrustAnchorRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateTrustAnchorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateTrustAnchorResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateTrustAnchor operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateTrustAnchor.
///
/// Returns a UpdateTrustAnchorResult from IAMRolesAnywhere.
/// REST API Reference for UpdateTrustAnchor Operation
public virtual UpdateTrustAnchorResponse EndUpdateTrustAnchor(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}