src

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

api_op_GetQueryLoggingConfig.go (3061B)


      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 information about a specified configuration for DNS query logging.
     13 //
     14 // For more information about DNS query logs, see [CreateQueryLoggingConfig] and [Logging DNS Queries].
     15 //
     16 // [CreateQueryLoggingConfig]: https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateQueryLoggingConfig.html
     17 // [Logging DNS Queries]: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/query-logs.html
     18 func (c *Client) GetQueryLoggingConfig(ctx context.Context, params *GetQueryLoggingConfigInput, optFns ...func(*Options)) (*GetQueryLoggingConfigOutput, error) {
     19 	if params == nil {
     20 		params = &GetQueryLoggingConfigInput{}
     21 	}
     22 
     23 	result, metadata, err := c.invokeOperation(ctx, "GetQueryLoggingConfig", params, optFns, c.addOperationGetQueryLoggingConfigMiddlewares)
     24 	if err != nil {
     25 		return nil, err
     26 	}
     27 
     28 	out := result.(*GetQueryLoggingConfigOutput)
     29 	out.ResultMetadata = metadata
     30 	return out, nil
     31 }
     32 
     33 type GetQueryLoggingConfigInput struct {
     34 
     35 	// The ID of the configuration for DNS query logging that you want to get
     36 	// information about.
     37 	//
     38 	// This member is required.
     39 	Id *string
     40 
     41 	noSmithyDocumentSerde
     42 }
     43 
     44 type GetQueryLoggingConfigOutput struct {
     45 
     46 	// A complex type that contains information about the query logging configuration
     47 	// that you specified in a [GetQueryLoggingConfig]request.
     48 	//
     49 	// [GetQueryLoggingConfig]: https://docs.aws.amazon.com/Route53/latest/APIReference/API_GetQueryLoggingConfig.html
     50 	//
     51 	// This member is required.
     52 	QueryLoggingConfig *types.QueryLoggingConfig
     53 
     54 	// Metadata pertaining to the operation's result.
     55 	ResultMetadata middleware.Metadata
     56 
     57 	noSmithyDocumentSerde
     58 }
     59 
     60 func (c *Client) addOperationGetQueryLoggingConfigMiddlewares(stack *middleware.Stack, options Options) (err error) {
     61 	err = stack.Serialize.Add(&awsRestxml_serializeOpGetQueryLoggingConfig{}, middleware.After)
     62 	if err != nil {
     63 		return err
     64 	}
     65 	err = stack.Deserialize.Add(&awsRestxml_deserializeOpGetQueryLoggingConfig{}, middleware.After)
     66 	if err != nil {
     67 		return err
     68 	}
     69 
     70 	if err = addComputeContentLength(stack); err != nil {
     71 		return err
     72 	}
     73 	if err = addResolveEndpointMiddleware(stack, options); err != nil {
     74 		return err
     75 	}
     76 	if err = addComputePayloadSHA256(stack); err != nil {
     77 		return err
     78 	}
     79 	if err = addRecordResponseTiming(stack, options); err != nil {
     80 		return err
     81 	}
     82 	if err = addCredentialSource(stack, options); err != nil {
     83 		return err
     84 	}
     85 	if err = addOpGetQueryLoggingConfigValidationMiddleware(stack); err != nil {
     86 		return err
     87 	}
     88 	if err = addRequestIDRetrieverMiddleware(stack); err != nil {
     89 		return err
     90 	}
     91 	if err = addResponseErrorMiddleware(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 }