promoteResourceShareCreatedFromPolicy method

Future<PromoteResourceShareCreatedFromPolicyResponse> promoteResourceShareCreatedFromPolicy({
  1. required String resourceShareArn,
})

Resource shares that were created by attaching a policy to a resource are visible only to the resource share owner, and the resource share cannot be modified in AWS RAM.

Use this API action to promote the resource share. When you promote the resource share, it becomes:

  • Visible to all principals that it is shared with.
  • Modifiable in AWS RAM.

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

Parameter resourceShareArn : The ARN of the resource share to promote.

Implementation

Future<PromoteResourceShareCreatedFromPolicyResponse>
    promoteResourceShareCreatedFromPolicy({
  required String resourceShareArn,
}) async {
  ArgumentError.checkNotNull(resourceShareArn, 'resourceShareArn');
  final $query = <String, List<String>>{
    'resourceShareArn': [resourceShareArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'POST',
    requestUri: '/promoteresourcesharecreatedfrompolicy',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return PromoteResourceShareCreatedFromPolicyResponse.fromJson(response);
}