tcawsprovisioner/tcawsprovisioner.go
func (awsProvisioner *AwsProvisioner) State(workerType string) error {
	cd := tcclient.Client(*awsProvisioner)
	_, _, err := (&cd).APICall(nil, "GET", "/state/"+url.QueryEscape(workerType), nil, nil)
	return err
}
func (awsProvisioner *AwsProvisioner) State(workerType string) error {
	cd := tcclient.Client(*awsProvisioner)
	_, _, err := (&cd).APICall(nil, "GET", "/state/"+url.QueryEscape(workerType), nil, nil)
	return err
}
// Return the state of a given workertype as stored by the provisioner.
// This state is stored as three lists: 1 for running instances, 1 for
// pending requests.  The `summary` property contains an updated summary
// similar to that returned from `listWorkerTypeSummaries`.
//
// See https://docs.taskcluster.net/reference/core/aws-provisioner/api-docs#state