updateSAMLProvider method
Updates the metadata document for an existing SAML provider resource object.
May throw NoSuchEntityException. May throw InvalidInputException. May throw LimitExceededException. May throw ServiceFailureException.
Parameter sAMLMetadataDocument
:
An XML document generated by an identity provider (IdP) that supports SAML
2.0. The document includes the issuer's name, expiration information, and
keys that can be used to validate the SAML authentication response
(assertions) that are received from the IdP. You must generate the
metadata document using the identity management software that is used as
your organization's IdP.
Parameter sAMLProviderArn
:
The Amazon Resource Name (ARN) of the SAML provider to update.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Implementation
Future<UpdateSAMLProviderResponse> updateSAMLProvider({
required String sAMLMetadataDocument,
required String sAMLProviderArn,
}) async {
ArgumentError.checkNotNull(sAMLMetadataDocument, 'sAMLMetadataDocument');
_s.validateStringLength(
'sAMLMetadataDocument',
sAMLMetadataDocument,
1000,
10000000,
isRequired: true,
);
ArgumentError.checkNotNull(sAMLProviderArn, 'sAMLProviderArn');
_s.validateStringLength(
'sAMLProviderArn',
sAMLProviderArn,
20,
2048,
isRequired: true,
);
final $request = <String, dynamic>{};
$request['SAMLMetadataDocument'] = sAMLMetadataDocument;
$request['SAMLProviderArn'] = sAMLProviderArn;
final $result = await _protocol.send(
$request,
action: 'UpdateSAMLProvider',
version: '2010-05-08',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateSAMLProviderRequest'],
shapes: shapes,
resultWrapper: 'UpdateSAMLProviderResult',
);
return UpdateSAMLProviderResponse.fromXml($result);
}