How to use connect_custom_key_store method in localstack

Best Python code snippet using localstack_python

client.pyi

Source:client.pyi Github

copy

Full Screen

...144 Closes underlying endpoint connections.145 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.close)146 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#close)147 """148 def connect_custom_key_store(self, *, CustomKeyStoreId: str) -> Dict[str, Any]:149 """150 Connects or reconnects a `custom key store151 <https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-152 overview.html>`__ to its associated CloudHSM cluster.153 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.connect_custom_key_store)154 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#connect_custom_key_store)155 """156 def create_alias(self, *, AliasName: str, TargetKeyId: str) -> None:157 """158 Creates a friendly name for a KMS key.159 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.create_alias)160 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#create_alias)161 """162 def create_custom_key_store(163 self,164 *,165 CustomKeyStoreName: str,166 CloudHsmClusterId: str = None,167 TrustAnchorCertificate: str = None,168 KeyStorePassword: str = None169 ) -> CreateCustomKeyStoreResponseTypeDef:170 """171 Creates a `custom key store172 <https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-173 overview.html>`__ that is associated with an `CloudHSM cluster174 <https://docs.aws.amazon.com/cloudhsm/latest/userguide/clusters.html>`__ that175 you own and manage.176 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.create_custom_key_store)177 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#create_custom_key_store)178 """179 def create_grant(180 self,181 *,182 KeyId: str,183 GranteePrincipal: str,184 Operations: List[GrantOperationType],185 RetiringPrincipal: str = None,186 Constraints: "GrantConstraintsTypeDef" = None,187 GrantTokens: List[str] = None,188 Name: str = None189 ) -> CreateGrantResponseTypeDef:190 """191 Adds a grant to a KMS key.192 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.create_grant)193 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#create_grant)194 """195 def create_key(196 self,197 *,198 Policy: str = None,199 Description: str = None,200 KeyUsage: KeyUsageTypeType = None,201 CustomerMasterKeySpec: CustomerMasterKeySpecType = None,202 KeySpec: KeySpecType = None,203 Origin: OriginTypeType = None,204 CustomKeyStoreId: str = None,205 BypassPolicyLockoutSafetyCheck: bool = None,206 Tags: List["TagTypeDef"] = None,207 MultiRegion: bool = None208 ) -> CreateKeyResponseTypeDef:209 """210 Creates a unique customer managed `KMS key211 <https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#kms-212 keys>`__ in your Amazon Web Services account and Region.213 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.create_key)214 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#create_key)215 """216 def decrypt(217 self,218 *,219 CiphertextBlob: Union[bytes, IO[bytes], StreamingBody],220 EncryptionContext: Dict[str, str] = None,221 GrantTokens: List[str] = None,222 KeyId: str = None,223 EncryptionAlgorithm: EncryptionAlgorithmSpecType = None224 ) -> DecryptResponseTypeDef:225 """226 Decrypts ciphertext that was encrypted by a KMS key using any of the following227 operations * Encrypt * GenerateDataKey * GenerateDataKeyPair *228 GenerateDataKeyWithoutPlaintext * GenerateDataKeyPairWithoutPlaintext You can229 use this operation to decrypt cipher...230 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.decrypt)231 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#decrypt)232 """233 def delete_alias(self, *, AliasName: str) -> None:234 """235 Deletes the specified alias.236 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.delete_alias)237 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#delete_alias)238 """239 def delete_custom_key_store(self, *, CustomKeyStoreId: str) -> Dict[str, Any]:240 """241 Deletes a `custom key store242 <https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-243 overview.html>`__.244 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.delete_custom_key_store)245 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#delete_custom_key_store)246 """247 def delete_imported_key_material(self, *, KeyId: str) -> None:248 """249 Deletes key material that you previously imported.250 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.delete_imported_key_material)251 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#delete_imported_key_material)252 """253 def describe_custom_key_stores(254 self,255 *,256 CustomKeyStoreId: str = None,257 CustomKeyStoreName: str = None,258 Limit: int = None,259 Marker: str = None260 ) -> DescribeCustomKeyStoresResponseTypeDef:261 """262 Gets information about `custom key stores263 <https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-264 overview.html>`__ in the account and Region.265 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.describe_custom_key_stores)266 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#describe_custom_key_stores)267 """268 def describe_key(269 self, *, KeyId: str, GrantTokens: List[str] = None270 ) -> DescribeKeyResponseTypeDef:271 """272 Provides detailed information about a KMS key.273 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.describe_key)274 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#describe_key)275 """276 def disable_key(self, *, KeyId: str) -> None:277 """278 Sets the state of a KMS key to disabled.279 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.disable_key)280 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#disable_key)281 """282 def disable_key_rotation(self, *, KeyId: str) -> None:283 """284 Disables `automatic rotation of the key material285 <https://docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html>`__ of286 the specified symmetric encryption KMS key.287 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.disable_key_rotation)288 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#disable_key_rotation)289 """290 def disconnect_custom_key_store(self, *, CustomKeyStoreId: str) -> Dict[str, Any]:291 """292 Disconnects the `custom key store293 <https://docs.aws.amazon.com/kms/latest/developerguide/custom-key-store-294 overview.html>`__ from its associated CloudHSM cluster.295 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.disconnect_custom_key_store)296 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#disconnect_custom_key_store)297 """298 def enable_key(self, *, KeyId: str) -> None:299 """300 Sets the key state of a KMS key to enabled.301 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/kms.html#KMS.Client.enable_key)302 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_kms/client.html#enable_key)303 """304 def enable_key_rotation(self, *, KeyId: str) -> None:...

