// Terminates the specified environment.
Terminates the specified environment.
// Terminates the specified environment .
func (c *Client) TerminateEnvironment(ctx context.Context, params *TerminateEnvironmentInput, optFns ...func(*Options)) (*TerminateEnvironmentOutput, error) {
	if params == nil {
		params = &TerminateEnvironmentInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "TerminateEnvironment", params, optFns, addOperationTerminateEnvironmentMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*TerminateEnvironmentOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) TerminateEnvironment ( ctx context . Context , params * TerminateEnvironmentInput , optFns ... func ( * Options ) ) ( * TerminateEnvironmentOutput , error ) { if params == nil { params = & TerminateEnvironmentInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationTerminateEnvironmentMiddlewares ) if err != nil { return nil , err } out := result . ( * TerminateEnvironmentOutput ) out . ResultMetadata = metadata return out , nil }
Terminates the specified environment.
Terminates the specified environment .