packages feed

amazonka-cloudwatch-events 1.4.2 → 1.4.3

raw patch · 18 files changed

+146/−279 lines, 18 filesdep ~amazonka-cloudwatch-eventsdep ~amazonka-coredep ~amazonka-testPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: amazonka-cloudwatch-events, amazonka-core, amazonka-test

API changes (from Hackage documentation)

- Network.AWS.CloudWatchEvents.DeleteRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.DeleteRule.DeleteRule
- Network.AWS.CloudWatchEvents.DescribeRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.DescribeRule.DescribeRule
- Network.AWS.CloudWatchEvents.DisableRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.DisableRule.DisableRule
- Network.AWS.CloudWatchEvents.EnableRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.EnableRule.EnableRule
- Network.AWS.CloudWatchEvents.ListRuleNamesByTarget: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.ListRuleNamesByTarget.ListRuleNamesByTarget
- Network.AWS.CloudWatchEvents.ListRules: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.ListRules.ListRules
- Network.AWS.CloudWatchEvents.ListTargetsByRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.ListTargetsByRule.ListTargetsByRule
- Network.AWS.CloudWatchEvents.PutEvents: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.PutEvents.PutEvents
- Network.AWS.CloudWatchEvents.PutRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.PutRule.PutRule
- Network.AWS.CloudWatchEvents.PutTargets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.PutTargets.PutTargets
- Network.AWS.CloudWatchEvents.RemoveTargets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.RemoveTargets.RemoveTargets
- Network.AWS.CloudWatchEvents.TestEventPattern: instance Data.Aeson.Types.Class.ToJSON Network.AWS.CloudWatchEvents.TestEventPattern.TestEventPattern
+ Network.AWS.CloudWatchEvents.DeleteRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.DeleteRule.DeleteRule
+ Network.AWS.CloudWatchEvents.DescribeRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.DescribeRule.DescribeRule
+ Network.AWS.CloudWatchEvents.DisableRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.DisableRule.DisableRule
+ Network.AWS.CloudWatchEvents.EnableRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.EnableRule.EnableRule
+ Network.AWS.CloudWatchEvents.ListRuleNamesByTarget: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.ListRuleNamesByTarget.ListRuleNamesByTarget
+ Network.AWS.CloudWatchEvents.ListRules: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.ListRules.ListRules
+ Network.AWS.CloudWatchEvents.ListTargetsByRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.ListTargetsByRule.ListTargetsByRule
+ Network.AWS.CloudWatchEvents.PutEvents: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.PutEvents.PutEvents
+ Network.AWS.CloudWatchEvents.PutRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.PutRule.PutRule
+ Network.AWS.CloudWatchEvents.PutTargets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.PutTargets.PutTargets
+ Network.AWS.CloudWatchEvents.RemoveTargets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.RemoveTargets.RemoveTargets
+ Network.AWS.CloudWatchEvents.TestEventPattern: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.CloudWatchEvents.TestEventPattern.TestEventPattern

Files

