/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/community/aws/plugins/modules/ |
H A D | ecs_tag.py | 134 resource_arn = description['clusters'][0]['clusterArn'] 137 resource_arn = description['tasks'][0]['taskArn'] 140 resource_arn = description['services'][0]['serviceArn'] 143 resource_arn = description['taskDefinition']['taskDefinitionArn'] 146 resource_arn = description['containerInstances'][0]['containerInstanceArn'] 152 return resource_arn 182 resource_arn = get_arn(ecs, module, cluster_name, resource_type, resource) 184 current_tags = get_tags(ecs, module, resource_arn) 202 ecs.untag_resource(resourceArn=resource_arn, tagKeys=list(remove_tags.keys())) 213 ecs.tag_resource(resourceArn=resource_arn, tags=tags) [all …]
|
H A D | rds_snapshot.py | 278 def ensure_tags(client, module, resource_arn, existing_tags, tags, purge_tags): argument 285 …client.add_tags_to_resource(ResourceName=resource_arn, Tags=ansible_dict_to_boto3_tag_list(tags_to… 287 module.fail_json_aws(e, "Couldn't add tags to snapshot {0}".format(resource_arn)) 290 client.remove_tags_from_resource(ResourceName=resource_arn, TagKeys=tags_to_remove) 292 module.fail_json_aws(e, "Couldn't remove tags from snapshot {0}".format(resource_arn))
|
H A D | redshift.py | 291 resource_arn = "arn:aws:redshift:{0}:{1}:cluster:{2}" .format(region, account_id, identifier) 299 … redshift.create_tags(ResourceName=resource_arn, Tags=ansible_dict_to_boto3_tag_list(tags_to_add)) 305 redshift.delete_tags(ResourceName=resource_arn, TagKeys=tags_to_remove)
|
/dports/devel/py-moto/moto-2.2.16/moto/route53resolver/ |
H A D | responses.py | 106 resource_arn = self._get_param("ResourceArn") 111 resource_arn=resource_arn, 125 resource_arn = self._get_param("ResourceArn") 127 self.route53resolver_backend.tag_resource(resource_arn=resource_arn, tags=tags) 132 resource_arn = self._get_param("ResourceArn") 135 resource_arn=resource_arn, tag_keys=tag_keys
|
H A D | models.py | 414 self, resource_arn, next_token=None, max_results=None, argument 417 self._matched_arn(resource_arn) 418 return self.tagger.list_tags_for_resource(resource_arn).get("Tags") 420 def _matched_arn(self, resource_arn): argument 423 if resolver_endpoint.arn == resource_arn: 429 def tag_resource(self, resource_arn, tags): argument 431 self._matched_arn(resource_arn) 437 self.tagger.tag_resource(resource_arn, tags) 439 def untag_resource(self, resource_arn, tag_keys): argument 441 self._matched_arn(resource_arn) [all …]
|
/dports/devel/py-moto/moto-2.2.16/moto/mediaconnect/ |
H A D | models.py | 63 self.resource_arn = kwargs.get("resource_arn") 68 "resourceArn": self.resource_arn, 170 def tag_resource(self, resource_arn, tags): argument 171 if resource_arn in self._resources: 172 resource = self._resources[resource_arn] 174 resource = Resource(resource_arn=resource_arn) 176 self._resources[resource_arn] = resource 179 def list_tags_for_resource(self, resource_arn): argument 180 if resource_arn in self._resources: 181 resource = self._resources[resource_arn]
|
H A D | responses.py | 69 resource_arn = unquote(self._get_param("resourceArn")) 72 resource_arn=resource_arn, tags=tags, 77 resource_arn = unquote(self._get_param("resourceArn")) 79 resource_arn=resource_arn,
|
/dports/devel/py-moto/moto-2.2.16/moto/elasticbeanstalk/ |
H A D | responses.py | 57 resource_arn = self._get_param("ResourceArn") 62 self.backend.update_tags_for_resource(resource_arn, tags_to_add, tags_to_remove) 67 resource_arn = self._get_param("ResourceArn") 68 tags = self.backend.list_tags_for_resource(resource_arn) 71 return template.render(tags=tags, arn=resource_arn,)
|
H A D | models.py | 118 def update_tags_for_resource(self, resource_arn, tags_to_add, tags_to_remove): argument 120 res = self._find_environment_by_arn(resource_arn) 123 "Resource not found for ARN '{}'.".format(resource_arn) 132 def list_tags_for_resource(self, resource_arn): argument 134 res = self._find_environment_by_arn(resource_arn) 137 "Resource not found for ARN '{}'.".format(resource_arn)
|
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/modules/cloud/amazon/ |
H A D | rds_snapshot.py | 278 def ensure_tags(client, module, resource_arn, existing_tags, tags, purge_tags): argument 285 …client.add_tags_to_resource(ResourceName=resource_arn, Tags=ansible_dict_to_boto3_tag_list(tags_to… 287 module.fail_json_aws(e, "Couldn't add tags to snapshot {0}".format(resource_arn)) 290 client.remove_tags_from_resource(ResourceName=resource_arn, TagKeys=tags_to_remove) 292 module.fail_json_aws(e, "Couldn't remove tags from snapshot {0}".format(resource_arn))
|
/dports/devel/py-moto/moto-2.2.16/moto/xray/ |
H A D | models.py | 12 def __init__(self, instance_id, hostname, resource_arn, records): argument 15 self.resource_arn = resource_arn 22 resource_arn = json.get("ResourceARN") 25 return cls(instance_id, hostname, resource_arn, telemetry_records)
|
/dports/devel/py-moto/moto-2.2.16/moto/cloudwatch/ |
H A D | responses.py | 315 resource_arn = self._get_param("ResourceARN") 317 tags = self.cloudwatch_backend.list_tags_for_resource(resource_arn) 324 resource_arn = self._get_param("ResourceARN") 327 self.cloudwatch_backend.tag_resource(resource_arn, tags) 334 resource_arn = self._get_param("ResourceARN") 337 self.cloudwatch_backend.untag_resource(resource_arn, tag_keys)
|
/dports/devel/py-moto/moto-2.2.16/moto/sns/ |
H A D | models.py | 795 def list_tags_for_resource(self, resource_arn): argument 796 if resource_arn not in self.topics: 799 return self.topics[resource_arn]._tags 801 def tag_resource(self, resource_arn, tags): argument 802 if resource_arn not in self.topics: 805 updated_tags = self.topics[resource_arn]._tags.copy() 811 self.topics[resource_arn]._tags = updated_tags 813 def untag_resource(self, resource_arn, tag_keys): argument 814 if resource_arn not in self.topics: 818 self.topics[resource_arn]._tags.pop(key, None)
|
/dports/devel/py-moto/moto-2.2.16/moto/stepfunctions/ |
H A D | models.py | 551 def tag_resource(self, resource_arn, tags): argument 553 state_machine = self.describe_state_machine(resource_arn) 556 raise ResourceNotFound(resource_arn) 558 def untag_resource(self, resource_arn, tag_keys): argument 560 state_machine = self.describe_state_machine(resource_arn) 563 raise ResourceNotFound(resource_arn)
|
/dports/devel/py-moto/moto-2.2.16/moto/ecs/ |
H A D | responses.py | 360 resource_arn = self._get_param("resourceArn") 361 tags = self.ecs_backend.list_tags_for_resource(resource_arn) 365 resource_arn = self._get_param("resourceArn") 367 results = self.ecs_backend.tag_resource(resource_arn, tags) 371 resource_arn = self._get_param("resourceArn") 373 results = self.ecs_backend.untag_resource(resource_arn, tag_keys)
|
H A D | models.py | 1530 def _parse_resource_arn(resource_arn): argument 1533 resource_arn, 1541 def list_tags_for_resource(self, resource_arn): argument 1543 parsed_arn = self._parse_resource_arn(resource_arn) 1547 if revision.arn == resource_arn: 1553 if service.arn == resource_arn: 1564 def tag_resource(self, resource_arn, tags): argument 1566 parsed_arn = self._parse_resource_arn(resource_arn) 1569 if service.arn == resource_arn: 1588 def untag_resource(self, resource_arn, tag_keys): argument [all …]
|
/dports/devel/py-moto/moto-2.2.16/moto/config/ |
H A D | exceptions.py | 323 def __init__(self, resource_arn): argument 327 resource_arn=resource_arn
|
H A D | models.py | 1745 def _match_arn(self, resource_arn): argument 1766 if resource_arn == getattr(config, resource["arn_attribute"]): 1771 raise ResourceNotFoundException(resource_arn) 1774 def tag_resource(self, resource_arn, tags): argument 1780 matched_config = self._match_arn(resource_arn) 1785 def untag_resource(self, resource_arn, tag_keys): argument 1795 matched_config = self._match_arn(resource_arn) 1801 self, resource_arn, limit, next_token argument 1812 matched_config = self._match_arn(resource_arn)
|
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/module_utils/aws/ |
H A D | rds.py | 214 def ensure_tags(client, module, resource_arn, existing_tags, tags, purge_tags): argument 222 … parameters={'ResourceName': resource_arn, 'Tags': ansible_dict_to_boto3_tag_list(tags_to_add)} 227 parameters={'ResourceName': resource_arn, 'TagKeys': tags_to_remove}
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/amazon/aws/plugins/module_utils/ |
H A D | rds.py | 220 def ensure_tags(client, module, resource_arn, existing_tags, tags, purge_tags): argument 228 … parameters={'ResourceName': resource_arn, 'Tags': ansible_dict_to_boto3_tag_list(tags_to_add)} 233 parameters={'ResourceName': resource_arn, 'TagKeys': tags_to_remove}
|
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/plugins/inventory/ |
H A D | aws_rds.py | 110 resource_arn = host['DBInstanceArn'] 112 resource_arn = host['DBClusterArn'] 115 tags = connection.list_tags_for_resource(ResourceName=resource_arn)['TagList']
|
/dports/sysutils/ansible/ansible-4.7.0/ansible_collections/amazon/aws/plugins/inventory/ |
H A D | aws_rds.py | 158 resource_arn = host['DBInstanceArn'] 160 resource_arn = host['DBClusterArn'] 163 tags = connection.list_tags_for_resource(ResourceName=resource_arn)['TagList']
|
/dports/devel/py-moto/moto-2.2.16/moto/ecr/ |
H A D | models.py | 373 def _parse_resource_arn(resource_arn) -> EcrRepositoryArn: argument 374 match = re.match(ECR_REPOSITORY_ARN_PATTERN, resource_arn)
|
/dports/devel/py-aws-sam-translator/aws-sam-translator-1.39.0/samtranslator/model/stepfunctions/ |
H A D | events.py | 329 resource_arn = resource.get_runtime_attr("arn")
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/rusoto_cloudwatch-0.44.0/src/ |
H A D | generated.rs | 3058 pub resource_arn: String, field 3070 params.put(&format!("{}{}", prefix, "ResourceARN"), &obj.resource_arn); in serialize() 4786 pub resource_arn: String, field 4800 params.put(&format!("{}{}", prefix, "ResourceARN"), &obj.resource_arn); in serialize() 4896 pub resource_arn: String, field 4910 params.put(&format!("{}{}", prefix, "ResourceARN"), &obj.resource_arn); in serialize()
|