asApiKeyOrNull
Casts this RemoteAgentAuthorizationConfig as a ApiKey and retrieves its aws.sdk.kotlin.services.devopsagent.model.RemoteAgentApiKeyConfig value. Returns null if the RemoteAgentAuthorizationConfig is not a ApiKey.