PHP 클래스 Scalr\Service\Aws\Ec2\Handler\TagHandler

부터: 23.01.2013
저자: Vitaliy Demidov ([email protected])
상속: extends Scalr\Service\Aws\Ec2\AbstractEc2Handler
파일 보기 프로젝트 열기: scalr/scalr

공개 메소드들

메소드 설명
create ( ListDataType | array | string $resourceIdList, Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array $tagList ) : boolean CreateTags action
delete ( ListDataType | array | string $resourceIdList, Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array $tagList ) : boolean DeleteTags action

메소드 상세

create() 공개 메소드

Adds or overwrites one or more tags for the specified EC2 resource or resources. Each resource can have a maximum of 10 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.
public create ( ListDataType | array | string $resourceIdList, Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array $tagList ) : boolean
$resourceIdList Scalr\Service\Aws\DataType\ListDataType | array | string The ID of a resource to tag. For example, ami-1a2b3c4d. You can specify multiple resources to assign the tags to.
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array The key/value pair list of the Tags.
리턴 boolean Returns true on success or throws an exception otherwise

delete() 공개 메소드

Deletes a specific set of tags from a specific set of resources. This call is designed to follow a DescribeTags call. You first determine what tags a resource has, and then you call DeleteTags with the resource ID and the specific tags you want to delete.
public delete ( ListDataType | array | string $resourceIdList, Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array $tagList ) : boolean
$resourceIdList Scalr\Service\Aws\DataType\ListDataType | array | string The ID of a resource to tag. For example, ami-1a2b3c4d. You can specify multiple resources to assign the tags to.
$tagList Scalr\Service\Aws\Ec2\DataType\ResourceTagSetList | ResourceTagSetData | array The key/value pair list of the Tags.
리턴 boolean Returns true on success or throws an exception otherwise