asApiKey
Casts this RemoteAgentAuthorizationConfig as a ApiKey and retrieves its aws.sdk.kotlin.services.devopsagent.model.RemoteAgentApiKeyConfig value. Throws an exception if the RemoteAgentAuthorizationConfig is not a ApiKey.
Casts this RemoteAgentAuthorizationConfig as a ApiKey and retrieves its aws.sdk.kotlin.services.devopsagent.model.RemoteAgentApiKeyConfig value. Throws an exception if the RemoteAgentAuthorizationConfig is not a ApiKey.