func GetIotThingType()

in aws/iot.go [27:41]


func GetIotThingType(client IotClient, iotThingType *string) *iot.DescribeThingTypeOutput {
	ret, err := client.DescribeThingType(context.TODO(), &iot.DescribeThingTypeInput{
		ThingTypeName: iotThingType,
	})

	if err != nil {
		var rnf *types.ResourceNotFoundException
		if errors.As(err, &rnf) {
			return nil
		}
		log.Fatalf("Failed to describe thing type %s, Encountered error %s\n", *iotThingType, err)
	}

	return ret
}