AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Removes the specified principals or resources from participating in the specified resource share.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginDisassociateResourceShare and EndDisassociateResourceShare.
Namespace: Amazon.RAM
Assembly: AWSSDK.RAM.dll
Version: 3.x.y.z
public virtual Task<DisassociateResourceShareResponse> DisassociateResourceShareAsync( DisassociateResourceShareRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the DisassociateResourceShare service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Exception | Condition |
---|---|
IdempotentParameterMismatchException | The operation failed because the client token input parameter matched one that was used with a previous call to the operation, but at least one of the other input parameters is different from the previous call. |
InvalidClientTokenException | The operation failed because the specified client token isn't valid. |
InvalidParameterException | The operation failed because a parameter you specified isn't valid. |
InvalidStateTransitionException | The operation failed because the requested operation isn't valid for the resource share in its current state. |
MalformedArnException | The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid. |
OperationNotPermittedException | The operation failed because the requested operation isn't permitted. |
ResourceShareLimitExceededException | The operation failed because it would exceed the limit for resource shares for your account. To view the limits for your Amazon Web Services account, see the RAM page in the Service Quotas console. |
ServerInternalException | The operation failed because the service could not respond to the request due to an internal problem. Try again later. |
ServiceUnavailableException | The operation failed because the service isn't available. Try again later. |
UnknownResourceException | The operation failed because a specified resource couldn't be found. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer