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 |
Confirms a topic rule destination. When you create a rule requiring a
destination, IoT sends a confirmation message to the endpoint or base
address you specify. The message includes a token which you pass back
when calling ConfirmTopicRuleDestination
to confirm that you own or
have access to the endpoint.
Requires permission to access the ConfirmTopicRuleDestination action.
Synopsis
- data ConfirmTopicRuleDestination = ConfirmTopicRuleDestination' {}
- newConfirmTopicRuleDestination :: Text -> ConfirmTopicRuleDestination
- confirmTopicRuleDestination_confirmationToken :: Lens' ConfirmTopicRuleDestination Text
- data ConfirmTopicRuleDestinationResponse = ConfirmTopicRuleDestinationResponse' {
- httpStatus :: Int
- newConfirmTopicRuleDestinationResponse :: Int -> ConfirmTopicRuleDestinationResponse
- confirmTopicRuleDestinationResponse_httpStatus :: Lens' ConfirmTopicRuleDestinationResponse Int
Creating a Request
data ConfirmTopicRuleDestination Source #
See: newConfirmTopicRuleDestination
smart constructor.
ConfirmTopicRuleDestination' | |
|
Instances
newConfirmTopicRuleDestination Source #
Create a value of ConfirmTopicRuleDestination
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:confirmationToken:ConfirmTopicRuleDestination'
, confirmTopicRuleDestination_confirmationToken
- The token used to confirm ownership or access to the topic rule
confirmation URL.
Request Lenses
confirmTopicRuleDestination_confirmationToken :: Lens' ConfirmTopicRuleDestination Text Source #
The token used to confirm ownership or access to the topic rule confirmation URL.
Destructuring the Response
data ConfirmTopicRuleDestinationResponse Source #
See: newConfirmTopicRuleDestinationResponse
smart constructor.
ConfirmTopicRuleDestinationResponse' | |
|
Instances
Eq ConfirmTopicRuleDestinationResponse Source # | |
Read ConfirmTopicRuleDestinationResponse Source # | |
Show ConfirmTopicRuleDestinationResponse Source # | |
Generic ConfirmTopicRuleDestinationResponse Source # | |
NFData ConfirmTopicRuleDestinationResponse Source # | |
Defined in Amazonka.IoT.ConfirmTopicRuleDestination rnf :: ConfirmTopicRuleDestinationResponse -> () # | |
type Rep ConfirmTopicRuleDestinationResponse Source # | |
Defined in Amazonka.IoT.ConfirmTopicRuleDestination type Rep ConfirmTopicRuleDestinationResponse = D1 ('MetaData "ConfirmTopicRuleDestinationResponse" "Amazonka.IoT.ConfirmTopicRuleDestination" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ConfirmTopicRuleDestinationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newConfirmTopicRuleDestinationResponse Source #
Create a value of ConfirmTopicRuleDestinationResponse
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:ConfirmTopicRuleDestinationResponse'
, confirmTopicRuleDestinationResponse_httpStatus
- The response's http status code.
Response Lenses
confirmTopicRuleDestinationResponse_httpStatus :: Lens' ConfirmTopicRuleDestinationResponse Int Source #
The response's http status code.