api_op_DisableHostedZoneDNSSEC.go (4128B)
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 // Disables DNSSEC signing in a specific hosted zone. This action does not 15 // deactivate any key-signing keys (KSKs) that are active in the hosted zone. 16 func (c *Client) DisableHostedZoneDNSSEC(ctx context.Context, params *DisableHostedZoneDNSSECInput, optFns ...func(*Options)) (*DisableHostedZoneDNSSECOutput, error) { 17 if params == nil { 18 params = &DisableHostedZoneDNSSECInput{} 19 } 20 21 result, metadata, err := c.invokeOperation(ctx, "DisableHostedZoneDNSSEC", params, optFns, c.addOperationDisableHostedZoneDNSSECMiddlewares) 22 if err != nil { 23 return nil, err 24 } 25 26 out := result.(*DisableHostedZoneDNSSECOutput) 27 out.ResultMetadata = metadata 28 return out, nil 29 } 30 31 type DisableHostedZoneDNSSECInput struct { 32 33 // A unique string used to identify a hosted zone. 34 // 35 // This member is required. 36 HostedZoneId *string 37 38 noSmithyDocumentSerde 39 } 40 41 type DisableHostedZoneDNSSECOutput struct { 42 43 // A complex type that describes change information about changes made to your 44 // hosted zone. 45 // 46 // This member is required. 47 ChangeInfo *types.ChangeInfo 48 49 // Metadata pertaining to the operation's result. 50 ResultMetadata middleware.Metadata 51 52 noSmithyDocumentSerde 53 } 54 55 func (c *Client) addOperationDisableHostedZoneDNSSECMiddlewares(stack *middleware.Stack, options Options) (err error) { 56 if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil { 57 return err 58 } 59 err = stack.Serialize.Add(&awsRestxml_serializeOpDisableHostedZoneDNSSEC{}, middleware.After) 60 if err != nil { 61 return err 62 } 63 err = stack.Deserialize.Add(&awsRestxml_deserializeOpDisableHostedZoneDNSSEC{}, middleware.After) 64 if err != nil { 65 return err 66 } 67 if err := addProtocolFinalizerMiddlewares(stack, options, "DisableHostedZoneDNSSEC"); err != nil { 68 return fmt.Errorf("add protocol finalizers: %v", err) 69 } 70 71 if err = addlegacyEndpointContextSetter(stack, options); err != nil { 72 return err 73 } 74 if err = addSetLoggerMiddleware(stack, options); err != nil { 75 return err 76 } 77 if err = addClientRequestID(stack); err != nil { 78 return err 79 } 80 if err = addComputeContentLength(stack); err != nil { 81 return err 82 } 83 if err = addResolveEndpointMiddleware(stack, options); err != nil { 84 return err 85 } 86 if err = addComputePayloadSHA256(stack); err != nil { 87 return err 88 } 89 if err = addRetry(stack, options); err != nil { 90 return err 91 } 92 if err = addRawResponseToMetadata(stack); err != nil { 93 return err 94 } 95 if err = addRecordResponseTiming(stack); err != nil { 96 return err 97 } 98 if err = addClientUserAgent(stack, options); err != nil { 99 return err 100 } 101 if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { 102 return err 103 } 104 if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { 105 return err 106 } 107 if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil { 108 return err 109 } 110 if err = addOpDisableHostedZoneDNSSECValidationMiddleware(stack); err != nil { 111 return err 112 } 113 if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDisableHostedZoneDNSSEC(options.Region), middleware.Before); err != nil { 114 return err 115 } 116 if err = addRecursionDetection(stack); 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 = addSanitizeURLMiddleware(stack); err != nil { 126 return err 127 } 128 if err = addRequestResponseLogging(stack, options); err != nil { 129 return err 130 } 131 if err = addDisableHTTPSMiddleware(stack, options); err != nil { 132 return err 133 } 134 return nil 135 } 136 137 func newServiceMetadataMiddleware_opDisableHostedZoneDNSSEC(region string) *awsmiddleware.RegisterServiceMetadata { 138 return &awsmiddleware.RegisterServiceMetadata{ 139 Region: region, 140 ServiceID: ServiceID, 141 OperationName: "DisableHostedZoneDNSSEC", 142 } 143 }