How to use list_retirable_grants method in localstack

Best Python code snippet using localstack_python

aws_kms_info.py

Source:aws_kms_info.py Github

copy

Full Screen

...141 return paginator.paginate(142 RetiringPrincipal=module.params['retiring_principal'],143 ), True144 else:145 return client.list_retirable_grants(146 RetiringPrincipal=module.params['retiring_principal'],147 ), False148 else:149 return None, False150 except (BotoCoreError, ClientError) as e:151 module.fail_json_aws(e, msg='Failed to fetch Amazon kms details')152def main():153 argument_spec = dict(154 id=dict(required=False, aliases=['key_id']),155 retiring_principal=dict(required=False),156 list_aliases=dict(required=False, type=bool),157 list_grants=dict(required=False, type=bool),158 list_key_policies=dict(required=False, type=bool),159 list_keys=dict(required=False, type=bool),...

Full Screen

Full Screen

__init__.pyi

Source:__init__.pyi Github

copy

Full Screen

1"""2Main interface for kms service.3Usage::4 ```python5 import boto36 from mypy_boto3_kms import (7 Client,8 DescribeCustomKeyStoresPaginator,9 KMSClient,10 ListAliasesPaginator,11 ListGrantsPaginator,12 ListKeyPoliciesPaginator,13 ListKeysPaginator,14 ListResourceTagsPaginator,15 ListRetirableGrantsPaginator,16 )17 session = boto3.Session()18 client: KMSClient = boto3.client("kms")19 session_client: KMSClient = session.client("kms")20 describe_custom_key_stores_paginator: DescribeCustomKeyStoresPaginator = client.get_paginator("describe_custom_key_stores")21 list_aliases_paginator: ListAliasesPaginator = client.get_paginator("list_aliases")22 list_grants_paginator: ListGrantsPaginator = client.get_paginator("list_grants")23 list_key_policies_paginator: ListKeyPoliciesPaginator = client.get_paginator("list_key_policies")24 list_keys_paginator: ListKeysPaginator = client.get_paginator("list_keys")25 list_resource_tags_paginator: ListResourceTagsPaginator = client.get_paginator("list_resource_tags")26 list_retirable_grants_paginator: ListRetirableGrantsPaginator = client.get_paginator("list_retirable_grants")27 ```28"""29from .client import KMSClient30from .paginator import (31 DescribeCustomKeyStoresPaginator,32 ListAliasesPaginator,33 ListGrantsPaginator,34 ListKeyPoliciesPaginator,35 ListKeysPaginator,36 ListResourceTagsPaginator,37 ListRetirableGrantsPaginator,38)39Client = KMSClient40__all__ = (41 "Client",42 "DescribeCustomKeyStoresPaginator",43 "KMSClient",44 "ListAliasesPaginator",45 "ListGrantsPaginator",46 "ListKeyPoliciesPaginator",47 "ListKeysPaginator",48 "ListResourceTagsPaginator",49 "ListRetirableGrantsPaginator",...

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