get_topic_rule_destination
(**kwargs)¶Gets information about a topic rule destination.
Requires permission to access the GetTopicRuleDestination action.
See also: AWS API Documentation
Request Syntax
response = client.get_topic_rule_destination(
arn='string'
)
[REQUIRED]
The ARN of the topic rule destination.
{
'topicRuleDestination': {
'arn': 'string',
'status': 'ENABLED'|'IN_PROGRESS'|'DISABLED'|'ERROR'|'DELETING',
'createdAt': datetime(2015, 1, 1),
'lastUpdatedAt': datetime(2015, 1, 1),
'statusReason': 'string',
'httpUrlProperties': {
'confirmationUrl': 'string'
},
'vpcProperties': {
'subnetIds': [
'string',
],
'securityGroups': [
'string',
],
'vpcId': 'string',
'roleArn': 'string'
}
}
}
Response Structure
The topic rule destination.
The topic rule destination URL.
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
to IN_PROGRESS
by calling UpdateTopicRuleDestination
. Calling UpdateTopicRuleDestination
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
to DISABLED
by calling UpdateTopicRuleDestination
.
DISABLED
Confirmation was completed, and traffic to this destination is not allowed. You can set status
to ENABLED
by calling UpdateTopicRuleDestination
.
ERROR
Confirmation could not be completed, for example if the confirmation timed out. You can call GetTopicRuleDestination
for details about the error. You can set status
to IN_PROGRESS
by calling UpdateTopicRuleDestination
. Calling UpdateTopicRuleDestination
causes a new confirmation challenge to be sent to your confirmation endpoint.
The date and time when the topic rule destination was created.
The date and time when the topic rule destination was last updated.
Additional details or reason why the topic rule destination is in the current status.
Properties of the HTTP URL.
The URL used to confirm the HTTP topic rule destination URL.
Properties of the virtual private cloud (VPC) connection.
The subnet IDs of the VPC destination.
The security groups of the VPC destination.
The ID of the VPC.
The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
Exceptions
IoT.Client.exceptions.InternalException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.UnauthorizedException