asEnvironment

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