updateIdentitySource
inline suspend fun VerifiedPermissionsClient.updateIdentitySource(crossinline block: UpdateIdentitySourceRequest.Builder.() -> Unit): UpdateIdentitySourceResponse
Updates the specified identity source to use a new identity provider (IdP), or to change the mapping of identities from the IdP to a different principal entity type.
Verified Permissions is eventually consistent. It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.
Samples
import aws.sdk.kotlin.services.verifiedpermissions.model.UpdateCognitoUserPoolConfiguration
import aws.sdk.kotlin.services.verifiedpermissions.model.UpdateConfiguration
fun main() {
//sampleStart
// The following example updates the configuration of the specified identity source with a new
// configuration.
val resp = verifiedPermissionsClient.updateIdentitySource {
identitySourceId = "ISEXAMPLEabcdefg111111"
policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
updateConfiguration = UpdateConfiguration.CognitoUserPoolConfiguration(UpdateCognitoUserPoolConfiguration {
userPoolArn = "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
clientIds = listOf<String>(
"a1b2c3d4e5f6g7h8i9j0kalbmc"
)
}
)
}
//sampleEnd
}