remove_tags
async
¶
remove_tags(
*,
config_overrides: Optional[AsyncElasticLoadBalancingv2ClientConfig] = None,
resource_arns: Optional[ResourceArns] = None,
tag_keys: Optional[TagKeys] = None,
) -> RemoveTagsOutput
Removes the specified tags from the specified Elastic Load Balancing resources. You can remove the tags for one or more Application Load Balancers, Network Load Balancers, Gateway Load Balancers, target groups, listeners, or rules.
Parameters:
-
resource_arns(Optional[ResourceArns], default:None) –The Amazon Resource Name (ARN) of the resource.
-
tag_keys(Optional[TagKeys], default:None) –The tag keys for the tags to remove.
Raises:
-
ListenerNotFoundException–The specified listener does not exist.
-
LoadBalancerNotFoundException–The specified load balancer does not exist.
-
RuleNotFoundException–The specified rule does not exist.
-
TargetGroupNotFoundException–The specified target group does not exist.
-
TooManyTagsException–You've reached the limit on the number of tags for this resource.
-
TrustStoreNotFoundException–The specified trust store does not exist.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To remove tags from a load balancer This example removes the specified tags from the specified load balancer.
>>> await client.remove_tags(resource_arns=['arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188'], tag_keys=['project', 'department'])
Source code in docs_src/capo_elastic_load_balancing_v2/_services/async_elastic_load_balancingv2.py
3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 | |