packages feed

amazonka-certificatemanager 1.4.4 → 1.4.5

raw patch · 19 files changed

+436/−205 lines, 19 filesdep ~amazonka-certificatemanagerdep ~amazonka-coredep ~amazonka-testPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: amazonka-certificatemanager, amazonka-core, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.CertificateManager.AddTagsToCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.AddTagsToCertificate.AddTagsToCertificate
- Network.AWS.CertificateManager.DeleteCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.DeleteCertificate.DeleteCertificate
- Network.AWS.CertificateManager.DescribeCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.DescribeCertificate.DescribeCertificate
- Network.AWS.CertificateManager.GetCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.GetCertificate.GetCertificate
- Network.AWS.CertificateManager.ListCertificates: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.ListCertificates.ListCertificates
- Network.AWS.CertificateManager.ListTagsForCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.ListTagsForCertificate.ListTagsForCertificate
- Network.AWS.CertificateManager.RemoveTagsFromCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.RemoveTagsFromCertificate.RemoveTagsFromCertificate
- Network.AWS.CertificateManager.RequestCertificate: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.RequestCertificate.RequestCertificate
- Network.AWS.CertificateManager.ResendValidationEmail: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CertificateManager.ResendValidationEmail.ResendValidationEmail
+ Network.AWS.CertificateManager: AmazonIssued :: CertificateType
+ Network.AWS.CertificateManager: Imported :: CertificateType
+ Network.AWS.CertificateManager: Rsa1024 :: KeyAlgorithm
+ Network.AWS.CertificateManager: cdImportedAt :: Lens' CertificateDetail (Maybe UTCTime)
+ Network.AWS.CertificateManager: cdType :: Lens' CertificateDetail (Maybe CertificateType)
+ Network.AWS.CertificateManager: data CertificateType
+ Network.AWS.CertificateManager.AddTagsToCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.AddTagsToCertificate.AddTagsToCertificate
+ Network.AWS.CertificateManager.DeleteCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.DeleteCertificate.DeleteCertificate
+ Network.AWS.CertificateManager.DescribeCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.DescribeCertificate.DescribeCertificate
+ Network.AWS.CertificateManager.GetCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.GetCertificate.GetCertificate
+ Network.AWS.CertificateManager.ImportCertificate: data ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: data ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: icCertificate :: Lens' ImportCertificate ByteString
+ Network.AWS.CertificateManager.ImportCertificate: icCertificateARN :: Lens' ImportCertificate (Maybe Text)
+ Network.AWS.CertificateManager.ImportCertificate: icCertificateChain :: Lens' ImportCertificate (Maybe ByteString)
+ Network.AWS.CertificateManager.ImportCertificate: icPrivateKey :: Lens' ImportCertificate ByteString
+ Network.AWS.CertificateManager.ImportCertificate: icrsCertificateARN :: Lens' ImportCertificateResponse (Maybe Text)
+ Network.AWS.CertificateManager.ImportCertificate: icrsResponseStatus :: Lens' ImportCertificateResponse Int
+ Network.AWS.CertificateManager.ImportCertificate: importCertificate :: ByteString -> ByteString -> ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: importCertificateResponse :: Int -> ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance Control.DeepSeq.NFData Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance Control.DeepSeq.NFData Network.AWS.CertificateManager.ImportCertificate.ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance Data.Data.Data Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance Data.Data.Data Network.AWS.CertificateManager.ImportCertificate.ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance Data.Hashable.Class.Hashable Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Classes.Eq Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Classes.Eq Network.AWS.CertificateManager.ImportCertificate.ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Generics.Generic Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Generics.Generic Network.AWS.CertificateManager.ImportCertificate.ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Read.Read Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Read.Read Network.AWS.CertificateManager.ImportCertificate.ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Show.Show Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance GHC.Show.Show Network.AWS.CertificateManager.ImportCertificate.ImportCertificateResponse
+ Network.AWS.CertificateManager.ImportCertificate: instance Network.AWS.Data.Headers.ToHeaders Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance Network.AWS.Data.Path.ToPath Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance Network.AWS.Data.Query.ToQuery Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ImportCertificate: instance Network.AWS.Types.AWSRequest Network.AWS.CertificateManager.ImportCertificate.ImportCertificate
+ Network.AWS.CertificateManager.ListCertificates: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.ListCertificates.ListCertificates
+ Network.AWS.CertificateManager.ListTagsForCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.ListTagsForCertificate.ListTagsForCertificate
+ Network.AWS.CertificateManager.RemoveTagsFromCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.RemoveTagsFromCertificate.RemoveTagsFromCertificate
+ Network.AWS.CertificateManager.RequestCertificate: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.RequestCertificate.RequestCertificate
+ Network.AWS.CertificateManager.ResendValidationEmail: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CertificateManager.ResendValidationEmail.ResendValidationEmail
+ Network.AWS.CertificateManager.Types: AmazonIssued :: CertificateType
+ Network.AWS.CertificateManager.Types: Imported :: CertificateType
+ Network.AWS.CertificateManager.Types: Rsa1024 :: KeyAlgorithm
+ Network.AWS.CertificateManager.Types: cdImportedAt :: Lens' CertificateDetail (Maybe UTCTime)
+ Network.AWS.CertificateManager.Types: cdType :: Lens' CertificateDetail (Maybe CertificateType)
+ Network.AWS.CertificateManager.Types: data CertificateType

Files

