1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package robomaker 4 5import ( 6 "context" 7 awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" 8 "github.com/aws/aws-sdk-go-v2/aws/signer/v4" 9 "github.com/aws/aws-sdk-go-v2/service/robomaker/types" 10 "github.com/aws/smithy-go/middleware" 11 smithyhttp "github.com/aws/smithy-go/transport/http" 12 "time" 13) 14 15// Describes a robot application. 16func (c *Client) DescribeRobotApplication(ctx context.Context, params *DescribeRobotApplicationInput, optFns ...func(*Options)) (*DescribeRobotApplicationOutput, error) { 17 if params == nil { 18 params = &DescribeRobotApplicationInput{} 19 } 20 21 result, metadata, err := c.invokeOperation(ctx, "DescribeRobotApplication", params, optFns, addOperationDescribeRobotApplicationMiddlewares) 22 if err != nil { 23 return nil, err 24 } 25 26 out := result.(*DescribeRobotApplicationOutput) 27 out.ResultMetadata = metadata 28 return out, nil 29} 30 31type DescribeRobotApplicationInput struct { 32 33 // The Amazon Resource Name (ARN) of the robot application. 34 // 35 // This member is required. 36 Application *string 37 38 // The version of the robot application to describe. 39 ApplicationVersion *string 40} 41 42type DescribeRobotApplicationOutput struct { 43 44 // The Amazon Resource Name (ARN) of the robot application. 45 Arn *string 46 47 // The time, in milliseconds since the epoch, when the robot application was last 48 // updated. 49 LastUpdatedAt *time.Time 50 51 // The name of the robot application. 52 Name *string 53 54 // The revision id of the robot application. 55 RevisionId *string 56 57 // The robot software suite (ROS distribution) used by the robot application. 58 RobotSoftwareSuite *types.RobotSoftwareSuite 59 60 // The sources of the robot application. 61 Sources []types.Source 62 63 // The list of all tags added to the specified robot application. 64 Tags map[string]string 65 66 // The version of the robot application. 67 Version *string 68 69 // Metadata pertaining to the operation's result. 70 ResultMetadata middleware.Metadata 71} 72 73func addOperationDescribeRobotApplicationMiddlewares(stack *middleware.Stack, options Options) (err error) { 74 err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeRobotApplication{}, middleware.After) 75 if err != nil { 76 return err 77 } 78 err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeRobotApplication{}, middleware.After) 79 if err != nil { 80 return err 81 } 82 if err = addSetLoggerMiddleware(stack, options); err != nil { 83 return err 84 } 85 if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { 86 return err 87 } 88 if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { 89 return err 90 } 91 if err = addResolveEndpointMiddleware(stack, options); err != nil { 92 return err 93 } 94 if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { 95 return err 96 } 97 if err = addRetryMiddlewares(stack, options); err != nil { 98 return err 99 } 100 if err = addHTTPSignerV4Middleware(stack, options); err != nil { 101 return err 102 } 103 if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { 104 return err 105 } 106 if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { 107 return err 108 } 109 if err = addClientUserAgent(stack); err != nil { 110 return err 111 } 112 if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { 113 return err 114 } 115 if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { 116 return err 117 } 118 if err = addOpDescribeRobotApplicationValidationMiddleware(stack); err != nil { 119 return err 120 } 121 if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeRobotApplication(options.Region), middleware.Before); err != nil { 122 return err 123 } 124 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 125 return err 126 } 127 if err = addResponseErrorMiddleware(stack); err != nil { 128 return err 129 } 130 if err = addRequestResponseLogging(stack, options); err != nil { 131 return err 132 } 133 return nil 134} 135 136func newServiceMetadataMiddleware_opDescribeRobotApplication(region string) *awsmiddleware.RegisterServiceMetadata { 137 return &awsmiddleware.RegisterServiceMetadata{ 138 Region: region, 139 ServiceID: ServiceID, 140 SigningName: "robomaker", 141 OperationName: "DescribeRobotApplication", 142 } 143} 144