Skip to content

Commit

Permalink
Regenerating amazonka-kinesis-analytics from latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed Aug 20, 2017
1 parent 50822a4 commit a4f9c5c
Show file tree
Hide file tree
Showing 14 changed files with 683 additions and 49 deletions.
2 changes: 2 additions & 0 deletions amazonka-kinesis-analytics/amazonka-kinesis-analytics.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ library

exposed-modules:
Network.AWS.KinesisAnalytics
, Network.AWS.KinesisAnalytics.AddApplicationCloudWatchLoggingOption
, Network.AWS.KinesisAnalytics.AddApplicationInput
, Network.AWS.KinesisAnalytics.AddApplicationOutput
, Network.AWS.KinesisAnalytics.AddApplicationReferenceDataSource
, Network.AWS.KinesisAnalytics.CreateApplication
, Network.AWS.KinesisAnalytics.DeleteApplication
, Network.AWS.KinesisAnalytics.DeleteApplicationCloudWatchLoggingOption
, Network.AWS.KinesisAnalytics.DeleteApplicationOutput
, Network.AWS.KinesisAnalytics.DeleteApplicationReferenceDataSource
, Network.AWS.KinesisAnalytics.DescribeApplication
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
method: POST
headers:
Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/kinesisanalytics/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?
Host: kinesisanalytics.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Content-SHA256: abcdef
X-Amz-Date: 20091028T223200Z
body:
''
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
method: POST
headers:
Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/kinesisanalytics/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?
Host: kinesisanalytics.us-east-1.amazonaws.com
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Content-SHA256: abcdef
X-Amz-Date: 20091028T223200Z
body:
''
Empty file.
33 changes: 33 additions & 0 deletions amazonka-kinesis-analytics/gen/Network/AWS/KinesisAnalytics.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ module Network.AWS.KinesisAnalytics
-- ** ConcurrentModificationException
, _ConcurrentModificationException

-- ** ServiceUnavailableException
, _ServiceUnavailableException

-- ** UnableToDetectSchemaException
, _UnableToDetectSchemaException

Expand Down Expand Up @@ -77,6 +80,9 @@ module Network.AWS.KinesisAnalytics
-- ** UpdateApplication
, module Network.AWS.KinesisAnalytics.UpdateApplication

-- ** DeleteApplicationCloudWatchLoggingOption
, module Network.AWS.KinesisAnalytics.DeleteApplicationCloudWatchLoggingOption

-- ** CreateApplication
, module Network.AWS.KinesisAnalytics.CreateApplication

Expand All @@ -92,6 +98,9 @@ module Network.AWS.KinesisAnalytics
-- ** AddApplicationInput
, module Network.AWS.KinesisAnalytics.AddApplicationInput

-- ** AddApplicationCloudWatchLoggingOption
, module Network.AWS.KinesisAnalytics.AddApplicationCloudWatchLoggingOption

-- ** ListApplications
, module Network.AWS.KinesisAnalytics.ListApplications

Expand All @@ -111,6 +120,7 @@ module Network.AWS.KinesisAnalytics
, applicationDetail
, adApplicationDescription
, adOutputDescriptions
, adCloudWatchLoggingOptionDescriptions
, adReferenceDataSourceDescriptions
, adInputDescriptions
, adApplicationCode
Expand All @@ -133,6 +143,7 @@ module Network.AWS.KinesisAnalytics
, applicationUpdate
, auReferenceDataSourceUpdates
, auInputUpdates
, auCloudWatchLoggingOptionUpdates
, auOutputUpdates
, auApplicationCodeUpdate

Expand All @@ -142,6 +153,26 @@ module Network.AWS.KinesisAnalytics
, cmpRecordRowDelimiter
, cmpRecordColumnDelimiter

-- ** CloudWatchLoggingOption
, CloudWatchLoggingOption
, cloudWatchLoggingOption
, cwloLogStreamARN
, cwloRoleARN

-- ** CloudWatchLoggingOptionDescription
, CloudWatchLoggingOptionDescription
, cloudWatchLoggingOptionDescription
, cwlodCloudWatchLoggingOptionId
, cwlodLogStreamARN
, cwlodRoleARN

