AWS SDK Version 3 for .NET
API Reference

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.

Designates the specified version number as the default version for the specified customer managed permission. New resource shares automatically use this new default permission. Existing resource shares continue to use their original permission version, but you can use ReplacePermissionAssociations to update them.

Note:

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 BeginSetDefaultPermissionVersion and EndSetDefaultPermissionVersion.

Namespace: Amazon.RAM
Assembly: AWSSDK.RAM.dll
Version: 3.x.y.z

Syntax

C#
public abstract Task<SetDefaultPermissionVersionResponse> SetDefaultPermissionVersionAsync(
         SetDefaultPermissionVersionRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.RAM.Model.SetDefaultPermissionVersionRequest

Container for the necessary parameters to execute the SetDefaultPermissionVersion service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the SetDefaultPermissionVersion service method, as returned by RAM.

Exceptions

ExceptionCondition
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.
MalformedArnException The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
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.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer

See Also