amazonka-kms 1.4.2 → 1.4.3
raw patch · 35 files changed
+432/−934 lines, 35 filesdep ~amazonka-coredep ~amazonka-kmsdep ~amazonka-testPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: amazonka-core, amazonka-kms, amazonka-test
API changes (from Hackage documentation)
Files
- README.md +13/−50
- amazonka-kms.cabal +17/−54
- gen/Network/AWS/KMS.hs +12/−49
- gen/Network/AWS/KMS/CancelKeyDeletion.hs +6/−15
- gen/Network/AWS/KMS/CreateAlias.hs +6/−20
- gen/Network/AWS/KMS/CreateGrant.hs +18/−58
- gen/Network/AWS/KMS/CreateKey.hs +4/−13
- gen/Network/AWS/KMS/Decrypt.hs +6/−21
- gen/Network/AWS/KMS/DeleteAlias.hs +2/−5
- gen/Network/AWS/KMS/DescribeKey.hs +5/−12
- gen/Network/AWS/KMS/DisableKey.hs +4/−11
- gen/Network/AWS/KMS/DisableKeyRotation.hs +3/−6
- gen/Network/AWS/KMS/EnableKey.hs +3/−6
- gen/Network/AWS/KMS/EnableKeyRotation.hs +3/−6
- gen/Network/AWS/KMS/Encrypt.hs +12/−37
- gen/Network/AWS/KMS/GenerateDataKey.hs +17/−62
- gen/Network/AWS/KMS/GenerateDataKeyWithoutPlaintext.hs +12/−31
- gen/Network/AWS/KMS/GenerateRandom.hs +1/−2
- gen/Network/AWS/KMS/GetKeyPolicy.hs +4/−9
- gen/Network/AWS/KMS/GetKeyRotationStatus.hs +4/−8
- gen/Network/AWS/KMS/ListAliases.hs +5/−13
- gen/Network/AWS/KMS/ListGrants.hs +6/−14
- gen/Network/AWS/KMS/ListKeyPolicies.hs +10/−24
- gen/Network/AWS/KMS/ListKeys.hs +5/−13
- gen/Network/AWS/KMS/ListRetirableGrants.hs +6/−20
- gen/Network/AWS/KMS/PutKeyPolicy.hs +5/−11
- gen/Network/AWS/KMS/ReEncrypt.hs +9/−29
- gen/Network/AWS/KMS/RetireGrant.hs +7/−20
- gen/Network/AWS/KMS/RevokeGrant.hs +4/−9
- gen/Network/AWS/KMS/ScheduleKeyDeletion.hs +10/−29
- gen/Network/AWS/KMS/Types.hs +14/−32
- gen/Network/AWS/KMS/Types/Product.hs +14/−43
- gen/Network/AWS/KMS/UpdateAlias.hs +8/−22
- gen/Network/AWS/KMS/UpdateKeyDescription.hs +3/−6
- test/Test/AWS/Gen/KMS.hs +174/−174
README.md view
@@ -8,79 +8,42 @@ ## Version -`1.4.2`+`1.4.3` ## Description AWS Key Management Service -AWS Key Management Service (AWS KMS) is an encryption and key management-web service. This guide describes the AWS KMS operations that you can-call programmatically. For general information about AWS KMS, see the-<http://docs.aws.amazon.com/kms/latest/developerguide/ AWS Key Management Service Developer Guide>.+AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes the AWS KMS operations that you can call programmatically. For general information about AWS KMS, see the <http://docs.aws.amazon.com/kms/latest/developerguide/ AWS Key Management Service Developer Guide>. -AWS provides SDKs that consist of libraries and sample code for various-programming languages and platforms (Java, Ruby, .Net, iOS, Android,-etc.). The SDKs provide a convenient way to create programmatic access-to AWS KMS and other AWS services. For example, the SDKs take care of-tasks such as signing requests (see below), managing errors, and-retrying requests automatically. For more information about the AWS-SDKs, including how to download and install them, see-<http://aws.amazon.com/tools/ Tools for Amazon Web Services>.+AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS KMS and other AWS services. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see <http://aws.amazon.com/tools/ Tools for Amazon Web Services>. -We recommend that you use the AWS SDKs to make programmatic API calls to-AWS KMS.+We recommend that you use the AWS SDKs to make programmatic API calls to AWS KMS. -Clients must support TLS (Transport Layer Security) 1.0. We recommend-TLS 1.2. Clients must also support cipher suites with Perfect Forward-Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve-Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and-later support these modes.+Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes. __Signing Requests__ -Requests must be signed by using an access key ID and a secret access-key. We strongly recommend that you /do not/ use your AWS account access-key ID and secret key for everyday work with AWS KMS. Instead, use the-access key ID and secret access key for an IAM user, or you can use the-AWS Security Token Service to generate temporary security credentials-that you can use to sign requests.+Requests must be signed by using an access key ID and a secret access key. We strongly recommend that you /do not/ use your AWS account access key ID and secret key for everyday work with AWS KMS. Instead, use the access key ID and secret access key for an IAM user, or you can use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests. -All AWS KMS operations require-<http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4>.+All AWS KMS operations require <http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4>. __Logging API Requests__ -AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and-related events for your AWS account and delivers them to an Amazon S3-bucket that you specify. By using the information collected by-CloudTrail, you can determine what requests were made to AWS KMS, who-made the request, when it was made, and so on. To learn more about-CloudTrail, including how to turn it on and find your log files, see the-<http://docs.aws.amazon.com/awscloudtrail/latest/userguide/ AWS CloudTrail User Guide>.+AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related events for your AWS account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to AWS KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/ AWS CloudTrail User Guide>. __Additional Resources__ -For more information about credentials and request signing, see the-following:+For more information about credentials and request signing, see the following: -- <http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html AWS Security Credentials>- - This topic provides general information about the types of- credentials used for accessing AWS.-- <http://docs.aws.amazon.com/STS/latest/UsingSTS/ AWS Security Token Service>- - This guide describes how to create and use temporary security- credentials.-- <http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html Signing AWS API Requests>- - This set of topics walks you through the process of signing a- request using an access key ID and a secret access key.+- <http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html AWS Security Credentials> - This topic provides general information about the types of credentials used for accessing AWS.+- <http://docs.aws.amazon.com/STS/latest/UsingSTS/ AWS Security Token Service> - This guide describes how to create and use temporary security credentials.+- <http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html Signing AWS API Requests> - This set of topics walks you through the process of signing a request using an access key ID and a secret access key. __Commonly Used APIs__ -Of the APIs discussed in this guide, the following will prove the most-useful for most applications. You will likely perform actions other than-these, such as creating keys and assigning policies, by using the-console.+Of the APIs discussed in this guide, the following will prove the most useful for most applications. You will likely perform actions other than these, such as creating keys and assigning policies, by using the console. - < Encrypt> - < Decrypt>
amazonka-kms.cabal view
@@ -1,5 +1,5 @@ name: amazonka-kms-version: 1.4.2+version: 1.4.3 synopsis: Amazon Key Management Service SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -15,72 +15,35 @@ description: AWS Key Management Service - AWS Key Management Service (AWS KMS) is an encryption and key management- web service. This guide describes the AWS KMS operations that you can- call programmatically. For general information about AWS KMS, see the- <http://docs.aws.amazon.com/kms/latest/developerguide/ AWS Key Management Service Developer Guide>.+ AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes the AWS KMS operations that you can call programmatically. For general information about AWS KMS, see the <http://docs.aws.amazon.com/kms/latest/developerguide/ AWS Key Management Service Developer Guide>. - AWS provides SDKs that consist of libraries and sample code for various- programming languages and platforms (Java, Ruby, .Net, iOS, Android,- etc.). The SDKs provide a convenient way to create programmatic access- to AWS KMS and other AWS services. For example, the SDKs take care of- tasks such as signing requests (see below), managing errors, and- retrying requests automatically. For more information about the AWS- SDKs, including how to download and install them, see- <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.+ AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS KMS and other AWS services. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see <http://aws.amazon.com/tools/ Tools for Amazon Web Services>. - We recommend that you use the AWS SDKs to make programmatic API calls to- AWS KMS.+ We recommend that you use the AWS SDKs to make programmatic API calls to AWS KMS. - Clients must support TLS (Transport Layer Security) 1.0. We recommend- TLS 1.2. Clients must also support cipher suites with Perfect Forward- Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve- Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and- later support these modes.+ Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes. __Signing Requests__ - Requests must be signed by using an access key ID and a secret access- key. We strongly recommend that you /do not/ use your AWS account access- key ID and secret key for everyday work with AWS KMS. Instead, use the- access key ID and secret access key for an IAM user, or you can use the- AWS Security Token Service to generate temporary security credentials- that you can use to sign requests.+ Requests must be signed by using an access key ID and a secret access key. We strongly recommend that you /do not/ use your AWS account access key ID and secret key for everyday work with AWS KMS. Instead, use the access key ID and secret access key for an IAM user, or you can use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests. - All AWS KMS operations require- <http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4>.+ All AWS KMS operations require <http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4>. __Logging API Requests__ - AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and- related events for your AWS account and delivers them to an Amazon S3- bucket that you specify. By using the information collected by- CloudTrail, you can determine what requests were made to AWS KMS, who- made the request, when it was made, and so on. To learn more about- CloudTrail, including how to turn it on and find your log files, see the- <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/ AWS CloudTrail User Guide>.+ AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related events for your AWS account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to AWS KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/ AWS CloudTrail User Guide>. __Additional Resources__ - For more information about credentials and request signing, see the- following:+ For more information about credentials and request signing, see the following: - - <http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html AWS Security Credentials>- - This topic provides general information about the types of- credentials used for accessing AWS.- - <http://docs.aws.amazon.com/STS/latest/UsingSTS/ AWS Security Token Service>- - This guide describes how to create and use temporary security- credentials.- - <http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html Signing AWS API Requests>- - This set of topics walks you through the process of signing a- request using an access key ID and a secret access key.+ - <http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html AWS Security Credentials> - This topic provides general information about the types of credentials used for accessing AWS.+ - <http://docs.aws.amazon.com/STS/latest/UsingSTS/ AWS Security Token Service> - This guide describes how to create and use temporary security credentials.+ - <http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html Signing AWS API Requests> - This set of topics walks you through the process of signing a request using an access key ID and a secret access key. __Commonly Used APIs__ - Of the APIs discussed in this guide, the following will prove the most- useful for most applications. You will likely perform actions other than- these, such as creating keys and assigning policies, by using the- console.+ Of the APIs discussed in this guide, the following will prove the most useful for most applications. You will likely perform actions other than these, such as creating keys and assigning policies, by using the console. - < Encrypt> - < Decrypt>@@ -150,7 +113,7 @@ , Network.AWS.KMS.Types.Sum build-depends:- amazonka-core == 1.4.2.*+ amazonka-core == 1.4.3.* , base >= 4.7 && < 5 test-suite amazonka-kms-test@@ -170,9 +133,9 @@ , Test.AWS.KMS.Internal build-depends:- amazonka-core == 1.4.2.*- , amazonka-test == 1.4.2.*- , amazonka-kms == 1.4.2.*+ amazonka-core == 1.4.3.*+ , amazonka-test == 1.4.3.*+ , amazonka-kms == 1.4.3.* , base , bytestring , tasty
gen/Network/AWS/KMS.hs view
@@ -13,72 +13,35 @@ -- -- AWS Key Management Service ----- AWS Key Management Service (AWS KMS) is an encryption and key management--- web service. This guide describes the AWS KMS operations that you can--- call programmatically. For general information about AWS KMS, see the--- <http://docs.aws.amazon.com/kms/latest/developerguide/ AWS Key Management Service Developer Guide>.+-- AWS Key Management Service (AWS KMS) is an encryption and key management web service. This guide describes the AWS KMS operations that you can call programmatically. For general information about AWS KMS, see the <http://docs.aws.amazon.com/kms/latest/developerguide/ AWS Key Management Service Developer Guide>. ----- AWS provides SDKs that consist of libraries and sample code for various--- programming languages and platforms (Java, Ruby, .Net, iOS, Android,--- etc.). The SDKs provide a convenient way to create programmatic access--- to AWS KMS and other AWS services. For example, the SDKs take care of--- tasks such as signing requests (see below), managing errors, and--- retrying requests automatically. For more information about the AWS--- SDKs, including how to download and install them, see--- <http://aws.amazon.com/tools/ Tools for Amazon Web Services>.+-- AWS provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to AWS KMS and other AWS services. For example, the SDKs take care of tasks such as signing requests (see below), managing errors, and retrying requests automatically. For more information about the AWS SDKs, including how to download and install them, see <http://aws.amazon.com/tools/ Tools for Amazon Web Services>. ----- We recommend that you use the AWS SDKs to make programmatic API calls to--- AWS KMS.+-- We recommend that you use the AWS SDKs to make programmatic API calls to AWS KMS. ----- Clients must support TLS (Transport Layer Security) 1.0. We recommend--- TLS 1.2. Clients must also support cipher suites with Perfect Forward--- Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve--- Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and--- later support these modes.+-- Clients must support TLS (Transport Layer Security) 1.0. We recommend TLS 1.2. Clients must also support cipher suites with Perfect Forward Secrecy (PFS) such as Ephemeral Diffie-Hellman (DHE) or Elliptic Curve Ephemeral Diffie-Hellman (ECDHE). Most modern systems such as Java 7 and later support these modes. -- -- __Signing Requests__ ----- Requests must be signed by using an access key ID and a secret access--- key. We strongly recommend that you /do not/ use your AWS account access--- key ID and secret key for everyday work with AWS KMS. Instead, use the--- access key ID and secret access key for an IAM user, or you can use the--- AWS Security Token Service to generate temporary security credentials--- that you can use to sign requests.+-- Requests must be signed by using an access key ID and a secret access key. We strongly recommend that you /do not/ use your AWS account access key ID and secret key for everyday work with AWS KMS. Instead, use the access key ID and secret access key for an IAM user, or you can use the AWS Security Token Service to generate temporary security credentials that you can use to sign requests. ----- All AWS KMS operations require--- <http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4>.+-- All AWS KMS operations require <http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4>. -- -- __Logging API Requests__ ----- AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and--- related events for your AWS account and delivers them to an Amazon S3--- bucket that you specify. By using the information collected by--- CloudTrail, you can determine what requests were made to AWS KMS, who--- made the request, when it was made, and so on. To learn more about--- CloudTrail, including how to turn it on and find your log files, see the--- <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/ AWS CloudTrail User Guide>.+-- AWS KMS supports AWS CloudTrail, a service that logs AWS API calls and related events for your AWS account and delivers them to an Amazon S3 bucket that you specify. By using the information collected by CloudTrail, you can determine what requests were made to AWS KMS, who made the request, when it was made, and so on. To learn more about CloudTrail, including how to turn it on and find your log files, see the <http://docs.aws.amazon.com/awscloudtrail/latest/userguide/ AWS CloudTrail User Guide>. -- -- __Additional Resources__ ----- For more information about credentials and request signing, see the--- following:+-- For more information about credentials and request signing, see the following: ----- - <http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html AWS Security Credentials>--- - This topic provides general information about the types of--- credentials used for accessing AWS.--- - <http://docs.aws.amazon.com/STS/latest/UsingSTS/ AWS Security Token Service>--- - This guide describes how to create and use temporary security--- credentials.--- - <http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html Signing AWS API Requests>--- - This set of topics walks you through the process of signing a--- request using an access key ID and a secret access key.+-- - <http://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html AWS Security Credentials> - This topic provides general information about the types of credentials used for accessing AWS.+-- - <http://docs.aws.amazon.com/STS/latest/UsingSTS/ AWS Security Token Service> - This guide describes how to create and use temporary security credentials.+-- - <http://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html Signing AWS API Requests> - This set of topics walks you through the process of signing a request using an access key ID and a secret access key. -- -- __Commonly Used APIs__ ----- Of the APIs discussed in this guide, the following will prove the most--- useful for most applications. You will likely perform actions other than--- these, such as creating keys and assigning policies, by using the--- console.+-- Of the APIs discussed in this guide, the following will prove the most useful for most applications. You will likely perform actions other than these, such as creating keys and assigning policies, by using the console. -- -- - < Encrypt> -- - < Decrypt>
gen/Network/AWS/KMS/CancelKeyDeletion.hs view
@@ -18,14 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Cancels the deletion of a customer master key (CMK). When this operation--- is successful, the CMK is set to the 'Disabled' state. To enable a CMK,--- use < EnableKey>.+-- Cancels the deletion of a customer master key (CMK). When this operation is successful, the CMK is set to the 'Disabled' state. To enable a CMK, use < EnableKey>. ----- For more information about scheduling and canceling deletion of a CMK,--- go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html Deleting Customer Master Keys>--- in the /AWS Key Management Service Developer Guide/.+-- For more information about scheduling and canceling deletion of a CMK, go to <http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html Deleting Customer Master Keys> in the /AWS Key Management Service Developer Guide/. module Network.AWS.KMS.CancelKeyDeletion ( -- * Creating a Request@@ -67,18 +62,14 @@ { _ckdKeyId = pKeyId_ } --- | The unique identifier for the customer master key (CMK) for which to--- cancel deletion.+-- | The unique identifier for the customer master key (CMK) for which to cancel deletion. ----- To specify this value, use the unique key ID or the Amazon Resource Name--- (ARN) of the CMK. Examples:+-- To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples: -- -- - Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab--- - Key ARN:--- arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab+-- - Key ARN: arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab ----- To obtain the unique key ID and key ARN for a given CMK, use < ListKeys>--- or < DescribeKey>.+-- To obtain the unique key ID and key ARN for a given CMK, use < ListKeys> or < DescribeKey>. ckdKeyId :: Lens' CancelKeyDeletion Text ckdKeyId = lens _ckdKeyId (\ s a -> s{_ckdKeyId = a});
gen/Network/AWS/KMS/CreateAlias.hs view
@@ -18,17 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a display name for a customer master key. An alias can be used--- to identify a key and should be unique. The console enforces a--- one-to-one mapping between the alias and a key. An alias name can--- contain only alphanumeric characters, forward slashes (\/), underscores--- (_), and dashes (-). An alias must start with the word \"alias\"--- followed by a forward slash (alias\/). An alias that begins with \"aws\"--- after the forward slash (alias\/aws...) is reserved by Amazon Web--- Services (AWS).+-- Creates a display name for a customer master key. An alias can be used to identify a key and should be unique. The console enforces a one-to-one mapping between the alias and a key. An alias name can contain only alphanumeric characters, forward slashes (\/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias\/). An alias that begins with \"aws\" after the forward slash (alias\/aws...) is reserved by Amazon Web Services (AWS). ----- The alias and the key it is mapped to must be in the same AWS account--- and the same region.+-- The alias and the key it is mapped to must be in the same AWS account and the same region. -- -- To map an alias to a different key, call < UpdateAlias>. module Network.AWS.KMS.CreateAlias@@ -75,20 +67,14 @@ , _caTargetKeyId = pTargetKeyId_ } --- | String that contains the display name. The name must start with the word--- \"alias\" followed by a forward slash (alias\/). Aliases that begin with--- \"alias\/AWS\" are reserved.+-- | String that contains the display name. The name must start with the word \"alias\" followed by a forward slash (alias\/). Aliases that begin with \"alias\/AWS\" are reserved. caAliasName :: Lens' CreateAlias Text caAliasName = lens _caAliasName (\ s a -> s{_caAliasName = a}); --- | An identifier of the key for which you are creating the alias. This--- value cannot be another alias but can be a globally unique identifier or--- a fully specified ARN to a key.+-- | An identifier of the key for which you are creating the alias. This value cannot be another alias but can be a globally unique identifier or a fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 caTargetKeyId :: Lens' CreateAlias Text caTargetKeyId = lens _caTargetKeyId (\ s a -> s{_caTargetKeyId = a});
gen/Network/AWS/KMS/CreateGrant.hs view
@@ -18,12 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Adds a grant to a key to specify who can use the key and under what--- conditions. Grants are alternate permission mechanisms to key policies.+-- Adds a grant to a key to specify who can use the key and under what conditions. Grants are alternate permission mechanisms to key policies. ----- For more information about grants, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/grants.html Grants>--- in the /AWS Key Management Service Developer Guide/.+-- For more information about grants, see <http://docs.aws.amazon.com/kms/latest/developerguide/grants.html Grants> in the /AWS Key Management Service Developer Guide/. module Network.AWS.KMS.CreateGrant ( -- * Creating a Request@@ -97,57 +94,33 @@ , _cgGranteePrincipal = pGranteePrincipal_ } --- | The principal that is given permission to retire the grant by using--- < RetireGrant> operation.+-- | The principal that is given permission to retire the grant by using < RetireGrant> operation. ----- To specify the principal, use the--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)>--- of an AWS principal. Valid AWS principals include AWS accounts (root),--- IAM users, federated users, and assumed role users. For examples of the--- ARN syntax to use for specifying a principal, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam AWS Identity and Access Management (IAM)>--- in the Example ARNs section of the /AWS General Reference/.+-- To specify the principal, use the <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax to use for specifying a principal, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam AWS Identity and Access Management (IAM)> in the Example ARNs section of the /AWS General Reference/. cgRetiringPrincipal :: Lens' CreateGrant (Maybe Text) cgRetiringPrincipal = lens _cgRetiringPrincipal (\ s a -> s{_cgRetiringPrincipal = a}); -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. cgGrantTokens :: Lens' CreateGrant [Text] cgGrantTokens = lens _cgGrantTokens (\ s a -> s{_cgGrantTokens = a}) . _Default . _Coerce; --- | The conditions under which the operations permitted by the grant are--- allowed.+-- | The conditions under which the operations permitted by the grant are allowed. ----- You can use this value to allow the operations permitted by the grant--- only when a specified encryption context is present. For more--- information, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>--- in the /AWS Key Management Service Developer Guide/.+-- You can use this value to allow the operations permitted by the grant only when a specified encryption context is present. For more information, see <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context> in the /AWS Key Management Service Developer Guide/. cgConstraints :: Lens' CreateGrant (Maybe GrantConstraints) cgConstraints = lens _cgConstraints (\ s a -> s{_cgConstraints = a}); --- | A friendly name for identifying the grant. Use this value to prevent--- unintended creation of duplicate grants when retrying this request.+-- | A friendly name for identifying the grant. Use this value to prevent unintended creation of duplicate grants when retrying this request. ----- When this value is absent, all 'CreateGrant' requests result in a new--- grant with a unique 'GrantId' even if all the supplied parameters are--- identical. This can result in unintended duplicates when you retry the--- 'CreateGrant' request.+-- When this value is absent, all 'CreateGrant' requests result in a new grant with a unique 'GrantId' even if all the supplied parameters are identical. This can result in unintended duplicates when you retry the 'CreateGrant' request. ----- When this value is present, you can retry a 'CreateGrant' request with--- identical parameters; if the grant already exists, the original--- 'GrantId' is returned without creating a new grant. Note that the--- returned grant token is unique with every 'CreateGrant' request, even--- when a duplicate 'GrantId' is returned. All grant tokens obtained in--- this way can be used interchangeably.+-- When this value is present, you can retry a 'CreateGrant' request with identical parameters; if the grant already exists, the original 'GrantId' is returned without creating a new grant. Note that the returned grant token is unique with every 'CreateGrant' request, even when a duplicate 'GrantId' is returned. All grant tokens obtained in this way can be used interchangeably. cgName :: Lens' CreateGrant (Maybe Text) cgName = lens _cgName (\ s a -> s{_cgName = a}); --- | A list of operations that the grant permits. The list can contain any--- combination of one or more of the following values:+-- | A list of operations that the grant permits. The list can contain any combination of one or more of the following values: -- -- - Decrypt -- - Encrypt@@ -160,28 +133,18 @@ cgOperations :: Lens' CreateGrant [GrantOperation] cgOperations = lens _cgOperations (\ s a -> s{_cgOperations = a}) . _Default . _Coerce; --- | The unique identifier for the customer master key (CMK) that the grant--- applies to.+-- | The unique identifier for the customer master key (CMK) that the grant applies to. ----- To specify this value, use the globally unique key ID or the Amazon--- Resource Name (ARN) of the key. Examples:+-- To specify this value, use the globally unique key ID or the Amazon Resource Name (ARN) of the key. Examples: -- -- - Globally unique key ID: 12345678-1234-1234-1234-123456789012--- - Key ARN:--- arn:aws:kms:us-west-2:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Key ARN: arn:aws:kms:us-west-2:123456789012:key\/12345678-1234-1234-1234-123456789012 cgKeyId :: Lens' CreateGrant Text cgKeyId = lens _cgKeyId (\ s a -> s{_cgKeyId = a}); --- | The principal that is given permission to perform the operations that--- the grant permits.+-- | The principal that is given permission to perform the operations that the grant permits. ----- To specify the principal, use the--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)>--- of an AWS principal. Valid AWS principals include AWS accounts (root),--- IAM users, federated users, and assumed role users. For examples of the--- ARN syntax to use for specifying a principal, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam AWS Identity and Access Management (IAM)>--- in the Example ARNs section of the /AWS General Reference/.+-- To specify the principal, use the <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax to use for specifying a principal, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam AWS Identity and Access Management (IAM)> in the Example ARNs section of the /AWS General Reference/. cgGranteePrincipal :: Lens' CreateGrant Text cgGranteePrincipal = lens _cgGranteePrincipal (\ s a -> s{_cgGranteePrincipal = a}); @@ -254,16 +217,13 @@ -- | The unique identifier for the grant. ----- You can use the 'GrantId' in a subsequent < RetireGrant> or--- < RevokeGrant> operation.+-- You can use the 'GrantId' in a subsequent < RetireGrant> or < RevokeGrant> operation. cgrsGrantId :: Lens' CreateGrantResponse (Maybe Text) cgrsGrantId = lens _cgrsGrantId (\ s a -> s{_cgrsGrantId = a}); -- | The grant token. ----- For more information about using grant tokens, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information about using grant tokens, see <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. cgrsGrantToken :: Lens' CreateGrantResponse (Maybe Text) cgrsGrantToken = lens _cgrsGrantToken (\ s a -> s{_cgrsGrantToken = a});
gen/Network/AWS/KMS/CreateKey.hs view
@@ -18,11 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a customer master key. Customer master keys can be used to--- encrypt small amounts of data (less than 4K) directly, but they are most--- commonly used to encrypt or envelope data keys that are then used to--- encrypt customer data. For more information about data keys, see--- < GenerateDataKey> and < GenerateDataKeyWithoutPlaintext>.+-- Creates a customer master key. Customer master keys can be used to encrypt small amounts of data (less than 4K) directly, but they are most commonly used to encrypt or envelope data keys that are then used to encrypt customer data. For more information about data keys, see < GenerateDataKey> and < GenerateDataKeyWithoutPlaintext>. module Network.AWS.KMS.CreateKey ( -- * Creating a Request@@ -73,20 +69,15 @@ , _ckDescription = Nothing } --- | Specifies the intended use of the key. Currently this defaults to--- ENCRYPT\/DECRYPT, and only symmetric encryption and decryption are--- supported.+-- | Specifies the intended use of the key. Currently this defaults to ENCRYPT\/DECRYPT, and only symmetric encryption and decryption are supported. ckKeyUsage :: Lens' CreateKey (Maybe KeyUsageType) ckKeyUsage = lens _ckKeyUsage (\ s a -> s{_ckKeyUsage = a}); --- | Policy to attach to the key. This is required and delegates back to the--- account. The key is the root of trust. The policy size limit is 32 KiB--- (32768 bytes).+-- | Policy to attach to the key. This is required and delegates back to the account. The key is the root of trust. The policy size limit is 32 KiB (32768 bytes). ckPolicy :: Lens' CreateKey (Maybe Text) ckPolicy = lens _ckPolicy (\ s a -> s{_ckPolicy = a}); --- | Description of the key. We recommend that you choose a description that--- helps your customer decide whether the key is appropriate for a task.+-- | Description of the key. We recommend that you choose a description that helps your customer decide whether the key is appropriate for a task. ckDescription :: Lens' CreateKey (Maybe Text) ckDescription = lens _ckDescription (\ s a -> s{_ckDescription = a});
gen/Network/AWS/KMS/Decrypt.hs view
@@ -18,21 +18,13 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Decrypts ciphertext. Ciphertext is plaintext that has been previously--- encrypted by using any of the following functions:+-- Decrypts ciphertext. Ciphertext is plaintext that has been previously encrypted by using any of the following functions: -- -- - < GenerateDataKey> -- - < GenerateDataKeyWithoutPlaintext> -- - < Encrypt> ----- Note that if a caller has been granted access permissions to all keys--- (through, for example, IAM user policies that grant 'Decrypt' permission--- on all resources), then ciphertext encrypted by using keys in other--- accounts where the key grants access to the caller can be decrypted. To--- remedy this, we recommend that you do not grant 'Decrypt' access in an--- IAM user policy. Instead grant 'Decrypt' access only in key policies. If--- you must grant 'Decrypt' access in an IAM user policy, you should scope--- the resource to specific keys or to specific trusted accounts.+-- Note that if a caller has been granted access permissions to all keys (through, for example, IAM user policies that grant 'Decrypt' permission on all resources), then ciphertext encrypted by using keys in other accounts where the key grants access to the caller can be decrypted. To remedy this, we recommend that you do not grant 'Decrypt' access in an IAM user policy. Instead grant 'Decrypt' access only in key policies. If you must grant 'Decrypt' access in an IAM user policy, you should scope the resource to specific keys or to specific trusted accounts. module Network.AWS.KMS.Decrypt ( -- * Creating a Request@@ -85,18 +77,13 @@ , _decCiphertextBlob = _Base64 # pCiphertextBlob_ } --- | The encryption context. If this was specified in the < Encrypt>--- function, it must be specified here or the decryption operation will--- fail. For more information, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>.+-- | The encryption context. If this was specified in the < Encrypt> function, it must be specified here or the decryption operation will fail. For more information, see <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>. decEncryptionContext :: Lens' Decrypt (HashMap Text Text) decEncryptionContext = lens _decEncryptionContext (\ s a -> s{_decEncryptionContext = a}) . _Default . _Map; -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. decGrantTokens :: Lens' Decrypt [Text] decGrantTokens = lens _decGrantTokens (\ s a -> s{_decGrantTokens = a}) . _Default . _Coerce; @@ -173,13 +160,11 @@ , _drsResponseStatus = pResponseStatus_ } --- | ARN of the key used to perform the decryption. This value is returned if--- no errors are encountered during the operation.+-- | ARN of the key used to perform the decryption. This value is returned if no errors are encountered during the operation. drsKeyId :: Lens' DecryptResponse (Maybe Text) drsKeyId = lens _drsKeyId (\ s a -> s{_drsKeyId = a}); --- | Decrypted plaintext data. This value may not be returned if the customer--- master key is not available or if you didn\'t have permission to use it.+-- | Decrypted plaintext data. This value may not be returned if the customer master key is not available or if you didn\'t have permission to use it. -- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data, -- despite what the AWS documentation might say.
gen/Network/AWS/KMS/DeleteAlias.hs view
@@ -18,8 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes the specified alias. To map an alias to a different key, call--- < UpdateAlias>.+-- Deletes the specified alias. To map an alias to a different key, call < UpdateAlias>. module Network.AWS.KMS.DeleteAlias ( -- * Creating a Request@@ -58,9 +57,7 @@ { _daAliasName = pAliasName_ } --- | The alias to be deleted. The name must start with the word \"alias\"--- followed by a forward slash (alias\/). Aliases that begin with--- \"alias\/AWS\" are reserved.+-- | The alias to be deleted. The name must start with the word \"alias\" followed by a forward slash (alias\/). Aliases that begin with \"alias\/AWS\" are reserved. daAliasName :: Lens' DeleteAlias Text daAliasName = lens _daAliasName (\ s a -> s{_daAliasName = a});
gen/Network/AWS/KMS/DescribeKey.hs view
@@ -67,22 +67,15 @@ -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. dGrantTokens :: Lens' DescribeKey [Text] dGrantTokens = lens _dGrantTokens (\ s a -> s{_dGrantTokens = a}) . _Default . _Coerce; --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier, a fully specified ARN to either an alias or--- a key, or an alias name prefixed by \"alias\/\".+-- | A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias\/\". ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Alias ARN Example ---- arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 -- - Alias Name Example - alias\/MyAliasName dKeyId :: Lens' DescribeKey Text dKeyId = lens _dKeyId (\ s a -> s{_dKeyId = a});
gen/Network/AWS/KMS/DisableKey.hs view
@@ -18,11 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Sets the state of a master key to disabled, thereby preventing its use--- for cryptographic operations. For more information about how key state--- affects the use of a master key, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html How Key State Affects the Use of a Customer Master Key>--- in the /AWS Key Management Service Developer Guide/.+-- Sets the state of a master key to disabled, thereby preventing its use for cryptographic operations. For more information about how key state affects the use of a master key, go to <http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html How Key State Affects the Use of a Customer Master Key> in the /AWS Key Management Service Developer Guide/. module Network.AWS.KMS.DisableKey ( -- * Creating a Request@@ -61,13 +57,10 @@ { _dkKeyId = pKeyId_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 dkKeyId :: Lens' DisableKey Text dkKeyId = lens _dkKeyId (\ s a -> s{_dkKeyId = a});
gen/Network/AWS/KMS/DisableKeyRotation.hs view
@@ -57,13 +57,10 @@ { _dkrKeyId = pKeyId_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 dkrKeyId :: Lens' DisableKeyRotation Text dkrKeyId = lens _dkrKeyId (\ s a -> s{_dkrKeyId = a});
gen/Network/AWS/KMS/EnableKey.hs view
@@ -57,13 +57,10 @@ { _ekKeyId = pKeyId_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 ekKeyId :: Lens' EnableKey Text ekKeyId = lens _ekKeyId (\ s a -> s{_ekKeyId = a});
gen/Network/AWS/KMS/EnableKeyRotation.hs view
@@ -57,13 +57,10 @@ { _ekrKeyId = pKeyId_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 ekrKeyId :: Lens' EnableKeyRotation Text ekrKeyId = lens _ekrKeyId (\ s a -> s{_ekrKeyId = a});
gen/Network/AWS/KMS/Encrypt.hs view
@@ -18,28 +18,14 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Encrypts plaintext into ciphertext by using a customer master key. The--- 'Encrypt' function has two primary use cases:+-- Encrypts plaintext into ciphertext by using a customer master key. The 'Encrypt' function has two primary use cases: ----- - You can encrypt up to 4 KB of arbitrary data such as an RSA key, a--- database password, or other sensitive customer information.--- - If you are moving encrypted data from one region to another, you can--- use this API to encrypt in the new region the plaintext data key--- that was used to encrypt the data in the original region. This--- provides you with an encrypted copy of the data key that can be--- decrypted in the new region and used there to decrypt the encrypted--- data.+-- - You can encrypt up to 4 KB of arbitrary data such as an RSA key, a database password, or other sensitive customer information.+-- - If you are moving encrypted data from one region to another, you can use this API to encrypt in the new region the plaintext data key that was used to encrypt the data in the original region. This provides you with an encrypted copy of the data key that can be decrypted in the new region and used there to decrypt the encrypted data. ----- Unless you are moving encrypted data from one region to another, you--- don\'t use this function to encrypt a generated data key within a--- region. You retrieve data keys already encrypted by calling the--- < GenerateDataKey> or < GenerateDataKeyWithoutPlaintext> function. Data--- keys don\'t need to be encrypted again by calling 'Encrypt'.+-- Unless you are moving encrypted data from one region to another, you don\'t use this function to encrypt a generated data key within a region. You retrieve data keys already encrypted by calling the < GenerateDataKey> or < GenerateDataKeyWithoutPlaintext> function. Data keys don\'t need to be encrypted again by calling 'Encrypt'. ----- If you want to encrypt data locally in your application, you can use the--- 'GenerateDataKey' function to return a plaintext data encryption key and--- a copy of the key encrypted under the customer master key (CMK) of your--- choosing.+-- If you want to encrypt data locally in your application, you can use the 'GenerateDataKey' function to return a plaintext data encryption key and a copy of the key encrypted under the customer master key (CMK) of your choosing. module Network.AWS.KMS.Encrypt ( -- * Creating a Request@@ -98,31 +84,21 @@ , _ePlaintext = _Sensitive . _Base64 # pPlaintext_ } --- | Name\/value pair that specifies the encryption context to be used for--- authenticated encryption. If used here, the same value must be supplied--- to the 'Decrypt' API or decryption will fail. For more information, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>.+-- | Name\/value pair that specifies the encryption context to be used for authenticated encryption. If used here, the same value must be supplied to the 'Decrypt' API or decryption will fail. For more information, see <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>. eEncryptionContext :: Lens' Encrypt (HashMap Text Text) eEncryptionContext = lens _eEncryptionContext (\ s a -> s{_eEncryptionContext = a}) . _Default . _Map; -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. eGrantTokens :: Lens' Encrypt [Text] eGrantTokens = lens _eGrantTokens (\ s a -> s{_eGrantTokens = a}) . _Default . _Coerce; --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier, a fully specified ARN to either an alias or--- a key, or an alias name prefixed by \"alias\/\".+-- | A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias\/\". ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Alias ARN Example ---- arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 -- - Alias Name Example - alias\/MyAliasName eKeyId :: Lens' Encrypt Text eKeyId = lens _eKeyId (\ s a -> s{_eKeyId = a});@@ -205,8 +181,7 @@ ersKeyId :: Lens' EncryptResponse (Maybe Text) ersKeyId = lens _ersKeyId (\ s a -> s{_ersKeyId = a}); --- | The encrypted plaintext. If you are using the CLI, the value is Base64--- encoded. Otherwise, it is not encoded.+-- | The encrypted plaintext. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded. -- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data, -- despite what the AWS documentation might say.
gen/Network/AWS/KMS/GenerateDataKey.hs view
@@ -18,40 +18,15 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Generates a data key that you can use in your application to locally--- encrypt data. This call returns a plaintext version of the key in the--- 'Plaintext' field of the response object and an encrypted copy of the--- key in the 'CiphertextBlob' field. The key is encrypted by using the--- master key specified by the 'KeyId' field. To decrypt the encrypted key,--- pass it to the 'Decrypt' API.+-- Generates a data key that you can use in your application to locally encrypt data. This call returns a plaintext version of the key in the 'Plaintext' field of the response object and an encrypted copy of the key in the 'CiphertextBlob' field. The key is encrypted by using the master key specified by the 'KeyId' field. To decrypt the encrypted key, pass it to the 'Decrypt' API. ----- We recommend that you use the following pattern to locally encrypt data:--- call the 'GenerateDataKey' API, use the key returned in the 'Plaintext'--- response field to locally encrypt data, and then erase the plaintext--- data key from memory. Store the encrypted data key (contained in the--- 'CiphertextBlob' field) alongside of the locally encrypted data.+-- We recommend that you use the following pattern to locally encrypt data: call the 'GenerateDataKey' API, use the key returned in the 'Plaintext' response field to locally encrypt data, and then erase the plaintext data key from memory. Store the encrypted data key (contained in the 'CiphertextBlob' field) alongside of the locally encrypted data. ----- You should not call the 'Encrypt' function to re-encrypt your data keys--- within a region. 'GenerateDataKey' always returns the data key encrypted--- and tied to the customer master key that will be used to decrypt it.--- There is no need to decrypt it twice.+-- You should not call the 'Encrypt' function to re-encrypt your data keys within a region. 'GenerateDataKey' always returns the data key encrypted and tied to the customer master key that will be used to decrypt it. There is no need to decrypt it twice. ----- If you decide to use the optional 'EncryptionContext' parameter, you--- must also store the context in full or at least store enough information--- along with the encrypted data to be able to reconstruct the context when--- submitting the ciphertext to the 'Decrypt' API. It is a good practice to--- choose a context that you can reconstruct on the fly to better secure--- the ciphertext. For more information about how this parameter is used,--- see--- <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>.+-- If you decide to use the optional 'EncryptionContext' parameter, you must also store the context in full or at least store enough information along with the encrypted data to be able to reconstruct the context when submitting the ciphertext to the 'Decrypt' API. It is a good practice to choose a context that you can reconstruct on the fly to better secure the ciphertext. For more information about how this parameter is used, see <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>. ----- To decrypt data, pass the encrypted data key to the 'Decrypt' API.--- 'Decrypt' uses the associated master key to decrypt the encrypted data--- key and returns it as plaintext. Use the plaintext data key to locally--- decrypt your data and then erase the key from memory. You must specify--- the encryption context, if any, that you specified when you generated--- the key. The encryption context is logged by CloudTrail, and you can use--- this log to help track the use of particular data.+-- To decrypt data, pass the encrypted data key to the 'Decrypt' API. 'Decrypt' uses the associated master key to decrypt the encrypted data key and returns it as plaintext. Use the plaintext data key to locally decrypt your data and then erase the key from memory. You must specify the encryption context, if any, that you specified when you generated the key. The encryption context is logged by CloudTrail, and you can use this log to help track the use of particular data. module Network.AWS.KMS.GenerateDataKey ( -- * Creating a Request@@ -115,42 +90,29 @@ , _gdkKeyId = pKeyId_ } --- | Value that identifies the encryption algorithm and key size to generate--- a data key for. Currently this can be AES_128 or AES_256.+-- | Value that identifies the encryption algorithm and key size to generate a data key for. Currently this can be AES_128 or AES_256. gdkKeySpec :: Lens' GenerateDataKey (Maybe DataKeySpec) gdkKeySpec = lens _gdkKeySpec (\ s a -> s{_gdkKeySpec = a}); --- | Name\/value pair that contains additional data to be authenticated--- during the encryption and decryption processes that use the key. This--- value is logged by AWS CloudTrail to provide context around the data--- encrypted by the key.+-- | Name\/value pair that contains additional data to be authenticated during the encryption and decryption processes that use the key. This value is logged by AWS CloudTrail to provide context around the data encrypted by the key. gdkEncryptionContext :: Lens' GenerateDataKey (HashMap Text Text) gdkEncryptionContext = lens _gdkEncryptionContext (\ s a -> s{_gdkEncryptionContext = a}) . _Default . _Map; --- | Integer that contains the number of bytes to generate. Common values are--- 128, 256, 512, and 1024. 1024 is the current limit. We recommend that--- you use the 'KeySpec' parameter instead.+-- | Integer that contains the number of bytes to generate. Common values are 128, 256, 512, and 1024. 1024 is the current limit. We recommend that you use the 'KeySpec' parameter instead. gdkNumberOfBytes :: Lens' GenerateDataKey (Maybe Natural) gdkNumberOfBytes = lens _gdkNumberOfBytes (\ s a -> s{_gdkNumberOfBytes = a}) . mapping _Nat; -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. gdkGrantTokens :: Lens' GenerateDataKey [Text] gdkGrantTokens = lens _gdkGrantTokens (\ s a -> s{_gdkGrantTokens = a}) . _Default . _Coerce; --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier, a fully specified ARN to either an alias or--- a key, or an alias name prefixed by \"alias\/\".+-- | A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias\/\". ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Alias ARN Example ---- arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 -- - Alias Name Example - alias\/MyAliasName gdkKeyId :: Lens' GenerateDataKey Text gdkKeyId = lens _gdkKeyId (\ s a -> s{_gdkKeyId = a});@@ -232,13 +194,11 @@ gdkrsResponseStatus :: Lens' GenerateDataKeyResponse Int gdkrsResponseStatus = lens _gdkrsResponseStatus (\ s a -> s{_gdkrsResponseStatus = a}); --- | System generated unique identifier of the key to be used to decrypt the--- encrypted copy of the data key.+-- | System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key. gdkrsKeyId :: Lens' GenerateDataKeyResponse Text gdkrsKeyId = lens _gdkrsKeyId (\ s a -> s{_gdkrsKeyId = a}); --- | Plaintext that contains the data key. Use this for encryption and--- decryption and then remove it from memory as soon as possible.+-- | Plaintext that contains the data key. Use this for encryption and decryption and then remove it from memory as soon as possible. -- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data, -- despite what the AWS documentation might say.@@ -248,14 +208,9 @@ gdkrsPlaintext :: Lens' GenerateDataKeyResponse ByteString gdkrsPlaintext = lens _gdkrsPlaintext (\ s a -> s{_gdkrsPlaintext = a}) . _Sensitive . _Base64; --- | Ciphertext that contains the encrypted data key. You must store the blob--- and enough information to reconstruct the encryption context so that the--- data encrypted by using the key can later be decrypted. You must provide--- both the ciphertext blob and the encryption context to the < Decrypt>--- API to recover the plaintext data key and decrypt the object.+-- | Ciphertext that contains the encrypted data key. You must store the blob and enough information to reconstruct the encryption context so that the data encrypted by using the key can later be decrypted. You must provide both the ciphertext blob and the encryption context to the < Decrypt> API to recover the plaintext data key and decrypt the object. ----- If you are using the CLI, the value is Base64 encoded. Otherwise, it is--- not encoded.+-- If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded. -- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data, -- despite what the AWS documentation might say.
gen/Network/AWS/KMS/GenerateDataKeyWithoutPlaintext.hs view
@@ -18,11 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a data key encrypted by a customer master key without the--- plaintext copy of that key. Otherwise, this API functions exactly like--- < GenerateDataKey>. You can use this API to, for example, satisfy an--- audit requirement that an encrypted key be made available without--- exposing the plaintext copy of that key.+-- Returns a data key encrypted by a customer master key without the plaintext copy of that key. Otherwise, this API functions exactly like < GenerateDataKey>. You can use this API to, for example, satisfy an audit requirement that an encrypted key be made available without exposing the plaintext copy of that key. module Network.AWS.KMS.GenerateDataKeyWithoutPlaintext ( -- * Creating a Request@@ -85,40 +81,29 @@ , _gdkwpKeyId = pKeyId_ } --- | Value that identifies the encryption algorithm and key size. Currently--- this can be AES_128 or AES_256.+-- | Value that identifies the encryption algorithm and key size. Currently this can be AES_128 or AES_256. gdkwpKeySpec :: Lens' GenerateDataKeyWithoutPlaintext (Maybe DataKeySpec) gdkwpKeySpec = lens _gdkwpKeySpec (\ s a -> s{_gdkwpKeySpec = a}); --- | Name:value pair that contains additional data to be authenticated during--- the encryption and decryption processes.+-- | Name:value pair that contains additional data to be authenticated during the encryption and decryption processes. gdkwpEncryptionContext :: Lens' GenerateDataKeyWithoutPlaintext (HashMap Text Text) gdkwpEncryptionContext = lens _gdkwpEncryptionContext (\ s a -> s{_gdkwpEncryptionContext = a}) . _Default . _Map; --- | Integer that contains the number of bytes to generate. Common values are--- 128, 256, 512, 1024 and so on. We recommend that you use the 'KeySpec'--- parameter instead.+-- | Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. We recommend that you use the 'KeySpec' parameter instead. gdkwpNumberOfBytes :: Lens' GenerateDataKeyWithoutPlaintext (Maybe Natural) gdkwpNumberOfBytes = lens _gdkwpNumberOfBytes (\ s a -> s{_gdkwpNumberOfBytes = a}) . mapping _Nat; -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. gdkwpGrantTokens :: Lens' GenerateDataKeyWithoutPlaintext [Text] gdkwpGrantTokens = lens _gdkwpGrantTokens (\ s a -> s{_gdkwpGrantTokens = a}) . _Default . _Coerce; --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier, a fully specified ARN to either an alias or--- a key, or an alias name prefixed by \"alias\/\".+-- | A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias\/\". ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Alias ARN Example ---- arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 -- - Alias Name Example - alias\/MyAliasName gdkwpKeyId :: Lens' GenerateDataKeyWithoutPlaintext Text gdkwpKeyId = lens _gdkwpKeyId (\ s a -> s{_gdkwpKeyId = a});@@ -193,17 +178,13 @@ , _gdkwprsResponseStatus = pResponseStatus_ } --- | System generated unique identifier of the key to be used to decrypt the--- encrypted copy of the data key.+-- | System generated unique identifier of the key to be used to decrypt the encrypted copy of the data key. gdkwprsKeyId :: Lens' GenerateDataKeyWithoutPlaintextResponse (Maybe Text) gdkwprsKeyId = lens _gdkwprsKeyId (\ s a -> s{_gdkwprsKeyId = a}); --- | Ciphertext that contains the wrapped data key. You must store the blob--- and encryption context so that the key can be used in a future decrypt--- operation.+-- | Ciphertext that contains the wrapped data key. You must store the blob and encryption context so that the key can be used in a future decrypt operation. ----- If you are using the CLI, the value is Base64 encoded. Otherwise, it is--- not encoded.+-- If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded. -- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data, -- despite what the AWS documentation might say.
gen/Network/AWS/KMS/GenerateRandom.hs view
@@ -59,8 +59,7 @@ { _grNumberOfBytes = Nothing } --- | Integer that contains the number of bytes to generate. Common values are--- 128, 256, 512, 1024 and so on. The current limit is 1024 bytes.+-- | Integer that contains the number of bytes to generate. Common values are 128, 256, 512, 1024 and so on. The current limit is 1024 bytes. grNumberOfBytes :: Lens' GenerateRandom (Maybe Natural) grNumberOfBytes = lens _grNumberOfBytes (\ s a -> s{_grNumberOfBytes = a}) . mapping _Nat;
gen/Network/AWS/KMS/GetKeyPolicy.hs view
@@ -66,19 +66,14 @@ , _gkpPolicyName = pPolicyName_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 gkpKeyId :: Lens' GetKeyPolicy Text gkpKeyId = lens _gkpKeyId (\ s a -> s{_gkpKeyId = a}); --- | String that contains the name of the policy. Currently, this must be--- \"default\". Policy names can be discovered by calling--- < ListKeyPolicies>.+-- | String that contains the name of the policy. Currently, this must be \"default\". Policy names can be discovered by calling < ListKeyPolicies>. gkpPolicyName :: Lens' GetKeyPolicy Text gkpPolicyName = lens _gkpPolicyName (\ s a -> s{_gkpPolicyName = a});
gen/Network/AWS/KMS/GetKeyRotationStatus.hs view
@@ -18,8 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Retrieves a Boolean value that indicates whether key rotation is enabled--- for the specified key.+-- Retrieves a Boolean value that indicates whether key rotation is enabled for the specified key. module Network.AWS.KMS.GetKeyRotationStatus ( -- * Creating a Request@@ -61,13 +60,10 @@ { _gkrsKeyId = pKeyId_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 gkrsKeyId :: Lens' GetKeyRotationStatus Text gkrsKeyId = lens _gkrsKeyId (\ s a -> s{_gkrsKeyId = a});
gen/Network/AWS/KMS/ListAliases.hs view
@@ -69,18 +69,13 @@ , _laLimit = Nothing } --- | Use this parameter only when paginating results and only in a subsequent--- request after you receive a response with truncated results. Set it to--- the value of 'NextMarker' from the response you just received.+-- | Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of 'NextMarker' from the response you just received. laMarker :: Lens' ListAliases (Maybe Text) laMarker = lens _laMarker (\ s a -> s{_laMarker = a}); --- | When paginating results, specify the maximum number of items to return--- in the response. If additional items exist beyond the number you--- specify, the 'Truncated' element in the response is set to true.+-- | When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the 'Truncated' element in the response is set to true. ----- This value is optional. If you include a value, it must be between 1 and--- 100, inclusive. If you do not include a value, it defaults to 50.+-- This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50. laLimit :: Lens' ListAliases (Maybe Natural) laLimit = lens _laLimit (\ s a -> s{_laLimit = a}) . mapping _Nat; @@ -158,9 +153,7 @@ , _larsResponseStatus = pResponseStatus_ } --- | A flag that indicates whether there are more items in the list. If your--- results were truncated, you can use the 'Marker' parameter to make a--- subsequent pagination request to retrieve more items in the list.+-- | A flag that indicates whether there are more items in the list. If your results were truncated, you can use the 'Marker' parameter to make a subsequent pagination request to retrieve more items in the list. larsTruncated :: Lens' ListAliasesResponse (Maybe Bool) larsTruncated = lens _larsTruncated (\ s a -> s{_larsTruncated = a}); @@ -168,8 +161,7 @@ larsAliases :: Lens' ListAliasesResponse [AliasListEntry] larsAliases = lens _larsAliases (\ s a -> s{_larsAliases = a}) . _Default . _Coerce; --- | When 'Truncated' is true, this value is present and contains the value--- to use for the 'Marker' parameter in a subsequent pagination request.+-- | When 'Truncated' is true, this value is present and contains the value to use for the 'Marker' parameter in a subsequent pagination request. larsNextMarker :: Lens' ListAliasesResponse (Maybe Text) larsNextMarker = lens _larsNextMarker (\ s a -> s{_larsNextMarker = a});
gen/Network/AWS/KMS/ListGrants.hs view
@@ -74,28 +74,20 @@ , _lgKeyId = pKeyId_ } --- | Use this parameter only when paginating results and only in a subsequent--- request after you receive a response with truncated results. Set it to--- the value of 'NextMarker' from the response you just received.+-- | Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of 'NextMarker' from the response you just received. lgMarker :: Lens' ListGrants (Maybe Text) lgMarker = lens _lgMarker (\ s a -> s{_lgMarker = a}); --- | When paginating results, specify the maximum number of items to return--- in the response. If additional items exist beyond the number you--- specify, the 'Truncated' element in the response is set to true.+-- | When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the 'Truncated' element in the response is set to true. ----- This value is optional. If you include a value, it must be between 1 and--- 100, inclusive. If you do not include a value, it defaults to 50.+-- This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50. lgLimit :: Lens' ListGrants (Maybe Natural) lgLimit = lens _lgLimit (\ s a -> s{_lgLimit = a}) . mapping _Nat; --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 lgKeyId :: Lens' ListGrants Text lgKeyId = lens _lgKeyId (\ s a -> s{_lgKeyId = a});
gen/Network/AWS/KMS/ListKeyPolicies.hs view
@@ -75,33 +75,23 @@ , _lkpKeyId = pKeyId_ } --- | Use this parameter only when paginating results and only in a subsequent--- request after you receive a response with truncated results. Set it to--- the value of 'NextMarker' from the response you just received.+-- | Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of 'NextMarker' from the response you just received. lkpMarker :: Lens' ListKeyPolicies (Maybe Text) lkpMarker = lens _lkpMarker (\ s a -> s{_lkpMarker = a}); --- | When paginating results, specify the maximum number of items to return--- in the response. If additional items exist beyond the number you--- specify, the 'Truncated' element in the response is set to true.+-- | When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the 'Truncated' element in the response is set to true. ----- This value is optional. If you include a value, it must be between 1 and--- 1000, inclusive. If you do not include a value, it defaults to 100.+-- This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100. -- -- Currently only 1 policy can be attached to a key. lkpLimit :: Lens' ListKeyPolicies (Maybe Natural) lkpLimit = lens _lkpLimit (\ s a -> s{_lkpLimit = a}) . mapping _Nat; --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier, a fully specified ARN to either an alias or--- a key, or an alias name prefixed by \"alias\/\".+-- | A unique identifier for the customer master key. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias\/\". ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Alias ARN Example ---- arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 -- - Alias Name Example - alias\/MyAliasName lkpKeyId :: Lens' ListKeyPolicies Text lkpKeyId = lens _lkpKeyId (\ s a -> s{_lkpKeyId = a});@@ -182,19 +172,15 @@ , _lkprsResponseStatus = pResponseStatus_ } --- | A list of policy names. Currently, there is only one policy and it is--- named \"Default\".+-- | A list of policy names. Currently, there is only one policy and it is named \"Default\". lkprsPolicyNames :: Lens' ListKeyPoliciesResponse [Text] lkprsPolicyNames = lens _lkprsPolicyNames (\ s a -> s{_lkprsPolicyNames = a}) . _Default . _Coerce; --- | A flag that indicates whether there are more items in the list. If your--- results were truncated, you can use the 'Marker' parameter to make a--- subsequent pagination request to retrieve more items in the list.+-- | A flag that indicates whether there are more items in the list. If your results were truncated, you can use the 'Marker' parameter to make a subsequent pagination request to retrieve more items in the list. lkprsTruncated :: Lens' ListKeyPoliciesResponse (Maybe Bool) lkprsTruncated = lens _lkprsTruncated (\ s a -> s{_lkprsTruncated = a}); --- | When 'Truncated' is true, this value is present and contains the value--- to use for the 'Marker' parameter in a subsequent pagination request.+-- | When 'Truncated' is true, this value is present and contains the value to use for the 'Marker' parameter in a subsequent pagination request. lkprsNextMarker :: Lens' ListKeyPoliciesResponse (Maybe Text) lkprsNextMarker = lens _lkprsNextMarker (\ s a -> s{_lkprsNextMarker = a});
gen/Network/AWS/KMS/ListKeys.hs view
@@ -69,18 +69,13 @@ , _lkLimit = Nothing } --- | Use this parameter only when paginating results and only in a subsequent--- request after you receive a response with truncated results. Set it to--- the value of 'NextMarker' from the response you just received.+-- | Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of 'NextMarker' from the response you just received. lkMarker :: Lens' ListKeys (Maybe Text) lkMarker = lens _lkMarker (\ s a -> s{_lkMarker = a}); --- | When paginating results, specify the maximum number of items to return--- in the response. If additional items exist beyond the number you--- specify, the 'Truncated' element in the response is set to true.+-- | When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the 'Truncated' element in the response is set to true. ----- This value is optional. If you include a value, it must be between 1 and--- 1000, inclusive. If you do not include a value, it defaults to 100.+-- This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100. lkLimit :: Lens' ListKeys (Maybe Natural) lkLimit = lens _lkLimit (\ s a -> s{_lkLimit = a}) . mapping _Nat; @@ -158,9 +153,7 @@ , _lkrsResponseStatus = pResponseStatus_ } --- | A flag that indicates whether there are more items in the list. If your--- results were truncated, you can use the 'Marker' parameter to make a--- subsequent pagination request to retrieve more items in the list.+-- | A flag that indicates whether there are more items in the list. If your results were truncated, you can use the 'Marker' parameter to make a subsequent pagination request to retrieve more items in the list. lkrsTruncated :: Lens' ListKeysResponse (Maybe Bool) lkrsTruncated = lens _lkrsTruncated (\ s a -> s{_lkrsTruncated = a}); @@ -168,8 +161,7 @@ lkrsKeys :: Lens' ListKeysResponse [KeyListEntry] lkrsKeys = lens _lkrsKeys (\ s a -> s{_lkrsKeys = a}) . _Default . _Coerce; --- | When 'Truncated' is true, this value is present and contains the value--- to use for the 'Marker' parameter in a subsequent pagination request.+-- | When 'Truncated' is true, this value is present and contains the value to use for the 'Marker' parameter in a subsequent pagination request. lkrsNextMarker :: Lens' ListKeysResponse (Maybe Text) lkrsNextMarker = lens _lkrsNextMarker (\ s a -> s{_lkrsNextMarker = a});
gen/Network/AWS/KMS/ListRetirableGrants.hs view
@@ -18,11 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns a list of all grants for which the grant\'s 'RetiringPrincipal'--- matches the one specified.+-- Returns a list of all grants for which the grant\'s 'RetiringPrincipal' matches the one specified. ----- A typical use is to list all grants that you are able to retire. To--- retire a grant, use < RetireGrant>.+-- A typical use is to list all grants that you are able to retire. To retire a grant, use < RetireGrant>. module Network.AWS.KMS.ListRetirableGrants ( -- * Creating a Request@@ -75,31 +73,19 @@ , _lrgRetiringPrincipal = pRetiringPrincipal_ } --- | Use this parameter only when paginating results and only in a subsequent--- request after you receive a response with truncated results. Set it to--- the value of 'NextMarker' from the response you just received.+-- | Use this parameter only when paginating results and only in a subsequent request after you receive a response with truncated results. Set it to the value of 'NextMarker' from the response you just received. lrgMarker :: Lens' ListRetirableGrants (Maybe Text) lrgMarker = lens _lrgMarker (\ s a -> s{_lrgMarker = a}); --- | When paginating results, specify the maximum number of items to return--- in the response. If additional items exist beyond the number you--- specify, the 'Truncated' element in the response is set to true.+-- | When paginating results, specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the 'Truncated' element in the response is set to true. ----- This value is optional. If you include a value, it must be between 1 and--- 100, inclusive. If you do not include a value, it defaults to 50.+-- This value is optional. If you include a value, it must be between 1 and 100, inclusive. If you do not include a value, it defaults to 50. lrgLimit :: Lens' ListRetirableGrants (Maybe Natural) lrgLimit = lens _lrgLimit (\ s a -> s{_lrgLimit = a}) . mapping _Nat; -- | The retiring principal for which to list grants. ----- To specify the retiring principal, use the--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)>--- of an AWS principal. Valid AWS principals include AWS accounts (root),--- IAM users, federated users, and assumed role users. For examples of the--- ARN syntax for specifying a principal, go to--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam AWS Identity and Access Management (IAM)>--- in the Example ARNs section of the /Amazon Web Services General--- Reference/.+-- To specify the retiring principal, use the <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of an AWS principal. Valid AWS principals include AWS accounts (root), IAM users, federated users, and assumed role users. For examples of the ARN syntax for specifying a principal, go to <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-iam AWS Identity and Access Management (IAM)> in the Example ARNs section of the /Amazon Web Services General Reference/. lrgRetiringPrincipal :: Lens' ListRetirableGrants Text lrgRetiringPrincipal = lens _lrgRetiringPrincipal (\ s a -> s{_lrgRetiringPrincipal = a});
gen/Network/AWS/KMS/PutKeyPolicy.hs view
@@ -69,24 +69,18 @@ , _pkpPolicy = pPolicy_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 pkpKeyId :: Lens' PutKeyPolicy Text pkpKeyId = lens _pkpKeyId (\ s a -> s{_pkpKeyId = a}); --- | Name of the policy to be attached. Currently, the only supported name is--- \"default\".+-- | Name of the policy to be attached. Currently, the only supported name is \"default\". pkpPolicyName :: Lens' PutKeyPolicy Text pkpPolicyName = lens _pkpPolicyName (\ s a -> s{_pkpPolicyName = a}); --- | The policy to attach to the key. This is required and delegates back to--- the account. The key is the root of trust. The policy size limit is 32--- KiB (32768 bytes).+-- | The policy to attach to the key. This is required and delegates back to the account. The key is the root of trust. The policy size limit is 32 KiB (32768 bytes). pkpPolicy :: Lens' PutKeyPolicy Text pkpPolicy = lens _pkpPolicy (\ s a -> s{_pkpPolicy = a});
gen/Network/AWS/KMS/ReEncrypt.hs view
@@ -18,19 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Encrypts data on the server side with a new customer master key without--- exposing the plaintext of the data on the client side. The data is first--- decrypted and then encrypted. This operation can also be used to change--- the encryption context of a ciphertext.+-- Encrypts data on the server side with a new customer master key without exposing the plaintext of the data on the client side. The data is first decrypted and then encrypted. This operation can also be used to change the encryption context of a ciphertext. ----- Unlike other actions, 'ReEncrypt' is authorized twice - once as--- 'ReEncryptFrom' on the source key and once as 'ReEncryptTo' on the--- destination key. We therefore recommend that you include the--- '\"action\":\"kms:ReEncrypt*\"' statement in your key policies to permit--- re-encryption from or to the key. The statement is included--- automatically when you authorize use of the key through the console but--- must be included manually when you set a policy by using the--- < PutKeyPolicy> function.+-- Unlike other actions, 'ReEncrypt' is authorized twice - once as 'ReEncryptFrom' on the source key and once as 'ReEncryptTo' on the destination key. We therefore recommend that you include the '\"action\":\"kms:ReEncrypt*\"' statement in your key policies to permit re-encryption from or to the key. The statement is included automatically when you authorize use of the key through the console but must be included manually when you set a policy by using the < PutKeyPolicy> function. module Network.AWS.KMS.ReEncrypt ( -- * Creating a Request@@ -99,16 +89,13 @@ reDestinationEncryptionContext :: Lens' ReEncrypt (HashMap Text Text) reDestinationEncryptionContext = lens _reDestinationEncryptionContext (\ s a -> s{_reDestinationEncryptionContext = a}) . _Default . _Map; --- | Encryption context used to encrypt and decrypt the data specified in the--- 'CiphertextBlob' parameter.+-- | Encryption context used to encrypt and decrypt the data specified in the 'CiphertextBlob' parameter. reSourceEncryptionContext :: Lens' ReEncrypt (HashMap Text Text) reSourceEncryptionContext = lens _reSourceEncryptionContext (\ s a -> s{_reSourceEncryptionContext = a}) . _Default . _Map; -- | A list of grant tokens. ----- For more information, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens>--- in the /AWS Key Management Service Developer Guide/.+-- For more information, go to <http://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#grant_token Grant Tokens> in the /AWS Key Management Service Developer Guide/. reGrantTokens :: Lens' ReEncrypt [Text] reGrantTokens = lens _reGrantTokens (\ s a -> s{_reGrantTokens = a}) . _Default . _Coerce; @@ -122,17 +109,11 @@ reCiphertextBlob :: Lens' ReEncrypt ByteString reCiphertextBlob = lens _reCiphertextBlob (\ s a -> s{_reCiphertextBlob = a}) . _Base64; --- | A unique identifier for the customer master key used to re-encrypt the--- data. This value can be a globally unique identifier, a fully specified--- ARN to either an alias or a key, or an alias name prefixed by--- \"alias\/\".+-- | A unique identifier for the customer master key used to re-encrypt the data. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias\/\". ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Alias ARN Example ---- arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Alias ARN Example - arn:aws:kms:us-east-1:123456789012:alias\/MyAliasName+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 -- - Alias Name Example - alias\/MyAliasName reDestinationKeyId :: Lens' ReEncrypt Text reDestinationKeyId = lens _reDestinationKeyId (\ s a -> s{_reDestinationKeyId = a});@@ -217,8 +198,7 @@ rersKeyId :: Lens' ReEncryptResponse (Maybe Text) rersKeyId = lens _rersKeyId (\ s a -> s{_rersKeyId = a}); --- | The re-encrypted data. If you are using the CLI, the value is Base64--- encoded. Otherwise, it is not encoded.+-- | The re-encrypted data. If you are using the CLI, the value is Base64 encoded. Otherwise, it is not encoded. -- -- /Note:/ This 'Lens' automatically encodes and decodes Base64 data, -- despite what the AWS documentation might say.
gen/Network/AWS/KMS/RetireGrant.hs view
@@ -18,20 +18,13 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Retires a grant. You can retire a grant when you\'re done using it to--- clean up. You should revoke a grant when you intend to actively deny--- operations that depend on it. The following are permitted to call this--- API:+-- Retires a grant. You can retire a grant when you\'re done using it to clean up. You should revoke a grant when you intend to actively deny operations that depend on it. The following are permitted to call this API: -- -- - The account that created the grant -- - The 'RetiringPrincipal', if present -- - The 'GranteePrincipal', if 'RetireGrant' is a grantee operation ----- The grant to retire must be identified by its grant token or by a--- combination of the key ARN and the grant ID. A grant token is a unique--- variable-length base64-encoded string. A grant ID is a 64 character--- unique identifier of a grant. Both are returned by the 'CreateGrant'--- function.+-- The grant to retire must be identified by its grant token or by a combination of the key ARN and the grant ID. A grant token is a unique variable-length base64-encoded string. A grant ID is a 64 character unique identifier of a grant. Both are returned by the 'CreateGrant' function. module Network.AWS.KMS.RetireGrant ( -- * Creating a Request@@ -79,22 +72,16 @@ , _rgGrantToken = Nothing } --- | A unique identifier for the customer master key associated with the--- grant. This value can be a globally unique identifier or a fully--- specified ARN of the key.+-- | A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or a fully specified ARN of the key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 rgKeyId :: Lens' RetireGrant (Maybe Text) rgKeyId = lens _rgKeyId (\ s a -> s{_rgKeyId = a}); --- | Unique identifier of the grant to be retired. The grant ID is returned--- by the 'CreateGrant' function.+-- | Unique identifier of the grant to be retired. The grant ID is returned by the 'CreateGrant' function. ----- - Grant ID Example ---- 0123456789012345678901234567890123456789012345678901234567890123+-- - Grant ID Example - 0123456789012345678901234567890123456789012345678901234567890123 rgGrantId :: Lens' RetireGrant (Maybe Text) rgGrantId = lens _rgGrantId (\ s a -> s{_rgGrantId = a});
gen/Network/AWS/KMS/RevokeGrant.hs view
@@ -18,8 +18,7 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Revokes a grant. You can revoke a grant to actively deny operations that--- depend on it.+-- Revokes a grant. You can revoke a grant to actively deny operations that depend on it. module Network.AWS.KMS.RevokeGrant ( -- * Creating a Request@@ -64,14 +63,10 @@ , _rGrantId = pGrantId_ } --- | A unique identifier for the customer master key associated with the--- grant. This value can be a globally unique identifier or the fully--- specified ARN to a key.+-- | A unique identifier for the customer master key associated with the grant. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 rKeyId :: Lens' RevokeGrant Text rKeyId = lens _rKeyId (\ s a -> s{_rKeyId = a});
gen/Network/AWS/KMS/ScheduleKeyDeletion.hs view
@@ -18,23 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Schedules the deletion of a customer master key (CMK). You may provide a--- waiting period, specified in days, before deletion occurs. If you do not--- provide a waiting period, the default period of 30 days is used. When--- this operation is successful, the state of the CMK changes to--- 'PendingDeletion'. Before the waiting period ends, you can use--- < CancelKeyDeletion> to cancel the deletion of the CMK. After the--- waiting period ends, AWS KMS deletes the CMK and all AWS KMS data--- associated with it, including all aliases that point to it.+-- Schedules the deletion of a customer master key (CMK). You may provide a waiting period, specified in days, before deletion occurs. If you do not provide a waiting period, the default period of 30 days is used. When this operation is successful, the state of the CMK changes to 'PendingDeletion'. Before the waiting period ends, you can use < CancelKeyDeletion> to cancel the deletion of the CMK. After the waiting period ends, AWS KMS deletes the CMK and all AWS KMS data associated with it, including all aliases that point to it. ----- Deleting a CMK is a destructive and potentially dangerous operation.--- When a CMK is deleted, all data that was encrypted under the CMK is--- rendered unrecoverable. To restrict the use of a CMK without deleting--- it, use < DisableKey>.+-- Deleting a CMK is a destructive and potentially dangerous operation. When a CMK is deleted, all data that was encrypted under the CMK is rendered unrecoverable. To restrict the use of a CMK without deleting it, use < DisableKey>. ----- For more information about scheduling a CMK for deletion, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html Deleting Customer Master Keys>--- in the /AWS Key Management Service Developer Guide/.+-- For more information about scheduling a CMK for deletion, go to <http://docs.aws.amazon.com/kms/latest/developerguide/deleting-keys.html Deleting Customer Master Keys> in the /AWS Key Management Service Developer Guide/. module Network.AWS.KMS.ScheduleKeyDeletion ( -- * Creating a Request@@ -82,25 +70,20 @@ , _skdKeyId = pKeyId_ } --- | The waiting period, specified in number of days. After the waiting--- period ends, AWS KMS deletes the customer master key (CMK).+-- | The waiting period, specified in number of days. After the waiting period ends, AWS KMS deletes the customer master key (CMK). ----- This value is optional. If you include a value, it must be between 7 and--- 30, inclusive. If you do not include a value, it defaults to 30.+-- This value is optional. If you include a value, it must be between 7 and 30, inclusive. If you do not include a value, it defaults to 30. skdPendingWindowInDays :: Lens' ScheduleKeyDeletion (Maybe Natural) skdPendingWindowInDays = lens _skdPendingWindowInDays (\ s a -> s{_skdPendingWindowInDays = a}) . mapping _Nat; -- | The unique identifier for the customer master key (CMK) to delete. ----- To specify this value, use the unique key ID or the Amazon Resource Name--- (ARN) of the CMK. Examples:+-- To specify this value, use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples: -- -- - Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab--- - Key ARN:--- arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab+-- - Key ARN: arn:aws:kms:us-west-2:111122223333:key\/1234abcd-12ab-34cd-56ef-1234567890ab ----- To obtain the unique key ID and key ARN for a given CMK, use < ListKeys>--- or < DescribeKey>.+-- To obtain the unique key ID and key ARN for a given CMK, use < ListKeys> or < DescribeKey>. skdKeyId :: Lens' ScheduleKeyDeletion Text skdKeyId = lens _skdKeyId (\ s a -> s{_skdKeyId = a}); @@ -168,13 +151,11 @@ , _skdrsResponseStatus = pResponseStatus_ } --- | The unique identifier of the customer master key (CMK) for which--- deletion is scheduled.+-- | The unique identifier of the customer master key (CMK) for which deletion is scheduled. skdrsKeyId :: Lens' ScheduleKeyDeletionResponse (Maybe Text) skdrsKeyId = lens _skdrsKeyId (\ s a -> s{_skdrsKeyId = a}); --- | The date and time after which AWS KMS deletes the customer master key--- (CMK).+-- | The date and time after which AWS KMS deletes the customer master key (CMK). skdrsDeletionDate :: Lens' ScheduleKeyDeletionResponse (Maybe UTCTime) skdrsDeletionDate = lens _skdrsDeletionDate (\ s a -> s{_skdrsDeletionDate = a}) . mapping _Time;
gen/Network/AWS/KMS/Types.hs view
@@ -139,28 +139,21 @@ | has (hasStatus 509) e = Just "limit_exceeded" | otherwise = Nothing --- | The request was rejected because the marker that specifies where--- pagination should next begin is not valid.+-- | The request was rejected because the marker that specifies where pagination should next begin is not valid. _InvalidMarkerException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidMarkerException = _ServiceError . hasCode "InvalidMarkerException" --- | The request was rejected because the state of the specified resource is--- not valid for this request.+-- | The request was rejected because the state of the specified resource is not valid for this request. ----- For more information about how key state affects the use of a customer--- master key (CMK), go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html How Key State Affects the Use of a Customer Master Key>--- in the /AWS Key Management Service Developer Guide/.+-- For more information about how key state affects the use of a customer master key (CMK), go to <http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html How Key State Affects the Use of a Customer Master Key> in the /AWS Key Management Service Developer Guide/. _KMSInvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError _KMSInvalidStateException = _ServiceError . hasCode "KMSInvalidStateException" --- | The request was rejected because the specified KeySpec parameter is not--- valid. The currently supported value is ENCRYPT\/DECRYPT.+-- | The request was rejected because the specified KeySpec parameter is not valid. The currently supported value is ENCRYPT\/DECRYPT. _InvalidKeyUsageException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidKeyUsageException = _ServiceError . hasCode "InvalidKeyUsageException" --- | The request was rejected because the specified policy is not--- syntactically or semantically correct.+-- | The request was rejected because the specified policy is not syntactically or semantically correct. _MalformedPolicyDocumentException :: AsError a => Getting (First ServiceError) a ServiceError _MalformedPolicyDocumentException = _ServiceError . hasCode "MalformedPolicyDocumentException"@@ -170,23 +163,19 @@ _UnsupportedOperationException = _ServiceError . hasCode "UnsupportedOperationException" --- | The request was rejected because the specified key was marked as--- disabled.+-- | The request was rejected because the specified key was marked as disabled. _DisabledException :: AsError a => Getting (First ServiceError) a ServiceError _DisabledException = _ServiceError . hasCode "DisabledException" --- | The request was rejected because the key was not available. The request--- can be retried.+-- | The request was rejected because the key was not available. The request can be retried. _KeyUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError _KeyUnavailableException = _ServiceError . hasCode "KeyUnavailableException" --- | The request was rejected because an internal exception occurred. The--- request can be retried.+-- | The request was rejected because an internal exception occurred. The request can be retried. _KMSInternalException :: AsError a => Getting (First ServiceError) a ServiceError _KMSInternalException = _ServiceError . hasCode "KMSInternalException" --- | The request was rejected because the specified entity or resource could--- not be found.+-- | The request was rejected because the specified entity or resource could not be found. _NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _NotFoundException = _ServiceError . hasCode "NotFoundException" @@ -199,8 +188,7 @@ _InvalidGrantIdException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidGrantIdException = _ServiceError . hasCode "InvalidGrantIdException" --- | The request was rejected because a grant token provided as part of the--- request is invalid.+-- | The request was rejected because a grant token provided as part of the request is invalid. _InvalidGrantTokenException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidGrantTokenException = _ServiceError . hasCode "InvalidGrantTokenException"@@ -209,26 +197,20 @@ _InvalidARNException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidARNException = _ServiceError . hasCode "InvalidArnException" --- | The system timed out while trying to fulfill the request. The request--- can be retried.+-- | The system timed out while trying to fulfill the request. The request can be retried. _DependencyTimeoutException :: AsError a => Getting (First ServiceError) a ServiceError _DependencyTimeoutException = _ServiceError . hasCode "DependencyTimeoutException" --- | The request was rejected because the specified ciphertext has been--- corrupted or is otherwise invalid.+-- | The request was rejected because the specified ciphertext has been corrupted or is otherwise invalid. _InvalidCiphertextException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidCiphertextException = _ServiceError . hasCode "InvalidCiphertextException" --- | The request was rejected because it attempted to create a resource that--- already exists.+-- | The request was rejected because it attempted to create a resource that already exists. _AlreadyExistsException :: AsError a => Getting (First ServiceError) a ServiceError _AlreadyExistsException = _ServiceError . hasCode "AlreadyExistsException" --- | The request was rejected because a limit was exceeded. For more--- information, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/limits.html Limits>--- in the /AWS Key Management Service Developer Guide/.+-- | The request was rejected because a limit was exceeded. For more information, see <http://docs.aws.amazon.com/kms/latest/developerguide/limits.html Limits> in the /AWS Key Management Service Developer Guide/. _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException = _ServiceError . hasCode "LimitExceededException"
gen/Network/AWS/KMS/Types/Product.hs view
@@ -72,14 +72,9 @@ instance NFData AliasListEntry --- | A structure for specifying the conditions under which the operations--- permitted by the grant are allowed.+-- | A structure for specifying the conditions under which the operations permitted by the grant are allowed. ----- You can use this structure to allow the operations permitted by the--- grant only when a specified encryption context is present. For more--- information about encryption context, see--- <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context>--- in the /AWS Key Management Service Developer Guide/.+-- You can use this structure to allow the operations permitted by the grant only when a specified encryption context is present. For more information about encryption context, see <http://docs.aws.amazon.com/kms/latest/developerguide/encrypt-context.html Encryption Context> in the /AWS Key Management Service Developer Guide/. -- -- /See:/ 'grantConstraints' smart constructor. data GrantConstraints = GrantConstraints'@@ -102,19 +97,11 @@ , _gcEncryptionContextSubset = Nothing } --- | Contains a list of key-value pairs that must be present in the--- encryption context of a subsequent operation permitted by the grant.--- When a subsequent operation permitted by the grant includes an--- encryption context that matches this list, the grant allows the--- operation. Otherwise, the operation is not allowed.+-- | Contains a list of key-value pairs that must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list, the grant allows the operation. Otherwise, the operation is not allowed. gcEncryptionContextEquals :: Lens' GrantConstraints (HashMap Text Text) gcEncryptionContextEquals = lens _gcEncryptionContextEquals (\ s a -> s{_gcEncryptionContextEquals = a}) . _Default . _Map; --- | Contains a list of key-value pairs, a subset of which must be present in--- the encryption context of a subsequent operation permitted by the grant.--- When a subsequent operation permitted by the grant includes an--- encryption context that matches this list or is a subset of this list,--- the grant allows the operation. Otherwise, the operation is not allowed.+-- | Contains a list of key-value pairs, a subset of which must be present in the encryption context of a subsequent operation permitted by the grant. When a subsequent operation permitted by the grant includes an encryption context that matches this list or is a subset of this list, the grant allows the operation. Otherwise, the operation is not allowed. gcEncryptionContextSubset :: Lens' GrantConstraints (HashMap Text Text) gcEncryptionContextSubset = lens _gcEncryptionContextSubset (\ s a -> s{_gcEncryptionContextSubset = a}) . _Default . _Map; @@ -190,8 +177,7 @@ , _gleOperations = Nothing } --- | The unique identifier for the customer master key (CMK) to which the--- grant applies.+-- | The unique identifier for the customer master key (CMK) to which the grant applies. gleKeyId :: Lens' GrantListEntry (Maybe Text) gleKeyId = lens _gleKeyId (\ s a -> s{_gleKeyId = a}); @@ -215,9 +201,7 @@ gleGranteePrincipal :: Lens' GrantListEntry (Maybe Text) gleGranteePrincipal = lens _gleGranteePrincipal (\ s a -> s{_gleGranteePrincipal = a}); --- | The friendly name that identifies the grant. If a name was provided in--- the < CreateGrant> request, that name is returned. Otherwise this value--- is null.+-- | The friendly name that identifies the grant. If a name was provided in the < CreateGrant> request, that name is returned. Otherwise this value is null. gleName :: Lens' GrantListEntry (Maybe Text) gleName = lens _gleName (\ s a -> s{_gleName = a}); @@ -291,8 +275,7 @@ -- | Contains metadata about a customer master key (CMK). ----- This data type is used as a response element for the < CreateKey> and--- < DescribeKey> operations.+-- This data type is used as a response element for the < CreateKey> and < DescribeKey> operations. -- -- /See:/ 'keyMetadata' smart constructor. data KeyMetadata = KeyMetadata'@@ -344,22 +327,17 @@ , _kmKeyId = pKeyId_ } --- | Specifies whether the key is enabled. When 'KeyState' is 'Enabled' this--- value is true, otherwise it is false.+-- | Specifies whether the key is enabled. When 'KeyState' is 'Enabled' this value is true, otherwise it is false. kmEnabled :: Lens' KeyMetadata (Maybe Bool) kmEnabled = lens _kmEnabled (\ s a -> s{_kmEnabled = a}); --- | The Amazon Resource Name (ARN) of the key. For examples, see--- <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms AWS Key Management Service (AWS KMS)>--- in the Example ARNs section of the /AWS General Reference/.+-- | The Amazon Resource Name (ARN) of the key. For examples, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#arn-syntax-kms AWS Key Management Service (AWS KMS)> in the Example ARNs section of the /AWS General Reference/. kmARN :: Lens' KeyMetadata (Maybe Text) kmARN = lens _kmARN (\ s a -> s{_kmARN = a}); -- | The state of the customer master key (CMK). ----- For more information about how key state affects the use of a CMK, go to--- <http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html How Key State Affects the Use of a Customer Master Key>--- in the /AWS Key Management Service Developer Guide/.+-- For more information about how key state affects the use of a CMK, go to <http://docs.aws.amazon.com/kms/latest/developerguide/key-state.html How Key State Affects the Use of a Customer Master Key> in the /AWS Key Management Service Developer Guide/. kmKeyState :: Lens' KeyMetadata (Maybe KeyState) kmKeyState = lens _kmKeyState (\ s a -> s{_kmKeyState = a}); @@ -367,9 +345,7 @@ kmAWSAccountId :: Lens' KeyMetadata (Maybe Text) kmAWSAccountId = lens _kmAWSAccountId (\ s a -> s{_kmAWSAccountId = a}); --- | The cryptographic operations for which you can use the key. Currently--- the only allowed value is 'ENCRYPT_DECRYPT', which means you can use the--- key for the < Encrypt> and < Decrypt> operations.+-- | The cryptographic operations for which you can use the key. Currently the only allowed value is 'ENCRYPT_DECRYPT', which means you can use the key for the < Encrypt> and < Decrypt> operations. kmKeyUsage :: Lens' KeyMetadata (Maybe KeyUsageType) kmKeyUsage = lens _kmKeyUsage (\ s a -> s{_kmKeyUsage = a}); @@ -377,9 +353,7 @@ kmCreationDate :: Lens' KeyMetadata (Maybe UTCTime) kmCreationDate = lens _kmCreationDate (\ s a -> s{_kmCreationDate = a}) . mapping _Time; --- | The date and time after which AWS KMS deletes the customer master key--- (CMK). This value is present only when 'KeyState' is 'PendingDeletion',--- otherwise this value is null.+-- | The date and time after which AWS KMS deletes the customer master key (CMK). This value is present only when 'KeyState' is 'PendingDeletion', otherwise this value is null. kmDeletionDate :: Lens' KeyMetadata (Maybe UTCTime) kmDeletionDate = lens _kmDeletionDate (\ s a -> s{_kmDeletionDate = a}) . mapping _Time; @@ -434,9 +408,7 @@ , _lgNextMarker = Nothing } --- | A flag that indicates whether there are more items in the list. If your--- results were truncated, you can use the 'Marker' parameter to make a--- subsequent pagination request to retrieve more items in the list.+-- | A flag that indicates whether there are more items in the list. If your results were truncated, you can use the 'Marker' parameter to make a subsequent pagination request to retrieve more items in the list. lgTruncated :: Lens' ListGrantsResponse (Maybe Bool) lgTruncated = lens _lgTruncated (\ s a -> s{_lgTruncated = a}); @@ -444,8 +416,7 @@ lgGrants :: Lens' ListGrantsResponse [GrantListEntry] lgGrants = lens _lgGrants (\ s a -> s{_lgGrants = a}) . _Default . _Coerce; --- | When 'Truncated' is true, this value is present and contains the value--- to use for the 'Marker' parameter in a subsequent pagination request.+-- | When 'Truncated' is true, this value is present and contains the value to use for the 'Marker' parameter in a subsequent pagination request. lgNextMarker :: Lens' ListGrantsResponse (Maybe Text) lgNextMarker = lens _lgNextMarker (\ s a -> s{_lgNextMarker = a});
gen/Network/AWS/KMS/UpdateAlias.hs view
@@ -20,18 +20,11 @@ -- -- Updates an alias to map it to a different key. ----- An alias is not a property of a key. Therefore, an alias can be mapped--- to and unmapped from an existing key without changing the properties of--- the key.+-- An alias is not a property of a key. Therefore, an alias can be mapped to and unmapped from an existing key without changing the properties of the key. ----- An alias name can contain only alphanumeric characters, forward slashes--- (\/), underscores (_), and dashes (-). An alias must start with the word--- \"alias\" followed by a forward slash (alias\/). An alias that begins--- with \"aws\" after the forward slash (alias\/aws...) is reserved by--- Amazon Web Services (AWS).+-- An alias name can contain only alphanumeric characters, forward slashes (\/), underscores (_), and dashes (-). An alias must start with the word \"alias\" followed by a forward slash (alias\/). An alias that begins with \"aws\" after the forward slash (alias\/aws...) is reserved by Amazon Web Services (AWS). ----- The alias and the key it is mapped to must be in the same AWS account--- and the same region.+-- The alias and the key it is mapped to must be in the same AWS account and the same region. module Network.AWS.KMS.UpdateAlias ( -- * Creating a Request@@ -76,23 +69,16 @@ , _uaTargetKeyId = pTargetKeyId_ } --- | String that contains the name of the alias to be modified. The name must--- start with the word \"alias\" followed by a forward slash (alias\/).--- Aliases that begin with \"alias\/aws\" are reserved.+-- | String that contains the name of the alias to be modified. The name must start with the word \"alias\" followed by a forward slash (alias\/). Aliases that begin with \"alias\/aws\" are reserved. uaAliasName :: Lens' UpdateAlias Text uaAliasName = lens _uaAliasName (\ s a -> s{_uaAliasName = a}); --- | Unique identifier of the customer master key to be mapped to the alias.--- This value can be a globally unique identifier or the fully specified--- ARN of a key.+-- | Unique identifier of the customer master key to be mapped to the alias. This value can be a globally unique identifier or the fully specified ARN of a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 ----- You can call < ListAliases> to verify that the alias is mapped to the--- correct 'TargetKeyId'.+-- You can call < ListAliases> to verify that the alias is mapped to the correct 'TargetKeyId'. uaTargetKeyId :: Lens' UpdateAlias Text uaTargetKeyId = lens _uaTargetKeyId (\ s a -> s{_uaTargetKeyId = a});
gen/Network/AWS/KMS/UpdateKeyDescription.hs view
@@ -63,13 +63,10 @@ , _ukdDescription = pDescription_ } --- | A unique identifier for the customer master key. This value can be a--- globally unique identifier or the fully specified ARN to a key.+-- | A unique identifier for the customer master key. This value can be a globally unique identifier or the fully specified ARN to a key. ----- - Key ARN Example ---- arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012--- - Globally Unique Key ID Example ---- 12345678-1234-1234-1234-123456789012+-- - Key ARN Example - arn:aws:kms:us-east-1:123456789012:key\/12345678-1234-1234-1234-123456789012+-- - Globally Unique Key ID Example - 12345678-1234-1234-1234-123456789012 ukdKeyId :: Lens' UpdateKeyDescription Text ukdKeyId = lens _ukdKeyId (\ s a -> s{_ukdKeyId = a});
test/Test/AWS/Gen/KMS.hs view
@@ -28,181 +28,181 @@ -- fixtures :: TestTree -- fixtures = -- [ testGroup "request"--- [ testEncrypt $+-- [ requestEncrypt $ -- encrypt ----- , testListGrants $+-- , requestListGrants $ -- listGrants ----- , testDisableKeyRotation $+-- , requestDisableKeyRotation $ -- disableKeyRotation ----- , testGenerateDataKeyWithoutPlaintext $+-- , requestGenerateDataKeyWithoutPlaintext $ -- generateDataKeyWithoutPlaintext ----- , testEnableKeyRotation $+-- , requestEnableKeyRotation $ -- enableKeyRotation ----- , testCreateAlias $+-- , requestCreateAlias $ -- createAlias ----- , testCreateGrant $+-- , requestCreateGrant $ -- createGrant ----- , testListAliases $+-- , requestListAliases $ -- listAliases ----- , testListRetirableGrants $+-- , requestListRetirableGrants $ -- listRetirableGrants ----- , testGenerateRandom $+-- , requestGenerateRandom $ -- generateRandom ----- , testCreateKey $+-- , requestCreateKey $ -- createKey ----- , testDisableKey $+-- , requestDisableKey $ -- disableKey ----- , testRetireGrant $+-- , requestRetireGrant $ -- retireGrant ----- , testListKeys $+-- , requestListKeys $ -- listKeys ----- , testGetKeyRotationStatus $+-- , requestGetKeyRotationStatus $ -- getKeyRotationStatus ----- , testGenerateDataKey $+-- , requestGenerateDataKey $ -- generateDataKey ----- , testDeleteAlias $+-- , requestDeleteAlias $ -- deleteAlias ----- , testUpdateAlias $+-- , requestUpdateAlias $ -- updateAlias ----- , testDescribeKey $+-- , requestDescribeKey $ -- describeKey ----- , testCancelKeyDeletion $+-- , requestCancelKeyDeletion $ -- cancelKeyDeletion ----- , testDecrypt $+-- , requestDecrypt $ -- decrypt ----- , testUpdateKeyDescription $+-- , requestUpdateKeyDescription $ -- updateKeyDescription ----- , testReEncrypt $+-- , requestReEncrypt $ -- reEncrypt ----- , testListKeyPolicies $+-- , requestListKeyPolicies $ -- listKeyPolicies ----- , testScheduleKeyDeletion $+-- , requestScheduleKeyDeletion $ -- scheduleKeyDeletion ----- , testPutKeyPolicy $+-- , requestPutKeyPolicy $ -- putKeyPolicy ----- , testEnableKey $+-- , requestEnableKey $ -- enableKey ----- , testRevokeGrant $+-- , requestRevokeGrant $ -- revokeGrant ----- , testGetKeyPolicy $+-- , requestGetKeyPolicy $ -- getKeyPolicy -- -- ] -- , testGroup "response"--- [ testEncryptResponse $+-- [ responseEncrypt $ -- encryptResponse ----- , testListGrantsResponse $+-- , responseListGrants $ -- listGrantsResponse ----- , testDisableKeyRotationResponse $+-- , responseDisableKeyRotation $ -- disableKeyRotationResponse ----- , testGenerateDataKeyWithoutPlaintextResponse $+-- , responseGenerateDataKeyWithoutPlaintext $ -- generateDataKeyWithoutPlaintextResponse ----- , testEnableKeyRotationResponse $+-- , responseEnableKeyRotation $ -- enableKeyRotationResponse ----- , testCreateAliasResponse $+-- , responseCreateAlias $ -- createAliasResponse ----- , testCreateGrantResponse $+-- , responseCreateGrant $ -- createGrantResponse ----- , testListAliasesResponse $+-- , responseListAliases $ -- listAliasesResponse ----- , testListRetirableGrantsResponse $+-- , responseListRetirableGrants $ -- listGrantsResponse ----- , testGenerateRandomResponse $+-- , responseGenerateRandom $ -- generateRandomResponse ----- , testCreateKeyResponse $+-- , responseCreateKey $ -- createKeyResponse ----- , testDisableKeyResponse $+-- , responseDisableKey $ -- disableKeyResponse ----- , testRetireGrantResponse $+-- , responseRetireGrant $ -- retireGrantResponse ----- , testListKeysResponse $+-- , responseListKeys $ -- listKeysResponse ----- , testGetKeyRotationStatusResponse $+-- , responseGetKeyRotationStatus $ -- getKeyRotationStatusResponse ----- , testGenerateDataKeyResponse $+-- , responseGenerateDataKey $ -- generateDataKeyResponse ----- , testDeleteAliasResponse $+-- , responseDeleteAlias $ -- deleteAliasResponse ----- , testUpdateAliasResponse $+-- , responseUpdateAlias $ -- updateAliasResponse ----- , testDescribeKeyResponse $+-- , responseDescribeKey $ -- describeKeyResponse ----- , testCancelKeyDeletionResponse $+-- , responseCancelKeyDeletion $ -- cancelKeyDeletionResponse ----- , testDecryptResponse $+-- , responseDecrypt $ -- decryptResponse ----- , testUpdateKeyDescriptionResponse $+-- , responseUpdateKeyDescription $ -- updateKeyDescriptionResponse ----- , testReEncryptResponse $+-- , responseReEncrypt $ -- reEncryptResponse ----- , testListKeyPoliciesResponse $+-- , responseListKeyPolicies $ -- listKeyPoliciesResponse ----- , testScheduleKeyDeletionResponse $+-- , responseScheduleKeyDeletion $ -- scheduleKeyDeletionResponse ----- , testPutKeyPolicyResponse $+-- , responsePutKeyPolicy $ -- putKeyPolicyResponse ----- , testEnableKeyResponse $+-- , responseEnableKey $ -- enableKeyResponse ----- , testRevokeGrantResponse $+-- , responseRevokeGrant $ -- revokeGrantResponse ----- , testGetKeyPolicyResponse $+-- , responseGetKeyPolicy $ -- getKeyPolicyResponse -- -- ]@@ -210,351 +210,351 @@ -- Requests -testEncrypt :: Encrypt -> TestTree-testEncrypt = req+requestEncrypt :: Encrypt -> TestTree+requestEncrypt = req "Encrypt" "fixture/Encrypt.yaml" -testListGrants :: ListGrants -> TestTree-testListGrants = req+requestListGrants :: ListGrants -> TestTree+requestListGrants = req "ListGrants" "fixture/ListGrants.yaml" -testDisableKeyRotation :: DisableKeyRotation -> TestTree-testDisableKeyRotation = req+requestDisableKeyRotation :: DisableKeyRotation -> TestTree+requestDisableKeyRotation = req "DisableKeyRotation" "fixture/DisableKeyRotation.yaml" -testGenerateDataKeyWithoutPlaintext :: GenerateDataKeyWithoutPlaintext -> TestTree-testGenerateDataKeyWithoutPlaintext = req+requestGenerateDataKeyWithoutPlaintext :: GenerateDataKeyWithoutPlaintext -> TestTree+requestGenerateDataKeyWithoutPlaintext = req "GenerateDataKeyWithoutPlaintext" "fixture/GenerateDataKeyWithoutPlaintext.yaml" -testEnableKeyRotation :: EnableKeyRotation -> TestTree-testEnableKeyRotation = req+requestEnableKeyRotation :: EnableKeyRotation -> TestTree+requestEnableKeyRotation = req "EnableKeyRotation" "fixture/EnableKeyRotation.yaml" -testCreateAlias :: CreateAlias -> TestTree-testCreateAlias = req+requestCreateAlias :: CreateAlias -> TestTree+requestCreateAlias = req "CreateAlias" "fixture/CreateAlias.yaml" -testCreateGrant :: CreateGrant -> TestTree-testCreateGrant = req+requestCreateGrant :: CreateGrant -> TestTree+requestCreateGrant = req "CreateGrant" "fixture/CreateGrant.yaml" -testListAliases :: ListAliases -> TestTree-testListAliases = req+requestListAliases :: ListAliases -> TestTree+requestListAliases = req "ListAliases" "fixture/ListAliases.yaml" -testListRetirableGrants :: ListRetirableGrants -> TestTree-testListRetirableGrants = req+requestListRetirableGrants :: ListRetirableGrants -> TestTree+requestListRetirableGrants = req "ListRetirableGrants" "fixture/ListRetirableGrants.yaml" -testGenerateRandom :: GenerateRandom -> TestTree-testGenerateRandom = req+requestGenerateRandom :: GenerateRandom -> TestTree+requestGenerateRandom = req "GenerateRandom" "fixture/GenerateRandom.yaml" -testCreateKey :: CreateKey -> TestTree-testCreateKey = req+requestCreateKey :: CreateKey -> TestTree+requestCreateKey = req "CreateKey" "fixture/CreateKey.yaml" -testDisableKey :: DisableKey -> TestTree-testDisableKey = req+requestDisableKey :: DisableKey -> TestTree+requestDisableKey = req "DisableKey" "fixture/DisableKey.yaml" -testRetireGrant :: RetireGrant -> TestTree-testRetireGrant = req+requestRetireGrant :: RetireGrant -> TestTree+requestRetireGrant = req "RetireGrant" "fixture/RetireGrant.yaml" -testListKeys :: ListKeys -> TestTree-testListKeys = req+requestListKeys :: ListKeys -> TestTree+requestListKeys = req "ListKeys" "fixture/ListKeys.yaml" -testGetKeyRotationStatus :: GetKeyRotationStatus -> TestTree-testGetKeyRotationStatus = req+requestGetKeyRotationStatus :: GetKeyRotationStatus -> TestTree+requestGetKeyRotationStatus = req "GetKeyRotationStatus" "fixture/GetKeyRotationStatus.yaml" -testGenerateDataKey :: GenerateDataKey -> TestTree-testGenerateDataKey = req+requestGenerateDataKey :: GenerateDataKey -> TestTree+requestGenerateDataKey = req "GenerateDataKey" "fixture/GenerateDataKey.yaml" -testDeleteAlias :: DeleteAlias -> TestTree-testDeleteAlias = req+requestDeleteAlias :: DeleteAlias -> TestTree+requestDeleteAlias = req "DeleteAlias" "fixture/DeleteAlias.yaml" -testUpdateAlias :: UpdateAlias -> TestTree-testUpdateAlias = req+requestUpdateAlias :: UpdateAlias -> TestTree+requestUpdateAlias = req "UpdateAlias" "fixture/UpdateAlias.yaml" -testDescribeKey :: DescribeKey -> TestTree-testDescribeKey = req+requestDescribeKey :: DescribeKey -> TestTree+requestDescribeKey = req "DescribeKey" "fixture/DescribeKey.yaml" -testCancelKeyDeletion :: CancelKeyDeletion -> TestTree-testCancelKeyDeletion = req+requestCancelKeyDeletion :: CancelKeyDeletion -> TestTree+requestCancelKeyDeletion = req "CancelKeyDeletion" "fixture/CancelKeyDeletion.yaml" -testDecrypt :: Decrypt -> TestTree-testDecrypt = req+requestDecrypt :: Decrypt -> TestTree+requestDecrypt = req "Decrypt" "fixture/Decrypt.yaml" -testUpdateKeyDescription :: UpdateKeyDescription -> TestTree-testUpdateKeyDescription = req+requestUpdateKeyDescription :: UpdateKeyDescription -> TestTree+requestUpdateKeyDescription = req "UpdateKeyDescription" "fixture/UpdateKeyDescription.yaml" -testReEncrypt :: ReEncrypt -> TestTree-testReEncrypt = req+requestReEncrypt :: ReEncrypt -> TestTree+requestReEncrypt = req "ReEncrypt" "fixture/ReEncrypt.yaml" -testListKeyPolicies :: ListKeyPolicies -> TestTree-testListKeyPolicies = req+requestListKeyPolicies :: ListKeyPolicies -> TestTree+requestListKeyPolicies = req "ListKeyPolicies" "fixture/ListKeyPolicies.yaml" -testScheduleKeyDeletion :: ScheduleKeyDeletion -> TestTree-testScheduleKeyDeletion = req+requestScheduleKeyDeletion :: ScheduleKeyDeletion -> TestTree+requestScheduleKeyDeletion = req "ScheduleKeyDeletion" "fixture/ScheduleKeyDeletion.yaml" -testPutKeyPolicy :: PutKeyPolicy -> TestTree-testPutKeyPolicy = req+requestPutKeyPolicy :: PutKeyPolicy -> TestTree+requestPutKeyPolicy = req "PutKeyPolicy" "fixture/PutKeyPolicy.yaml" -testEnableKey :: EnableKey -> TestTree-testEnableKey = req+requestEnableKey :: EnableKey -> TestTree+requestEnableKey = req "EnableKey" "fixture/EnableKey.yaml" -testRevokeGrant :: RevokeGrant -> TestTree-testRevokeGrant = req+requestRevokeGrant :: RevokeGrant -> TestTree+requestRevokeGrant = req "RevokeGrant" "fixture/RevokeGrant.yaml" -testGetKeyPolicy :: GetKeyPolicy -> TestTree-testGetKeyPolicy = req+requestGetKeyPolicy :: GetKeyPolicy -> TestTree+requestGetKeyPolicy = req "GetKeyPolicy" "fixture/GetKeyPolicy.yaml" -- Responses -testEncryptResponse :: EncryptResponse -> TestTree-testEncryptResponse = res+responseEncrypt :: EncryptResponse -> TestTree+responseEncrypt = res "EncryptResponse" "fixture/EncryptResponse.proto" kms (Proxy :: Proxy Encrypt) -testListGrantsResponse :: ListGrantsResponse -> TestTree-testListGrantsResponse = res+responseListGrants :: ListGrantsResponse -> TestTree+responseListGrants = res "ListGrantsResponse" "fixture/ListGrantsResponse.proto" kms (Proxy :: Proxy ListGrants) -testDisableKeyRotationResponse :: DisableKeyRotationResponse -> TestTree-testDisableKeyRotationResponse = res+responseDisableKeyRotation :: DisableKeyRotationResponse -> TestTree+responseDisableKeyRotation = res "DisableKeyRotationResponse" "fixture/DisableKeyRotationResponse.proto" kms (Proxy :: Proxy DisableKeyRotation) -testGenerateDataKeyWithoutPlaintextResponse :: GenerateDataKeyWithoutPlaintextResponse -> TestTree-testGenerateDataKeyWithoutPlaintextResponse = res+responseGenerateDataKeyWithoutPlaintext :: GenerateDataKeyWithoutPlaintextResponse -> TestTree+responseGenerateDataKeyWithoutPlaintext = res "GenerateDataKeyWithoutPlaintextResponse" "fixture/GenerateDataKeyWithoutPlaintextResponse.proto" kms (Proxy :: Proxy GenerateDataKeyWithoutPlaintext) -testEnableKeyRotationResponse :: EnableKeyRotationResponse -> TestTree-testEnableKeyRotationResponse = res+responseEnableKeyRotation :: EnableKeyRotationResponse -> TestTree+responseEnableKeyRotation = res "EnableKeyRotationResponse" "fixture/EnableKeyRotationResponse.proto" kms (Proxy :: Proxy EnableKeyRotation) -testCreateAliasResponse :: CreateAliasResponse -> TestTree-testCreateAliasResponse = res+responseCreateAlias :: CreateAliasResponse -> TestTree+responseCreateAlias = res "CreateAliasResponse" "fixture/CreateAliasResponse.proto" kms (Proxy :: Proxy CreateAlias) -testCreateGrantResponse :: CreateGrantResponse -> TestTree-testCreateGrantResponse = res+responseCreateGrant :: CreateGrantResponse -> TestTree+responseCreateGrant = res "CreateGrantResponse" "fixture/CreateGrantResponse.proto" kms (Proxy :: Proxy CreateGrant) -testListAliasesResponse :: ListAliasesResponse -> TestTree-testListAliasesResponse = res+responseListAliases :: ListAliasesResponse -> TestTree+responseListAliases = res "ListAliasesResponse" "fixture/ListAliasesResponse.proto" kms (Proxy :: Proxy ListAliases) -testListRetirableGrantsResponse :: ListGrantsResponse -> TestTree-testListRetirableGrantsResponse = res+responseListRetirableGrants :: ListGrantsResponse -> TestTree+responseListRetirableGrants = res "ListRetirableGrantsResponse" "fixture/ListRetirableGrantsResponse.proto" kms (Proxy :: Proxy ListRetirableGrants) -testGenerateRandomResponse :: GenerateRandomResponse -> TestTree-testGenerateRandomResponse = res+responseGenerateRandom :: GenerateRandomResponse -> TestTree+responseGenerateRandom = res "GenerateRandomResponse" "fixture/GenerateRandomResponse.proto" kms (Proxy :: Proxy GenerateRandom) -testCreateKeyResponse :: CreateKeyResponse -> TestTree-testCreateKeyResponse = res+responseCreateKey :: CreateKeyResponse -> TestTree+responseCreateKey = res "CreateKeyResponse" "fixture/CreateKeyResponse.proto" kms (Proxy :: Proxy CreateKey) -testDisableKeyResponse :: DisableKeyResponse -> TestTree-testDisableKeyResponse = res+responseDisableKey :: DisableKeyResponse -> TestTree+responseDisableKey = res "DisableKeyResponse" "fixture/DisableKeyResponse.proto" kms (Proxy :: Proxy DisableKey) -testRetireGrantResponse :: RetireGrantResponse -> TestTree-testRetireGrantResponse = res+responseRetireGrant :: RetireGrantResponse -> TestTree+responseRetireGrant = res "RetireGrantResponse" "fixture/RetireGrantResponse.proto" kms (Proxy :: Proxy RetireGrant) -testListKeysResponse :: ListKeysResponse -> TestTree-testListKeysResponse = res+responseListKeys :: ListKeysResponse -> TestTree+responseListKeys = res "ListKeysResponse" "fixture/ListKeysResponse.proto" kms (Proxy :: Proxy ListKeys) -testGetKeyRotationStatusResponse :: GetKeyRotationStatusResponse -> TestTree-testGetKeyRotationStatusResponse = res+responseGetKeyRotationStatus :: GetKeyRotationStatusResponse -> TestTree+responseGetKeyRotationStatus = res "GetKeyRotationStatusResponse" "fixture/GetKeyRotationStatusResponse.proto" kms (Proxy :: Proxy GetKeyRotationStatus) -testGenerateDataKeyResponse :: GenerateDataKeyResponse -> TestTree-testGenerateDataKeyResponse = res+responseGenerateDataKey :: GenerateDataKeyResponse -> TestTree+responseGenerateDataKey = res "GenerateDataKeyResponse" "fixture/GenerateDataKeyResponse.proto" kms (Proxy :: Proxy GenerateDataKey) -testDeleteAliasResponse :: DeleteAliasResponse -> TestTree-testDeleteAliasResponse = res+responseDeleteAlias :: DeleteAliasResponse -> TestTree+responseDeleteAlias = res "DeleteAliasResponse" "fixture/DeleteAliasResponse.proto" kms (Proxy :: Proxy DeleteAlias) -testUpdateAliasResponse :: UpdateAliasResponse -> TestTree-testUpdateAliasResponse = res+responseUpdateAlias :: UpdateAliasResponse -> TestTree+responseUpdateAlias = res "UpdateAliasResponse" "fixture/UpdateAliasResponse.proto" kms (Proxy :: Proxy UpdateAlias) -testDescribeKeyResponse :: DescribeKeyResponse -> TestTree-testDescribeKeyResponse = res+responseDescribeKey :: DescribeKeyResponse -> TestTree+responseDescribeKey = res "DescribeKeyResponse" "fixture/DescribeKeyResponse.proto" kms (Proxy :: Proxy DescribeKey) -testCancelKeyDeletionResponse :: CancelKeyDeletionResponse -> TestTree-testCancelKeyDeletionResponse = res+responseCancelKeyDeletion :: CancelKeyDeletionResponse -> TestTree+responseCancelKeyDeletion = res "CancelKeyDeletionResponse" "fixture/CancelKeyDeletionResponse.proto" kms (Proxy :: Proxy CancelKeyDeletion) -testDecryptResponse :: DecryptResponse -> TestTree-testDecryptResponse = res+responseDecrypt :: DecryptResponse -> TestTree+responseDecrypt = res "DecryptResponse" "fixture/DecryptResponse.proto" kms (Proxy :: Proxy Decrypt) -testUpdateKeyDescriptionResponse :: UpdateKeyDescriptionResponse -> TestTree-testUpdateKeyDescriptionResponse = res+responseUpdateKeyDescription :: UpdateKeyDescriptionResponse -> TestTree+responseUpdateKeyDescription = res "UpdateKeyDescriptionResponse" "fixture/UpdateKeyDescriptionResponse.proto" kms (Proxy :: Proxy UpdateKeyDescription) -testReEncryptResponse :: ReEncryptResponse -> TestTree-testReEncryptResponse = res+responseReEncrypt :: ReEncryptResponse -> TestTree+responseReEncrypt = res "ReEncryptResponse" "fixture/ReEncryptResponse.proto" kms (Proxy :: Proxy ReEncrypt) -testListKeyPoliciesResponse :: ListKeyPoliciesResponse -> TestTree-testListKeyPoliciesResponse = res+responseListKeyPolicies :: ListKeyPoliciesResponse -> TestTree+responseListKeyPolicies = res "ListKeyPoliciesResponse" "fixture/ListKeyPoliciesResponse.proto" kms (Proxy :: Proxy ListKeyPolicies) -testScheduleKeyDeletionResponse :: ScheduleKeyDeletionResponse -> TestTree-testScheduleKeyDeletionResponse = res+responseScheduleKeyDeletion :: ScheduleKeyDeletionResponse -> TestTree+responseScheduleKeyDeletion = res "ScheduleKeyDeletionResponse" "fixture/ScheduleKeyDeletionResponse.proto" kms (Proxy :: Proxy ScheduleKeyDeletion) -testPutKeyPolicyResponse :: PutKeyPolicyResponse -> TestTree-testPutKeyPolicyResponse = res+responsePutKeyPolicy :: PutKeyPolicyResponse -> TestTree+responsePutKeyPolicy = res "PutKeyPolicyResponse" "fixture/PutKeyPolicyResponse.proto" kms (Proxy :: Proxy PutKeyPolicy) -testEnableKeyResponse :: EnableKeyResponse -> TestTree-testEnableKeyResponse = res+responseEnableKey :: EnableKeyResponse -> TestTree+responseEnableKey = res "EnableKeyResponse" "fixture/EnableKeyResponse.proto" kms (Proxy :: Proxy EnableKey) -testRevokeGrantResponse :: RevokeGrantResponse -> TestTree-testRevokeGrantResponse = res+responseRevokeGrant :: RevokeGrantResponse -> TestTree+responseRevokeGrant = res "RevokeGrantResponse" "fixture/RevokeGrantResponse.proto" kms (Proxy :: Proxy RevokeGrant) -testGetKeyPolicyResponse :: GetKeyPolicyResponse -> TestTree-testGetKeyPolicyResponse = res+responseGetKeyPolicy :: GetKeyPolicyResponse -> TestTree+responseGetKeyPolicy = res "GetKeyPolicyResponse" "fixture/GetKeyPolicyResponse.proto" kms