| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.UpdateTopicRuleDestination
Description
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.
Constructors
| UpdateTopicRuleDestination' | |
Fields
| |
Instances
newUpdateTopicRuleDestination Source #
Arguments
| :: Text | |
| -> TopicRuleDestinationStatus | |
| -> UpdateTopicRuleDestination |
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:
UpdateTopicRuleDestination, updateTopicRuleDestination_arn - The ARN of the topic rule destination.
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
statustoIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses 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
statustoDISABLEDby callingUpdateTopicRuleDestination. - DISABLED
- Confirmation was completed, and traffic to this destination is not
allowed. You can set
statustoENABLEDby callingUpdateTopicRuleDestination. - ERROR
- Confirmation could not be completed, for example if the confirmation
timed out. You can call
GetTopicRuleDestinationfor details about the error. You can setstatustoIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses 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
statustoIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses 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
statustoDISABLEDby callingUpdateTopicRuleDestination. - DISABLED
- Confirmation was completed, and traffic to this destination is not
allowed. You can set
statustoENABLEDby callingUpdateTopicRuleDestination. - ERROR
- Confirmation could not be completed, for example if the confirmation
timed out. You can call
GetTopicRuleDestinationfor details about the error. You can setstatustoIN_PROGRESSby callingUpdateTopicRuleDestination. CallingUpdateTopicRuleDestinationcauses a new confirmation challenge to be sent to your confirmation endpoint.
Destructuring the Response
data UpdateTopicRuleDestinationResponse Source #
See: newUpdateTopicRuleDestinationResponse smart constructor.
Constructors
| UpdateTopicRuleDestinationResponse' | |
Fields
| |
Instances
newUpdateTopicRuleDestinationResponse Source #
Arguments
| :: Int | |
| -> UpdateTopicRuleDestinationResponse |
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.