updateResourceShare method

Future<UpdateResourceShareResponse> updateResourceShare({
  1. required String resourceShareArn,
  2. bool? allowExternalPrincipals,
  3. String? clientToken,
  4. String? name,
})

Updates the specified resource share that you own.

May throw IdempotentParameterMismatchException. May throw MissingRequiredParameterException. May throw UnknownResourceException. May throw MalformedArnException. May throw InvalidClientTokenException. May throw InvalidParameterException. May throw OperationNotPermittedException. May throw ServerInternalException. May throw ServiceUnavailableException.

Parameter resourceShareArn : The Amazon Resource Name (ARN) of the resource share.

Parameter allowExternalPrincipals : Indicates whether principals outside your AWS organization can be associated with a resource share.

Parameter clientToken : A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

Parameter name : The name of the resource share.

Implementation

Future<UpdateResourceShareResponse> updateResourceShare({
  required String resourceShareArn,
  bool? allowExternalPrincipals,
  String? clientToken,
  String? name,
}) async {
  ArgumentError.checkNotNull(resourceShareArn, 'resourceShareArn');
  final $payload = <String, dynamic>{
    'resourceShareArn': resourceShareArn,
    if (allowExternalPrincipals != null)
      'allowExternalPrincipals': allowExternalPrincipals,
    if (clientToken != null) 'clientToken': clientToken,
    if (name != null) 'name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/updateresourceshare',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateResourceShareResponse.fromJson(response);
}