コード例 #1
0
 /**
  * {@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)));
     }
 }
コード例 #2
0
ファイル: KeyPairData.php プロジェクト: recipe/scalr
 /**
  * {@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)));
     }
 }
コード例 #3
0
ファイル: PlacementGroupData.php プロジェクト: mheydt/scalr
 /**
  * {@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)));
     }
 }
コード例 #4
0
ファイル: InternetGatewayData.php プロジェクト: mheydt/scalr
 /**
  * {@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)));
     }
 }
コード例 #5
0
ファイル: VolumeData.php プロジェクト: recipe/scalr
 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)));
     }
 }
コード例 #6
0
ファイル: SecurityGroupData.php プロジェクト: mheydt/scalr
 /**
  * {@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)));
     }
 }
コード例 #7
0
ファイル: ReservedInstanceData.php プロジェクト: scalr/scalr
 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)));
     }
 }
コード例 #8
0
ファイル: SubnetData.php プロジェクト: mheydt/scalr
 /**
  * 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);
 }