api_op_GetDNSSEC.go (2548B)
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 // Returns information about DNSSEC for a specific hosted zone, including the 13 // key-signing keys (KSKs) in the hosted zone. 14 func (c *Client) GetDNSSEC(ctx context.Context, params *GetDNSSECInput, optFns ...func(*Options)) (*GetDNSSECOutput, error) { 15 if params == nil { 16 params = &GetDNSSECInput{} 17 } 18 19 result, metadata, err := c.invokeOperation(ctx, "GetDNSSEC", params, optFns, c.addOperationGetDNSSECMiddlewares) 20 if err != nil { 21 return nil, err 22 } 23 24 out := result.(*GetDNSSECOutput) 25 out.ResultMetadata = metadata 26 return out, nil 27 } 28 29 type GetDNSSECInput struct { 30 31 // A unique string used to identify a hosted zone. 32 // 33 // This member is required. 34 HostedZoneId *string 35 36 noSmithyDocumentSerde 37 } 38 39 type GetDNSSECOutput struct { 40 41 // The key-signing keys (KSKs) in your account. 42 // 43 // This member is required. 44 KeySigningKeys []types.KeySigningKey 45 46 // A string representing the status of DNSSEC. 47 // 48 // This member is required. 49 Status *types.DNSSECStatus 50 51 // Metadata pertaining to the operation's result. 52 ResultMetadata middleware.Metadata 53 54 noSmithyDocumentSerde 55 } 56 57 func (c *Client) addOperationGetDNSSECMiddlewares(stack *middleware.Stack, options Options) (err error) { 58 err = stack.Serialize.Add(&awsRestxml_serializeOpGetDNSSEC{}, middleware.After) 59 if err != nil { 60 return err 61 } 62 err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetDNSSEC{}, middleware.After) 63 if err != nil { 64 return err 65 } 66 67 if err = addComputeContentLength(stack); err != nil { 68 return err 69 } 70 if err = addResolveEndpointMiddleware(stack, options); err != nil { 71 return err 72 } 73 if err = addComputePayloadSHA256(stack); err != nil { 74 return err 75 } 76 if err = addRecordResponseTiming(stack, options); err != nil { 77 return err 78 } 79 if err = addCredentialSource(stack, options); err != nil { 80 return err 81 } 82 if err = addOpGetDNSSECValidationMiddleware(stack); err != nil { 83 return err 84 } 85 if err = addRequestIDRetrieverMiddleware(stack); err != nil { 86 return err 87 } 88 if err = addResponseErrorMiddleware(stack); err != nil { 89 return err 90 } 91 if err = addSanitizeURLMiddleware(stack); err != nil { 92 return err 93 } 94 if err = addRequestResponseLogging(stack, options); err != nil { 95 return err 96 } 97 if err = addDisableHTTPSMiddleware(stack, options); err != nil { 98 return err 99 } 100 if err = addInterceptors(stack, options); err != nil { 101 return err 102 } 103 return nil 104 }