| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CloudWatchEvents.DescribeRule
Description
Describes the specified rule.
- describeRule :: Text -> DescribeRule
- data DescribeRule
- desName :: Lens' DescribeRule Text
- describeRuleResponse :: Int -> DescribeRuleResponse
- data DescribeRuleResponse
- drrsEventPattern :: Lens' DescribeRuleResponse (Maybe Text)
- drrsState :: Lens' DescribeRuleResponse (Maybe RuleState)
- drrsARN :: Lens' DescribeRuleResponse (Maybe Text)
- drrsScheduleExpression :: Lens' DescribeRuleResponse (Maybe Text)
- drrsName :: Lens' DescribeRuleResponse (Maybe Text)
- drrsDescription :: Lens' DescribeRuleResponse (Maybe Text)
- drrsRoleARN :: Lens' DescribeRuleResponse (Maybe Text)
- drrsResponseStatus :: Lens' DescribeRuleResponse Int
Creating a Request
Arguments
| :: Text | |
| -> DescribeRule |
Creates a value of DescribeRule with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
desName- The name of the rule.
data DescribeRule Source #
See: describeRule smart constructor.
Instances
Request Lenses
Destructuring the Response
Arguments
| :: Int | |
| -> DescribeRuleResponse |
Creates a value of DescribeRuleResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
drrsEventPattern- The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .drrsState- Specifies whether the rule is enabled or disabled.drrsARN- The Amazon Resource Name (ARN) of the rule.drrsScheduleExpression- The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".drrsName- The name of the rule.drrsDescription- The description of the rule.drrsRoleARN- The Amazon Resource Name (ARN) of the IAM role associated with the rule.drrsResponseStatus- -- | The response status code.
data DescribeRuleResponse Source #
See: describeRuleResponse smart constructor.
Response Lenses
drrsEventPattern :: Lens' DescribeRuleResponse (Maybe Text) Source #
The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide .
drrsState :: Lens' DescribeRuleResponse (Maybe RuleState) Source #
Specifies whether the rule is enabled or disabled.
drrsARN :: Lens' DescribeRuleResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the rule.
drrsScheduleExpression :: Lens' DescribeRuleResponse (Maybe Text) Source #
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
drrsDescription :: Lens' DescribeRuleResponse (Maybe Text) Source #
The description of the rule.
drrsRoleARN :: Lens' DescribeRuleResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
drrsResponseStatus :: Lens' DescribeRuleResponse Int Source #
- - | The response status code.