Skip to content

Commit

Permalink
Regenerating amazonka-cloudwatch-events from latest service definition
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanhay committed Mar 17, 2017
1 parent 18bb506 commit c17a9c7
Show file tree
Hide file tree
Showing 15 changed files with 545 additions and 251 deletions.
45 changes: 42 additions & 3 deletions amazonka-cloudwatch-events/gen/Network/AWS/CloudWatchEvents.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule. For example, you can configure rules to:
-- Amazon CloudWatch Events helps you to respond to state changes in your AWS resources. When your resources change state, they automatically send events into an event stream. You can create rules that match selected events in the stream and route them to targets to take action. You can also use rules to take action on a pre-determined schedule. For example, you can configure rules to:
--
--
-- * Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state. * Direct specific API records from CloudTrail to an Amazon Kinesis stream for detailed analysis of potential security or availability risks. * Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
-- * Automatically invoke an AWS Lambda function to update DNS entries when an event notifies you that Amazon EC2 instance enters the running state.
--
-- For more information about Amazon CloudWatch Events features, see the <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide> .
-- * Direct specific API records from CloudTrail to an Amazon Kinesis stream for detailed analysis of potential security or availability risks.
--
-- * Periodically invoke a built-in target to create a snapshot of an Amazon EBS volume.
--
--
--
-- For more information about the features of Amazon CloudWatch Events, see the <http://docs.aws.amazon.com/AmazonCloudWatch/latest/events Amazon CloudWatch Events User Guide> .
--
module Network.AWS.CloudWatchEvents
(
Expand Down Expand Up @@ -88,6 +94,23 @@ module Network.AWS.CloudWatchEvents
-- ** RuleState
, RuleState (..)

-- ** EcsParameters
, EcsParameters
, ecsParameters
, epTaskCount
, epTaskDefinitionARN

-- ** InputTransformer
, InputTransformer
, inputTransformer
, itInputPathsMap
, itInputTemplate

-- ** KinesisParameters
, KinesisParameters
, kinesisParameters
, kpPartitionKeyPath

-- ** PutEventsRequestEntry
, PutEventsRequestEntry
, putEventsRequestEntry
Expand Down Expand Up @@ -129,11 +152,27 @@ module Network.AWS.CloudWatchEvents
, rDescription
, rRoleARN

-- ** RunCommandParameters
, RunCommandParameters
, runCommandParameters
, rcpRunCommandTargets

-- ** RunCommandTarget
, RunCommandTarget
, runCommandTarget
, rctKey
, rctValues

-- ** Target
, Target
, target
, tRunCommandParameters
, tKinesisParameters
, tInputTransformer
, tInput
, tEcsParameters
, tInputPath
, tRoleARN
, tId
, tARN
) where
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Deletes a rule. You must remove all targets from a rule using 'RemoveTargets' before you can delete the rule.
-- Deletes the specified rule.
--
--
-- __Note:__ When you delete a rule, incoming events might still continue to match to the deleted rule. Please allow a short period of time for changes to take effect.
-- You must remove all targets from a rule using 'RemoveTargets' before you can delete the rule.
--
-- When you delete a rule, incoming events might continue to match to the deleted rule. Please allow a short period of time for changes to take effect.
--
module Network.AWS.CloudWatchEvents.DeleteRule
(
Expand All @@ -43,11 +45,7 @@ import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Container for the parameters to the 'DeleteRule' operation.
--
--
--
-- /See:/ 'deleteRule' smart constructor.
-- | /See:/ 'deleteRule' smart constructor.
newtype DeleteRule = DeleteRule'
{ _drName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
Expand All @@ -56,7 +54,7 @@ newtype DeleteRule = DeleteRule'
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'drName' - The name of the rule to be deleted.
-- * 'drName' - The name of the rule.
deleteRule
:: Text -- ^ 'drName'
-> DeleteRule
Expand All @@ -65,7 +63,7 @@ deleteRule pName_ =
{ _drName = pName_
}

-- | The name of the rule to be deleted.
-- | The name of the rule.
drName :: Lens' DeleteRule Text
drName = lens _drName (\ s a -> s{_drName = a});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes the details of the specified rule.
-- Describes the specified rule.
--
--
module Network.AWS.CloudWatchEvents.DescribeRule
Expand Down Expand Up @@ -50,11 +50,7 @@ import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Container for the parameters to the 'DescribeRule' operation.
--
--
--
-- /See:/ 'describeRule' smart constructor.
-- | /See:/ 'describeRule' smart constructor.
newtype DescribeRule = DescribeRule'
{ _desName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
Expand All @@ -63,7 +59,7 @@ newtype DescribeRule = DescribeRule'
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'desName' - The name of the rule you want to describe details for.
-- * 'desName' - The name of the rule.
describeRule
:: Text -- ^ 'desName'
-> DescribeRule
Expand All @@ -72,7 +68,7 @@ describeRule pName_ =
{ _desName = pName_
}

-- | The name of the rule you want to describe details for.
-- | The name of the rule.
desName :: Lens' DescribeRule Text
desName = lens _desName (\ s a -> s{_desName = a});

Expand Down Expand Up @@ -114,11 +110,7 @@ instance ToPath DescribeRule where
instance ToQuery DescribeRule where
toQuery = const mempty

-- | The result of the 'DescribeRule' operation.
--
--
--
-- /See:/ 'describeRuleResponse' smart constructor.
-- | /See:/ 'describeRuleResponse' smart constructor.
data DescribeRuleResponse = DescribeRuleResponse'
{ _drrsEventPattern :: !(Maybe Text)
, _drrsState :: !(Maybe RuleState)
Expand All @@ -138,13 +130,13 @@ data DescribeRuleResponse = DescribeRuleResponse'
--
-- * 'drrsState' - Specifies whether the rule is enabled or disabled.
--
-- * 'drrsARN' - The Amazon Resource Name (ARN) associated with the rule.
-- * 'drrsARN' - The Amazon Resource Name (ARN) of the rule.
--
-- * 'drrsScheduleExpression' - The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
--
-- * 'drrsName' - The rule's name.
-- * 'drrsName' - The name of the rule.
--
-- * 'drrsDescription' - The rule's description.
-- * 'drrsDescription' - The description of the rule.
--
-- * 'drrsRoleARN' - The Amazon Resource Name (ARN) of the IAM role associated with the rule.
--
Expand Down Expand Up @@ -172,19 +164,19 @@ drrsEventPattern = lens _drrsEventPattern (\ s a -> s{_drrsEventPattern = a});
drrsState :: Lens' DescribeRuleResponse (Maybe RuleState)
drrsState = lens _drrsState (\ s a -> s{_drrsState = a});

-- | The Amazon Resource Name (ARN) associated with the rule.
-- | The Amazon Resource Name (ARN) of the rule.
drrsARN :: Lens' DescribeRuleResponse (Maybe Text)
drrsARN = lens _drrsARN (\ s a -> s{_drrsARN = a});

-- | The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
drrsScheduleExpression :: Lens' DescribeRuleResponse (Maybe Text)
drrsScheduleExpression = lens _drrsScheduleExpression (\ s a -> s{_drrsScheduleExpression = a});

-- | The rule's name.
-- | The name of the rule.
drrsName :: Lens' DescribeRuleResponse (Maybe Text)
drrsName = lens _drrsName (\ s a -> s{_drrsName = a});

-- | The rule's description.
-- | The description of the rule.
drrsDescription :: Lens' DescribeRuleResponse (Maybe Text)
drrsDescription = lens _drrsDescription (\ s a -> s{_drrsDescription = a});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Disables a rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.
-- Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.
--
--
-- __Note:__ When you disable a rule, incoming events might still continue to match to the disabled rule. Please allow a short period of time for changes to take effect.
-- When you disable a rule, incoming events might continue to match to the disabled rule. Please allow a short period of time for changes to take effect.
--
module Network.AWS.CloudWatchEvents.DisableRule
(
Expand All @@ -43,11 +43,7 @@ import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Container for the parameters to the 'DisableRule' operation.
--
--
--
-- /See:/ 'disableRule' smart constructor.
-- | /See:/ 'disableRule' smart constructor.
newtype DisableRule = DisableRule'
{ _dName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
Expand All @@ -56,7 +52,7 @@ newtype DisableRule = DisableRule'
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'dName' - The name of the rule you want to disable.
-- * 'dName' - The name of the rule.
disableRule
:: Text -- ^ 'dName'
-> DisableRule
Expand All @@ -65,7 +61,7 @@ disableRule pName_ =
{ _dName = pName_
}

-- | The name of the rule you want to disable.
-- | The name of the rule.
dName :: Lens' DisableRule Text
dName = lens _dName (\ s a -> s{_dName = a});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Enables a rule. If the rule does not exist, the operation fails.
-- Enables the specified rule. If the rule does not exist, the operation fails.
--
--
-- __Note:__ When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect.
-- When you enable a rule, incoming events might not immediately start matching to a newly enabled rule. Please allow a short period of time for changes to take effect.
--
module Network.AWS.CloudWatchEvents.EnableRule
(
Expand All @@ -43,11 +43,7 @@ import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Container for the parameters to the 'EnableRule' operation.
--
--
--
-- /See:/ 'enableRule' smart constructor.
-- | /See:/ 'enableRule' smart constructor.
newtype EnableRule = EnableRule'
{ _erName :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
Expand All @@ -56,7 +52,7 @@ newtype EnableRule = EnableRule'
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'erName' - The name of the rule that you want to enable.
-- * 'erName' - The name of the rule.
enableRule
:: Text -- ^ 'erName'
-> EnableRule
Expand All @@ -65,7 +61,7 @@ enableRule pName_ =
{ _erName = pName_
}

-- | The name of the rule that you want to enable.
-- | The name of the rule.
erName :: Lens' EnableRule Text
erName = lens _erName (\ s a -> s{_erName = a});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the names of the rules that the given target is put to. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRulesByTarget until the NextToken in the response is returned as null.
-- Lists the rules for the specified target. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account.
--
--
module Network.AWS.CloudWatchEvents.ListRuleNamesByTarget
Expand Down Expand Up @@ -47,11 +47,7 @@ import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response

-- | Container for the parameters to the 'ListRuleNamesByTarget' operation.
--
--
--
-- /See:/ 'listRuleNamesByTarget' smart constructor.
-- | /See:/ 'listRuleNamesByTarget' smart constructor.
data ListRuleNamesByTarget = ListRuleNamesByTarget'
{ _lrnbtNextToken :: !(Maybe Text)
, _lrnbtLimit :: !(Maybe Nat)
Expand All @@ -62,11 +58,11 @@ data ListRuleNamesByTarget = ListRuleNamesByTarget'
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'lrnbtNextToken' - The token returned by a previous call to indicate that there is more data available.
-- * 'lrnbtNextToken' - The token returned by a previous call to retrieve the next set of results.
--
-- * 'lrnbtLimit' - The maximum number of results to return.
--
-- * 'lrnbtTargetARN' - The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.
-- * 'lrnbtTargetARN' - The Amazon Resource Name (ARN) of the target resource.
listRuleNamesByTarget
:: Text -- ^ 'lrnbtTargetARN'
-> ListRuleNamesByTarget
Expand All @@ -77,15 +73,15 @@ listRuleNamesByTarget pTargetARN_ =
, _lrnbtTargetARN = pTargetARN_
}

-- | The token returned by a previous call to indicate that there is more data available.
-- | The token returned by a previous call to retrieve the next set of results.
lrnbtNextToken :: Lens' ListRuleNamesByTarget (Maybe Text)
lrnbtNextToken = lens _lrnbtNextToken (\ s a -> s{_lrnbtNextToken = a});

-- | The maximum number of results to return.
lrnbtLimit :: Lens' ListRuleNamesByTarget (Maybe Natural)
lrnbtLimit = lens _lrnbtLimit (\ s a -> s{_lrnbtLimit = a}) . mapping _Nat;

-- | The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.
-- | The Amazon Resource Name (ARN) of the target resource.
lrnbtTargetARN :: Lens' ListRuleNamesByTarget Text
lrnbtTargetARN = lens _lrnbtTargetARN (\ s a -> s{_lrnbtTargetARN = a});

Expand Down Expand Up @@ -128,11 +124,7 @@ instance ToPath ListRuleNamesByTarget where
instance ToQuery ListRuleNamesByTarget where
toQuery = const mempty

-- | The result of the 'ListRuleNamesByTarget' operation.
--
--
--
-- /See:/ 'listRuleNamesByTargetResponse' smart constructor.
-- | /See:/ 'listRuleNamesByTargetResponse' smart constructor.
data ListRuleNamesByTargetResponse = ListRuleNamesByTargetResponse'
{ _lrnbtrsRuleNames :: !(Maybe [Text])
, _lrnbtrsNextToken :: !(Maybe Text)
Expand All @@ -143,9 +135,9 @@ data ListRuleNamesByTargetResponse = ListRuleNamesByTargetResponse'
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'lrnbtrsRuleNames' - List of rules names that can invoke the given target.
-- * 'lrnbtrsRuleNames' - The names of the rules that can invoke the given target.
--
-- * 'lrnbtrsNextToken' - Indicates that there are additional results to retrieve.
-- * 'lrnbtrsNextToken' - Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
--
-- * 'lrnbtrsResponseStatus' - -- | The response status code.
listRuleNamesByTargetResponse
Expand All @@ -158,11 +150,11 @@ listRuleNamesByTargetResponse pResponseStatus_ =
, _lrnbtrsResponseStatus = pResponseStatus_
}

-- | List of rules names that can invoke the given target.
-- | The names of the rules that can invoke the given target.
lrnbtrsRuleNames :: Lens' ListRuleNamesByTargetResponse [Text]
lrnbtrsRuleNames = lens _lrnbtrsRuleNames (\ s a -> s{_lrnbtrsRuleNames = a}) . _Default . _Coerce;

-- | Indicates that there are additional results to retrieve.
-- | Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
lrnbtrsNextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text)
lrnbtrsNextToken = lens _lrnbtrsNextToken (\ s a -> s{_lrnbtrsNextToken = a});

Expand Down
Loading

0 comments on commit c17a9c7

Please sign in to comment.