README.md view
@@ -8,29 +8,18 @@  ## Version -`1.4.2`+`1.4.3`   ## Description -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.+-   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 Amazon CloudWatch Events features, see the-<http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide>.+For more information about Amazon CloudWatch Events features, see the <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide>.  Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-cloudwatch-events) and the [AWS API Reference](https://aws.amazon.com/documentation/).
amazonka-cloudwatch-events.cabal view
@@ -1,5 +1,5 @@ name:                  amazonka-cloudwatch-events-version:               1.4.2+version:               1.4.3 synopsis:              Amazon CloudWatch Events SDK. homepage:              https://github.com/brendanhay/amazonka bug-reports:           https://github.com/brendanhay/amazonka/issues@@ -13,24 +13,13 @@ cabal-version:         >= 1.10 extra-source-files:    README.md fixture/*.yaml fixture/*.proto description:-    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.+    -   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 Amazon CloudWatch Events features, see the-    <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide>.+    For more information about Amazon CloudWatch Events features, see the <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide>.     .     The types from this library are intended to be used with     <http://hackage.haskell.org/package/amazonka amazonka>, which provides@@ -78,7 +67,7 @@         , Network.AWS.CloudWatchEvents.Types.Sum      build-depends:-          amazonka-core == 1.4.2.*+          amazonka-core == 1.4.3.*         , base          >= 4.7     && < 5  test-suite amazonka-cloudwatch-events-test@@ -98,9 +87,9 @@         , Test.AWS.CloudWatchEvents.Internal      build-depends:-          amazonka-core == 1.4.2.*-        , amazonka-test == 1.4.2.*-        , amazonka-cloudwatch-events == 1.4.2.*+          amazonka-core == 1.4.3.*+        , amazonka-test == 1.4.3.*+        , amazonka-cloudwatch-events == 1.4.3.*         , base         , bytestring         , tasty
gen/Network/AWS/CloudWatchEvents.hs view
@@ -11,24 +11,13 @@ -- 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.+-- -   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 Amazon CloudWatch Events features, see the--- <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide>.+-- For more information about Amazon CloudWatch Events features, see the <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide Amazon CloudWatch Developer Guide>. module Network.AWS.CloudWatchEvents     (     -- * Service Configuration
gen/Network/AWS/CloudWatchEvents/DeleteRule.hs view
@@ -18,12 +18,9 @@ -- 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 a rule. You must remove all targets from a rule using < RemoveTargets> before you can delete the 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.+-- __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. module Network.AWS.CloudWatchEvents.DeleteRule     (     -- * Creating a Request
gen/Network/AWS/CloudWatchEvents/DescribeRule.hs view
@@ -170,8 +170,7 @@ drrsARN :: Lens' DescribeRuleResponse (Maybe Text) drrsARN = lens _drrsARN (\ s a -> s{_drrsARN = a}); --- | The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5--- minutes)\".+-- | The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\". drrsScheduleExpression :: Lens' DescribeRuleResponse (Maybe Text) drrsScheduleExpression = lens _drrsScheduleExpression (\ s a -> s{_drrsScheduleExpression = a}); 
gen/Network/AWS/CloudWatchEvents/DisableRule.hs view
@@ -18,12 +18,9 @@ -- 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 a 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.+-- __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. module Network.AWS.CloudWatchEvents.DisableRule     (     -- * Creating a Request
gen/Network/AWS/CloudWatchEvents/EnableRule.hs view
@@ -20,9 +20,7 @@ -- -- Enables a 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.+-- __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. module Network.AWS.CloudWatchEvents.EnableRule     (     -- * Creating a Request
gen/Network/AWS/CloudWatchEvents/ListRuleNamesByTarget.hs view
@@ -18,12 +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 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. module Network.AWS.CloudWatchEvents.ListRuleNamesByTarget     (     -- * Creating a Request@@ -78,8 +73,7 @@     , _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 indicate that there is more data available. lrnbtNextToken :: Lens' ListRuleNamesByTarget (Maybe Text) lrnbtNextToken = lens _lrnbtNextToken (\ s a -> s{_lrnbtNextToken = a}); @@ -87,8 +81,7 @@ 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 that you want to list the rules for. lrnbtTargetARN :: Lens' ListRuleNamesByTarget Text lrnbtTargetARN = lens _lrnbtTargetARN (\ s a -> s{_lrnbtTargetARN = a}); 
gen/Network/AWS/CloudWatchEvents/ListRules.hs view
@@ -18,12 +18,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Lists the Amazon CloudWatch Events rules in your account. You can either--- list all the rules or you can provide a prefix to match to the rule--- names. 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 ListRules until the NextToken in the response is--- returned as null.+-- Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. 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 ListRules until the NextToken in the response is returned as null. module Network.AWS.CloudWatchEvents.ListRules     (     -- * Creating a Request@@ -77,8 +72,7 @@     , _lrLimit = Nothing     } --- | The token returned by a previous call to indicate that there is more--- data available.+-- | The token returned by a previous call to indicate that there is more data available. lrNextToken :: Lens' ListRules (Maybe Text) lrNextToken = lens _lrNextToken (\ s a -> s{_lrNextToken = a}); 
gen/Network/AWS/CloudWatchEvents/ListTargetsByRule.hs view
@@ -73,8 +73,7 @@     , _ltbrRule = pRule_     } --- | The token returned by a previous call to indicate that there is more--- data available.+-- | The token returned by a previous call to indicate that there is more data available. ltbrNextToken :: Lens' ListTargetsByRule (Maybe Text) ltbrNextToken = lens _ltbrNextToken (\ s a -> s{_ltbrNextToken = a}); 
gen/Network/AWS/CloudWatchEvents/PutEvents.hs view
@@ -18,8 +18,7 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Sends custom events to Amazon CloudWatch Events so that they can be--- matched to rules.+-- Sends custom events to Amazon CloudWatch Events so that they can be matched to rules. module Network.AWS.CloudWatchEvents.PutEvents     (     -- * Creating a Request@@ -64,9 +63,7 @@     { _peEntries = _List1 # pEntries_     } --- | The entry that defines an event in your system. You can specify several--- parameters for the entry such as the source and type of the event,--- resources associated with the event, and so on.+-- | The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on. peEntries :: Lens' PutEvents (NonEmpty PutEventsRequestEntry) peEntries = lens _peEntries (\ s a -> s{_peEntries = a}) . _List1; @@ -136,10 +133,7 @@ persFailedEntryCount :: Lens' PutEventsResponse (Maybe Int) persFailedEntryCount = lens _persFailedEntryCount (\ s a -> s{_persFailedEntryCount = a}); --- | A list of successfully and unsuccessfully ingested events results. If--- the ingestion was successful, the entry will have the event ID in it. If--- not, then the ErrorCode and ErrorMessage can be used to identify the--- problem with the entry.+-- | A list of successfully and unsuccessfully ingested events results. If the ingestion was successful, the entry will have the event ID in it. If not, then the ErrorCode and ErrorMessage can be used to identify the problem with the entry. persEntries :: Lens' PutEventsResponse [PutEventsResultEntry] persEntries = lens _persEntries (\ s a -> s{_persEntries = a}) . _Default . _Coerce; 
gen/Network/AWS/CloudWatchEvents/PutRule.hs view
@@ -18,26 +18,13 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates or updates a rule. Rules are enabled by default, or based on--- value of the State parameter. You can disable a rule using--- < DisableRule>.+-- Creates or updates a rule. Rules are enabled by default, or based on value of the State parameter. You can disable a rule using < DisableRule>. ----- __Note:__ When you create or update a rule, incoming events might not--- immediately start matching to new or updated rules. Please allow a short--- period of time for changes to take effect.+-- __Note:__ When you create or update a rule, incoming events might not immediately start matching to new or updated rules. Please allow a short period of time for changes to take effect. ----- A rule must contain at least an EventPattern or ScheduleExpression.--- Rules with EventPatterns are triggered when a matching event is--- observed. Rules with ScheduleExpressions self-trigger based on the given--- schedule. A rule can have both an EventPattern and a ScheduleExpression,--- in which case the rule will trigger on matching events as well as on a--- schedule.+-- A rule must contain at least an EventPattern or ScheduleExpression. Rules with EventPatterns are triggered when a matching event is observed. Rules with ScheduleExpressions self-trigger based on the given schedule. A rule can have both an EventPattern and a ScheduleExpression, in which case the rule will trigger on matching events as well as on a schedule. ----- __Note:__ Most services in AWS treat : or \/ as the same character in--- Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact--- match in event patterns and rules. Be sure to use the correct ARN--- characters when creating event patterns so that they match the ARN--- syntax in the event you want to match.+-- __Note:__ Most services in AWS treat : or \/ as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match. module Network.AWS.CloudWatchEvents.PutRule     (     -- * Creating a Request@@ -114,8 +101,7 @@ prState :: Lens' PutRule (Maybe RuleState) prState = lens _prState (\ s a -> s{_prState = a}); --- | The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5--- minutes)\".+-- | The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\". prScheduleExpression :: Lens' PutRule (Maybe Text) prScheduleExpression = lens _prScheduleExpression (\ s a -> s{_prScheduleExpression = a}); 
gen/Network/AWS/CloudWatchEvents/PutTargets.hs view
@@ -18,37 +18,17 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Adds target(s) to a rule. Targets are the resources that can be invoked--- when a rule is triggered. For example, AWS Lambda functions, Amazon--- Kinesis streams, and built-in targets. Updates the target(s) if they are--- already associated with the role. In other words, if there is already a--- target with the given target ID, then the target associated with that ID--- is updated.+-- Adds target(s) to a rule. Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. Updates the target(s) if they are already associated with the role. In other words, if there is already a target with the given target ID, then the target associated with that ID is updated. ----- In order to be able to make API calls against the resources you own,--- Amazon CloudWatch Events needs the appropriate permissions. For AWS--- Lambda and Amazon SNS resources, CloudWatch Events relies on--- resource-based policies. For Amazon Kinesis streams, CloudWatch Events--- relies on IAM roles. For more information, see--- <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/EventsTargetPermissions.html Permissions for Sending Events to Targets>--- in the __/Amazon CloudWatch Developer Guide/__.+-- In order to be able to make API calls against the resources you own, Amazon CloudWatch Events needs the appropriate permissions. For AWS Lambda and Amazon SNS resources, CloudWatch Events relies on resource-based policies. For Amazon Kinesis streams, CloudWatch Events relies on IAM roles. For more information, see <http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/EventsTargetPermissions.html Permissions for Sending Events to Targets> in the __/Amazon CloudWatch Developer Guide/__. ----- __Input__ and __InputPath__ are mutually-exclusive and optional--- parameters of a target. When a rule is triggered due to a matched event,--- if for a target:+-- __Input__ and __InputPath__ are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target: ----- -   Neither __Input__ nor __InputPath__ is specified, then the entire---     event is passed to the target in JSON form.--- -   __InputPath__ is specified in the form of JSONPath (e.g.---     __$.detail__), then only the part of the event specified in the path---     is passed to the target (e.g. only the detail part of the event is---     passed).--- -   __Input__ is specified in the form of a valid JSON, then the matched---     event is overridden with this constant.+-- -   Neither __Input__ nor __InputPath__ is specified, then the entire event is passed to the target in JSON form.+-- -   __InputPath__ is specified in the form of JSONPath (e.g. __>.detail__), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed).+-- -   __Input__ is specified in the form of a valid JSON, then the matched event is overridden with this constant. ----- __Note:__ When you add targets to a rule, when the associated rule--- triggers, new or updated targets might not be immediately invoked.--- Please allow a short period of time for changes to take effect.+-- __Note:__ When you add targets to a rule, when the associated rule triggers, new or updated targets might not be immediately invoked. Please allow a short period of time for changes to take effect. module Network.AWS.CloudWatchEvents.PutTargets     (     -- * Creating a Request
gen/Network/AWS/CloudWatchEvents/RemoveTargets.hs view
@@ -18,12 +18,9 @@ -- Stability   : auto-generated -- Portability : non-portable (GHC extensions) ----- Removes target(s) from a rule so that when the rule is triggered, those--- targets will no longer be invoked.+-- Removes target(s) from a rule so that when the rule is triggered, those targets will no longer be invoked. ----- __Note:__ When you remove a target, when the associated rule triggers,--- removed targets might still continue to be invoked. Please allow a short--- period of time for changes to take effect.+-- __Note:__ When you remove a target, when the associated rule triggers, removed targets might still continue to be invoked. Please allow a short period of time for changes to take effect. module Network.AWS.CloudWatchEvents.RemoveTargets     (     -- * Creating a Request
gen/Network/AWS/CloudWatchEvents/TestEventPattern.hs view
@@ -20,11 +20,7 @@ -- -- Tests whether an event pattern matches the provided event. ----- __Note:__ Most services in AWS treat : or \/ as the same character in--- Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact--- match in event patterns and rules. Be sure to use the correct ARN--- characters when creating event patterns so that they match the ARN--- syntax in the event you want to match.+-- __Note:__ Most services in AWS treat : or \/ as the same character in Amazon Resource Names (ARNs). However, CloudWatch Events uses an exact match in event patterns and rules. Be sure to use the correct ARN characters when creating event patterns so that they match the ARN syntax in the event you want to match. module Network.AWS.CloudWatchEvents.TestEventPattern     (     -- * Creating a Request
gen/Network/AWS/CloudWatchEvents/Types.hs view
@@ -115,8 +115,7 @@       | has (hasStatus 509) e = Just "limit_exceeded"       | otherwise = Nothing --- | This exception occurs if there is concurrent modification on rule or--- target.+-- | This exception occurs if there is concurrent modification on rule or target. _ConcurrentModificationException :: AsError a => Getting (First ServiceError) a ServiceError _ConcurrentModificationException =     _ServiceError . hasCode "ConcurrentModificationException"@@ -135,7 +134,6 @@ _ResourceNotFoundException =     _ServiceError . hasCode "ResourceNotFoundException" --- | This exception occurs if you try to create more rules or add more--- targets to a rule than allowed by default.+-- | This exception occurs if you try to create more rules or add more targets to a rule than allowed by default. _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError _LimitExceededException = _ServiceError . hasCode "LimitExceededException"
gen/Network/AWS/CloudWatchEvents/Types/Product.hs view
@@ -56,19 +56,15 @@     , _pereDetail = Nothing     } --- | Timestamp of event, per--- <https://www.rfc-editor.org/rfc/rfc3339.txt RFC3339>. If no timestamp is--- provided, the timestamp of the < PutEvents> call will be used.+-- | Timestamp of event, per <https://www.rfc-editor.org/rfc/rfc3339.txt RFC3339>. If no timestamp is provided, the timestamp of the < PutEvents> call will be used. pereTime :: Lens' PutEventsRequestEntry (Maybe UTCTime) pereTime = lens _pereTime (\ s a -> s{_pereTime = a}) . mapping _Time; --- | Free-form string used to decide what fields to expect in the event--- detail.+-- | Free-form string used to decide what fields to expect in the event detail. pereDetailType :: Lens' PutEventsRequestEntry (Maybe Text) pereDetailType = lens _pereDetailType (\ s a -> s{_pereDetailType = a}); --- | AWS resources, identified by Amazon Resource Name (ARN), which the event--- primarily concerns. Any number, including zero, may be present.+-- | AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns. Any number, including zero, may be present. pereResources :: Lens' PutEventsRequestEntry [Text] pereResources = lens _pereResources (\ s a -> s{_pereResources = a}) . _Default . _Coerce; @@ -76,8 +72,7 @@ pereSource :: Lens' PutEventsRequestEntry (Maybe Text) pereSource = lens _pereSource (\ s a -> s{_pereSource = a}); --- | In the JSON sense, an object containing fields, which may also contain--- nested sub-objects. No constraints are imposed on its contents.+-- | In the JSON sense, an object containing fields, which may also contain nested sub-objects. No constraints are imposed on its contents. pereDetail :: Lens' PutEventsRequestEntry (Maybe Text) pereDetail = lens _pereDetail (\ s a -> s{_pereDetail = a}); @@ -122,13 +117,11 @@     , _pereEventId = Nothing     } --- | The error code representing why the event submission failed on this--- entry.+-- | The error code representing why the event submission failed on this entry. pereErrorCode :: Lens' PutEventsResultEntry (Maybe Text) pereErrorCode = lens _pereErrorCode (\ s a -> s{_pereErrorCode = a}); --- | The error message explaining why the event submission failed on this--- entry.+-- | The error message explaining why the event submission failed on this entry. pereErrorMessage :: Lens' PutEventsResultEntry (Maybe Text) pereErrorMessage = lens _pereErrorMessage (\ s a -> s{_pereErrorMessage = a}); @@ -179,13 +172,11 @@ ptreTargetId :: Lens' PutTargetsResultEntry (Maybe Text) ptreTargetId = lens _ptreTargetId (\ s a -> s{_ptreTargetId = a}); --- | The error code representing why the target submission failed on this--- entry.+-- | The error code representing why the target submission failed on this entry. ptreErrorCode :: Lens' PutTargetsResultEntry (Maybe Text) ptreErrorCode = lens _ptreErrorCode (\ s a -> s{_ptreErrorCode = a}); --- | The error message explaining why the target submission failed on this--- entry.+-- | The error message explaining why the target submission failed on this entry. ptreErrorMessage :: Lens' PutTargetsResultEntry (Maybe Text) ptreErrorMessage = lens _ptreErrorMessage (\ s a -> s{_ptreErrorMessage = a}); @@ -201,8 +192,7 @@  instance NFData PutTargetsResultEntry --- | The ID of the target requested to be removed from the rule by Amazon--- CloudWatch Events.+-- | The ID of the target requested to be removed from the rule by Amazon CloudWatch Events. -- -- /See:/ 'removeTargetsResultEntry' smart constructor. data RemoveTargetsResultEntry = RemoveTargetsResultEntry'@@ -229,8 +219,7 @@     , _rtreErrorMessage = Nothing     } --- | The ID of the target requested to be removed by Amazon CloudWatch--- Events.+-- | The ID of the target requested to be removed by Amazon CloudWatch Events. rtreTargetId :: Lens' RemoveTargetsResultEntry (Maybe Text) rtreTargetId = lens _rtreTargetId (\ s a -> s{_rtreTargetId = a}); @@ -238,8 +227,7 @@ rtreErrorCode :: Lens' RemoveTargetsResultEntry (Maybe Text) rtreErrorCode = lens _rtreErrorCode (\ s a -> s{_rtreErrorCode = a}); --- | The error message explaining why the target removal failed on this--- entry.+-- | The error message explaining why the target removal failed on this entry. rtreErrorMessage :: Lens' RemoveTargetsResultEntry (Maybe Text) rtreErrorMessage = lens _rtreErrorMessage (\ s a -> s{_rtreErrorMessage = a}); @@ -255,8 +243,7 @@  instance NFData RemoveTargetsResultEntry --- | Contains information about a rule in Amazon CloudWatch Events. A--- ListRulesResult contains a list of Rules.+-- | Contains information about a rule in Amazon CloudWatch Events. A ListRulesResult contains a list of Rules. -- -- /See:/ 'rule' smart constructor. data Rule = Rule'@@ -311,8 +298,7 @@ rARN :: Lens' Rule (Maybe Text) rARN = lens _rARN (\ s a -> s{_rARN = a}); --- | The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5--- minutes)\".+-- | The scheduling expression. For example, \"cron(0 20 * * ? *)\", \"rate(5 minutes)\". rScheduleExpression :: Lens' Rule (Maybe Text) rScheduleExpression = lens _rScheduleExpression (\ s a -> s{_rScheduleExpression = a}); @@ -324,8 +310,7 @@ rDescription :: Lens' Rule (Maybe Text) rDescription = lens _rDescription (\ s a -> s{_rDescription = a}); --- | The Amazon Resource Name (ARN) associated with the role that is used for--- target invocation.+-- | The Amazon Resource Name (ARN) associated with the role that is used for target invocation. rRoleARN :: Lens' Rule (Maybe Text) rRoleARN = lens _rRoleARN (\ s a -> s{_rRoleARN = a}); @@ -345,22 +330,13 @@  instance NFData Rule --- | Targets are the resources that can be invoked when a rule is triggered.--- For example, AWS Lambda functions, Amazon Kinesis streams, and built-in--- targets.+-- | Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets. ----- __Input__ and __InputPath__ are mutually-exclusive and optional--- parameters of a target. When a rule is triggered due to a matched event,--- if for a target:+-- __Input__ and __InputPath__ are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target: ----- -   Neither __Input__ nor __InputPath__ is specified, then the entire---     event is passed to the target in JSON form.--- -   __InputPath__ is specified in the form of JSONPath (e.g.---     __$.detail__), then only the part of the event specified in the path---     is passed to the target (e.g. only the detail part of the event is---     passed).--- -   __Input__ is specified in the form of a valid JSON, then the matched---     event is overridden with this constant.+-- -   Neither __Input__ nor __InputPath__ is specified, then the entire event is passed to the target in JSON form.+-- -   __InputPath__ is specified in the form of JSONPath (e.g. __>.detail__), then only the part of the event specified in the path is passed to the target (e.g. only the detail part of the event is passed).+-- -   __Input__ is specified in the form of a valid JSON, then the matched event is overridden with this constant. -- -- /See:/ 'target' smart constructor. data Target = Target'@@ -393,15 +369,11 @@     , _tARN = pARN_     } --- | Valid JSON text passed to the target. For more information about JSON--- text, see--- <http://www.rfc-editor.org/rfc/rfc7159.txt The JavaScript Object Notation (JSON) Data Interchange Format>.+-- | Valid JSON text passed to the target. For more information about JSON text, see <http://www.rfc-editor.org/rfc/rfc7159.txt The JavaScript Object Notation (JSON) Data Interchange Format>. tInput :: Lens' Target (Maybe Text) tInput = lens _tInput (\ s a -> s{_tInput = a}); --- | The value of the JSONPath that is used for extracting part of the--- matched event when passing it to the target. For more information about--- JSON paths, see <http://goessner.net/articles/JsonPath/ JSONPath>.+-- | The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see <http://goessner.net/articles/JsonPath/ JSONPath>. tInputPath :: Lens' Target (Maybe Text) tInputPath = lens _tInputPath (\ s a -> s{_tInputPath = a}); 
test/Test/AWS/Gen/CloudWatchEvents.hs view
@@ -28,79 +28,79 @@ -- fixtures :: TestTree -- fixtures = --     [ testGroup "request"---         [ testRemoveTargets $+--         [ requestRemoveTargets $ --             removeTargets -----         , testDeleteRule $+--         , requestDeleteRule $ --             deleteRule -----         , testListRules $+--         , requestListRules $ --             listRules -----         , testPutRule $+--         , requestPutRule $ --             putRule -----         , testDisableRule $+--         , requestDisableRule $ --             disableRule -----         , testListTargetsByRule $+--         , requestListTargetsByRule $ --             listTargetsByRule -----         , testDescribeRule $+--         , requestDescribeRule $ --             describeRule -----         , testEnableRule $+--         , requestEnableRule $ --             enableRule -----         , testListRuleNamesByTarget $+--         , requestListRuleNamesByTarget $ --             listRuleNamesByTarget -----         , testTestEventPattern $+--         , requestTestEventPattern $ --             testEventPattern -----         , testPutTargets $+--         , requestPutTargets $ --             putTargets -----         , testPutEvents $+--         , requestPutEvents $ --             putEvents -- --           ]  --     , testGroup "response"---         [ testRemoveTargetsResponse $+--         [ responseRemoveTargets $ --             removeTargetsResponse -----         , testDeleteRuleResponse $+--         , responseDeleteRule $ --             deleteRuleResponse -----         , testListRulesResponse $+--         , responseListRules $ --             listRulesResponse -----         , testPutRuleResponse $+--         , responsePutRule $ --             putRuleResponse -----         , testDisableRuleResponse $+--         , responseDisableRule $ --             disableRuleResponse -----         , testListTargetsByRuleResponse $+--         , responseListTargetsByRule $ --             listTargetsByRuleResponse -----         , testDescribeRuleResponse $+--         , responseDescribeRule $ --             describeRuleResponse -----         , testEnableRuleResponse $+--         , responseEnableRule $ --             enableRuleResponse -----         , testListRuleNamesByTargetResponse $+--         , responseListRuleNamesByTarget $ --             listRuleNamesByTargetResponse -----         , testTestEventPatternResponse $+--         , responseTestEventPattern $ --             testEventPatternResponse -----         , testPutTargetsResponse $+--         , responsePutTargets $ --             putTargetsResponse -----         , testPutEventsResponse $+--         , responsePutEvents $ --             putEventsResponse -- --           ]@@ -108,147 +108,147 @@  -- Requests -testRemoveTargets :: RemoveTargets -> TestTree-testRemoveTargets = req+requestRemoveTargets :: RemoveTargets -> TestTree+requestRemoveTargets = req     "RemoveTargets"     "fixture/RemoveTargets.yaml" -testDeleteRule :: DeleteRule -> TestTree-testDeleteRule = req+requestDeleteRule :: DeleteRule -> TestTree+requestDeleteRule = req     "DeleteRule"     "fixture/DeleteRule.yaml" -testListRules :: ListRules -> TestTree-testListRules = req+requestListRules :: ListRules -> TestTree+requestListRules = req     "ListRules"     "fixture/ListRules.yaml" -testPutRule :: PutRule -> TestTree-testPutRule = req+requestPutRule :: PutRule -> TestTree+requestPutRule = req     "PutRule"     "fixture/PutRule.yaml" -testDisableRule :: DisableRule -> TestTree-testDisableRule = req+requestDisableRule :: DisableRule -> TestTree+requestDisableRule = req     "DisableRule"     "fixture/DisableRule.yaml" -testListTargetsByRule :: ListTargetsByRule -> TestTree-testListTargetsByRule = req+requestListTargetsByRule :: ListTargetsByRule -> TestTree+requestListTargetsByRule = req     "ListTargetsByRule"     "fixture/ListTargetsByRule.yaml" -testDescribeRule :: DescribeRule -> TestTree-testDescribeRule = req+requestDescribeRule :: DescribeRule -> TestTree+requestDescribeRule = req     "DescribeRule"     "fixture/DescribeRule.yaml" -testEnableRule :: EnableRule -> TestTree-testEnableRule = req+requestEnableRule :: EnableRule -> TestTree+requestEnableRule = req     "EnableRule"     "fixture/EnableRule.yaml" -testListRuleNamesByTarget :: ListRuleNamesByTarget -> TestTree-testListRuleNamesByTarget = req+requestListRuleNamesByTarget :: ListRuleNamesByTarget -> TestTree+requestListRuleNamesByTarget = req     "ListRuleNamesByTarget"     "fixture/ListRuleNamesByTarget.yaml" -testTestEventPattern :: TestEventPattern -> TestTree-testTestEventPattern = req+requestTestEventPattern :: TestEventPattern -> TestTree+requestTestEventPattern = req     "TestEventPattern"     "fixture/TestEventPattern.yaml" -testPutTargets :: PutTargets -> TestTree-testPutTargets = req+requestPutTargets :: PutTargets -> TestTree+requestPutTargets = req     "PutTargets"     "fixture/PutTargets.yaml" -testPutEvents :: PutEvents -> TestTree-testPutEvents = req+requestPutEvents :: PutEvents -> TestTree+requestPutEvents = req     "PutEvents"     "fixture/PutEvents.yaml"  -- Responses -testRemoveTargetsResponse :: RemoveTargetsResponse -> TestTree-testRemoveTargetsResponse = res+responseRemoveTargets :: RemoveTargetsResponse -> TestTree+responseRemoveTargets = res     "RemoveTargetsResponse"     "fixture/RemoveTargetsResponse.proto"     cloudWatchEvents     (Proxy :: Proxy RemoveTargets) -testDeleteRuleResponse :: DeleteRuleResponse -> TestTree-testDeleteRuleResponse = res+responseDeleteRule :: DeleteRuleResponse -> TestTree+responseDeleteRule = res     "DeleteRuleResponse"     "fixture/DeleteRuleResponse.proto"     cloudWatchEvents     (Proxy :: Proxy DeleteRule) -testListRulesResponse :: ListRulesResponse -> TestTree-testListRulesResponse = res+responseListRules :: ListRulesResponse -> TestTree+responseListRules = res     "ListRulesResponse"     "fixture/ListRulesResponse.proto"     cloudWatchEvents     (Proxy :: Proxy ListRules) -testPutRuleResponse :: PutRuleResponse -> TestTree-testPutRuleResponse = res+responsePutRule :: PutRuleResponse -> TestTree+responsePutRule = res     "PutRuleResponse"     "fixture/PutRuleResponse.proto"     cloudWatchEvents     (Proxy :: Proxy PutRule) -testDisableRuleResponse :: DisableRuleResponse -> TestTree-testDisableRuleResponse = res+responseDisableRule :: DisableRuleResponse -> TestTree+responseDisableRule = res     "DisableRuleResponse"     "fixture/DisableRuleResponse.proto"     cloudWatchEvents     (Proxy :: Proxy DisableRule) -testListTargetsByRuleResponse :: ListTargetsByRuleResponse -> TestTree-testListTargetsByRuleResponse = res+responseListTargetsByRule :: ListTargetsByRuleResponse -> TestTree+responseListTargetsByRule = res     "ListTargetsByRuleResponse"     "fixture/ListTargetsByRuleResponse.proto"     cloudWatchEvents     (Proxy :: Proxy ListTargetsByRule) -testDescribeRuleResponse :: DescribeRuleResponse -> TestTree-testDescribeRuleResponse = res+responseDescribeRule :: DescribeRuleResponse -> TestTree+responseDescribeRule = res     "DescribeRuleResponse"     "fixture/DescribeRuleResponse.proto"     cloudWatchEvents     (Proxy :: Proxy DescribeRule) -testEnableRuleResponse :: EnableRuleResponse -> TestTree-testEnableRuleResponse = res+responseEnableRule :: EnableRuleResponse -> TestTree+responseEnableRule = res     "EnableRuleResponse"     "fixture/EnableRuleResponse.proto"     cloudWatchEvents     (Proxy :: Proxy EnableRule) -testListRuleNamesByTargetResponse :: ListRuleNamesByTargetResponse -> TestTree-testListRuleNamesByTargetResponse = res+responseListRuleNamesByTarget :: ListRuleNamesByTargetResponse -> TestTree+responseListRuleNamesByTarget = res     "ListRuleNamesByTargetResponse"     "fixture/ListRuleNamesByTargetResponse.proto"     cloudWatchEvents     (Proxy :: Proxy ListRuleNamesByTarget) -testTestEventPatternResponse :: TestEventPatternResponse -> TestTree-testTestEventPatternResponse = res+responseTestEventPattern :: TestEventPatternResponse -> TestTree+responseTestEventPattern = res     "TestEventPatternResponse"     "fixture/TestEventPatternResponse.proto"     cloudWatchEvents     (Proxy :: Proxy TestEventPattern) -testPutTargetsResponse :: PutTargetsResponse -> TestTree-testPutTargetsResponse = res+responsePutTargets :: PutTargetsResponse -> TestTree+responsePutTargets = res     "PutTargetsResponse"     "fixture/PutTargetsResponse.proto"     cloudWatchEvents     (Proxy :: Proxy PutTargets) -testPutEventsResponse :: PutEventsResponse -> TestTree-testPutEventsResponse = res+responsePutEvents :: PutEventsResponse -> TestTree+responsePutEvents = res     "PutEventsResponse"     "fixture/PutEventsResponse.proto"     cloudWatchEvents