IAM / Client / update_open_id_connect_provider
update_open_id_connect_provider¶
- IAM.Client.update_open_id_connect_provider(**kwargs)¶
Updates the configuration of an existing IAM OpenID Connect (OIDC) identity provider resource object. Use this operation to set, change, or remove the trusted identity propagation context provider, and to associate or disassociate an IAM Identity Center instance with the provider.
Note
This operation does not update the OIDC provider’s server certificate thumbprints. Thumbprints are managed only by the UpdateOpenIDConnectProviderThumbprint operation. To change a provider’s thumbprints, call that operation instead.
To remove a configuration rather than replace it, use the
RemoveContextProviderandRemoveIdentityCenterInstanceparameters. For each configuration, provide either the new value or the correspondingRemoveflag in a single request, but not both. For example, specifying bothContextProviderandRemoveContextProviderin the same request is not allowed.A single request can change either the context provider or the IAM Identity Center association, but not both. To change both, make separate
UpdateOpenIDConnectProviderrequests. To remove the context provider, first remove the IAM Identity Center association in a separate request.To control who can configure trusted identity propagation on an OIDC provider, use the iam:EnableIdentityPropagation, iam:EnableIdentityCenterAssociation, iam:ResourceIdentityProviderIssuers, iam:RequestIdentityCenterInstanceArn, and iam:ResourceIdentityCenterInstanceArn condition keys in IAM policies. The
Requestkeys contain the values in the request. TheResourcekeys contain the values stored on the provider.See also: AWS API Documentation
Request Syntax
response = client.update_open_id_connect_provider( OpenIDConnectProviderArn='string', ContextProvider={ 'KeyDefinitionList': [ { 'SourceKey': 'string', 'TargetKey': 'string' }, ], 'SubjectSourceKey': 'string', 'SubjectTypeValue': 'string', 'SubjectTypeSourceKey': 'string' }, IdentityCenterInstanceArn='string', RemoveContextProvider=True|False, RemoveIdentityCenterInstance=True|False )
- Parameters:
OpenIDConnectProviderArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the IAM OIDC provider resource object to update. You can get a list of OIDC provider resource ARNs by using the ListOpenIDConnectProviders operation.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
ContextProvider (dict) –
The trusted identity propagation context provider configuration to set on the OIDC provider. This configuration defines the subject mapping and the source-to-target key mappings that are used when trusted context is injected. For more information, see ContextProvider.
To remove the existing context provider instead of replacing it, use
RemoveContextProvider. Do not specify bothContextProviderandRemoveContextProviderin the same request.KeyDefinitionList (list) –
A list of source-to-target key mappings that define how keys from the external identity provider’s assertion or token are mapped into trusted context keys. You can specify from 0 to 10 mappings.
(dict) –
Defines a single mapping from a source key in the external identity provider’s assertion or token to a target trusted context key.
This data type is used as a member of the ContextProvider data type.
SourceKey (string) – [REQUIRED]
The key in the external identity provider’s assertion or token to read the value from.
The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can’t start or end with a space or contain two spaces in a row.TargetKey (string) –
The trusted context key to map the source value into.
The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can’t start or end with a space or contain two spaces in a row.
SubjectSourceKey (string) – [REQUIRED]
The source key that is used to derive the subject for the injected trusted context. This value identifies the claim or attribute in the external identity provider’s assertion or token that supplies the subject.
The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can’t start or end with a space or contain two spaces in a row.SubjectTypeValue (string) –
A static value for the subject type, such as
userorworkload.This parameter is optional and is mutually exclusive with
SubjectTypeSourceKey. Specify eitherSubjectTypeValueorSubjectTypeSourceKey, but not both.SubjectTypeSourceKey (string) –
The source key that supplies the subject type from the external identity provider’s assertion or token.
The key can contain only ASCII letters (A-Z, a-z), numbers (0-9), single spaces, and the following characters:
_ . : / = + - @ #. It can’t start or end with a space or contain two spaces in a row.This parameter is mutually exclusive with
SubjectTypeValue. Specify eitherSubjectTypeSourceKeyorSubjectTypeValue, but not both.
IdentityCenterInstanceArn (string) –
The Amazon Resource Name (ARN) of the IAM Identity Center instance to associate with the OIDC provider.
For the format, see InstanceMetadata in the IAM Identity Center API Reference.
To disassociate the currently associated instance instead of changing it, use
RemoveIdentityCenterInstance. Do not specify bothIdentityCenterInstanceArnandRemoveIdentityCenterInstancein the same request.RemoveContextProvider (boolean) –
Specifies whether to remove the existing context provider configuration from the OIDC provider. Set this value to
trueto remove the context provider.This parameter is mutually exclusive with
ContextProvider. In a single request, specify either a newContextProvidervalue orRemoveContextProvider, but not both.RemoveIdentityCenterInstance (boolean) –
Specifies whether to disassociate the IAM Identity Center instance from the OIDC provider. Set this value to
trueto remove the association.This parameter is mutually exclusive with
IdentityCenterInstanceArn. In a single request, specify either a newIdentityCenterInstanceArnvalue orRemoveIdentityCenterInstance, but not both.
- Returns:
None
Exceptions