update_encryption_configuration
¶
update_encryption_configuration(
encryption_type: EncryptionType,
*,
config_overrides: Optional[IoTClientConfig] = None,
kms_key_arn: Optional[KmsKeyArn] = None,
kms_access_role_arn: Optional[KmsAccessRoleArn] = None,
) -> UpdateEncryptionConfigurationResponse
Updates the encryption configuration. By default, Amazon Web Services IoT Core encrypts your data at rest using Amazon Web Services owned keys. Amazon Web Services IoT Core also supports symmetric customer managed keys from Key Management Service (KMS). With customer managed keys, you create, own, and manage the KMS keys in your Amazon Web Services account.
Before using this API, you must set up permissions for Amazon Web Services IoT Core to access KMS. For more information, see Data encryption at rest in the Amazon Web Services IoT Core Developer Guide.
Parameters:
-
encryption_type(EncryptionType) –The type of the KMS key.
-
kms_key_arn(Optional[KmsKeyArn], default:None) –The ARN of the customer managedKMS key.
-
kms_access_role_arn(Optional[KmsAccessRoleArn], default:None) –The Amazon Resource Name (ARN) of the IAM role assumed by Amazon Web Services IoT Core to call KMS on behalf of the customer.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
UpdateEncryptionConfiguration example This operation updates the encryption configuration.
>>> client.update_encryption_configuration(encryption_type='CUSTOMER_MANAGED_KMS_KEY', kms_key_arn='arn:aws:iam:us-west-2:111122223333:role/myrole', kms_access_role_arn='arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab')
Source code in docs_src/capo_iot/_services/io_t.py
17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 | |