cdnv3

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "cdn"       // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "cdn"       // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Cdnv3

type Cdnv3 struct {
	*client.Client
}

Cdnv3 provides the API operation methods for making requests to cdnv3. See this package's package overview docs for details on the service.

Cdnv3 methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func ExtraNew

func ExtraNew(info *utils.UrlInfo, p client.ConfigProvider, cfgs ...*aws.Config) *Cdnv3

extraNew create int can support ssl or region locate set

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Cdnv3

New creates a new instance of the Cdnv3 client with a session. If additional configuration is needed for the client instance use the optional ksc.Config parameter to add your extra config.

Example:

// Create a Cdnv3 client from just a session.
svc := cdnv3.New(mySession)

// Create a Cdnv3 client with additional configuration
svc := cdnv3.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func SdkNew

func SdkNew(p client.ConfigProvider, cfgs *ksc.Config, info ...*utils.UrlInfo) *Cdnv3

SdkNew create int can support ssl or region locate set

func (*Cdnv3) BlockDomainUrlPost

func (c *Cdnv3) BlockDomainUrlPost(input *map[string]interface{}) (*map[string]interface{}, error)

BlockDomainUrlPost API operation for cdnv3.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the KSC API reference guide for cdnv3's API operation BlockDomainUrlPost for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2019-06-01/BlockDomainUrlPost

func (*Cdnv3) BlockDomainUrlPostRequest

func (c *Cdnv3) BlockDomainUrlPostRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

BlockDomainUrlPostRequest generates a "ksc/request.Request" representing the client's request for the BlockDomainUrlPost operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See BlockDomainUrlPost for more information on using the BlockDomainUrlPost API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the BlockDomainUrlPostRequest method.
req, resp := client.BlockDomainUrlPostRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/cdn-2019-06-01/BlockDomainUrlPost

func (*Cdnv3) BlockDomainUrlPostWithContext

func (c *Cdnv3) BlockDomainUrlPostWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

BlockDomainUrlPostWithContext is the same as BlockDomainUrlPost with the addition of the ability to pass a context and additional request options.

See BlockDomainUrlPost for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

Directories

Path Synopsis
Package cdnv3iface provides an interface to enable mocking the cdnv3 service client for testing your code.
Package cdnv3iface provides an interface to enable mocking the cdnv3 service client for testing your code.

Jump to

Keyboard shortcuts

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