README.md view
@@ -8,26 +8,27 @@  ## Version -`1.4.4`+`1.4.5`   ## Description -AWS Certificate Manager--Welcome to the AWS Certificate Manager (ACM) Command Reference. This guide provides descriptions, syntax, and usage examples for each ACM command. You can use AWS Certificate Manager to request ACM Certificates for your AWS-based websites and applications. For general information about using ACM and for more information about using the console, see the <http://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html AWS Certificate Manager User Guide>. For more information about using the ACM API, see the <http://docs.aws.amazon.com/acm/latest/APIReference/Welcome.html AWS Certificate Manager API Reference>.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-certificatemanager) and the [AWS API Reference](https://aws.amazon.com/documentation/).  The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.CertificateManager](http://hackage.haskell.org/package/amazonka-certificatemanager/docs/Network-AWS-CertificateManager.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+  ## Contribute 
amazonka-certificatemanager.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-certificatemanager-version:               1.4.4+version:               1.4.5 synopsis:              Amazon Certificate Manager SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,22 +13,19 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:-    AWS Certificate Manager--    Welcome to the AWS Certificate Manager (ACM) Command Reference. This guide provides descriptions, syntax, and usage examples for each ACM command. You can use AWS Certificate Manager to request ACM Certificates for your AWS-based websites and applications. For general information about using ACM and for more information about using the console, see the <http://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html AWS Certificate Manager User Guide>. For more information about using the ACM API, see the <http://docs.aws.amazon.com/acm/latest/APIReference/Welcome.html AWS Certificate Manager API Reference>.-    .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides-    mechanisms for specifying AuthN/AuthZ information and sending requests.+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.     .-    Use of lenses is required for constructing and manipulating types.-    This is due to the amount of nesting of AWS types and transparency regarding+    Lenses are used for constructing and manipulating types,+    due to the depth of nesting of AWS types and transparency regarding     de/serialisation into more palatable Haskell values.     The provided lenses should be compatible with any of the major lens libraries     such as <http://hackage.haskell.org/package/lens lens> or     <http://hackage.haskell.org/package/lens-family-core lens-family-core>.     .-    See "Network.AWS.CertificateManager" or <https://aws.amazon.com/documentation/ the AWS Documentation>+    See "Network.AWS.CertificateManager" or <https://aws.amazon.com/documentation/ the AWS documentation>     to get started.  source-repository head@@ -47,6 +44,7 @@         , Network.AWS.CertificateManager.DeleteCertificate         , Network.AWS.CertificateManager.DescribeCertificate         , Network.AWS.CertificateManager.GetCertificate+        , Network.AWS.CertificateManager.ImportCertificate         , Network.AWS.CertificateManager.ListCertificates         , Network.AWS.CertificateManager.ListTagsForCertificate         , Network.AWS.CertificateManager.RemoveTagsFromCertificate@@ -60,7 +58,7 @@         , Network.AWS.CertificateManager.Types.Sum      build-depends:-          amazonka-core == 1.4.4.*+          amazonka-core == 1.4.5.*         , base          >= 4.7     && < 5  test-suite amazonka-certificatemanager-test@@ -80,9 +78,9 @@         , Test.AWS.CertificateManager.Internal      build-depends:-          amazonka-core == 1.4.4.*-        , amazonka-test == 1.4.4.*-        , amazonka-certificatemanager == 1.4.4.*+          amazonka-core == 1.4.5.*+        , amazonka-test == 1.4.5.*+        , amazonka-certificatemanager == 1.4.5.*         , base         , bytestring         , tasty
+ fixture/ImportCertificate.yaml view
+ fixture/ImportCertificateResponse.proto view
gen/Network/AWS/CertificateManager.hs view
@@ -11,9 +11,12 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- AWS Certificate Manager+-- __AWS Certificate Manager__ ----- Welcome to the AWS Certificate Manager (ACM) Command Reference. This guide provides descriptions, syntax, and usage examples for each ACM command. You can use AWS Certificate Manager to request ACM Certificates for your AWS-based websites and applications. For general information about using ACM and for more information about using the console, see the <http://docs.aws.amazon.com/acm/latest/userguide/acm-overview.html AWS Certificate Manager User Guide>. For more information about using the ACM API, see the <http://docs.aws.amazon.com/acm/latest/APIReference/Welcome.html AWS Certificate Manager API Reference>.+-- Welcome to the AWS Certificate Manager (ACM) API documentation.+--+-- You can use ACM to manage SSL/TLS certificates for your AWS-based websites and applications. For general information about using ACM, see the <http://docs.aws.amazon.com/acm/latest/userguide/ /AWS Certificate Manager User Guide/ > .+-- module Network.AWS.CertificateManager     (     -- * Service Configuration@@ -79,6 +82,9 @@     -- ** RemoveTagsFromCertificate     , module Network.AWS.CertificateManager.RemoveTagsFromCertificate +    -- ** ImportCertificate+    , module Network.AWS.CertificateManager.ImportCertificate+     -- ** DescribeCertificate     , module Network.AWS.CertificateManager.DescribeCertificate @@ -87,6 +93,9 @@     -- ** CertificateStatus     , CertificateStatus (..) +    -- ** CertificateType+    , CertificateType (..)+     -- ** FailureReason     , FailureReason (..) @@ -107,11 +116,13 @@     , cdCreatedAt     , cdCertificateARN     , cdSerial+    , cdImportedAt     , cdRevokedAt     , cdNotBefore     , cdRevocationReason     , cdDomainName     , cdKeyAlgorithm+    , cdType     , cdIssuedAt     , cdSignatureAlgorithm     , cdDomainValidationOptions@@ -148,6 +159,7 @@ import           Network.AWS.CertificateManager.DeleteCertificate import           Network.AWS.CertificateManager.DescribeCertificate import           Network.AWS.CertificateManager.GetCertificate+import           Network.AWS.CertificateManager.ImportCertificate import           Network.AWS.CertificateManager.ListCertificates import           Network.AWS.CertificateManager.ListTagsForCertificate import           Network.AWS.CertificateManager.RemoveTagsFromCertificate
gen/Network/AWS/CertificateManager/AddTagsToCertificate.hs view
@@ -18,11 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Adds one or more tags to an ACM Certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a 'key' and an optional 'value'. You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair.+-- Adds one or more tags to an ACM Certificate. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a @key@ and an optional @value@ . You specify the certificate on input by its Amazon Resource Name (ARN). You specify the tag by using a key-value pair. ----- You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM Certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see <http://docs.aws.amazon.com/acm/latest/userguide/tags.html Tagging ACM Certificates>. ----- To remove one or more tags, use the < RemoveTagsFromCertificate> action. To view all of the tags that have been applied to the certificate, use the < ListTagsForCertificate> action.+-- You can apply a tag to just one certificate if you want to identify a specific characteristic of that certificate, or you can apply the same tag to multiple certificates if you want to filter for a common relationship among those certificates. Similarly, you can apply the same tag to multiple resources if you want to specify a relationship among those resources. For example, you can add the same tag to an ACM Certificate and an Elastic Load Balancing load balancer to indicate that they are both used by the same website. For more information, see <http://docs.aws.amazon.com/acm/latest/userguide/tags.html Tagging ACM Certificates> .+--+-- To remove one or more tags, use the 'RemoveTagsFromCertificate' action. To view all of the tags that have been applied to the certificate, use the 'ListTagsForCertificate' action.+-- module Network.AWS.CertificateManager.AddTagsToCertificate     (     -- * Creating a Request@@ -54,9 +56,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'attcCertificateARN'+-- * 'attcCertificateARN' - String that contains the ARN of the ACM Certificate to which the tag is to be applied. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . ----- * 'attcTags'+-- * 'attcTags' - The key-value pair that defines the tag. The tag value is optional. addTagsToCertificate     :: Text -- ^ 'attcCertificateARN'     -> NonEmpty Tag -- ^ 'attcTags'@@ -67,11 +69,7 @@     , _attcTags = _List1 # pTags_     } --- | String that contains the ARN of the ACM Certificate to which the tag is to be applied. This must be of the form:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | String that contains the ARN of the ACM Certificate to which the tag is to be applied. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . attcCertificateARN :: Lens' AddTagsToCertificate Text attcCertificateARN = lens _attcCertificateARN (\ s a -> s{_attcCertificateARN = a}); 
gen/Network/AWS/CertificateManager/DeleteCertificate.hs view
@@ -18,9 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Deletes an ACM Certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list of ACM Certificates that can be displayed by calling the < ListCertificates> action or be retrieved by calling the < GetCertificate> action. The certificate will not be available for use by other AWS services.+-- Deletes an ACM Certificate and its associated private key. If this action succeeds, the certificate no longer appears in the list of ACM Certificates that can be displayed by calling the 'ListCertificates' action or be retrieved by calling the 'GetCertificate' action. The certificate will not be available for use by other AWS services. ----- You cannot delete an ACM Certificate that is being used by another AWS service. To delete a certificate that is in use, the certificate association must first be removed.+-- module Network.AWS.CertificateManager.DeleteCertificate     (     -- * Creating a Request@@ -50,7 +50,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dcCertificateARN'+-- * 'dcCertificateARN' - String that contains the ARN of the ACM Certificate to be deleted. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . deleteCertificate     :: Text -- ^ 'dcCertificateARN'     -> DeleteCertificate@@ -59,11 +59,7 @@     { _dcCertificateARN = pCertificateARN_     } --- | String that contains the ARN of the ACM Certificate to be deleted. This must be of the form:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | String that contains the ARN of the ACM Certificate to be deleted. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . dcCertificateARN :: Lens' DeleteCertificate Text dcCertificateARN = lens _dcCertificateARN (\ s a -> s{_dcCertificateARN = a}); 
gen/Network/AWS/CertificateManager/DescribeCertificate.hs view
@@ -19,6 +19,8 @@ -- Portability : non-portable (GHC extensions) -- -- Returns a list of the fields contained in the specified ACM Certificate. For example, this action returns the certificate status, a flag that indicates whether the certificate is associated with any other AWS service, and the date at which the certificate request was created. You specify the ACM Certificate on input by its Amazon Resource Name (ARN).+--+-- module Network.AWS.CertificateManager.DescribeCertificate     (     -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dCertificateARN'+-- * 'dCertificateARN' - String that contains an ACM Certificate ARN. The ARN must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . describeCertificate     :: Text -- ^ 'dCertificateARN'     -> DescribeCertificate@@ -60,11 +62,7 @@     { _dCertificateARN = pCertificateARN_     } --- | String that contains an ACM Certificate ARN. The ARN must be of the form:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | String that contains an ACM Certificate ARN. The ARN must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . dCertificateARN :: Lens' DescribeCertificate Text dCertificateARN = lens _dCertificateARN (\ s a -> s{_dCertificateARN = a}); @@ -114,9 +112,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dcrsCertificate'+-- * 'dcrsCertificate' - Contains a 'CertificateDetail' structure that lists the fields of an ACM Certificate. ----- * 'dcrsResponseStatus'+-- * 'dcrsResponseStatus' - -- | The response status code. describeCertificateResponse     :: Int -- ^ 'dcrsResponseStatus'     -> DescribeCertificateResponse@@ -126,11 +124,11 @@     , _dcrsResponseStatus = pResponseStatus_     } --- | Contains a < CertificateDetail> structure that lists the fields of an ACM Certificate.+-- | Contains a 'CertificateDetail' structure that lists the fields of an ACM Certificate. dcrsCertificate :: Lens' DescribeCertificateResponse (Maybe CertificateDetail) dcrsCertificate = lens _dcrsCertificate (\ s a -> s{_dcrsCertificate = a}); --- | The response status code.+-- | -- | The response status code. dcrsResponseStatus :: Lens' DescribeCertificateResponse Int dcrsResponseStatus = lens _dcrsResponseStatus (\ s a -> s{_dcrsResponseStatus = a}); 
gen/Network/AWS/CertificateManager/GetCertificate.hs view
@@ -20,7 +20,7 @@ -- -- Retrieves an ACM Certificate and certificate chain for the certificate specified by an ARN. The chain is an ordered list of certificates that contains the root certificate, intermediate certificates of subordinate CAs, and the ACM Certificate. The certificate and certificate chain are base64 encoded. If you want to decode the certificate chain to see the individual certificate fields, you can use OpenSSL. ----- Currently, ACM Certificates can be used only with Elastic Load Balancing and Amazon CloudFront.+-- module Network.AWS.CertificateManager.GetCertificate     (     -- * Creating a Request@@ -54,7 +54,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gcCertificateARN'+-- * 'gcCertificateARN' - String that contains a certificate ARN in the following format: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . getCertificate     :: Text -- ^ 'gcCertificateARN'     -> GetCertificate@@ -63,11 +63,7 @@     { _gcCertificateARN = pCertificateARN_     } --- | String that contains a certificate ARN in the following format:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | String that contains a certificate ARN in the following format: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . gcCertificateARN :: Lens' GetCertificate Text gcCertificateARN = lens _gcCertificateARN (\ s a -> s{_gcCertificateARN = a}); @@ -117,11 +113,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gcrsCertificate'+-- * 'gcrsCertificate' - String that contains the ACM Certificate represented by the ARN specified at input. ----- * 'gcrsCertificateChain'+-- * 'gcrsCertificateChain' - The certificate chain that contains the root certificate issued by the certificate authority (CA). ----- * 'gcrsResponseStatus'+-- * 'gcrsResponseStatus' - -- | The response status code. getCertificateResponse     :: Int -- ^ 'gcrsResponseStatus'     -> GetCertificateResponse@@ -140,7 +136,7 @@ gcrsCertificateChain :: Lens' GetCertificateResponse (Maybe Text) gcrsCertificateChain = lens _gcrsCertificateChain (\ s a -> s{_gcrsCertificateChain = a}); --- | The response status code.+-- | -- | The response status code. gcrsResponseStatus :: Lens' GetCertificateResponse Int gcrsResponseStatus = lens _gcrsResponseStatus (\ s a -> s{_gcrsResponseStatus = a}); 
+ gen/Network/AWS/CertificateManager/ImportCertificate.hs view
@@ -0,0 +1,175 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.CertificateManager.ImportCertificate+-- Copyright   : (c) 2013-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Imports an SSL/TLS certificate into AWS Certificate Manager (ACM) to use with <http://docs.aws.amazon.com/acm/latest/userguide/acm-services.html ACM's integrated AWS services> .+--+--+-- For more information about importing certificates into ACM, including the differences between certificates that you import and those that ACM provides, see <http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html Importing Certificates> in the /AWS Certificate Manager User Guide/ .+--+-- To import a certificate, you must provide the certificate and the matching private key. When the certificate is not self-signed, you must also provide a certificate chain. You can omit the certificate chain when importing a self-signed certificate.+--+-- The certificate, private key, and certificate chain must be PEM-encoded. For more information about converting these items to PEM format, see <http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html#import-certificate-troubleshooting Importing Certificates Troubleshooting> in the /AWS Certificate Manager User Guide/ .+--+-- To import a new certificate, omit the @CertificateArn@ field. Include this field only when you want to replace a previously imported certificate.+--+-- This operation returns the <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of the imported certificate.+--+module Network.AWS.CertificateManager.ImportCertificate+    (+    -- * Creating a Request+      importCertificate+    , ImportCertificate+    -- * Request Lenses+    , icCertificateARN+    , icCertificateChain+    , icCertificate+    , icPrivateKey++    -- * Destructuring the Response+    , importCertificateResponse+    , ImportCertificateResponse+    -- * Response Lenses+    , icrsCertificateARN+    , icrsResponseStatus+    ) where++import           Network.AWS.CertificateManager.Types+import           Network.AWS.CertificateManager.Types.Product+import           Network.AWS.Lens+import           Network.AWS.Prelude+import           Network.AWS.Request+import           Network.AWS.Response++-- | /See:/ 'importCertificate' smart constructor.+data ImportCertificate = ImportCertificate'+    { _icCertificateARN   :: !(Maybe Text)+    , _icCertificateChain :: !(Maybe Base64)+    , _icCertificate      :: !Base64+    , _icPrivateKey       :: !(Sensitive Base64)+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ImportCertificate' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'icCertificateARN' - The <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of an imported certificate to replace. To import a new certificate, omit this field.+--+-- * 'icCertificateChain' - The certificate chain. It must be PEM-encoded.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+--+-- * 'icCertificate' - The certificate to import. It must meet the following requirements:     * Must be PEM-encoded.     * Must contain a 1024-bit or 2048-bit RSA public key.     * Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's @NotBefore@ date) or after it expires (the certificate's @NotAfter@ date).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+--+-- * 'icPrivateKey' - The private key that matches the public key in the certificate. It must meet the following requirements:     * Must be PEM-encoded.     * Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+importCertificate+    :: ByteString -- ^ 'icCertificate'+    -> ByteString -- ^ 'icPrivateKey'+    -> ImportCertificate+importCertificate pCertificate_ pPrivateKey_ =+    ImportCertificate'+    { _icCertificateARN = Nothing+    , _icCertificateChain = Nothing+    , _icCertificate = _Base64 # pCertificate_+    , _icPrivateKey = _Sensitive . _Base64 # pPrivateKey_+    }++-- | The <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of an imported certificate to replace. To import a new certificate, omit this field.+icCertificateARN :: Lens' ImportCertificate (Maybe Text)+icCertificateARN = lens _icCertificateARN (\ s a -> s{_icCertificateARN = a});++-- | The certificate chain. It must be PEM-encoded.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+icCertificateChain :: Lens' ImportCertificate (Maybe ByteString)+icCertificateChain = lens _icCertificateChain (\ s a -> s{_icCertificateChain = a}) . mapping _Base64;++-- | The certificate to import. It must meet the following requirements:     * Must be PEM-encoded.     * Must contain a 1024-bit or 2048-bit RSA public key.     * Must be valid at the time of import. You cannot import a certificate before its validity period begins (the certificate's @NotBefore@ date) or after it expires (the certificate's @NotAfter@ date).-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+icCertificate :: Lens' ImportCertificate ByteString+icCertificate = lens _icCertificate (\ s a -> s{_icCertificate = a}) . _Base64;++-- | The private key that matches the public key in the certificate. It must meet the following requirements:     * Must be PEM-encoded.     * Must be unencrypted. You cannot import a private key that is protected by a password or passphrase.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data.+icPrivateKey :: Lens' ImportCertificate ByteString+icPrivateKey = lens _icPrivateKey (\ s a -> s{_icPrivateKey = a}) . _Sensitive . _Base64;++instance AWSRequest ImportCertificate where+        type Rs ImportCertificate = ImportCertificateResponse+        request = postJSON certificateManager+        response+          = receiveJSON+              (\ s h x ->+                 ImportCertificateResponse' <$>+                   (x .?> "CertificateArn") <*> (pure (fromEnum s)))++instance Hashable ImportCertificate++instance NFData ImportCertificate++instance ToHeaders ImportCertificate where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("CertificateManager.ImportCertificate" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ImportCertificate where+        toJSON ImportCertificate'{..}+          = object+              (catMaybes+                 [("CertificateArn" .=) <$> _icCertificateARN,+                  ("CertificateChain" .=) <$> _icCertificateChain,+                  Just ("Certificate" .= _icCertificate),+                  Just ("PrivateKey" .= _icPrivateKey)])++instance ToPath ImportCertificate where+        toPath = const "/"++instance ToQuery ImportCertificate where+        toQuery = const mempty++-- | /See:/ 'importCertificateResponse' smart constructor.+data ImportCertificateResponse = ImportCertificateResponse'+    { _icrsCertificateARN :: !(Maybe Text)+    , _icrsResponseStatus :: !Int+    } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ImportCertificateResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'icrsCertificateARN' - The <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of the imported certificate.+--+-- * 'icrsResponseStatus' - -- | The response status code.+importCertificateResponse+    :: Int -- ^ 'icrsResponseStatus'+    -> ImportCertificateResponse+importCertificateResponse pResponseStatus_ =+    ImportCertificateResponse'+    { _icrsCertificateARN = Nothing+    , _icrsResponseStatus = pResponseStatus_+    }++-- | The <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Name (ARN)> of the imported certificate.+icrsCertificateARN :: Lens' ImportCertificateResponse (Maybe Text)+icrsCertificateARN = lens _icrsCertificateARN (\ s a -> s{_icrsCertificateARN = a});++-- | -- | The response status code.+icrsResponseStatus :: Lens' ImportCertificateResponse Int+icrsResponseStatus = lens _icrsResponseStatus (\ s a -> s{_icrsResponseStatus = a});++instance NFData ImportCertificateResponse
gen/Network/AWS/CertificateManager/ListCertificates.hs view
@@ -20,6 +20,8 @@ -- -- Retrieves a list of ACM Certificates and the domain name for each. You can optionally filter the list to return only the certificates that match the specified status. --+--+-- -- This operation returns paginated results. module Network.AWS.CertificateManager.ListCertificates     (@@ -59,11 +61,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lcCertificateStatuses'+-- * 'lcCertificateStatuses' - The status or statuses on which to filter the list of ACM Certificates. ----- * 'lcNextToken'+-- * 'lcNextToken' - 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 @NextToken@ from the response you just received. ----- * 'lcMaxItems'+-- * 'lcMaxItems' - Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the @NextToken@ element is sent in the response. Use this @NextToken@ value in a subsequent request to retrieve additional items. listCertificates     :: ListCertificates listCertificates =@@ -77,11 +79,11 @@ lcCertificateStatuses :: Lens' ListCertificates [CertificateStatus] lcCertificateStatuses = lens _lcCertificateStatuses (\ s a -> s{_lcCertificateStatuses = a}) . _Default . _Coerce; --- | 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 'NextToken' 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 @NextToken@ from the response you just received. lcNextToken :: Lens' ListCertificates (Maybe Text) lcNextToken = lens _lcNextToken (\ s a -> s{_lcNextToken = a}); --- | Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the 'NextToken' element is sent in the response. Use this 'NextToken' value in a subsequent request to retrieve additional items.+-- | Use this parameter when paginating results to specify the maximum number of items to return in the response. If additional items exist beyond the number you specify, the @NextToken@ element is sent in the response. Use this @NextToken@ value in a subsequent request to retrieve additional items. lcMaxItems :: Lens' ListCertificates (Maybe Natural) lcMaxItems = lens _lcMaxItems (\ s a -> s{_lcMaxItems = a}) . mapping _Nat; @@ -143,11 +145,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lcrsCertificateSummaryList'+-- * 'lcrsCertificateSummaryList' - A list of ACM Certificates. ----- * 'lcrsNextToken'+-- * 'lcrsNextToken' - When the list is truncated, this value is present and contains the value to use for the @NextToken@ parameter in a subsequent pagination request. ----- * 'lcrsResponseStatus'+-- * 'lcrsResponseStatus' - -- | The response status code. listCertificatesResponse     :: Int -- ^ 'lcrsResponseStatus'     -> ListCertificatesResponse@@ -162,11 +164,11 @@ lcrsCertificateSummaryList :: Lens' ListCertificatesResponse [CertificateSummary] lcrsCertificateSummaryList = lens _lcrsCertificateSummaryList (\ s a -> s{_lcrsCertificateSummaryList = a}) . _Default . _Coerce; --- | When the list is truncated, this value is present and contains the value to use for the 'NextToken' parameter in a subsequent pagination request.+-- | When the list is truncated, this value is present and contains the value to use for the @NextToken@ parameter in a subsequent pagination request. lcrsNextToken :: Lens' ListCertificatesResponse (Maybe Text) lcrsNextToken = lens _lcrsNextToken (\ s a -> s{_lcrsNextToken = a}); --- | The response status code.+-- | -- | The response status code. lcrsResponseStatus :: Lens' ListCertificatesResponse Int lcrsResponseStatus = lens _lcrsResponseStatus (\ s a -> s{_lcrsResponseStatus = a}); 
gen/Network/AWS/CertificateManager/ListTagsForCertificate.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Lists the tags that have been applied to the ACM Certificate. Use the certificate ARN to specify the certificate. To add a tag to an ACM Certificate, use the < AddTagsToCertificate> action. To delete a tag, use the < RemoveTagsFromCertificate> action.+-- Lists the tags that have been applied to the ACM Certificate. Use the certificate ARN to specify the certificate. To add a tag to an ACM Certificate, use the 'AddTagsToCertificate' action. To delete a tag, use the 'RemoveTagsFromCertificate' action.+--+-- module Network.AWS.CertificateManager.ListTagsForCertificate     (     -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ltfcCertificateARN'+-- * 'ltfcCertificateARN' - String that contains the ARN of the ACM Certificate for which you want to list the tags. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . listTagsForCertificate     :: Text -- ^ 'ltfcCertificateARN'     -> ListTagsForCertificate@@ -60,11 +62,7 @@     { _ltfcCertificateARN = pCertificateARN_     } --- | String that contains the ARN of the ACM Certificate for which you want to list the tags. This must be of the form:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | String that contains the ARN of the ACM Certificate for which you want to list the tags. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . ltfcCertificateARN :: Lens' ListTagsForCertificate Text ltfcCertificateARN = lens _ltfcCertificateARN (\ s a -> s{_ltfcCertificateARN = a}); @@ -114,9 +112,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ltfcrsTags'+-- * 'ltfcrsTags' - The key-value pairs that define the applied tags. ----- * 'ltfcrsResponseStatus'+-- * 'ltfcrsResponseStatus' - -- | The response status code. listTagsForCertificateResponse     :: Int -- ^ 'ltfcrsResponseStatus'     -> ListTagsForCertificateResponse@@ -130,7 +128,7 @@ ltfcrsTags :: Lens' ListTagsForCertificateResponse (Maybe (NonEmpty Tag)) ltfcrsTags = lens _ltfcrsTags (\ s a -> s{_ltfcrsTags = a}) . mapping _List1; --- | The response status code.+-- | -- | The response status code. ltfcrsResponseStatus :: Lens' ListTagsForCertificateResponse Int ltfcrsResponseStatus = lens _ltfcrsResponseStatus (\ s a -> s{_ltfcrsResponseStatus = a}); 
gen/Network/AWS/CertificateManager/RemoveTagsFromCertificate.hs view
@@ -20,7 +20,9 @@ -- -- Remove one or more tags from an ACM Certificate. A tag consists of a key-value pair. If you do not specify the value portion of the tag when calling this function, the tag will be removed regardless of value. If you specify a value, the tag is removed only if it is associated with the specified value. ----- To add tags to a certificate, use the < AddTagsToCertificate> action. To view all of the tags that have been applied to a specific ACM Certificate, use the < ListTagsForCertificate> action.+--+-- To add tags to a certificate, use the 'AddTagsToCertificate' action. To view all of the tags that have been applied to a specific ACM Certificate, use the 'ListTagsForCertificate' action.+-- module Network.AWS.CertificateManager.RemoveTagsFromCertificate     (     -- * Creating a Request@@ -52,9 +54,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rtfcCertificateARN'+-- * 'rtfcCertificateARN' - String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . ----- * 'rtfcTags'+-- * 'rtfcTags' - The key-value pair that defines the tag to remove. removeTagsFromCertificate     :: Text -- ^ 'rtfcCertificateARN'     -> NonEmpty Tag -- ^ 'rtfcTags'@@ -65,11 +67,7 @@     , _rtfcTags = _List1 # pTags_     } --- | String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | String that contains the ARN of the ACM Certificate with one or more tags that you want to remove. This must be of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . rtfcCertificateARN :: Lens' RemoveTagsFromCertificate Text rtfcCertificateARN = lens _rtfcCertificateARN (\ s a -> s{_rtfcCertificateARN = a}); 
gen/Network/AWS/CertificateManager/RequestCertificate.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Requests an ACM Certificate for use with other AWS services. To request an ACM Certificate, you must specify the fully qualified domain name (FQDN) for your site. You can also specify additional FQDNs if users can reach your site by using other names. For each domain name you specify, email is sent to the domain owner to request approval to issue the certificate. After receiving approval from the domain owner, the ACM Certificate is issued. For more information, see the <http://docs.aws.amazon.com/acm/latest/userguide/overview.html AWS Certificate Manager User Guide>.+-- Requests an ACM Certificate for use with other AWS services. To request an ACM Certificate, you must specify the fully qualified domain name (FQDN) for your site. You can also specify additional FQDNs if users can reach your site by using other names. For each domain name you specify, email is sent to the domain owner to request approval to issue the certificate. After receiving approval from the domain owner, the ACM Certificate is issued. For more information, see the <http://docs.aws.amazon.com/acm/latest/userguide/ AWS Certificate Manager User Guide> .+--+-- module Network.AWS.CertificateManager.RequestCertificate     (     -- * Creating a Request@@ -57,13 +59,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rcIdempotencyToken'+-- * 'rcIdempotencyToken' - Customer chosen string that can be used to distinguish between calls to @RequestCertificate@ . Idempotency tokens time out after one hour. Therefore, if you call @RequestCertificate@ multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates. ----- * 'rcSubjectAlternativeNames'+-- * 'rcSubjectAlternativeNames' - Additional FQDNs to be included in the Subject Alternative Name extension of the ACM Certificate. For example, add the name www.example.net to a certificate for which the @DomainName@ field is www.example.com if users can reach your site by using either name. ----- * 'rcDomainValidationOptions'+-- * 'rcDomainValidationOptions' - The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the @Domain@ value or a superdomain of the @Domain@ value. For example, if you requested a certificate for @test.example.com@ and specify __DomainValidationOptions__ of @example.com@ , ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:     * admin@example.com     * administrator@example.com     * hostmaster@example.com     * postmaster@example.com     * webmaster@example.com ----- * 'rcDomainName'+-- * 'rcDomainName' - Fully qualified domain name (FQDN), such as www.example.com, of the site you want to secure with an ACM Certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. requestCertificate     :: Text -- ^ 'rcDomainName'     -> RequestCertificate@@ -75,26 +77,15 @@     , _rcDomainName = pDomainName_     } --- | Customer chosen string that can be used to distinguish between calls to 'RequestCertificate'. Idempotency tokens time out after one hour. Therefore, if you call 'RequestCertificate' multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates.+-- | Customer chosen string that can be used to distinguish between calls to @RequestCertificate@ . Idempotency tokens time out after one hour. Therefore, if you call @RequestCertificate@ multiple times with the same idempotency token within one hour, ACM recognizes that you are requesting only one certificate and will issue only one. If you change the idempotency token for each call, ACM recognizes that you are requesting multiple certificates. rcIdempotencyToken :: Lens' RequestCertificate (Maybe Text) rcIdempotencyToken = lens _rcIdempotencyToken (\ s a -> s{_rcIdempotencyToken = a}); --- | Additional FQDNs to be included in the Subject Alternative Name extension of the ACM Certificate. For example, add the name www.example.net to a certificate for which the 'DomainName' field is www.example.com if users can reach your site by using either name.+-- | Additional FQDNs to be included in the Subject Alternative Name extension of the ACM Certificate. For example, add the name www.example.net to a certificate for which the @DomainName@ field is www.example.com if users can reach your site by using either name. rcSubjectAlternativeNames :: Lens' RequestCertificate (Maybe (NonEmpty Text)) rcSubjectAlternativeNames = lens _rcSubjectAlternativeNames (\ s a -> s{_rcSubjectAlternativeNames = a}) . mapping _List1; --- | The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the 'Domain' value or a superdomain of the 'Domain' value. For example, if you requested a certificate for 'test.example.com' and specify __DomainValidationOptions__ of 'example.com', ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:------ -   admin\'example.com------ -   administrator\'example.com------ -   hostmaster\'example.com------ -   postmaster\'example.com------ -   webmaster\'example.com---+-- | The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the @Domain@ value or a superdomain of the @Domain@ value. For example, if you requested a certificate for @test.example.com@ and specify __DomainValidationOptions__ of @example.com@ , ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:     * admin@example.com     * administrator@example.com     * hostmaster@example.com     * postmaster@example.com     * webmaster@example.com rcDomainValidationOptions :: Lens' RequestCertificate (Maybe (NonEmpty DomainValidationOption)) rcDomainValidationOptions = lens _rcDomainValidationOptions (\ s a -> s{_rcDomainValidationOptions = a}) . mapping _List1; @@ -153,9 +144,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rcrsCertificateARN'+-- * 'rcrsCertificateARN' - String that contains the ARN of the issued certificate. This must be of the form: @arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012@ ----- * 'rcrsResponseStatus'+-- * 'rcrsResponseStatus' - -- | The response status code. requestCertificateResponse     :: Int -- ^ 'rcrsResponseStatus'     -> RequestCertificateResponse@@ -165,13 +156,11 @@     , _rcrsResponseStatus = pResponseStatus_     } --- | String that contains the ARN of the issued certificate. This must be of the form:------ 'arn:aws:acm:us-east-1:123456789012:certificate\/12345678-1234-1234-1234-123456789012'+-- | String that contains the ARN of the issued certificate. This must be of the form: @arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012@ rcrsCertificateARN :: Lens' RequestCertificateResponse (Maybe Text) rcrsCertificateARN = lens _rcrsCertificateARN (\ s a -> s{_rcrsCertificateARN = a}); --- | The response status code.+-- | -- | The response status code. rcrsResponseStatus :: Lens' RequestCertificateResponse Int rcrsResponseStatus = lens _rcrsResponseStatus (\ s a -> s{_rcrsResponseStatus = a}); 
gen/Network/AWS/CertificateManager/ResendValidationEmail.hs view
@@ -18,7 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking __I Approve__. However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate.+-- Resends the email that requests domain ownership validation. The domain owner or an authorized representative must approve the ACM Certificate before it can be issued. The certificate can be approved by clicking a link in the mail to navigate to the Amazon certificate approval website and then clicking __I Approve__ . However, the validation email can be blocked by spam filters. Therefore, if you do not receive the original mail, you can request that the mail be resent within 72 hours of requesting the ACM Certificate. If more than 72 hours have elapsed since your original request or since your last attempt to resend validation mail, you must request a new certificate.+--+-- module Network.AWS.CertificateManager.ResendValidationEmail     (     -- * Creating a Request@@ -52,11 +54,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rveCertificateARN'+-- * 'rveCertificateARN' - String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the 'RequestCertificate' action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request. The ARN must be of the form: @arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012@ ----- * 'rveDomain'+-- * 'rveDomain' - The Fully Qualified Domain Name (FQDN) of the certificate that needs to be validated. ----- * 'rveValidationDomain'+-- * 'rveValidationDomain' - The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the @Domain@ value or a superdomain of the @Domain@ value. For example, if you requested a certificate for @site.subdomain.example.com@ and specify a __ValidationDomain__ of @subdomain.example.com@ , ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:     * admin@subdomain.example.com     * administrator@subdomain.example.com     * hostmaster@subdomain.example.com     * postmaster@subdomain.example.com     * webmaster@subdomain.example.com resendValidationEmail     :: Text -- ^ 'rveCertificateARN'     -> Text -- ^ 'rveDomain'@@ -69,11 +71,7 @@     , _rveValidationDomain = pValidationDomain_     } --- | String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the < RequestCertificate> action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request.------ The ARN must be of the form:------ 'arn:aws:acm:us-east-1:123456789012:certificate\/12345678-1234-1234-1234-123456789012'+-- | String that contains the ARN of the requested certificate. The certificate ARN is generated and returned by the 'RequestCertificate' action as soon as the request is made. By default, using this parameter causes email to be sent to all top-level domains you specified in the certificate request. The ARN must be of the form: @arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012@ rveCertificateARN :: Lens' ResendValidationEmail Text rveCertificateARN = lens _rveCertificateARN (\ s a -> s{_rveCertificateARN = a}); @@ -81,18 +79,7 @@ rveDomain :: Lens' ResendValidationEmail Text rveDomain = lens _rveDomain (\ s a -> s{_rveDomain = a}); --- | The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the 'Domain' value or a superdomain of the 'Domain' value. For example, if you requested a certificate for 'site.subdomain.example.com' and specify a __ValidationDomain__ of 'subdomain.example.com', ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:------ -   admin\'subdomain.example.com------ -   administrator\'subdomain.example.com------ -   hostmaster\'subdomain.example.com------ -   postmaster\'subdomain.example.com------ -   webmaster\'subdomain.example.com---+-- | The base validation domain that will act as the suffix of the email addresses that are used to send the emails. This must be the same as the @Domain@ value or a superdomain of the @Domain@ value. For example, if you requested a certificate for @site.subdomain.example.com@ and specify a __ValidationDomain__ of @subdomain.example.com@ , ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS and the following five addresses:     * admin@subdomain.example.com     * administrator@subdomain.example.com     * hostmaster@subdomain.example.com     * postmaster@subdomain.example.com     * webmaster@subdomain.example.com rveValidationDomain :: Lens' ResendValidationEmail Text rveValidationDomain = lens _rveValidationDomain (\ s a -> s{_rveValidationDomain = a}); 
gen/Network/AWS/CertificateManager/Types.hs view
@@ -29,6 +29,9 @@     -- * CertificateStatus     , CertificateStatus (..) +    -- * CertificateType+    , CertificateType (..)+     -- * FailureReason     , FailureReason (..) @@ -49,11 +52,13 @@     , cdCreatedAt     , cdCertificateARN     , cdSerial+    , cdImportedAt     , cdRevokedAt     , cdNotBefore     , cdRevocationReason     , cdDomainName     , cdKeyAlgorithm+    , cdType     , cdIssuedAt     , cdSignatureAlgorithm     , cdDomainValidationOptions@@ -92,7 +97,7 @@ import           Network.AWS.Prelude import           Network.AWS.Sign.V4 --- | API version '2015-12-08' of the Amazon Certificate Manager SDK configuration.+-- | API version @2015-12-08@ of the Amazon Certificate Manager SDK configuration. certificateManager :: Service certificateManager =     Service@@ -126,41 +131,59 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing --- | One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with 'aws:'.+-- | One or both of the values that make up the key-value pair is not valid. For example, you cannot specify a tag value that begins with @aws:@ .+--+-- _InvalidTagException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidTagException = _ServiceError . hasCode "InvalidTagException" --- | One or more values in the < DomainValidationOption> structure is incorrect.+-- | One or more values in the 'DomainValidationOption' structure is incorrect.+--+-- _InvalidDomainValidationOptionsException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidDomainValidationOptionsException =     _ServiceError . hasCode "InvalidDomainValidationOptionsException"  -- | The request contains too many tags. Try the request again with fewer tags.+--+-- _TooManyTagsException :: AsError a => Getting (First ServiceError) a ServiceError _TooManyTagsException = _ServiceError . hasCode "TooManyTagsException"  -- | The certificate request is in process and the certificate in your account has not yet been issued.+--+-- _RequestInProgressException :: AsError a => Getting (First ServiceError) a ServiceError _RequestInProgressException =     _ServiceError . hasCode "RequestInProgressException"  -- | The requested Amazon Resource Name (ARN) does not refer to an existing resource.+--+-- _InvalidARNException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidARNException = _ServiceError . hasCode "InvalidArnException" --- | The specified certificate cannot be found in the caller\'s account, or the caller\'s account cannot be found.+-- | The specified certificate cannot be found in the caller's account, or the caller's account cannot be found.+--+-- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceNotFoundException =     _ServiceError . hasCode "ResourceNotFoundException"  -- | Processing has reached an invalid state. For example, this exception can occur if the specified domain is not using email validation, or the current certificate status does not permit the requested operation. See the exception message returned by ACM to determine which state is not valid.+--+-- _InvalidStateException :: AsError a => Getting (First ServiceError) a ServiceError _InvalidStateException = _ServiceError . hasCode "InvalidStateException" --- | An ACM limit has been exceeded. For example, you may have input more domains than are allowed or you\'ve requested too many certificates for your account. See the exception message returned by ACM to determine which limit you have violated. For more information about ACM limits, see the <http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html Limits> topic.+-- | An ACM limit has been exceeded. For example, you may have input more domains than are allowed or you've requested too many certificates for your account. See the exception message returned by ACM to determine which limit you have violated. For more information about ACM limits, see the <http://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html Limits> topic.+--+-- _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException = _ServiceError . hasCode "LimitExceededException" --- | The certificate is in use by another AWS service in the caller\'s account. Remove the association and try again.+-- | The certificate is in use by another AWS service in the caller's account. Remove the association and try again.+--+-- _ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError _ResourceInUseException = _ServiceError . hasCode "ResourceInUseException"
gen/Network/AWS/CertificateManager/Types/Product.hs view
@@ -21,8 +21,10 @@ import           Network.AWS.Lens import           Network.AWS.Prelude --- | Contains detailed metadata about an ACM Certificate. This structure is returned in the response to a < DescribeCertificate> request.+-- | Contains detailed metadata about an ACM Certificate. This structure is returned in the response to a 'DescribeCertificate' request. --+--+-- -- /See:/ 'certificateDetail' smart constructor. data CertificateDetail = CertificateDetail'     { _cdSubject                 :: !(Maybe Text)@@ -33,11 +35,13 @@     , _cdCreatedAt               :: !(Maybe POSIX)     , _cdCertificateARN          :: !(Maybe Text)     , _cdSerial                  :: !(Maybe Text)+    , _cdImportedAt              :: !(Maybe POSIX)     , _cdRevokedAt               :: !(Maybe POSIX)     , _cdNotBefore               :: !(Maybe POSIX)     , _cdRevocationReason        :: !(Maybe RevocationReason)     , _cdDomainName              :: !(Maybe Text)     , _cdKeyAlgorithm            :: !(Maybe KeyAlgorithm)+    , _cdType                    :: !(Maybe CertificateType)     , _cdIssuedAt                :: !(Maybe POSIX)     , _cdSignatureAlgorithm      :: !(Maybe Text)     , _cdDomainValidationOptions :: !(Maybe (List1 DomainValidation))@@ -49,41 +53,45 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cdSubject'+-- * 'cdSubject' - The name of the entity that is associated with the public key contained in the certificate. ----- * 'cdStatus'+-- * 'cdStatus' - The status of the certificate. ----- * 'cdFailureReason'+-- * 'cdFailureReason' - The reason the certificate request failed. This value exists only when the certificate status is @FAILED@ . For more information, see <http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed Certificate Request Failed> in the /AWS Certificate Manager User Guide/ . ----- * 'cdSubjectAlternativeNames'+-- * 'cdSubjectAlternativeNames' - One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website. ----- * 'cdInUseBy'+-- * 'cdInUseBy' - A list of ARNs for the AWS resources that are using the certificate. A certificate can be used by multiple AWS resources. ----- * 'cdCreatedAt'+-- * 'cdCreatedAt' - The time at which the certificate was requested. This value exists only when the certificate type is @AMAZON_ISSUED@ . ----- * 'cdCertificateARN'+-- * 'cdCertificateARN' - The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> in the /AWS General Reference/ . ----- * 'cdSerial'+-- * 'cdSerial' - The serial number of the certificate. ----- * 'cdRevokedAt'+-- * 'cdImportedAt' - The date and time at which the certificate was imported. This value exists only when the certificate type is @IMPORTED@ . ----- * 'cdNotBefore'+-- * 'cdRevokedAt' - The time at which the certificate was revoked. This value exists only when the certificate status is @REVOKED@ . ----- * 'cdRevocationReason'+-- * 'cdNotBefore' - The time before which the certificate is not valid. ----- * 'cdDomainName'+-- * 'cdRevocationReason' - The reason the certificate was revoked. This value exists only when the certificate status is @REVOKED@ . ----- * 'cdKeyAlgorithm'+-- * 'cdDomainName' - The fully qualified domain name for the certificate, such as www.example.com or example.com. ----- * 'cdIssuedAt'+-- * 'cdKeyAlgorithm' - The algorithm that was used to generate the key pair (the public and private key). ----- * 'cdSignatureAlgorithm'+-- * 'cdType' - The source of the certificate. For certificates provided by ACM, this value is @AMAZON_ISSUED@ . For certificates that you imported with 'ImportCertificate' , this value is @IMPORTED@ . ACM does not provide <http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html managed renewal> for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see <http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html Importing Certificates> in the /AWS Certificate Manager User Guide/ . ----- * 'cdDomainValidationOptions'+-- * 'cdIssuedAt' - The time at which the certificate was issued. This value exists only when the certificate type is @AMAZON_ISSUED@ . ----- * 'cdIssuer'+-- * 'cdSignatureAlgorithm' - The algorithm that was used to sign the certificate. ----- * 'cdNotAfter'+-- * 'cdDomainValidationOptions' - Contains information about the email address or addresses used for domain validation. This field exists only when the certificate type is @AMAZON_ISSUED@ .+--+-- * 'cdIssuer' - The name of the certificate authority that issued and signed the certificate.+--+-- * 'cdNotAfter' - The time after which the certificate is not valid. certificateDetail     :: CertificateDetail certificateDetail =@@ -96,11 +104,13 @@     , _cdCreatedAt = Nothing     , _cdCertificateARN = Nothing     , _cdSerial = Nothing+    , _cdImportedAt = Nothing     , _cdRevokedAt = Nothing     , _cdNotBefore = Nothing     , _cdRevocationReason = Nothing     , _cdDomainName = Nothing     , _cdKeyAlgorithm = Nothing+    , _cdType = Nothing     , _cdIssuedAt = Nothing     , _cdSignatureAlgorithm = Nothing     , _cdDomainValidationOptions = Nothing@@ -108,7 +118,7 @@     , _cdNotAfter = Nothing     } --- | The X.500 distinguished name of the entity associated with the public key contained in the certificate.+-- | The name of the entity that is associated with the public key contained in the certificate. cdSubject :: Lens' CertificateDetail (Maybe Text) cdSubject = lens _cdSubject (\ s a -> s{_cdSubject = a}); @@ -116,23 +126,23 @@ cdStatus :: Lens' CertificateDetail (Maybe CertificateStatus) cdStatus = lens _cdStatus (\ s a -> s{_cdStatus = a}); --- | The reason the certificate request failed. This value exists only when the structure\'s 'Status' is 'FAILED'. For more information, see <http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed Certificate Request Failed> in the /AWS Certificate Manager User Guide/.+-- | The reason the certificate request failed. This value exists only when the certificate status is @FAILED@ . For more information, see <http://docs.aws.amazon.com/acm/latest/userguide/troubleshooting.html#troubleshooting-failed Certificate Request Failed> in the /AWS Certificate Manager User Guide/ . cdFailureReason :: Lens' CertificateDetail (Maybe FailureReason) cdFailureReason = lens _cdFailureReason (\ s a -> s{_cdFailureReason = a}); --- | One or more domain names (subject alternative names) included in the certificate request. After the certificate is issued, this list includes the domain names bound to the public key contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website.+-- | One or more domain names (subject alternative names) included in the certificate. This list contains the domain names that are bound to the public key that is contained in the certificate. The subject alternative names include the canonical domain name (CN) of the certificate and additional domain names that can be used to connect to the website. cdSubjectAlternativeNames :: Lens' CertificateDetail (Maybe (NonEmpty Text)) cdSubjectAlternativeNames = lens _cdSubjectAlternativeNames (\ s a -> s{_cdSubjectAlternativeNames = a}) . mapping _List1; --- | A list of ARNs for the resources that are using the certificate. An ACM Certificate can be used by multiple AWS resources.+-- | A list of ARNs for the AWS resources that are using the certificate. A certificate can be used by multiple AWS resources. cdInUseBy :: Lens' CertificateDetail [Text] cdInUseBy = lens _cdInUseBy (\ s a -> s{_cdInUseBy = a}) . _Default . _Coerce; --- | The time at which the certificate was requested.+-- | The time at which the certificate was requested. This value exists only when the certificate type is @AMAZON_ISSUED@ . cdCreatedAt :: Lens' CertificateDetail (Maybe UTCTime) cdCreatedAt = lens _cdCreatedAt (\ s a -> s{_cdCreatedAt = a}) . mapping _Time; --- | The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | The Amazon Resource Name (ARN) of the certificate. For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> in the /AWS General Reference/ . cdCertificateARN :: Lens' CertificateDetail (Maybe Text) cdCertificateARN = lens _cdCertificateARN (\ s a -> s{_cdCertificateARN = a}); @@ -140,7 +150,11 @@ cdSerial :: Lens' CertificateDetail (Maybe Text) cdSerial = lens _cdSerial (\ s a -> s{_cdSerial = a}); --- | The time at which the certificate was revoked. This value exists only when the certificate status is 'REVOKED'.+-- | The date and time at which the certificate was imported. This value exists only when the certificate type is @IMPORTED@ .+cdImportedAt :: Lens' CertificateDetail (Maybe UTCTime)+cdImportedAt = lens _cdImportedAt (\ s a -> s{_cdImportedAt = a}) . mapping _Time;++-- | The time at which the certificate was revoked. This value exists only when the certificate status is @REVOKED@ . cdRevokedAt :: Lens' CertificateDetail (Maybe UTCTime) cdRevokedAt = lens _cdRevokedAt (\ s a -> s{_cdRevokedAt = a}) . mapping _Time; @@ -148,31 +162,35 @@ cdNotBefore :: Lens' CertificateDetail (Maybe UTCTime) cdNotBefore = lens _cdNotBefore (\ s a -> s{_cdNotBefore = a}) . mapping _Time; --- | The reason the certificate was revoked. This value exists only when the certificate status is 'REVOKED'.+-- | The reason the certificate was revoked. This value exists only when the certificate status is @REVOKED@ . cdRevocationReason :: Lens' CertificateDetail (Maybe RevocationReason) cdRevocationReason = lens _cdRevocationReason (\ s a -> s{_cdRevocationReason = a}); --- | The fully qualified domain name (FQDN) for the certificate, such as www.example.com or example.com.+-- | The fully qualified domain name for the certificate, such as www.example.com or example.com. cdDomainName :: Lens' CertificateDetail (Maybe Text) cdDomainName = lens _cdDomainName (\ s a -> s{_cdDomainName = a}); --- | The algorithm used to generate the key pair (the public and private key). Currently the only supported value is 'RSA_2048'.+-- | The algorithm that was used to generate the key pair (the public and private key). cdKeyAlgorithm :: Lens' CertificateDetail (Maybe KeyAlgorithm) cdKeyAlgorithm = lens _cdKeyAlgorithm (\ s a -> s{_cdKeyAlgorithm = a}); --- | The time at which the certificate was issued.+-- | The source of the certificate. For certificates provided by ACM, this value is @AMAZON_ISSUED@ . For certificates that you imported with 'ImportCertificate' , this value is @IMPORTED@ . ACM does not provide <http://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html managed renewal> for imported certificates. For more information about the differences between certificates that you import and those that ACM provides, see <http://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html Importing Certificates> in the /AWS Certificate Manager User Guide/ .+cdType :: Lens' CertificateDetail (Maybe CertificateType)+cdType = lens _cdType (\ s a -> s{_cdType = a});++-- | The time at which the certificate was issued. This value exists only when the certificate type is @AMAZON_ISSUED@ . cdIssuedAt :: Lens' CertificateDetail (Maybe UTCTime) cdIssuedAt = lens _cdIssuedAt (\ s a -> s{_cdIssuedAt = a}) . mapping _Time; --- | The algorithm used to generate a signature. Currently the only supported value is 'SHA256WITHRSA'.+-- | The algorithm that was used to sign the certificate. cdSignatureAlgorithm :: Lens' CertificateDetail (Maybe Text) cdSignatureAlgorithm = lens _cdSignatureAlgorithm (\ s a -> s{_cdSignatureAlgorithm = a}); --- | Contains information about the email address or addresses used for domain validation.+-- | Contains information about the email address or addresses used for domain validation. This field exists only when the certificate type is @AMAZON_ISSUED@ . cdDomainValidationOptions :: Lens' CertificateDetail (Maybe (NonEmpty DomainValidation)) cdDomainValidationOptions = lens _cdDomainValidationOptions (\ s a -> s{_cdDomainValidationOptions = a}) . mapping _List1; --- | The X.500 distinguished name of the CA that issued and signed the certificate.+-- | The name of the certificate authority that issued and signed the certificate. cdIssuer :: Lens' CertificateDetail (Maybe Text) cdIssuer = lens _cdIssuer (\ s a -> s{_cdIssuer = a}); @@ -192,11 +210,13 @@                      <*> (x .:? "CreatedAt")                      <*> (x .:? "CertificateArn")                      <*> (x .:? "Serial")+                     <*> (x .:? "ImportedAt")                      <*> (x .:? "RevokedAt")                      <*> (x .:? "NotBefore")                      <*> (x .:? "RevocationReason")                      <*> (x .:? "DomainName")                      <*> (x .:? "KeyAlgorithm")+                     <*> (x .:? "Type")                      <*> (x .:? "IssuedAt")                      <*> (x .:? "SignatureAlgorithm")                      <*> (x .:? "DomainValidationOptions")@@ -207,8 +227,10 @@  instance NFData CertificateDetail --- | This structure is returned in the response object of < ListCertificates> action.+-- | This structure is returned in the response object of 'ListCertificates' action. --+--+-- -- /See:/ 'certificateSummary' smart constructor. data CertificateSummary = CertificateSummary'     { _csCertificateARN :: !(Maybe Text)@@ -219,9 +241,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'csCertificateARN'+-- * 'csCertificateARN' - Amazon Resource Name (ARN) of the certificate. This is of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . ----- * 'csDomainName'+-- * 'csDomainName' - Fully qualified domain name (FQDN), such as www.example.com or example.com, for the certificate. certificateSummary     :: CertificateSummary certificateSummary =@@ -230,11 +252,7 @@     , _csDomainName = Nothing     } --- | Amazon Resource Name (ARN) of the certificate. This is of the form:------ 'arn:aws:acm:region:123456789012:certificate\/12345678-1234-1234-1234-123456789012'------ For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces>.+-- | Amazon Resource Name (ARN) of the certificate. This is of the form: @arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012@  For more information about ARNs, see <http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and AWS Service Namespaces> . csCertificateARN :: Lens' CertificateSummary (Maybe Text) csCertificateARN = lens _csCertificateARN (\ s a -> s{_csCertificateARN = a}); @@ -255,6 +273,8 @@  -- | Structure that contains the domain name, the base validation domain to which validation email is sent, and the email addresses used to validate the domain identity. --+--+-- -- /See:/ 'domainValidation' smart constructor. data DomainValidation = DomainValidation'     { _dvValidationEmails :: !(Maybe [Text])@@ -266,11 +286,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dvValidationEmails'+-- * 'dvValidationEmails' - A list of contact address for the domain registrant. ----- * 'dvValidationDomain'+-- * 'dvValidationDomain' - The base validation domain that acts as the suffix of the email addresses that are used to send the emails. ----- * 'dvDomainName'+-- * 'dvDomainName' - Fully Qualified Domain Name (FQDN) of the form @www.example.com or @ @example.com@ . domainValidation     :: Text -- ^ 'dvDomainName'     -> DomainValidation@@ -289,7 +309,7 @@ dvValidationDomain :: Lens' DomainValidation (Maybe Text) dvValidationDomain = lens _dvValidationDomain (\ s a -> s{_dvValidationDomain = a}); --- | Fully Qualified Domain Name (FQDN) of the form 'www.example.com or ' 'example.com'.+-- | Fully Qualified Domain Name (FQDN) of the form @www.example.com or @ @example.com@ . dvDomainName :: Lens' DomainValidation Text dvDomainName = lens _dvDomainName (\ s a -> s{_dvDomainName = a}); @@ -306,8 +326,10 @@  instance NFData DomainValidation --- | This structure is used in the request object of the < RequestCertificate> action.+-- | This structure is used in the request object of the 'RequestCertificate' action. --+--+-- -- /See:/ 'domainValidationOption' smart constructor. data DomainValidationOption = DomainValidationOption'     { _dvoDomainName       :: !Text@@ -318,9 +340,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dvoDomainName'+-- * 'dvoDomainName' - Fully Qualified Domain Name (FQDN) of the certificate being requested. ----- * 'dvoValidationDomain'+-- * 'dvoValidationDomain' - The domain to which validation email is sent. This is the base validation domain that will act as the suffix of the email addresses. This must be the same as the @DomainName@ value or a superdomain of the @DomainName@ value. For example, if you requested a certificate for @site.subdomain.example.com@ and specify a __ValidationDomain__ of @subdomain.example.com@ , ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS for the base domain and the following five addresses:     * admin@subdomain.example.com     * administrator@subdomain.example.com     * hostmaster@subdomain.example.com     * postmaster@subdomain.example.com     * webmaster@subdomain.example.com domainValidationOption     :: Text -- ^ 'dvoDomainName'     -> Text -- ^ 'dvoValidationDomain'@@ -335,18 +357,7 @@ dvoDomainName :: Lens' DomainValidationOption Text dvoDomainName = lens _dvoDomainName (\ s a -> s{_dvoDomainName = a}); --- | The domain to which validation email is sent. This is the base validation domain that will act as the suffix of the email addresses. This must be the same as the 'DomainName' value or a superdomain of the 'DomainName' value. For example, if you requested a certificate for 'site.subdomain.example.com' and specify a __ValidationDomain__ of 'subdomain.example.com', ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS for the base domain and the following five addresses:------ -   admin\'subdomain.example.com------ -   administrator\'subdomain.example.com------ -   hostmaster\'subdomain.example.com------ -   postmaster\'subdomain.example.com------ -   webmaster\'subdomain.example.com---+-- | The domain to which validation email is sent. This is the base validation domain that will act as the suffix of the email addresses. This must be the same as the @DomainName@ value or a superdomain of the @DomainName@ value. For example, if you requested a certificate for @site.subdomain.example.com@ and specify a __ValidationDomain__ of @subdomain.example.com@ , ACM sends email to the domain registrant, technical contact, and administrative contact in WHOIS for the base domain and the following five addresses:     * admin@subdomain.example.com     * administrator@subdomain.example.com     * hostmaster@subdomain.example.com     * postmaster@subdomain.example.com     * webmaster@subdomain.example.com dvoValidationDomain :: Lens' DomainValidationOption Text dvoValidationDomain = lens _dvoValidationDomain (\ s a -> s{_dvoValidationDomain = a}); @@ -363,6 +374,8 @@  -- | A key-value pair that identifies or specifies metadata about an ACM resource. --+--+-- -- /See:/ 'tag' smart constructor. data Tag = Tag'     { _tagValue :: !(Maybe Text)@@ -373,9 +386,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'tagValue'+-- * 'tagValue' - The value of the tag. ----- * 'tagKey'+-- * 'tagKey' - The key of the tag. tag     :: Text -- ^ 'tagKey'     -> Tag
gen/Network/AWS/CertificateManager/Types/Sum.hs view
@@ -63,6 +63,32 @@ instance FromJSON CertificateStatus where     parseJSON = parseJSONText "CertificateStatus" +data CertificateType+    = AmazonIssued+    | Imported+    deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText CertificateType where+    parser = takeLowerText >>= \case+        "amazon_issued" -> pure AmazonIssued+        "imported" -> pure Imported+        e -> fromTextError $ "Failure parsing CertificateType from value: '" <> e+           <> "'. Accepted values: amazon_issued, imported"++instance ToText CertificateType where+    toText = \case+        AmazonIssued -> "AMAZON_ISSUED"+        Imported -> "IMPORTED"++instance Hashable     CertificateType+instance NFData       CertificateType+instance ToByteString CertificateType+instance ToQuery      CertificateType+instance ToHeader     CertificateType++instance FromJSON CertificateType where+    parseJSON = parseJSONText "CertificateType"+ data FailureReason     = AdditionalVerificationRequired     | DomainNotAllowed@@ -100,19 +126,22 @@  data KeyAlgorithm     = EcPRIME256V1+    | Rsa1024     | Rsa2048     deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)  instance FromText KeyAlgorithm where     parser = takeLowerText >>= \case         "ec_prime256v1" -> pure EcPRIME256V1+        "rsa_1024" -> pure Rsa1024         "rsa_2048" -> pure Rsa2048         e -> fromTextError $ "Failure parsing KeyAlgorithm from value: '" <> e-           <> "'. Accepted values: ec_prime256v1, rsa_2048"+           <> "'. Accepted values: ec_prime256v1, rsa_1024, rsa_2048"  instance ToText KeyAlgorithm where     toText = \case         EcPRIME256V1 -> "EC_prime256v1"+        Rsa1024 -> "RSA_1024"         Rsa2048 -> "RSA_2048"  instance Hashable     KeyAlgorithm
test/Test/AWS/Gen/CertificateManager.hs view
@@ -52,6 +52,9 @@ --         , requestRemoveTagsFromCertificate $ --             removeTagsFromCertificate --+--         , requestImportCertificate $+--             importCertificate+-- --         , requestDescribeCertificate $ --             describeCertificate --@@ -82,6 +85,9 @@ --         , responseRemoveTagsFromCertificate $ --             removeTagsFromCertificateResponse --+--         , responseImportCertificate $+--             importCertificateResponse+-- --         , responseDescribeCertificate $ --             describeCertificateResponse --@@ -130,6 +136,11 @@     "RemoveTagsFromCertificate"     "fixture/RemoveTagsFromCertificate.yaml" +requestImportCertificate :: ImportCertificate -> TestTree+requestImportCertificate = req+    "ImportCertificate"+    "fixture/ImportCertificate.yaml"+ requestDescribeCertificate :: DescribeCertificate -> TestTree requestDescribeCertificate = req     "DescribeCertificate"@@ -192,6 +203,13 @@     "fixture/RemoveTagsFromCertificateResponse.proto"     certificateManager     (Proxy :: Proxy RemoveTagsFromCertificate)++responseImportCertificate :: ImportCertificateResponse -> TestTree+responseImportCertificate = res+    "ImportCertificateResponse"+    "fixture/ImportCertificateResponse.proto"+    certificateManager+    (Proxy :: Proxy ImportCertificate)  responseDescribeCertificate :: DescribeCertificateResponse -> TestTree responseDescribeCertificate = res