Copyright | (c) 2013-2021 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 |
Updates a topic rule destination. You use this to change the status, endpoint URL, or confirmation URL of the destination.
Requires permission to access the UpdateTopicRuleDestination action.
Synopsis
- data UpdateTopicRuleDestination = UpdateTopicRuleDestination' {}
- newUpdateTopicRuleDestination :: Text -> TopicRuleDestinationStatus -> UpdateTopicRuleDestination
- updateTopicRuleDestination_arn :: Lens' UpdateTopicRuleDestination Text
- updateTopicRuleDestination_status :: Lens' UpdateTopicRuleDestination TopicRuleDestinationStatus
- data UpdateTopicRuleDestinationResponse = UpdateTopicRuleDestinationResponse' {
- httpStatus :: Int
- newUpdateTopicRuleDestinationResponse :: Int -> UpdateTopicRuleDestinationResponse
- updateTopicRuleDestinationResponse_httpStatus :: Lens' UpdateTopicRuleDestinationResponse Int
Creating a Request
data UpdateTopicRuleDestination Source #
See: newUpdateTopicRuleDestination
smart constructor.
UpdateTopicRuleDestination' | |
|
Instances
newUpdateTopicRuleDestination Source #
Create a value of UpdateTopicRuleDestination
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:arn:UpdateTopicRuleDestination'
, updateTopicRuleDestination_arn
- The ARN of the topic rule destination.
$sel:status:UpdateTopicRuleDestination'
, updateTopicRuleDestination_status
- The status of the topic rule destination. Valid values are:
- IN_PROGRESS
- A topic rule destination was created but has not been confirmed. You
can set
status
toIN_PROGRESS
by callingUpdateTopicRuleDestination
. CallingUpdateTopicRuleDestination
causes a new confirmation challenge to be sent to your confirmation endpoint. - ENABLED
- Confirmation was completed, and traffic to this destination is
allowed. You can set
status
toDISABLED
by callingUpdateTopicRuleDestination
. - DISABLED
- Confirmation was completed, and traffic to this destination is not
allowed. You can set
status
toENABLED
by callingUpdateTopicRuleDestination
. - ERROR
- Confirmation could not be completed, for example if the confirmation
timed out. You can call
GetTopicRuleDestination
for details about the error. You can setstatus
toIN_PROGRESS
by callingUpdateTopicRuleDestination
. CallingUpdateTopicRuleDestination
causes a new confirmation challenge to be sent to your confirmation endpoint.
Request Lenses
updateTopicRuleDestination_arn :: Lens' UpdateTopicRuleDestination Text Source #
The ARN of the topic rule destination.
updateTopicRuleDestination_status :: Lens' UpdateTopicRuleDestination TopicRuleDestinationStatus Source #
The status of the topic rule destination. Valid values are:
- IN_PROGRESS
- A topic rule destination was created but has not been confirmed. You
can set
status
toIN_PROGRESS
by callingUpdateTopicRuleDestination
. CallingUpdateTopicRuleDestination
causes a new confirmation challenge to be sent to your confirmation endpoint. - ENABLED
- Confirmation was completed, and traffic to this destination is
allowed. You can set
status
toDISABLED
by callingUpdateTopicRuleDestination
. - DISABLED
- Confirmation was completed, and traffic to this destination is not
allowed. You can set
status
toENABLED
by callingUpdateTopicRuleDestination
. - ERROR
- Confirmation could not be completed, for example if the confirmation
timed out. You can call
GetTopicRuleDestination
for details about the error. You can setstatus
toIN_PROGRESS
by callingUpdateTopicRuleDestination
. CallingUpdateTopicRuleDestination
causes a new confirmation challenge to be sent to your confirmation endpoint.
Destructuring the Response
data UpdateTopicRuleDestinationResponse Source #
See: newUpdateTopicRuleDestinationResponse
smart constructor.
UpdateTopicRuleDestinationResponse' | |
|
Instances
Eq UpdateTopicRuleDestinationResponse Source # | |
Read UpdateTopicRuleDestinationResponse Source # | |
Show UpdateTopicRuleDestinationResponse Source # | |
Generic UpdateTopicRuleDestinationResponse Source # | |
NFData UpdateTopicRuleDestinationResponse Source # | |
Defined in Amazonka.IoT.UpdateTopicRuleDestination rnf :: UpdateTopicRuleDestinationResponse -> () # | |
type Rep UpdateTopicRuleDestinationResponse Source # | |
Defined in Amazonka.IoT.UpdateTopicRuleDestination type Rep UpdateTopicRuleDestinationResponse = D1 ('MetaData "UpdateTopicRuleDestinationResponse" "Amazonka.IoT.UpdateTopicRuleDestination" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "UpdateTopicRuleDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newUpdateTopicRuleDestinationResponse Source #
Create a value of UpdateTopicRuleDestinationResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:UpdateTopicRuleDestinationResponse'
, updateTopicRuleDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
updateTopicRuleDestinationResponse_httpStatus :: Lens' UpdateTopicRuleDestinationResponse Int Source #
The response's http status code.