Full Screen

Full Screen

client.py

Source:client.py Github

copy

Full Screen

...10 def can_paginate(self, operation_name: str = None):11 pass12 def cancel_key_deletion(self, KeyId: str) -> Dict:13 pass14 def connect_custom_key_store(self, CustomKeyStoreId: str) -> Dict:15 pass16 def create_alias(self, AliasName: str, TargetKeyId: str):17 pass18 def create_custom_key_store(self, CustomKeyStoreName: str, CloudHsmClusterId: str, TrustAnchorCertificate: str, KeyStorePassword: str) -> Dict:19 pass20 def create_grant(self, KeyId: str, GranteePrincipal: str, Operations: List, RetiringPrincipal: str = None, Constraints: Dict = None, GrantTokens: List = None, Name: str = None) -> Dict:21 pass22 def create_key(self, Policy: str = None, Description: str = None, KeyUsage: str = None, Origin: str = None, CustomKeyStoreId: str = None, BypassPolicyLockoutSafetyCheck: bool = None, Tags: List = None) -> Dict:23 pass24 def decrypt(self, CiphertextBlob: bytes, EncryptionContext: Dict = None, GrantTokens: List = None) -> Dict:25 pass26 def delete_alias(self, AliasName: str):27 pass28 def delete_custom_key_store(self, CustomKeyStoreId: str) -> Dict:29 pass30 def delete_imported_key_material(self, KeyId: str):31 pass32 def describe_custom_key_stores(self, CustomKeyStoreId: str = None, CustomKeyStoreName: str = None, Limit: int = None, Marker: str = None) -> Dict:33 pass34 def describe_key(self, KeyId: str, GrantTokens: List = None) -> Dict:35 pass36 def disable_key(self, KeyId: str):37 pass38 def disable_key_rotation(self, KeyId: str):39 pass40 def disconnect_custom_key_store(self, CustomKeyStoreId: str) -> Dict:41 pass42 def enable_key(self, KeyId: str):43 pass44 def enable_key_rotation(self, KeyId: str):45 pass46 def encrypt(self, KeyId: str, Plaintext: bytes, EncryptionContext: Dict = None, GrantTokens: List = None) -> Dict:47 pass48 def generate_data_key(self, KeyId: str, EncryptionContext: Dict = None, NumberOfBytes: int = None, KeySpec: str = None, GrantTokens: List = None) -> Dict:49 pass50 def generate_data_key_without_plaintext(self, KeyId: str, EncryptionContext: Dict = None, KeySpec: str = None, NumberOfBytes: int = None, GrantTokens: List = None) -> Dict:51 pass52 def generate_presigned_url(self, ClientMethod: str = None, Params: Dict = None, ExpiresIn: int = None, HttpMethod: str = None):53 pass54 def generate_random(self, NumberOfBytes: int = None, CustomKeyStoreId: str = None) -> Dict:...

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