api_op_GetReusableDelegationSetLimit.go (3684B)
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 // Gets the maximum number of hosted zones that you can associate with the 13 // specified reusable delegation set. 14 // 15 // For the default limit, see [Limits] in the Amazon Route 53 Developer Guide. To request 16 // a higher limit, [open a case]. 17 // 18 // [Limits]: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html 19 // [open a case]: https://console.aws.amazon.com/support/home#/case/create?issueType=service-limit-increase&limitType=service-code-route53 20 func (c *Client) GetReusableDelegationSetLimit(ctx context.Context, params *GetReusableDelegationSetLimitInput, optFns ...func(*Options)) (*GetReusableDelegationSetLimitOutput, error) { 21 if params == nil { 22 params = &GetReusableDelegationSetLimitInput{} 23 } 24 25 result, metadata, err := c.invokeOperation(ctx, "GetReusableDelegationSetLimit", params, optFns, c.addOperationGetReusableDelegationSetLimitMiddlewares) 26 if err != nil { 27 return nil, err 28 } 29 30 out := result.(*GetReusableDelegationSetLimitOutput) 31 out.ResultMetadata = metadata 32 return out, nil 33 } 34 35 // A complex type that contains information about the request to create a hosted 36 // zone. 37 type GetReusableDelegationSetLimitInput struct { 38 39 // The ID of the delegation set that you want to get the limit for. 40 // 41 // This member is required. 42 DelegationSetId *string 43 44 // Specify MAX_ZONES_BY_REUSABLE_DELEGATION_SET to get the maximum number of 45 // hosted zones that you can associate with the specified reusable delegation set. 46 // 47 // This member is required. 48 Type types.ReusableDelegationSetLimitType 49 50 noSmithyDocumentSerde 51 } 52 53 // A complex type that contains the requested limit. 54 type GetReusableDelegationSetLimitOutput struct { 55 56 // The current number of hosted zones that you can associate with the specified 57 // reusable delegation set. 58 // 59 // This member is required. 60 Count int64 61 62 // The current setting for the limit on hosted zones that you can associate with 63 // the specified reusable delegation set. 64 // 65 // This member is required. 66 Limit *types.ReusableDelegationSetLimit 67 68 // Metadata pertaining to the operation's result. 69 ResultMetadata middleware.Metadata 70 71 noSmithyDocumentSerde 72 } 73 74 func (c *Client) addOperationGetReusableDelegationSetLimitMiddlewares(stack *middleware.Stack, options Options) (err error) { 75 err = stack.Serialize.Add(&awsRestxml_serializeOpGetReusableDelegationSetLimit{}, middleware.After) 76 if err != nil { 77 return err 78 } 79 err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetReusableDelegationSetLimit{}, middleware.After) 80 if err != nil { 81 return err 82 } 83 84 if err = addComputeContentLength(stack); err != nil { 85 return err 86 } 87 if err = addResolveEndpointMiddleware(stack, options); err != nil { 88 return err 89 } 90 if err = addComputePayloadSHA256(stack); err != nil { 91 return err 92 } 93 if err = addRecordResponseTiming(stack, options); err != nil { 94 return err 95 } 96 if err = addCredentialSource(stack, options); err != nil { 97 return err 98 } 99 if err = addOpGetReusableDelegationSetLimitValidationMiddleware(stack); err != nil { 100 return err 101 } 102 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 103 return err 104 } 105 if err = addResponseErrorMiddleware(stack); err != nil { 106 return err 107 } 108 if err = addSanitizeURLMiddleware(stack); err != nil { 109 return err 110 } 111 if err = addRequestResponseLogging(stack, options); err != nil { 112 return err 113 } 114 if err = addDisableHTTPSMiddleware(stack, options); err != nil { 115 return err 116 } 117 if err = addInterceptors(stack, options); err != nil { 118 return err 119 } 120 return nil 121 }