api_op_ListReusableDelegationSets.go (5861B)
1 // Code generated by smithy-go-codegen DO NOT EDIT. 2 3 package route53 4 5 import ( 6 "context" 7 "fmt" 8 awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" 9 "github.com/aws/aws-sdk-go-v2/service/route53/types" 10 "github.com/aws/smithy-go/middleware" 11 smithyhttp "github.com/aws/smithy-go/transport/http" 12 ) 13 14 // Retrieves a list of the reusable delegation sets that are associated with the 15 // current Amazon Web Services account. 16 func (c *Client) ListReusableDelegationSets(ctx context.Context, params *ListReusableDelegationSetsInput, optFns ...func(*Options)) (*ListReusableDelegationSetsOutput, error) { 17 if params == nil { 18 params = &ListReusableDelegationSetsInput{} 19 } 20 21 result, metadata, err := c.invokeOperation(ctx, "ListReusableDelegationSets", params, optFns, c.addOperationListReusableDelegationSetsMiddlewares) 22 if err != nil { 23 return nil, err 24 } 25 26 out := result.(*ListReusableDelegationSetsOutput) 27 out.ResultMetadata = metadata 28 return out, nil 29 } 30 31 // A request to get a list of the reusable delegation sets that are associated 32 // with the current Amazon Web Services account. 33 type ListReusableDelegationSetsInput struct { 34 35 // If the value of IsTruncated in the previous response was true , you have more 36 // reusable delegation sets. To get another group, submit another 37 // ListReusableDelegationSets request. For the value of marker , specify the value 38 // of NextMarker from the previous response, which is the ID of the first reusable 39 // delegation set that Amazon Route 53 will return if you submit another request. 40 // If the value of IsTruncated in the previous response was false , there are no 41 // more reusable delegation sets to get. 42 Marker *string 43 44 // The number of reusable delegation sets that you want Amazon Route 53 to return 45 // in the response to this request. If you specify a value greater than 100, Route 46 // 53 returns only the first 100 reusable delegation sets. 47 MaxItems *int32 48 49 noSmithyDocumentSerde 50 } 51 52 // A complex type that contains information about the reusable delegation sets 53 // that are associated with the current Amazon Web Services account. 54 type ListReusableDelegationSetsOutput struct { 55 56 // A complex type that contains one DelegationSet element for each reusable 57 // delegation set that was created by the current Amazon Web Services account. 58 // 59 // This member is required. 60 DelegationSets []types.DelegationSet 61 62 // A flag that indicates whether there are more reusable delegation sets to be 63 // listed. 64 // 65 // This member is required. 66 IsTruncated bool 67 68 // For the second and subsequent calls to ListReusableDelegationSets , Marker is 69 // the value that you specified for the marker parameter in the request that 70 // produced the current response. 71 // 72 // This member is required. 73 Marker *string 74 75 // The value that you specified for the maxitems parameter in the call to 76 // ListReusableDelegationSets that produced the current response. 77 // 78 // This member is required. 79 MaxItems *int32 80 81 // If IsTruncated is true , the value of NextMarker identifies the next reusable 82 // delegation set that Amazon Route 53 will return if you submit another 83 // ListReusableDelegationSets request and specify the value of NextMarker in the 84 // marker parameter. 85 NextMarker *string 86 87 // Metadata pertaining to the operation's result. 88 ResultMetadata middleware.Metadata 89 90 noSmithyDocumentSerde 91 } 92 93 func (c *Client) addOperationListReusableDelegationSetsMiddlewares(stack *middleware.Stack, options Options) (err error) { 94 if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { 95 return err 96 } 97 err = stack.Serialize.Add(&awsRestxml_serializeOpListReusableDelegationSets{}, middleware.After) 98 if err != nil { 99 return err 100 } 101 err = stack.Deserialize.Add(&awsRestxml_deserializeOpListReusableDelegationSets{}, middleware.After) 102 if err != nil { 103 return err 104 } 105 if err := addProtocolFinalizerMiddlewares(stack, options, "ListReusableDelegationSets"); err != nil { 106 return fmt.Errorf("add protocol finalizers: %v", err) 107 } 108 109 if err = addlegacyEndpointContextSetter(stack, options); err != nil { 110 return err 111 } 112 if err = addSetLoggerMiddleware(stack, options); err != nil { 113 return err 114 } 115 if err = addClientRequestID(stack); err != nil { 116 return err 117 } 118 if err = addComputeContentLength(stack); err != nil { 119 return err 120 } 121 if err = addResolveEndpointMiddleware(stack, options); err != nil { 122 return err 123 } 124 if err = addComputePayloadSHA256(stack); err != nil { 125 return err 126 } 127 if err = addRetry(stack, options); err != nil { 128 return err 129 } 130 if err = addRawResponseToMetadata(stack); err != nil { 131 return err 132 } 133 if err = addRecordResponseTiming(stack); err != nil { 134 return err 135 } 136 if err = addClientUserAgent(stack, options); err != nil { 137 return err 138 } 139 if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { 140 return err 141 } 142 if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { 143 return err 144 } 145 if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { 146 return err 147 } 148 if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReusableDelegationSets(options.Region), middleware.Before); err != nil { 149 return err 150 } 151 if err = addRecursionDetection(stack); err != nil { 152 return err 153 } 154 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 155 return err 156 } 157 if err = addResponseErrorMiddleware(stack); err != nil { 158 return err 159 } 160 if err = addRequestResponseLogging(stack, options); err != nil { 161 return err 162 } 163 if err = addDisableHTTPSMiddleware(stack, options); err != nil { 164 return err 165 } 166 return nil 167 } 168 169 func newServiceMetadataMiddleware_opListReusableDelegationSets(region string) *awsmiddleware.RegisterServiceMetadata { 170 return &awsmiddleware.RegisterServiceMetadata{ 171 Region: region, 172 ServiceID: ServiceID, 173 OperationName: "ListReusableDelegationSets", 174 } 175 }