/** * {@inheritdoc} * @see Scalr\Service\Aws\Ec2.AbstractEc2DataType::throwExceptionIfNotInitialized() */ protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->routeTableAssociationId === null) { throw new Ec2Exception(sprintf('routeTableAssociationId has not been initialized for the "%s" yet.', get_class($this))); } }
/** * {@inheritdoc} * @see Scalr\Service\Aws\Ec2.AbstractEc2DataType::throwExceptionIfNotInitialized() */ protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->keyName === null) { throw new Ec2Exception(sprintf('keyName property has not been initialized for the class "%s" yet', get_class($this))); } }
/** * {@inheritdoc} * @see Scalr\Service\Aws\Ec2.AbstractEc2DataType::throwExceptionIfNotInitialized() */ protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->groupName === null) { throw new Ec2Exception(sprintf('groupName has not been initialized for the "%s" yet!', get_class($this))); } }
/** * {@inheritdoc} * @see Scalr\Service\Aws\Ec2.AbstractEc2DataType::throwExceptionIfNotInitialized() */ protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->internetGatewayId === null) { throw new Ec2Exception(sprintf('internetGatewayId has not been initialized for the "%s" yet.', get_class($this))); } }
protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->volumeId === null) { throw new Ec2Exception(sprintf('volumeId has not been provided for the "%s" yet.', get_class($this))); } }
/** * {@inheritdoc} * @see Scalr\Service\Aws\Ec2.AbstractEc2DataType::throwExceptionIfNotInitialized() */ protected function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->groupName === null || $this->groupId === null) { throw new Ec2Exception(sprintf("groupName and groupId have not been initialized for the %s yet.", get_class($this))); } }
public function throwExceptionIfNotInitialized() { parent::throwExceptionIfNotInitialized(); if ($this->reservedInstancesId === null) { throw new Ec2Exception(sprintf('reservedInstancesId property has not been initialized for the class "%s" yet.', get_class($this))); } }
/** * DeleteSubnet action * * Deletes a subnet from a VPC. You must terminate all running instances in the subnet before deleting it, * otherwise Amazon VPC returns an error * * @return bool Returns the TRUE on success. * @throws ClientException * @throws Ec2Exception */ public function delete() { parent::throwExceptionIfNotInitialized(); return $this->getEc2()->subnet->delete($this->subnetId); }