How to use disable_key_rotation method in localstack

Best Python code snippet using localstack_python

boto_kms.py

Source:boto_kms.py Github

copy

Full Screen

...208 except boto.exception.BotoServerError as e:209 r["result"] = False210 r["error"] = __utils__["boto.get_error"](e)211 return r212def disable_key_rotation(key_id, region=None, key=None, keyid=None, profile=None):213 """214 Disable key rotation for specified key.215 CLI Example:216 .. code-block:: bash217 salt myminion boto_kms.disable_key_rotation 'alias/mykey'218 """219 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)220 r = {}221 try:222 key = conn.disable_key_rotation(key_id)223 r["result"] = True224 except boto.exception.BotoServerError as e:225 r["result"] = False226 r["error"] = __utils__["boto.get_error"](e)227 return r228def enable_key(key_id, region=None, key=None, keyid=None, profile=None):229 """230 Mark key as enabled.231 CLI Example:232 .. code-block:: bash233 salt myminion boto_kms.enable_key 'alias/mykey'234 """235 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)236 r = {}...

Full Screen

Full Screen

layer1.pyi

Source:layer1.pyi Github

copy

Full Screen

...15 def decrypt(self, ciphertext_blob: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...16 def delete_alias(self, alias_name: str) -> Optional[Dict[str, Any]]: ...17 def describe_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...18 def disable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...19 def disable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ...20 def enable_key(self, key_id: str) -> Optional[Dict[str, Any]]: ...21 def enable_key_rotation(self, key_id: str) -> Optional[Dict[str, Any]]: ...22 def encrypt(self, key_id: str, plaintext: bytes, encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...23 def generate_data_key(self, key_id: str, encryption_context: Optional[Mapping[str, Any]] = ..., number_of_bytes: Optional[int] = ..., key_spec: Optional[str] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...24 def generate_data_key_without_plaintext(self, key_id: str, encryption_context: Optional[Mapping[str, Any]] = ..., key_spec: Optional[str] = ..., number_of_bytes: Optional[int] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...25 def generate_random(self, number_of_bytes: Optional[int] = ...) -> Optional[Dict[str, Any]]: ...26 def get_key_policy(self, key_id: str, policy_name: str) -> Optional[Dict[str, Any]]: ...27 def get_key_rotation_status(self, key_id: str) -> Optional[Dict[str, Any]]: ...28 def list_aliases(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...29 def list_grants(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...30 def list_key_policies(self, key_id: str, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...31 def list_keys(self, limit: Optional[int] = ..., marker: Optional[str] = ...) -> Optional[Dict[str, Any]]: ...32 def put_key_policy(self, key_id: str, policy_name: str, policy: str) -> Optional[Dict[str, Any]]: ...33 def re_encrypt(self, ciphertext_blob: bytes, destination_key_id: str, source_encryption_context: Optional[Mapping[str, Any]] = ..., destination_encryption_context: Optional[Mapping[str, Any]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ......

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