asEc2Configuration
Casts this ComputeConfiguration as a Ec2Configuration and retrieves its aws.sdk.kotlin.services.bedrockagentcorecontrol.model.Ec2Configuration value. Throws an exception if the ComputeConfiguration is not a Ec2Configuration.