create_destination
async
¶
create_destination(
name: DestinationName,
expression_type: ExpressionType,
expression: Expression,
role_arn: RoleArn,
*,
config_overrides: Optional[AsyncIoTWirelessClientConfig] = None,
description: Optional[Description] = None,
tags: Optional[TagList] = None,
client_request_token: Optional[ClientRequestToken] = None,
) -> CreateDestinationResponse
Creates a new destination that maps a device message to an AWS IoT rule.
Parameters:
-
name(DestinationName) –The name of the new resource.
-
expression_type(ExpressionType) –The type of value in
Expression. -
expression(Expression) –The rule name or topic rule to send messages to.
-
description(Optional[Description], default:None) –The description of the new resource.
-
role_arn(RoleArn) –The ARN of the IAM Role that authorizes the destination.
-
tags(Optional[TagList], default:None) –The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
-
client_request_token(Optional[ClientRequestToken], default:None) –Each resource must have a unique client request token. The client token is used to implement idempotency. It ensures that the request completes no more than one time. If you retry a request with the same token and the same parameters, the request will complete successfully. However, if you try to create a new resource using the same token but different parameters, an HTTP 409 conflict occurs. If you omit this value, AWS SDKs will automatically generate a unique client request. For more information about idempotency, see Ensuring idempotency in Amazon EC2 API requests.
Raises:
-
AccessDeniedException–User does not have permission to perform this action.
-
ConflictException–Adding, updating, or deleting the resource can cause an inconsistent state.
-
InternalServerException–An unexpected error occurred while processing a request.
-
ResourceNotFoundException–Resource does not exist.
-
ThrottlingException–The request was denied because it exceeded the allowed API request rate.
-
ValidationException–The input did not meet the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot_wireless/_services/async_io_t_wireless.py
929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 | |