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/smithy-go/middleware" 10 smithyhttp "github.com/aws/smithy-go/transport/http" 11) 12 13// Updates a mission profile. Updating a mission profile will not update the 14// execution parameters for existing future contacts. 15func (c *Client) UpdateMissionProfile(ctx context.Context, params *UpdateMissionProfileInput, optFns ...func(*Options)) (*UpdateMissionProfileOutput, error) { 16 if params == nil { 17 params = &UpdateMissionProfileInput{} 18 } 19 20 result, metadata, err := c.invokeOperation(ctx, "UpdateMissionProfile", params, optFns, c.addOperationUpdateMissionProfileMiddlewares) 21 if err != nil { 22 return nil, err 23 } 24 25 out := result.(*UpdateMissionProfileOutput) 26 out.ResultMetadata = metadata 27 return out, nil 28} 29 30// 31type UpdateMissionProfileInput struct { 32 33 // UUID of a mission profile. 34 // 35 // This member is required. 36 MissionProfileId *string 37 38 // Amount of time after a contact ends that you’d like to receive a CloudWatch 39 // event indicating the pass has finished. 40 ContactPostPassDurationSeconds *int32 41 42 // Amount of time after a contact ends that you’d like to receive a CloudWatch 43 // event indicating the pass has finished. 44 ContactPrePassDurationSeconds *int32 45 46 // A list of lists of ARNs. Each list of ARNs is an edge, with a from Config and a 47 // to Config. 48 DataflowEdges [][]string 49 50 // Smallest amount of time in seconds that you’d like to see for an available 51 // contact. AWS Ground Station will not present you with contacts shorter than this 52 // duration. 53 MinimumViableContactDurationSeconds *int32 54 55 // Name of a mission profile. 56 Name *string 57 58 // ARN of a tracking Config. 59 TrackingConfigArn *string 60 61 noSmithyDocumentSerde 62} 63 64// 65type UpdateMissionProfileOutput struct { 66 67 // UUID of a mission profile. 68 MissionProfileId *string 69 70 // Metadata pertaining to the operation's result. 71 ResultMetadata middleware.Metadata 72 73 noSmithyDocumentSerde 74} 75 76func (c *Client) addOperationUpdateMissionProfileMiddlewares(stack *middleware.Stack, options Options) (err error) { 77 err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateMissionProfile{}, middleware.After) 78 if err != nil { 79 return err 80 } 81 err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateMissionProfile{}, middleware.After) 82 if err != nil { 83 return err 84 } 85 if err = addSetLoggerMiddleware(stack, options); err != nil { 86 return err 87 } 88 if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { 89 return err 90 } 91 if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { 92 return err 93 } 94 if err = addResolveEndpointMiddleware(stack, options); err != nil { 95 return err 96 } 97 if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { 98 return err 99 } 100 if err = addRetryMiddlewares(stack, options); err != nil { 101 return err 102 } 103 if err = addHTTPSignerV4Middleware(stack, options); err != nil { 104 return err 105 } 106 if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { 107 return err 108 } 109 if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { 110 return err 111 } 112 if err = addClientUserAgent(stack); err != nil { 113 return err 114 } 115 if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { 116 return err 117 } 118 if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { 119 return err 120 } 121 if err = addOpUpdateMissionProfileValidationMiddleware(stack); err != nil { 122 return err 123 } 124 if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateMissionProfile(options.Region), middleware.Before); err != nil { 125 return err 126 } 127 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 128 return err 129 } 130 if err = addResponseErrorMiddleware(stack); err != nil { 131 return err 132 } 133 if err = addRequestResponseLogging(stack, options); err != nil { 134 return err 135 } 136 return nil 137} 138 139func newServiceMetadataMiddleware_opUpdateMissionProfile(region string) *awsmiddleware.RegisterServiceMetadata { 140 return &awsmiddleware.RegisterServiceMetadata{ 141 Region: region, 142 ServiceID: ServiceID, 143 SigningName: "groundstation", 144 OperationName: "UpdateMissionProfile", 145 } 146} 147