describePortfolioShareStatus method

Future<DescribePortfolioShareStatusOutput> describePortfolioShareStatus({
  1. required String portfolioShareToken,
})

Gets the status of the specified portfolio share operation. This API can only be called by the management account in the organization or by a delegated admin.

May throw ResourceNotFoundException. May throw InvalidParametersException. May throw OperationNotSupportedException.

Parameter portfolioShareToken : The token for the portfolio share operation. This token is returned either by CreatePortfolioShare or by DeletePortfolioShare.

Implementation

Future<DescribePortfolioShareStatusOutput> describePortfolioShareStatus({
  required String portfolioShareToken,
}) async {
  ArgumentError.checkNotNull(portfolioShareToken, 'portfolioShareToken');
  _s.validateStringLength(
    'portfolioShareToken',
    portfolioShareToken,
    1,
    100,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWS242ServiceCatalogService.DescribePortfolioShareStatus'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'PortfolioShareToken': portfolioShareToken,
    },
  );

  return DescribePortfolioShareStatusOutput.fromJson(jsonResponse.body);
}