SFN / Client / exceptions / InvalidEncryptionConfiguration
InvalidEncryptionConfiguration#
- class SFN.Client.exceptions.InvalidEncryptionConfiguration#
Received when
encryptionConfiguration
is specified but various conditions exist which make the configuration invalid. For example, iftype
is set toCUSTOMER_MANAGED_KMS_KEY
, butkmsKeyId
is null, orkmsDataKeyReusePeriodSeconds
is not between 60 and 900, or the KMS key is not symmetric or inactive.Example
try: ... except client.exceptions.InvalidEncryptionConfiguration as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Received when
encryptionConfiguration
is specified but various conditions exist which make the configuration invalid. For example, iftype
is set toCUSTOMER_MANAGED_KMS_KEY
, butkmsKeyId
is null, orkmsDataKeyReusePeriodSeconds
is not between 60 and 900, or the KMS key is not symmetric or inactive.message (string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.