src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

api_op_ListReusableDelegationSets.go (7281B)


      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.
     38 	//
     39 	// For the value of marker , specify the value of NextMarker from the previous
     40 	// response, which is the ID of the first reusable delegation set that Amazon Route
     41 	// 53 will return if you submit another request.
     42 	//
     43 	// If the value of IsTruncated in the previous response was false , there are no
     44 	// more reusable delegation sets to get.
     45 	Marker *string
     46 
     47 	// The number of reusable delegation sets that you want Amazon Route 53 to return
     48 	// in the response to this request. If you specify a value greater than 100, Route
     49 	// 53 returns only the first 100 reusable delegation sets.
     50 	MaxItems *int32
     51 
     52 	noSmithyDocumentSerde
     53 }
     54 
     55 // A complex type that contains information about the reusable delegation sets
     56 // that are associated with the current Amazon Web Services account.
     57 type ListReusableDelegationSetsOutput struct {
     58 
     59 	// A complex type that contains one DelegationSet element for each reusable
     60 	// delegation set that was created by the current Amazon Web Services account.
     61 	//
     62 	// This member is required.
     63 	DelegationSets []types.DelegationSet
     64 
     65 	// A flag that indicates whether there are more reusable delegation sets to be
     66 	// listed.
     67 	//
     68 	// This member is required.
     69 	IsTruncated bool
     70 
     71 	// For the second and subsequent calls to ListReusableDelegationSets , Marker is
     72 	// the value that you specified for the marker parameter in the request that
     73 	// produced the current response.
     74 	//
     75 	// This member is required.
     76 	Marker *string
     77 
     78 	// The value that you specified for the maxitems parameter in the call to
     79 	// ListReusableDelegationSets that produced the current response.
     80 	//
     81 	// This member is required.
     82 	MaxItems *int32
     83 
     84 	// If IsTruncated is true , the value of NextMarker identifies the next reusable
     85 	// delegation set that Amazon Route 53 will return if you submit another
     86 	// ListReusableDelegationSets request and specify the value of NextMarker in the
     87 	// marker parameter.
     88 	NextMarker *string
     89 
     90 	// Metadata pertaining to the operation's result.
     91 	ResultMetadata middleware.Metadata
     92 
     93 	noSmithyDocumentSerde
     94 }
     95 
     96 func (c *Client) addOperationListReusableDelegationSetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
     97 	if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
     98 		return err
     99 	}
    100 	err = stack.Serialize.Add(&awsRestxml_serializeOpListReusableDelegationSets{}, middleware.After)
    101 	if err != nil {
    102 		return err
    103 	}
    104 	err = stack.Deserialize.Add(&awsRestxml_deserializeOpListReusableDelegationSets{}, middleware.After)
    105 	if err != nil {
    106 		return err
    107 	}
    108 	if err := addProtocolFinalizerMiddlewares(stack, options, "ListReusableDelegationSets"); err != nil {
    109 		return fmt.Errorf("add protocol finalizers: %v", err)
    110 	}
    111 
    112 	if err = addlegacyEndpointContextSetter(stack, options); err != nil {
    113 		return err
    114 	}
    115 	if err = addSetLoggerMiddleware(stack, options); err != nil {
    116 		return err
    117 	}
    118 	if err = addClientRequestID(stack); err != nil {
    119 		return err
    120 	}
    121 	if err = addComputeContentLength(stack); err != nil {
    122 		return err
    123 	}
    124 	if err = addResolveEndpointMiddleware(stack, options); err != nil {
    125 		return err
    126 	}
    127 	if err = addComputePayloadSHA256(stack); err != nil {
    128 		return err
    129 	}
    130 	if err = addRetry(stack, options); err != nil {
    131 		return err
    132 	}
    133 	if err = addRawResponseToMetadata(stack); err != nil {
    134 		return err
    135 	}
    136 	if err = addRecordResponseTiming(stack); err != nil {
    137 		return err
    138 	}
    139 	if err = addSpanRetryLoop(stack, options); err != nil {
    140 		return err
    141 	}
    142 	if err = addClientUserAgent(stack, options); err != nil {
    143 		return err
    144 	}
    145 	if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
    146 		return err
    147 	}
    148 	if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
    149 		return err
    150 	}
    151 	if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
    152 		return err
    153 	}
    154 	if err = addTimeOffsetBuild(stack, c); err != nil {
    155 		return err
    156 	}
    157 	if err = addUserAgentRetryMode(stack, options); err != nil {
    158 		return err
    159 	}
    160 	if err = addCredentialSource(stack, options); err != nil {
    161 		return err
    162 	}
    163 	if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListReusableDelegationSets(options.Region), middleware.Before); err != nil {
    164 		return err
    165 	}
    166 	if err = addRecursionDetection(stack); err != nil {
    167 		return err
    168 	}
    169 	if err = addRequestIDRetrieverMiddleware(stack); err != nil {
    170 		return err
    171 	}
    172 	if err = addResponseErrorMiddleware(stack); err != nil {
    173 		return err
    174 	}
    175 	if err = addRequestResponseLogging(stack, options); err != nil {
    176 		return err
    177 	}
    178 	if err = addDisableHTTPSMiddleware(stack, options); err != nil {
    179 		return err
    180 	}
    181 	if err = addInterceptBeforeRetryLoop(stack, options); err != nil {
    182 		return err
    183 	}
    184 	if err = addInterceptAttempt(stack, options); err != nil {
    185 		return err
    186 	}
    187 	if err = addInterceptExecution(stack, options); err != nil {
    188 		return err
    189 	}
    190 	if err = addInterceptBeforeSerialization(stack, options); err != nil {
    191 		return err
    192 	}
    193 	if err = addInterceptAfterSerialization(stack, options); err != nil {
    194 		return err
    195 	}
    196 	if err = addInterceptBeforeSigning(stack, options); err != nil {
    197 		return err
    198 	}
    199 	if err = addInterceptAfterSigning(stack, options); err != nil {
    200 		return err
    201 	}
    202 	if err = addInterceptTransmit(stack, options); err != nil {
    203 		return err
    204 	}
    205 	if err = addInterceptBeforeDeserialization(stack, options); err != nil {
    206 		return err
    207 	}
    208 	if err = addInterceptAfterDeserialization(stack, options); err != nil {
    209 		return err
    210 	}
    211 	if err = addSpanInitializeStart(stack); err != nil {
    212 		return err
    213 	}
    214 	if err = addSpanInitializeEnd(stack); err != nil {
    215 		return err
    216 	}
    217 	if err = addSpanBuildRequestStart(stack); err != nil {
    218 		return err
    219 	}
    220 	if err = addSpanBuildRequestEnd(stack); err != nil {
    221 		return err
    222 	}
    223 	return nil
    224 }
    225 
    226 func newServiceMetadataMiddleware_opListReusableDelegationSets(region string) *awsmiddleware.RegisterServiceMetadata {
    227 	return &awsmiddleware.RegisterServiceMetadata{
    228 		Region:        region,
    229 		ServiceID:     ServiceID,
    230 		OperationName: "ListReusableDelegationSets",
    231 	}
    232 }