remove_tags
¶
remove_tags(
*,
config_overrides: Optional[ElasticLoadBalancingv2ClientConfig] = 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.
>>> 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/elastic_load_balancingv2.py
3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 | |