-- ** CloudWatchLoggingOptionUpdate
, CloudWatchLoggingOptionUpdate
, cloudWatchLoggingOptionUpdate
, cwlouRoleARNUpdate
, cwlouLogStreamARNUpdate
, cwlouCloudWatchLoggingOptionId

-- ** DestinationSchema
, DestinationSchema
, destinationSchema
Expand Down Expand Up @@ -380,11 +411,13 @@ module Network.AWS.KinesisAnalytics
, ssRecordColumns
) where

import Network.AWS.KinesisAnalytics.AddApplicationCloudWatchLoggingOption
import Network.AWS.KinesisAnalytics.AddApplicationInput
import Network.AWS.KinesisAnalytics.AddApplicationOutput
import Network.AWS.KinesisAnalytics.AddApplicationReferenceDataSource
import Network.AWS.KinesisAnalytics.CreateApplication
import Network.AWS.KinesisAnalytics.DeleteApplication
import Network.AWS.KinesisAnalytics.DeleteApplicationCloudWatchLoggingOption
import Network.AWS.KinesisAnalytics.DeleteApplicationOutput
import Network.AWS.KinesisAnalytics.DeleteApplicationReferenceDataSource
import Network.AWS.KinesisAnalytics.DescribeApplication
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
{-# 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.KinesisAnalytics.AddApplicationCloudWatchLoggingOption
-- Copyright : (c) 2013-2016 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <[email protected]>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Adds a CloudWatch log stream to monitor application configuration errors. For more information about using CloudWatch log streams with Amazon Kinesis Analytics applications, see <http://docs.aws.amazon.com/kinesisanalytics/latest/dev/cloudwatch-logs.html Working with Amazon CloudWatch Logs> .
--
--
module Network.AWS.KinesisAnalytics.AddApplicationCloudWatchLoggingOption
(
-- * Creating a Request
addApplicationCloudWatchLoggingOption
, AddApplicationCloudWatchLoggingOption
-- * Request Lenses
, aacwloApplicationName
, aacwloCurrentApplicationVersionId
, aacwloCloudWatchLoggingOption

-- * Destructuring the Response
, addApplicationCloudWatchLoggingOptionResponse
, AddApplicationCloudWatchLoggingOptionResponse
-- * Response Lenses
, aacwlorsResponseStatus
) where

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

-- | /See:/ 'addApplicationCloudWatchLoggingOption' smart constructor.
data AddApplicationCloudWatchLoggingOption = AddApplicationCloudWatchLoggingOption'
{ _aacwloApplicationName :: !Text
, _aacwloCurrentApplicationVersionId :: !Nat
, _aacwloCloudWatchLoggingOption :: !CloudWatchLoggingOption
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'AddApplicationCloudWatchLoggingOption' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'aacwloApplicationName' - The Kinesis Analytics application name.
--
-- * 'aacwloCurrentApplicationVersionId' - The version ID of the Kinesis Analytics application.
--
-- * 'aacwloCloudWatchLoggingOption' - Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM role ARN. Note: To write application messages to CloudWatch, the IAM role that is used must have the @PutLogEvents@ policy action enabled.
addApplicationCloudWatchLoggingOption
:: Text -- ^ 'aacwloApplicationName'
-> Natural -- ^ 'aacwloCurrentApplicationVersionId'
-> CloudWatchLoggingOption -- ^ 'aacwloCloudWatchLoggingOption'
-> AddApplicationCloudWatchLoggingOption
addApplicationCloudWatchLoggingOption pApplicationName_ pCurrentApplicationVersionId_ pCloudWatchLoggingOption_ =
AddApplicationCloudWatchLoggingOption'
{ _aacwloApplicationName = pApplicationName_
, _aacwloCurrentApplicationVersionId = _Nat # pCurrentApplicationVersionId_
, _aacwloCloudWatchLoggingOption = pCloudWatchLoggingOption_
}

-- | The Kinesis Analytics application name.
aacwloApplicationName :: Lens' AddApplicationCloudWatchLoggingOption Text
aacwloApplicationName = lens _aacwloApplicationName (\ s a -> s{_aacwloApplicationName = a});

-- | The version ID of the Kinesis Analytics application.
aacwloCurrentApplicationVersionId :: Lens' AddApplicationCloudWatchLoggingOption Natural
aacwloCurrentApplicationVersionId = lens _aacwloCurrentApplicationVersionId (\ s a -> s{_aacwloCurrentApplicationVersionId = a}) . _Nat;

-- | Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM role ARN. Note: To write application messages to CloudWatch, the IAM role that is used must have the @PutLogEvents@ policy action enabled.
aacwloCloudWatchLoggingOption :: Lens' AddApplicationCloudWatchLoggingOption CloudWatchLoggingOption
aacwloCloudWatchLoggingOption = lens _aacwloCloudWatchLoggingOption (\ s a -> s{_aacwloCloudWatchLoggingOption = a});

instance AWSRequest
AddApplicationCloudWatchLoggingOption where
type Rs AddApplicationCloudWatchLoggingOption =
AddApplicationCloudWatchLoggingOptionResponse
request = postJSON kinesisAnalytics
response
= receiveEmpty
(\ s h x ->
AddApplicationCloudWatchLoggingOptionResponse' <$>
(pure (fromEnum s)))

instance Hashable
AddApplicationCloudWatchLoggingOption

instance NFData AddApplicationCloudWatchLoggingOption

instance ToHeaders
AddApplicationCloudWatchLoggingOption where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("KinesisAnalytics_20150814.AddApplicationCloudWatchLoggingOption"
:: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])

instance ToJSON AddApplicationCloudWatchLoggingOption
where
toJSON AddApplicationCloudWatchLoggingOption'{..}
= object
(catMaybes
[Just ("ApplicationName" .= _aacwloApplicationName),
Just
("CurrentApplicationVersionId" .=
_aacwloCurrentApplicationVersionId),
Just
("CloudWatchLoggingOption" .=
_aacwloCloudWatchLoggingOption)])

instance ToPath AddApplicationCloudWatchLoggingOption
where
toPath = const "/"

instance ToQuery
AddApplicationCloudWatchLoggingOption where
toQuery = const mempty

-- | /See:/ 'addApplicationCloudWatchLoggingOptionResponse' smart constructor.
newtype AddApplicationCloudWatchLoggingOptionResponse = AddApplicationCloudWatchLoggingOptionResponse'
{ _aacwlorsResponseStatus :: Int
} deriving (Eq,Read,Show,Data,Typeable,Generic)

-- | Creates a value of 'AddApplicationCloudWatchLoggingOptionResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'aacwlorsResponseStatus' - -- | The response status code.
addApplicationCloudWatchLoggingOptionResponse
:: Int -- ^ 'aacwlorsResponseStatus'
-> AddApplicationCloudWatchLoggingOptionResponse
addApplicationCloudWatchLoggingOptionResponse pResponseStatus_ =
AddApplicationCloudWatchLoggingOptionResponse'
{ _aacwlorsResponseStatus = pResponseStatus_
}

-- | -- | The response status code.
aacwlorsResponseStatus :: Lens' AddApplicationCloudWatchLoggingOptionResponse Int
aacwlorsResponseStatus = lens _aacwlorsResponseStatus (\ s a -> s{_aacwlorsResponseStatus = a});

instance NFData
AddApplicationCloudWatchLoggingOptionResponse
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ data AddApplicationInput = AddApplicationInput'
--
-- * 'aaiCurrentApplicationVersionId' - Current version of your Amazon Kinesis Analytics application. You can use the 'DescribeApplication' operation to find the current application version.
--
-- * 'aaiInput' - Undocumented member.
-- * 'aaiInput' -
addApplicationInput
:: Text -- ^ 'aaiApplicationName'
-> Natural -- ^ 'aaiCurrentApplicationVersionId'
Expand All @@ -91,7 +91,7 @@ aaiApplicationName = lens _aaiApplicationName (\ s a -> s{_aaiApplicationName =
aaiCurrentApplicationVersionId :: Lens' AddApplicationInput Natural
aaiCurrentApplicationVersionId = lens _aaiCurrentApplicationVersionId (\ s a -> s{_aaiCurrentApplicationVersionId = a}) . _Nat;

-- | Undocumented member.
-- |
aaiInput :: Lens' AddApplicationInput Input
aaiInput = lens _aaiInput (\ s a -> s{_aaiInput = a});

Expand Down
Loading

0 comments on commit a4f9c5c

Please sign in to comment.