getSAMLProvider method

Future<GetSAMLProviderResponse> getSAMLProvider({
  1. required String sAMLProviderArn,
})

Returns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.

May throw NoSuchEntityException. May throw InvalidInputException. May throw ServiceFailureException.

Parameter sAMLProviderArn : The Amazon Resource Name (ARN) of the SAML provider resource object in IAM to get information about.

For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.

Implementation

Future<GetSAMLProviderResponse> getSAMLProvider({
  required String sAMLProviderArn,
}) async {
  ArgumentError.checkNotNull(sAMLProviderArn, 'sAMLProviderArn');
  _s.validateStringLength(
    'sAMLProviderArn',
    sAMLProviderArn,
    20,
    2048,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['SAMLProviderArn'] = sAMLProviderArn;
  final $result = await _protocol.send(
    $request,
    action: 'GetSAMLProvider',
    version: '2010-05-08',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetSAMLProviderRequest'],
    shapes: shapes,
    resultWrapper: 'GetSAMLProviderResult',
  );
  return GetSAMLProviderResponse.fromXml($result);
}