kcm

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: 1

Documentation

Index

Constants

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

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Kcm

type Kcm struct {
	*client.Client
}

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

Kcm 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) *Kcm

extraNew create int can support ssl or region locate set

func New

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

New creates a new instance of the Kcm 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 Kcm client from just a session.
svc := kcm.New(mySession)

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

func SdkNew

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

SdkNew create int can support ssl or region locate set

func (*Kcm) CreateCertificate

func (c *Kcm) CreateCertificate(input *map[string]interface{}) (*map[string]interface{}, error)

CreateCertificate API operation for kcm.

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 kcm's API operation CreateCertificate for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/CreateCertificate

func (*Kcm) CreateCertificateRequest

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

CreateCertificateRequest generates a "ksc/request.Request" representing the client's request for the CreateCertificate 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 CreateCertificate for more information on using the CreateCertificate 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 CreateCertificateRequest method.
req, resp := client.CreateCertificateRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/CreateCertificate

func (*Kcm) CreateCertificateWithContext

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

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

See CreateCertificate 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.

func (*Kcm) DeleteCertificate

func (c *Kcm) DeleteCertificate(input *map[string]interface{}) (*map[string]interface{}, error)

DeleteCertificate API operation for kcm.

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 kcm's API operation DeleteCertificate for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/DeleteCertificate

func (*Kcm) DeleteCertificateRequest

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

DeleteCertificateRequest generates a "ksc/request.Request" representing the client's request for the DeleteCertificate 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 DeleteCertificate for more information on using the DeleteCertificate 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 DeleteCertificateRequest method.
req, resp := client.DeleteCertificateRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/DeleteCertificate

func (*Kcm) DeleteCertificateWithContext

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

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

See DeleteCertificate 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.

func (*Kcm) DescribeCertificates

func (c *Kcm) DescribeCertificates(input *map[string]interface{}) (*map[string]interface{}, error)

DescribeCertificates API operation for kcm.

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 kcm's API operation DescribeCertificates for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/DescribeCertificates

func (*Kcm) DescribeCertificatesRequest

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

DescribeCertificatesRequest generates a "ksc/request.Request" representing the client's request for the DescribeCertificates 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 DescribeCertificates for more information on using the DescribeCertificates 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 DescribeCertificatesRequest method.
req, resp := client.DescribeCertificatesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/DescribeCertificates

func (*Kcm) DescribeCertificatesWithContext

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

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

See DescribeCertificates 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.

func (*Kcm) ModifyCertificate

func (c *Kcm) ModifyCertificate(input *map[string]interface{}) (*map[string]interface{}, error)

ModifyCertificate API operation for kcm.

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 kcm's API operation ModifyCertificate for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/ModifyCertificate

func (*Kcm) ModifyCertificateRequest

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

ModifyCertificateRequest generates a "ksc/request.Request" representing the client's request for the ModifyCertificate 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 ModifyCertificate for more information on using the ModifyCertificate 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 ModifyCertificateRequest method.
req, resp := client.ModifyCertificateRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/lcm-2016-03-04/ModifyCertificate

func (*Kcm) ModifyCertificateWithContext

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

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

See ModifyCertificate 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 kcmiface provides an interface to enable mocking the kcm service client for testing your code.
Package kcmiface provides an interface to enable mocking the kcm service client for testing your code.

Jump to

Keyboard shortcuts

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