/* * 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 identitystore-2020-06-15.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.IdentityStore.Model; using Amazon.IdentityStore.Model.Internal.MarshallTransformations; using Amazon.IdentityStore.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.IdentityStore { /// /// Implementation for accessing IdentityStore /// /// The Identity Store service used by AWS IAM Identity Center (successor to AWS Single /// Sign-On) provides a single place to retrieve all of your identities (users and groups). /// For more information, see the IAM /// Identity Center User Guide. /// ///
 <note> <p>Although AWS Single Sign-On was renamed, the <code>sso</code>
    /// and <code>identitystore</code> API namespaces will continue to retain
    /// their original name for backward compatibility purposes. For more information, see
    /// <a href="https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html#renamed">IAM
    /// Identity Center rename</a>.</p> </note> <p>This reference
    /// guide describes the identity store operations that you can call programatically and
    /// includes detailed information about data types and errors.</p> 
///
public partial class AmazonIdentityStoreClient : AmazonServiceClient, IAmazonIdentityStore { private static IServiceMetadata serviceMetadata = new AmazonIdentityStoreMetadata(); #region Constructors /// /// Constructs AmazonIdentityStoreClient 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 AmazonIdentityStoreClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIdentityStoreConfig()) { } /// /// Constructs AmazonIdentityStoreClient 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 AmazonIdentityStoreClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonIdentityStoreConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIdentityStoreClient 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 AmazonIdentityStoreClient Configuration Object public AmazonIdentityStoreClient(AmazonIdentityStoreConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonIdentityStoreClient with AWS Credentials /// /// AWS Credentials public AmazonIdentityStoreClient(AWSCredentials credentials) : this(credentials, new AmazonIdentityStoreConfig()) { } /// /// Constructs AmazonIdentityStoreClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonIdentityStoreClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonIdentityStoreConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIdentityStoreClient with AWS Credentials and an /// AmazonIdentityStoreClient Configuration object. /// /// AWS Credentials /// The AmazonIdentityStoreClient Configuration Object public AmazonIdentityStoreClient(AWSCredentials credentials, AmazonIdentityStoreConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonIdentityStoreClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonIdentityStoreClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIdentityStoreConfig()) { } /// /// Constructs AmazonIdentityStoreClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonIdentityStoreClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonIdentityStoreConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonIdentityStoreClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIdentityStoreClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonIdentityStoreClient Configuration Object public AmazonIdentityStoreClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonIdentityStoreConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonIdentityStoreClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonIdentityStoreClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIdentityStoreConfig()) { } /// /// Constructs AmazonIdentityStoreClient 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 AmazonIdentityStoreClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonIdentityStoreConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonIdentityStoreClient with AWS Access Key ID, AWS Secret Key and an /// AmazonIdentityStoreClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonIdentityStoreClient Configuration Object public AmazonIdentityStoreClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonIdentityStoreConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IIdentityStorePaginatorFactory _paginators; /// /// Paginators for the service /// public IIdentityStorePaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new IdentityStorePaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonIdentityStoreEndpointResolver()); } /// /// 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 CreateGroup internal virtual CreateGroupResponse CreateGroup(CreateGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a group within the specified identity store. /// /// Container for the necessary parameters to execute the CreateGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateGroup service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// The request would cause the number of users or groups in the identity store to exceed /// the maximum allowed. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for CreateGroup Operation public virtual Task CreateGroupAsync(CreateGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateGroupMembership internal virtual CreateGroupMembershipResponse CreateGroupMembership(CreateGroupMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGroupMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGroupMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a relationship between a member and a group. The following identifiers must /// be specified: GroupId, IdentityStoreId, and MemberId. /// /// Container for the necessary parameters to execute the CreateGroupMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateGroupMembership service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// The request would cause the number of users or groups in the identity store to exceed /// the maximum allowed. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for CreateGroupMembership Operation public virtual Task CreateGroupMembershipAsync(CreateGroupMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateGroupMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateGroupMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateUser internal virtual CreateUserResponse CreateUser(CreateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a user within the specified identity store. /// /// Container for the necessary parameters to execute the CreateUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateUser service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// The request would cause the number of users or groups in the identity store to exceed /// the maximum allowed. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for CreateUser Operation public virtual Task CreateUserAsync(CreateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteGroup internal virtual DeleteGroupResponse DeleteGroup(DeleteGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Delete a group within an identity store given GroupId. /// /// Container for the necessary parameters to execute the DeleteGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteGroup service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for DeleteGroup Operation public virtual Task DeleteGroupAsync(DeleteGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteGroupMembership internal virtual DeleteGroupMembershipResponse DeleteGroupMembership(DeleteGroupMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGroupMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGroupMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Delete a membership within a group given MembershipId. /// /// Container for the necessary parameters to execute the DeleteGroupMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteGroupMembership service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for DeleteGroupMembership Operation public virtual Task DeleteGroupMembershipAsync(DeleteGroupMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteGroupMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteGroupMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteUser internal virtual DeleteUserResponse DeleteUser(DeleteUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a user within an identity store given UserId. /// /// Container for the necessary parameters to execute the DeleteUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteUser service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for DeleteUser Operation public virtual Task DeleteUserAsync(DeleteUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeGroup internal virtual DescribeGroupResponse DescribeGroup(DescribeGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the group metadata and attributes from GroupId in an identity /// store. /// /// Container for the necessary parameters to execute the DescribeGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeGroup service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for DescribeGroup Operation public virtual Task DescribeGroupAsync(DescribeGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeGroupMembership internal virtual DescribeGroupMembershipResponse DescribeGroupMembership(DescribeGroupMembershipRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupMembershipResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves membership metadata and attributes from MembershipId in an /// identity store. /// /// Container for the necessary parameters to execute the DescribeGroupMembership service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeGroupMembership service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for DescribeGroupMembership Operation public virtual Task DescribeGroupMembershipAsync(DescribeGroupMembershipRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeGroupMembershipRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeGroupMembershipResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeUser internal virtual DescribeUserResponse DescribeUser(DescribeUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the user metadata and attributes from the UserId in an identity /// store. /// /// Container for the necessary parameters to execute the DescribeUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeUser service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for DescribeUser Operation public virtual Task DescribeUserAsync(DescribeUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeUserRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetGroupId internal virtual GetGroupIdResponse GetGroupId(GetGroupIdRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupIdResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves GroupId in an identity store. /// /// Container for the necessary parameters to execute the GetGroupId service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetGroupId service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for GetGroupId Operation public virtual Task GetGroupIdAsync(GetGroupIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupIdResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetGroupMembershipId internal virtual GetGroupMembershipIdResponse GetGroupMembershipId(GetGroupMembershipIdRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupMembershipIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupMembershipIdResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the MembershipId in an identity store. /// /// Container for the necessary parameters to execute the GetGroupMembershipId service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetGroupMembershipId service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for GetGroupMembershipId Operation public virtual Task GetGroupMembershipIdAsync(GetGroupMembershipIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetGroupMembershipIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetGroupMembershipIdResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetUserId internal virtual GetUserIdResponse GetUserId(GetUserIdRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetUserIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetUserIdResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves the UserId in an identity store. /// /// Container for the necessary parameters to execute the GetUserId service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetUserId service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for GetUserId Operation public virtual Task GetUserIdAsync(GetUserIdRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetUserIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetUserIdResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region IsMemberInGroups internal virtual IsMemberInGroupsResponse IsMemberInGroups(IsMemberInGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = IsMemberInGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = IsMemberInGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Checks the user's membership in all requested groups and returns if the member exists /// in all queried groups. /// /// Container for the necessary parameters to execute the IsMemberInGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the IsMemberInGroups service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for IsMemberInGroups Operation public virtual Task IsMemberInGroupsAsync(IsMemberInGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = IsMemberInGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = IsMemberInGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListGroupMemberships internal virtual ListGroupMembershipsResponse ListGroupMemberships(ListGroupMembershipsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupMembershipsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// For the specified group in the specified identity store, returns the list of all GroupMembership /// objects and returns results in paginated form. /// /// Container for the necessary parameters to execute the ListGroupMemberships service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListGroupMemberships service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for ListGroupMemberships Operation public virtual Task ListGroupMembershipsAsync(ListGroupMembershipsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupMembershipsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupMembershipsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListGroupMembershipsForMember internal virtual ListGroupMembershipsForMemberResponse ListGroupMembershipsForMember(ListGroupMembershipsForMemberRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupMembershipsForMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupMembershipsForMemberResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// For the specified member in the specified identity store, returns the list of all /// GroupMembership objects and returns results in paginated form. /// /// Container for the necessary parameters to execute the ListGroupMembershipsForMember service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListGroupMembershipsForMember service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for ListGroupMembershipsForMember Operation public virtual Task ListGroupMembershipsForMemberAsync(ListGroupMembershipsForMemberRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupMembershipsForMemberRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupMembershipsForMemberResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListGroups internal virtual ListGroupsResponse ListGroups(ListGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all groups in the identity store. Returns a paginated list of complete Group /// objects. Filtering for a Group by the DisplayName attribute /// is deprecated. Instead, use the GetGroupId API action. /// /// Container for the necessary parameters to execute the ListGroups service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListGroups service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for ListGroups Operation public virtual Task ListGroupsAsync(ListGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListGroupsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListUsers internal virtual ListUsersResponse ListUsers(ListUsersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListUsersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all users in the identity store. Returns a paginated list of complete User /// objects. Filtering for a User by the UserName attribute /// is deprecated. Instead, use the GetUserId API action. /// /// Container for the necessary parameters to execute the ListUsers service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListUsers service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for ListUsers Operation public virtual Task ListUsersAsync(ListUsersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListUsersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListUsersResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateGroup internal virtual UpdateGroupResponse UpdateGroup(UpdateGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// For the specified group in the specified identity store, updates the group metadata /// and attributes. /// /// Container for the necessary parameters to execute the UpdateGroup service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateGroup service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// The request would cause the number of users or groups in the identity store to exceed /// the maximum allowed. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for UpdateGroup Operation public virtual Task UpdateGroupAsync(UpdateGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateGroupResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateUser internal virtual UpdateUserResponse UpdateUser(UpdateUserRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// For the specified user in the specified identity store, updates the user metadata /// and attributes. /// /// Container for the necessary parameters to execute the UpdateUser service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateUser service method, as returned by IdentityStore. /// /// You do not have sufficient access to perform this action. /// /// /// This request cannot be completed for one of the following reasons: /// ///
  • /// /// Performing the requested operation would violate an existing uniqueness claim in the /// identity store. Resolve the conflict before retrying this request. /// ///
  • /// /// The requested resource was being concurrently modified by another request. /// ///
///
/// /// The request processing has failed because of an unknown error, exception or failure /// with an internal server. /// /// /// Indicates that a requested resource is not found. /// /// /// The request would cause the number of users or groups in the identity store to exceed /// the maximum allowed. /// /// /// Indicates that the principal has crossed the throttling limits of the API operations. /// /// /// The request failed because it contains a syntax error. /// /// REST API Reference for UpdateUser Operation public virtual Task UpdateUserAsync(UpdateUserRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateUserRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateUserResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }