updateOpenIDConnectProviderThumbprint method
Replaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.
The list that you pass with this operation completely replaces the existing list of thumbprints. (The lists are not merged.)
Typically, you need to update a thumbprint only when the identity provider's certificate changes, which occurs rarely. However, if the provider's certificate does change, any attempt to assume an IAM role that specifies the OIDC provider as a principal fails until the certificate thumbprint is updated.
May throw InvalidInputException. May throw NoSuchEntityException. May throw ServiceFailureException.
Parameter openIDConnectProviderArn
:
The Amazon Resource Name (ARN) of the IAM OIDC provider resource object
for which you want to update the thumbprint. You can get a list of OIDC
provider ARNs by using the ListOpenIDConnectProviders operation.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Parameter thumbprintList
:
A list of certificate thumbprints that are associated with the specified
IAM OpenID Connect provider. For more information, see
CreateOpenIDConnectProvider.
Implementation
Future<void> updateOpenIDConnectProviderThumbprint({
required String openIDConnectProviderArn,
required List<String> thumbprintList,
}) async {
ArgumentError.checkNotNull(
openIDConnectProviderArn, 'openIDConnectProviderArn');
_s.validateStringLength(
'openIDConnectProviderArn',
openIDConnectProviderArn,
20,
2048,
isRequired: true,
);
ArgumentError.checkNotNull(thumbprintList, 'thumbprintList');
final $request = <String, dynamic>{};
$request['OpenIDConnectProviderArn'] = openIDConnectProviderArn;
$request['ThumbprintList'] = thumbprintList;
await _protocol.send(
$request,
action: 'UpdateOpenIDConnectProviderThumbprint',
version: '2010-05-08',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['UpdateOpenIDConnectProviderThumbprintRequest'],
shapes: shapes,
);
}