disassociateResourceSharePermission method
Disassociates an AWS RAM permission from a resource share.
May throw MalformedArnException. May throw UnknownResourceException. May throw InvalidParameterException. May throw InvalidClientTokenException. May throw ServerInternalException. May throw ServiceUnavailableException. May throw OperationNotPermittedException.
Parameter permissionArn
:
The ARN of the permission to disassociate from the resource share.
Parameter resourceShareArn
:
The Amazon Resource Name (ARN) of the resource share.
Parameter clientToken
:
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
Implementation
Future<DisassociateResourceSharePermissionResponse>
disassociateResourceSharePermission({
required String permissionArn,
required String resourceShareArn,
String? clientToken,
}) async {
ArgumentError.checkNotNull(permissionArn, 'permissionArn');
ArgumentError.checkNotNull(resourceShareArn, 'resourceShareArn');
final $payload = <String, dynamic>{
'permissionArn': permissionArn,
'resourceShareArn': resourceShareArn,
if (clientToken != null) 'clientToken': clientToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/disassociateresourcesharepermission',
exceptionFnMap: _exceptionFns,
);
return DisassociateResourceSharePermissionResponse.fromJson(response);
}