dns

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 31 Imported by: 4

Documentation

Overview

Package dns provides the API client, operations, and parameter types for the API.

Index

Constants

View Source
const ServiceAPIVersion = "2012-12-12N2013-12-16"
View Source
const ServiceID = "dns"

Variables

This section is empty.

Functions

func NewDefaultEndpointResolver added in v1.14.0

func NewDefaultEndpointResolver() *internalendpoints.Resolver

NewDefaultEndpointResolver constructs a new service endpoint resolver

func WithAPIOptions added in v1.14.0

func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)

WithAPIOptions returns a functional option for setting the Client's APIOptions option.

func WithEndpointResolver added in v1.14.0

func WithEndpointResolver(v EndpointResolver) func(*Options)

WithEndpointResolver returns a functional option for setting the Client's EndpointResolver option.

Types

type ChangeResourceRecordSetsInput

type ChangeResourceRecordSetsInput struct {

	// This member is required.
	RequestChangeBatch *types.RequestChangeBatch

	// This member is required.
	ZoneID *string

	Comment *string
	// contains filtered or unexported fields
}

type ChangeResourceRecordSetsOutput

type ChangeResourceRecordSetsOutput struct {
	ChangeInfo *types.ChangeInfo

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides the API client to make operations call for the API.

func New

func New(options Options, optFns ...func(*Options)) *Client

New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.

func NewFromConfig added in v1.14.0

func NewFromConfig(cfg nifcloud.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a new client from the provided config.

func (*Client) ChangeResourceRecordSets added in v1.14.0

func (c *Client) ChangeResourceRecordSets(ctx context.Context, params *ChangeResourceRecordSetsInput, optFns ...func(*Options)) (*ChangeResourceRecordSetsOutput, error)

func (*Client) CreateHostedZone added in v1.14.0

func (c *Client) CreateHostedZone(ctx context.Context, params *CreateHostedZoneInput, optFns ...func(*Options)) (*CreateHostedZoneOutput, error)

func (*Client) DeleteHostedZone added in v1.14.0

func (c *Client) DeleteHostedZone(ctx context.Context, params *DeleteHostedZoneInput, optFns ...func(*Options)) (*DeleteHostedZoneOutput, error)

func (*Client) GetChange added in v1.14.0

func (c *Client) GetChange(ctx context.Context, params *GetChangeInput, optFns ...func(*Options)) (*GetChangeOutput, error)

func (*Client) GetHostedZone added in v1.14.0

func (c *Client) GetHostedZone(ctx context.Context, params *GetHostedZoneInput, optFns ...func(*Options)) (*GetHostedZoneOutput, error)

func (*Client) ListHostedZones added in v1.14.0

func (c *Client) ListHostedZones(ctx context.Context, params *ListHostedZonesInput, optFns ...func(*Options)) (*ListHostedZonesOutput, error)

func (*Client) ListResourceRecordSets added in v1.14.0

func (c *Client) ListResourceRecordSets(ctx context.Context, params *ListResourceRecordSetsInput, optFns ...func(*Options)) (*ListResourceRecordSetsOutput, error)

type CreateHostedZoneInput

type CreateHostedZoneInput struct {

	// This member is required.
	Name *string

	CallerReference *string

	RequestHostedZoneConfig *types.RequestHostedZoneConfig
	// contains filtered or unexported fields
}

type CreateHostedZoneOutput

type CreateHostedZoneOutput struct {
	ChangeInfo *types.ChangeInfo

	DelegationSet *types.DelegationSet

	HostedZone *types.HostedZone

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteHostedZoneInput

type DeleteHostedZoneInput struct {

	// This member is required.
	ZoneID *string
	// contains filtered or unexported fields
}

type DeleteHostedZoneOutput

type DeleteHostedZoneOutput struct {
	ChangeInfo *types.ChangeInfo

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type EndpointResolver added in v1.14.0

type EndpointResolver interface {
	ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}

EndpointResolver interface for resolving service endpoints.

func EndpointResolverFromURL added in v1.14.0

func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver

EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.

type EndpointResolverFunc added in v1.14.0

type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)

EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.

func (EndpointResolverFunc) ResolveEndpoint added in v1.14.0

func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)

type EndpointResolverOptions added in v1.14.0

type EndpointResolverOptions = internalendpoints.Options

EndpointResolverOptions is the service endpoint resolver options

type GetChangeInput

type GetChangeInput struct {

	// This member is required.
	ChangeID *string
	// contains filtered or unexported fields
}

type GetChangeOutput

type GetChangeOutput struct {
	ChangeInfo *types.ChangeInfo

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetHostedZoneInput

type GetHostedZoneInput struct {

	// This member is required.
	ZoneID *string
	// contains filtered or unexported fields
}

type GetHostedZoneOutput

type GetHostedZoneOutput struct {
	DelegationSet *types.DelegationSet

	HostedZone *types.HostedZone

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type HTTPClient added in v1.14.0

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type HTTPSignerV3 added in v1.14.0

type HTTPSignerV3 interface {
	SignHTTP(ctx context.Context, credentials aws.Credentials, r *smithyhttp.Request, optFns ...func(*v3.SignerOptions)) error
}

type ListHostedZonesInput

type ListHostedZonesInput struct {
	Marker *string

	Maxitems *int32
	// contains filtered or unexported fields
}

type ListHostedZonesOutput

type ListHostedZonesOutput struct {
	HostedZones []types.HostedZones

	IsTruncated *bool

	Marker *string

	MaxItems *int32

	NextMarker *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type ListResourceRecordSetsInput

type ListResourceRecordSetsInput struct {

	// This member is required.
	ZoneID *string

	Identifier *string

	Maxitems *int32

	Name *string

	Type types.TypeOfListResourceRecordSetsRequest
	// contains filtered or unexported fields
}

type ListResourceRecordSetsOutput

type ListResourceRecordSetsOutput struct {
	IsTruncated *bool

	MaxItems *int32

	NextRecordIdentifier *string

	NextRecordName *string

	NextRecordType *string

	ResourceRecordSets []types.ResourceRecordSets

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type Options added in v1.14.0

type Options struct {
	// Set of options to modify how an operation is invoked. These apply to all
	// operations invoked for this client. Use functional options on operation call to
	// modify this list for per operation behavior.
	APIOptions []func(*middleware.Stack) error

	// Configures the events that will be sent to the configured logger.
	ClientLogMode aws.ClientLogMode

	Credentials aws.CredentialsProvider

	// The configuration DefaultsMode that the SDK should use when constructing the
	// clients initial default settings.
	DefaultsMode aws.DefaultsMode

	// The endpoint options to be used when attempting to resolve an endpoint.
	EndpointOptions EndpointResolverOptions

	// The service endpoint resolver.
	EndpointResolver EndpointResolver

	HTTPSignerV3 HTTPSignerV3

	// The logger writer interface to write logging messages to.
	Logger logging.Logger

	// The region to send requests to. (Required)
	Region string

	// RetryMaxAttempts specifies the maximum number attempts an API client will call
	// an operation that fails with a retryable error. A value of 0 is ignored, and
	// will not be used to configure the API client created default retryer, or modify
	// per operation call's retry max attempts. When creating a new API Clients this
	// member will only be used if the Retryer Options member is nil. This value will
	// be ignored if Retryer is not nil. If specified in an operation call's functional
	// options with a value that is different than the constructed client's Options,
	// the Client's Retryer will be wrapped to use the operation's specific
	// RetryMaxAttempts value.
	RetryMaxAttempts int

	// RetryMode specifies the retry mode the API client will be created with, if
	// Retryer option is not also specified. When creating a new API Clients this
	// member will only be used if the Retryer Options member is nil. This value will
	// be ignored if Retryer is not nil. Currently does not support per operation call
	// overrides, may in the future.
	RetryMode aws.RetryMode

	// Retryer guides how HTTP requests should be retried in case of recoverable
	// failures. When nil the API client will use a default retryer. The kind of
	// default retry created by the API client can be changed with the RetryMode
	// option.
	Retryer aws.Retryer

	// The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
	// to DefaultsModeAuto and is initialized using config.LoadDefaultConfig. You
	// should not populate this structure programmatically, or rely on the values here
	// within your applications.
	RuntimeEnvironment aws.RuntimeEnvironment

	// The HTTP client to invoke API calls with. Defaults to client's default HTTP
	// implementation if nil.
	HTTPClient HTTPClient
	// contains filtered or unexported fields
}

func (Options) Copy added in v1.14.0

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.

type ResolveEndpoint added in v1.14.0

type ResolveEndpoint struct {
	Resolver EndpointResolver
	Options  EndpointResolverOptions
}

func (*ResolveEndpoint) HandleSerialize added in v1.14.0

func (*ResolveEndpoint) ID added in v1.14.0

func (*ResolveEndpoint) ID() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL