1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package groundstation 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/groundstation/types" 10 "github.com/aws/smithy-go/middleware" 11 smithyhttp "github.com/aws/smithy-go/transport/http" 12 "time" 13) 14 15// Describes an existing contact. 16func (c *Client) DescribeContact(ctx context.Context, params *DescribeContactInput, optFns ...func(*Options)) (*DescribeContactOutput, error) { 17 if params == nil { 18 params = &DescribeContactInput{} 19 } 20 21 result, metadata, err := c.invokeOperation(ctx, "DescribeContact", params, optFns, addOperationDescribeContactMiddlewares) 22 if err != nil { 23 return nil, err 24 } 25 26 out := result.(*DescribeContactOutput) 27 out.ResultMetadata = metadata 28 return out, nil 29} 30 31// 32type DescribeContactInput struct { 33 34 // UUID of a contact. 35 // 36 // This member is required. 37 ContactId *string 38} 39 40// 41type DescribeContactOutput struct { 42 43 // UUID of a contact. 44 ContactId *string 45 46 // Status of a contact. 47 ContactStatus types.ContactStatus 48 49 // List describing source and destination details for each dataflow edge. 50 DataflowList []types.DataflowDetail 51 52 // End time of a contact. 53 EndTime *time.Time 54 55 // Error message for a contact. 56 ErrorMessage *string 57 58 // Ground station for a contact. 59 GroundStation *string 60 61 // Maximum elevation angle of a contact. 62 MaximumElevation *types.Elevation 63 64 // ARN of a mission profile. 65 MissionProfileArn *string 66 67 // Amount of time after a contact ends that you’d like to receive a CloudWatch 68 // event indicating the pass has finished. 69 PostPassEndTime *time.Time 70 71 // Amount of time prior to contact start you’d like to receive a CloudWatch event 72 // indicating an upcoming pass. 73 PrePassStartTime *time.Time 74 75 // Region of a contact. 76 Region *string 77 78 // ARN of a satellite. 79 SatelliteArn *string 80 81 // Start time of a contact. 82 StartTime *time.Time 83 84 // Tags assigned to a contact. 85 Tags map[string]string 86 87 // Metadata pertaining to the operation's result. 88 ResultMetadata middleware.Metadata 89} 90 91func addOperationDescribeContactMiddlewares(stack *middleware.Stack, options Options) (err error) { 92 err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeContact{}, middleware.After) 93 if err != nil { 94 return err 95 } 96 err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeContact{}, middleware.After) 97 if err != nil { 98 return err 99 } 100 if err = addSetLoggerMiddleware(stack, options); err != nil { 101 return err 102 } 103 if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { 104 return err 105 } 106 if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { 107 return err 108 } 109 if err = addResolveEndpointMiddleware(stack, options); err != nil { 110 return err 111 } 112 if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { 113 return err 114 } 115 if err = addRetryMiddlewares(stack, options); err != nil { 116 return err 117 } 118 if err = addHTTPSignerV4Middleware(stack, options); err != nil { 119 return err 120 } 121 if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { 122 return err 123 } 124 if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { 125 return err 126 } 127 if err = addClientUserAgent(stack); err != nil { 128 return err 129 } 130 if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { 131 return err 132 } 133 if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { 134 return err 135 } 136 if err = addOpDescribeContactValidationMiddleware(stack); err != nil { 137 return err 138 } 139 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 140 return err 141 } 142 if err = addResponseErrorMiddleware(stack); err != nil { 143 return err 144 } 145 if err = addRequestResponseLogging(stack, options); err != nil { 146 return err 147 } 148 return nil 149} 150