| 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.IoTWireless.CreateDestination
Description
Creates a new destination that maps a device message to an AWS IoT rule.
Synopsis
- data CreateDestination = CreateDestination' {
- clientRequestToken :: Maybe Text
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- expressionType :: ExpressionType
- expression :: Text
- roleArn :: Text
- newCreateDestination :: Text -> ExpressionType -> Text -> Text -> CreateDestination
- createDestination_clientRequestToken :: Lens' CreateDestination (Maybe Text)
- createDestination_description :: Lens' CreateDestination (Maybe Text)
- createDestination_tags :: Lens' CreateDestination (Maybe [Tag])
- createDestination_name :: Lens' CreateDestination Text
- createDestination_expressionType :: Lens' CreateDestination ExpressionType
- createDestination_expression :: Lens' CreateDestination Text
- createDestination_roleArn :: Lens' CreateDestination Text
- data CreateDestinationResponse = CreateDestinationResponse' {}
- newCreateDestinationResponse :: Int -> CreateDestinationResponse
- createDestinationResponse_arn :: Lens' CreateDestinationResponse (Maybe Text)
- createDestinationResponse_name :: Lens' CreateDestinationResponse (Maybe Text)
- createDestinationResponse_httpStatus :: Lens' CreateDestinationResponse Int
Creating a Request
data CreateDestination Source #
See: newCreateDestination smart constructor.
Constructors
| CreateDestination' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ExpressionType | |
| -> Text | |
| -> Text | |
| -> CreateDestination |
Create a value of CreateDestination 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:clientRequestToken:CreateDestination', createDestination_clientRequestToken - Each resource must have a unique client request token. If you try to
create a new resource with the same token as a resource that already
exists, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.
CreateDestination, createDestination_description - The description of the new resource.
$sel:tags:CreateDestination', createDestination_tags - The tags to attach to the new destination. Tags are metadata that you
can use to manage a resource.
CreateDestination, createDestination_name - The name of the new resource.
CreateDestination, createDestination_expressionType - The type of value in Expression.
CreateDestination, createDestination_expression - The rule name or topic rule to send messages to.
CreateDestination, createDestination_roleArn - The ARN of the IAM Role that authorizes the destination.
Request Lenses
createDestination_clientRequestToken :: Lens' CreateDestination (Maybe Text) Source #
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
createDestination_description :: Lens' CreateDestination (Maybe Text) Source #
The description of the new resource.
createDestination_tags :: Lens' CreateDestination (Maybe [Tag]) Source #
The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
createDestination_name :: Lens' CreateDestination Text Source #
The name of the new resource.
createDestination_expressionType :: Lens' CreateDestination ExpressionType Source #
The type of value in Expression.
createDestination_expression :: Lens' CreateDestination Text Source #
The rule name or topic rule to send messages to.
createDestination_roleArn :: Lens' CreateDestination Text Source #
The ARN of the IAM Role that authorizes the destination.
Destructuring the Response
data CreateDestinationResponse Source #
See: newCreateDestinationResponse smart constructor.
Constructors
| CreateDestinationResponse' | |
Instances
newCreateDestinationResponse Source #
Create a value of CreateDestinationResponse 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:
CreateDestinationResponse, createDestinationResponse_arn - The Amazon Resource Name of the new resource.
CreateDestination, createDestinationResponse_name - The name of the new resource.
$sel:httpStatus:CreateDestinationResponse', createDestinationResponse_httpStatus - The response's http status code.
Response Lenses
createDestinationResponse_arn :: Lens' CreateDestinationResponse (Maybe Text) Source #
The Amazon Resource Name of the new resource.
createDestinationResponse_name :: Lens' CreateDestinationResponse (Maybe Text) Source #
The name of the new resource.
createDestinationResponse_httpStatus :: Lens' CreateDestinationResponse Int Source #
The response's http status code.