How to use untag_open_id_connect_provider method in localstack

Best Python code snippet using localstack_python

responses.py

Source:responses.py Github

copy

Full Screen

...791 tags = self._get_multi_param("Tags.member")792 iam_backend.tag_open_id_connect_provider(open_id_provider_arn, tags)793 template = self.response_template(TAG_OPEN_ID_CONNECT_PROVIDER)794 return template.render()795 def untag_open_id_connect_provider(self):796 open_id_provider_arn = self._get_param("OpenIDConnectProviderArn")797 tag_keys = self._get_multi_param("TagKeys.member")798 iam_backend.untag_open_id_connect_provider(open_id_provider_arn, tag_keys)799 template = self.response_template(UNTAG_OPEN_ID_CONNECT_PROVIDER)800 return template.render()801 def list_open_id_connect_provider_tags(self):802 open_id_provider_arn = self._get_param("OpenIDConnectProviderArn")803 marker = self._get_param("Marker")804 max_items = self._get_param("MaxItems", 100)805 tags, marker = iam_backend.list_open_id_connect_provider_tags(806 open_id_provider_arn, marker, max_items807 )808 template = self.response_template(LIST_OPEN_ID_CONNECT_PROVIDER_TAGS)809 return template.render(tags=tags, marker=marker)810 def delete_open_id_connect_provider(self):811 open_id_provider_arn = self._get_param("OpenIDConnectProviderArn")812 iam_backend.delete_open_id_connect_provider(open_id_provider_arn)...

Full Screen

Full Screen

aws_open_id_connect_provider.py

Source:aws_open_id_connect_provider.py Github

copy

Full Screen

...164 Tags=ansible_dict_to_boto3_tag_list(tags_to_set))165 changed |= True166 if tags_to_delete:167 print(f"Purging Tags for {arn}")168 self.connection.untag_open_id_connect_provider(169 OpenIDConnectProviderArn=arn,170 TagKeys=tags_to_delete)171 changed |= True172 return changed173 @AWSRetry.jittered_backoff()174 def _manage_thumbprints(self, arn, match, new_thumbprints, purge_thumbprints):175 changed = False176 if purge_thumbprints or len(new_thumbprints) > 5:177 print(f"Purge and Setting Thumbprints for {arn}")178 unique_thumbprints = set(new_thumbprints)179 to_be_set = new_thumbprints180 self.connection.update_open_id_connect_provider_thumbprint(181 OpenIDConnectProviderArn=arn,182 ThumbprintList=to_be_set)...

Full Screen

Full Screen

test_iam_oidc.py

Source:test_iam_oidc.py Github

copy

Full Screen

...203 response.should.have.key("Tags").length_of(2)204 response["Tags"].should.contain({"Key": "k1", "Value": "v1"})205 response["Tags"].should.contain({"Key": "k2", "Value": "v2"})206@mock_iam207def test_untag_open_id_connect_provider():208 client = boto3.client("iam", region_name="us-east-1")209 response = client.create_open_id_connect_provider(210 Url="https://example.com", ThumbprintList=[]211 )212 open_id_arn = response["OpenIDConnectProviderArn"]213 client.tag_open_id_connect_provider(214 OpenIDConnectProviderArn=open_id_arn,215 Tags=[{"Key": "k1", "Value": "v1"}, {"Key": "k2", "Value": "v2"}],216 )217 client.untag_open_id_connect_provider(218 OpenIDConnectProviderArn=open_id_arn, TagKeys=["k2"]219 )220 response = client.get_open_id_connect_provider(OpenIDConnectProviderArn=open_id_arn)221 response.should.have.key("Tags").length_of(1)222 response["Tags"].should.contain({"Key": "k1", "Value": "v1"})223@mock_iam224def test_list_open_id_connect_provider_tags():225 client = boto3.client("iam", region_name="us-east-1")226 response = client.create_open_id_connect_provider(227 Url="https://example.com",228 ThumbprintList=[],229 Tags=[{"Key": "k1", "Value": "v1"}, {"Key": "k2", "Value": "v2"}],230 )231 open_id_arn = response["OpenIDConnectProviderArn"]...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful