Skip to content

Commit

Permalink
Regenerating IoT from latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed May 4, 2016
1 parent a1031a3 commit 4c9276d
Show file tree
Hide file tree
Showing 37 changed files with 1,880 additions and 32 deletions.
9 changes: 9 additions & 0 deletions amazonka-iot/amazonka-iot.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@ library
, Network.AWS.IoT.CreatePolicyVersion
, Network.AWS.IoT.CreateThing
, Network.AWS.IoT.CreateTopicRule
, Network.AWS.IoT.DeleteCACertificate
, Network.AWS.IoT.DeleteCertificate
, Network.AWS.IoT.DeletePolicy
, Network.AWS.IoT.DeletePolicyVersion
, Network.AWS.IoT.DeleteRegistrationCode
, Network.AWS.IoT.DeleteThing
, Network.AWS.IoT.DeleteTopicRule
, Network.AWS.IoT.DescribeCACertificate
, Network.AWS.IoT.DescribeCertificate
, Network.AWS.IoT.DescribeEndpoint
, Network.AWS.IoT.DescribeThing
Expand All @@ -77,21 +80,27 @@ library
, Network.AWS.IoT.GetLoggingOptions
, Network.AWS.IoT.GetPolicy
, Network.AWS.IoT.GetPolicyVersion
, Network.AWS.IoT.GetRegistrationCode
, Network.AWS.IoT.GetTopicRule
, Network.AWS.IoT.ListCACertificates
, Network.AWS.IoT.ListCertificates
, Network.AWS.IoT.ListCertificatesByCA
, Network.AWS.IoT.ListPolicies
, Network.AWS.IoT.ListPolicyVersions
, Network.AWS.IoT.ListPrincipalPolicies
, Network.AWS.IoT.ListPrincipalThings
, Network.AWS.IoT.ListThingPrincipals
, Network.AWS.IoT.ListThings
, Network.AWS.IoT.ListTopicRules
, Network.AWS.IoT.RegisterCACertificate
, Network.AWS.IoT.RegisterCertificate
, Network.AWS.IoT.RejectCertificateTransfer
, Network.AWS.IoT.ReplaceTopicRule
, Network.AWS.IoT.SetDefaultPolicyVersion
, Network.AWS.IoT.SetLoggingOptions
, Network.AWS.IoT.TransferCertificate
, Network.AWS.IoT.Types
, Network.AWS.IoT.UpdateCACertificate
, Network.AWS.IoT.UpdateCertificate
, Network.AWS.IoT.UpdateThing
, Network.AWS.IoT.Waiters
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
80 changes: 80 additions & 0 deletions amazonka-iot/gen/Network/AWS/IoT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ module Network.AWS.IoT
-- * Errors
-- $errors

-- ** CertificateConflictException
, _CertificateConflictException

-- ** SqlParseException
, _SqlParseException

Expand All @@ -43,6 +46,9 @@ module Network.AWS.IoT
-- ** CertificateStateException
, _CertificateStateException

-- ** RegistrationCodeValidationException
, _RegistrationCodeValidationException

-- ** MalformedPolicyException
, _MalformedPolicyException

Expand All @@ -52,6 +58,9 @@ module Network.AWS.IoT
-- ** ResourceAlreadyExistsException
, _ResourceAlreadyExistsException

-- ** CertificateValidationException
, _CertificateValidationException

-- ** TransferAlreadyCompletedException
, _TransferAlreadyCompletedException

Expand Down Expand Up @@ -91,6 +100,9 @@ module Network.AWS.IoT
-- ** CreatePolicy
, module Network.AWS.IoT.CreatePolicy

-- ** RegisterCertificate
, module Network.AWS.IoT.RegisterCertificate

-- ** ListThingPrincipals
, module Network.AWS.IoT.ListThingPrincipals

Expand Down Expand Up @@ -124,12 +136,21 @@ module Network.AWS.IoT
-- ** CreatePolicyVersion
, module Network.AWS.IoT.CreatePolicyVersion

-- ** ListCACertificates
, module Network.AWS.IoT.ListCACertificates

-- ** DeleteTopicRule
, module Network.AWS.IoT.DeleteTopicRule

-- ** ListPrincipalPolicies
, module Network.AWS.IoT.ListPrincipalPolicies

-- ** DeleteCACertificate
, module Network.AWS.IoT.DeleteCACertificate

-- ** UpdateCACertificate
, module Network.AWS.IoT.UpdateCACertificate

-- ** ListTopicRules
, module Network.AWS.IoT.ListTopicRules

Expand Down Expand Up @@ -157,6 +178,15 @@ module Network.AWS.IoT
-- ** UpdateCertificate
, module Network.AWS.IoT.UpdateCertificate

-- ** DescribeCACertificate
, module Network.AWS.IoT.DescribeCACertificate

-- ** GetRegistrationCode
, module Network.AWS.IoT.GetRegistrationCode

-- ** ListCertificatesByCA
, module Network.AWS.IoT.ListCertificatesByCA

-- ** AttachThingPrincipal
, module Network.AWS.IoT.AttachThingPrincipal

Expand All @@ -166,6 +196,9 @@ module Network.AWS.IoT
-- ** DetachPrincipalPolicy
, module Network.AWS.IoT.DetachPrincipalPolicy

-- ** DeleteRegistrationCode
, module Network.AWS.IoT.DeleteRegistrationCode

-- ** CreateThing
, module Network.AWS.IoT.CreateThing

Expand Down Expand Up @@ -196,6 +229,9 @@ module Network.AWS.IoT
-- ** DescribeEndpoint
, module Network.AWS.IoT.DescribeEndpoint

-- ** RegisterCACertificate
, module Network.AWS.IoT.RegisterCACertificate

-- ** SetLoggingOptions
, module Network.AWS.IoT.SetLoggingOptions

Expand All @@ -210,6 +246,9 @@ module Network.AWS.IoT

-- * Types

-- ** CACertificateStatus
, CACertificateStatus (..)

-- ** CertificateStatus
, CertificateStatus (..)

Expand Down Expand Up @@ -239,6 +278,24 @@ module Network.AWS.IoT
, attributePayload
, apAttributes

-- ** CACertificate
, CACertificate
, cACertificate
, cacStatus
, cacCertificateARN
, cacCertificateId
, cacCreationDate

-- ** CACertificateDescription
, CACertificateDescription
, cACertificateDescription
, cacdStatus
, cacdOwnedBy
, cacdCertificatePem
, cacdCertificateARN
, cacdCertificateId
, cacdCreationDate

-- ** Certificate
, Certificate
, certificate
Expand All @@ -253,10 +310,13 @@ module Network.AWS.IoT
, cdStatus
, cdOwnedBy
, cdLastModifiedDate
, cdCaCertificateId
, cdPreviousOwnedBy
, cdCertificatePem
, cdCertificateARN
, cdCertificateId
, cdCreationDate
, cdTransferData

-- ** CloudwatchAlarmAction
, CloudwatchAlarmAction
Expand Down Expand Up @@ -377,6 +437,7 @@ module Network.AWS.IoT
, topicRule
, trCreatedAt
, trActions
, trAwsIotSqlVersion
, trRuleDisabled
, trRuleName
, trSql
Expand All @@ -394,10 +455,20 @@ module Network.AWS.IoT
-- ** TopicRulePayload
, TopicRulePayload
, topicRulePayload
, trpAwsIotSqlVersion
, trpRuleDisabled
, trpDescription
, trpSql
, trpActions

-- ** TransferData
, TransferData
, transferData
, tdTransferDate
, tdAcceptDate
, tdTransferMessage
, tdRejectDate
, tdRejectReason
) where

