asComponent

Casts this DeploymentState as a Component and retrieves its aws.sdk.kotlin.services.proton.model.ComponentState value. Throws an exception if the DeploymentState is not a Component.