class_docstr: A wrapper around Aliyun SDK. We use this wrapper in aliyun node provider.
  
  Parameters:
      access_key: The AccessKey ID of your aliyun account.
      access_key_secret: The AccessKey secret of your aliyun account.
      region_id: A region is a geographic area where a data center resides.
                 Region_id is the ID of region (e.g., cn-hangzhou,
                 us-west-1, etc.)
      max_retries: The maximum number of retries each connection.
class_docstr_tok: ["A","wrapper","around","Aliyun","SDK",".","We","use","this","wrapper","in","aliyun","node","provider",".","Parameters",":","access_key",":","The","AccessKey","ID","of","your","aliyun","account",".","access_key_secret",":","The","AccessKey","secret","of","your","aliyun","account",".","region_id",":","A","region","is","a","geographic","area","where","a","data","center","resides",".","Region_id","is","the","ID","of","region","(","e.g.",",","cn-hangzhou",",","us-west-1",",","etc",".",")","max_retries",":","The","maximum","number","of","retries","each","connection","."]
docstr: Create and bind tags to specified ECS resources.
  
  :param resource_ids: The IDs of N resources.
  :param tags: The tags of the resource.
  :param resource_type: The type of the resource.
docstr_tok: ["Create","and","bind","tags","to","specified","ECS","resources",".",":","param","resource_ids",":","The","IDs","of","N","resources",".",":","param","tags",":","The","tags","of","the","resource",".",":","param","resource_type",":","The","type","of","the","resource","."]
code: def tag_resource(self, resource_ids, tags, resource_type="instance"):
      """Create and bind tags to specified ECS resources.
  
      :param resource_ids: The IDs of N resources.
      :param tags: The tags of the resource.
      :param resource_type: The type of the resource.
      """
      request = TagResourcesRequest()
      request.set_Tags(tags)
      request.set_ResourceType(resource_type)
      request.set_ResourceIds(resource_ids)
      response = self._send_request(request)
      if response is not None:
          logging.info(
              "instance %s create tag successfully.", resource_ids
          )
      else:
          logging.error("instance %s create tag failed.", resource_ids)
  
imports: import json
  import logging
  from aliyunsdkcore import client
  from aliyunsdkcore.acs_exception.exceptions import ClientException, ServerException
  from aliyunsdkecs.request.v20140526.AllocatePublicIpAddressRequest import AllocatePublicIpAddressRequest
  from aliyunsdkecs.request.v20140526.AuthorizeSecurityGroupRequest import AuthorizeSecurityGroupRequest
  from aliyunsdkecs.request.v20140526.CreateInstanceRequest import CreateInstanceRequest
  from aliyunsdkecs.request.v20140526.CreateKeyPairRequest import CreateKeyPairRequest
  from aliyunsdkecs.request.v20140526.CreateSecurityGroupRequest import CreateSecurityGroupRequest
  from aliyunsdkecs.request.v20140526.CreateVpcRequest import CreateVpcRequest
  from aliyunsdkecs.request.v20140526.CreateVSwitchRequest import CreateVSwitchRequest
  from aliyunsdkecs.request.v20140526.DeleteInstanceRequest import DeleteInstanceRequest
  from aliyunsdkecs.request.v20140526.DeleteInstancesRequest import DeleteInstancesRequest
  from aliyunsdkecs.request.v20140526.DeleteKeyPairsRequest import DeleteKeyPairsRequest
  from aliyunsdkecs.request.v20140526.DescribeInstancesRequest import DescribeInstancesRequest
  from aliyunsdkecs.request.v20140526.DescribeKeyPairsRequest import DescribeKeyPairsRequest
  from aliyunsdkecs.request.v20140526.DescribeSecurityGroupsRequest import DescribeSecurityGroupsRequest
  from aliyunsdkecs.request.v20140526.DescribeVpcsRequest import DescribeVpcsRequest
  from aliyunsdkecs.request.v20140526.DescribeVSwitchesRequest import DescribeVSwitchesRequest
  from aliyunsdkecs.request.v20140526.ImportKeyPairRequest import ImportKeyPairRequest
  from aliyunsdkecs.request.v20140526.RunInstancesRequest import RunInstancesRequest
  from aliyunsdkecs.request.v20140526.StartInstanceRequest import StartInstanceRequest
  from aliyunsdkecs.request.v20140526.StopInstanceRequest import StopInstanceRequest
  from aliyunsdkecs.request.v20140526.StopInstancesRequest import StopInstancesRequest
  from aliyunsdkecs.request.v20140526.TagResourcesRequest import TagResourcesRequest
label_desc: Use image node_id 11 for calling the AcsClient obj's underlying member method code with example usage: obj.tag_resource(resource_ids, tags, resource_type) without return types