import Network.AWS.IoT.AcceptCertificateTransfer
Expand All @@ -410,11 +481,14 @@ import Network.AWS.IoT.CreatePolicy
import Network.AWS.IoT.CreatePolicyVersion
import Network.AWS.IoT.CreateThing
import Network.AWS.IoT.CreateTopicRule
import Network.AWS.IoT.DeleteCACertificate
import Network.AWS.IoT.DeleteCertificate
import Network.AWS.IoT.DeletePolicy
import Network.AWS.IoT.DeletePolicyVersion
import Network.AWS.IoT.DeleteRegistrationCode
import Network.AWS.IoT.DeleteThing
import Network.AWS.IoT.DeleteTopicRule
import Network.AWS.IoT.DescribeCACertificate
import Network.AWS.IoT.DescribeCertificate
import Network.AWS.IoT.DescribeEndpoint
import Network.AWS.IoT.DescribeThing
Expand All @@ -425,21 +499,27 @@ import Network.AWS.IoT.EnableTopicRule
import Network.AWS.IoT.GetLoggingOptions
import Network.AWS.IoT.GetPolicy
import Network.AWS.IoT.GetPolicyVersion
import Network.AWS.IoT.GetRegistrationCode
import Network.AWS.IoT.GetTopicRule
import Network.AWS.IoT.ListCACertificates
import Network.AWS.IoT.ListCertificates
import Network.AWS.IoT.ListCertificatesByCA
import Network.AWS.IoT.ListPolicies
import Network.AWS.IoT.ListPolicyVersions
import Network.AWS.IoT.ListPrincipalPolicies
import Network.AWS.IoT.ListPrincipalThings
import Network.AWS.IoT.ListThingPrincipals
import Network.AWS.IoT.ListThings
import Network.AWS.IoT.ListTopicRules
import Network.AWS.IoT.RegisterCACertificate
import Network.AWS.IoT.RegisterCertificate
import Network.AWS.IoT.RejectCertificateTransfer
import Network.AWS.IoT.ReplaceTopicRule
import Network.AWS.IoT.SetDefaultPolicyVersion
import Network.AWS.IoT.SetLoggingOptions
import Network.AWS.IoT.TransferCertificate
import Network.AWS.IoT.Types
import Network.AWS.IoT.UpdateCACertificate
import Network.AWS.IoT.UpdateCertificate
import Network.AWS.IoT.UpdateThing
import Network.AWS.IoT.Waiters
Expand Down
116 changes: 116 additions & 0 deletions amazonka-iot/gen/Network/AWS/IoT/DeleteCACertificate.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{-# 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.IoT.DeleteCACertificate
-- 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)
--
-- Deletes a registered CA certificate.
module Network.AWS.IoT.DeleteCACertificate
(
-- * Creating a Request
deleteCACertificate
, DeleteCACertificate
-- * Request Lenses
, dcacCertificateId

-- * Destructuring the Response
, deleteCACertificateResponse
, DeleteCACertificateResponse
-- * Response Lenses
, dcacrsResponseStatus
) where

import Network.AWS.IoT.Types
import Network.AWS.IoT.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Input for the DeleteCACertificate operation.
--
-- /See:/ 'deleteCACertificate' smart constructor.
newtype DeleteCACertificate = DeleteCACertificate'
{ _dcacCertificateId :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'DeleteCACertificate' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'dcacCertificateId'
deleteCACertificate
:: Text -- ^ 'dcacCertificateId'
-> DeleteCACertificate
deleteCACertificate pCertificateId_ =
DeleteCACertificate'
{ _dcacCertificateId = pCertificateId_
}

-- | The ID of the certificate to delete.
dcacCertificateId :: Lens' DeleteCACertificate Text
dcacCertificateId = lens _dcacCertificateId (\ s a -> s{_dcacCertificateId = a});

instance AWSRequest DeleteCACertificate where
type Rs DeleteCACertificate =
DeleteCACertificateResponse
request = delete ioT
response
= receiveEmpty
(\ s h x ->
DeleteCACertificateResponse' <$> (pure (fromEnum s)))

instance Hashable DeleteCACertificate

instance NFData DeleteCACertificate

instance ToHeaders DeleteCACertificate where
toHeaders = const mempty

instance ToPath DeleteCACertificate where
toPath DeleteCACertificate'{..}
= mconcat
["/cacertificate/", toBS _dcacCertificateId]

instance ToQuery DeleteCACertificate where
toQuery = const mempty

-- | The output for the DeleteCACertificate operation.
--
-- /See:/ 'deleteCACertificateResponse' smart constructor.
newtype DeleteCACertificateResponse = DeleteCACertificateResponse'
{ _dcacrsResponseStatus :: Int
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'DeleteCACertificateResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'dcacrsResponseStatus'
deleteCACertificateResponse
:: Int -- ^ 'dcacrsResponseStatus'
-> DeleteCACertificateResponse
deleteCACertificateResponse pResponseStatus_ =
DeleteCACertificateResponse'
{ _dcacrsResponseStatus = pResponseStatus_
}

-- | The response status code.
dcacrsResponseStatus :: Lens' DeleteCACertificateResponse Int
dcacrsResponseStatus = lens _dcacrsResponseStatus (\ s a -> s{_dcacrsResponseStatus = a});

instance NFData DeleteCACertificateResponse
Loading

0 comments on commit 4c9276d

Please sign in to comment.