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