Documentation ¶
Index ¶
- Constants
- type Kcev2
- func (c *Kcev2) CreateCluster(input *map[string]interface{}) (*map[string]interface{}, error)
- func (c *Kcev2) CreateClusterRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
- func (c *Kcev2) CreateClusterWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
Constants ¶
const ( ServiceName = "kce" // Name of service. EndpointsID = ServiceName // ID to lookup a service endpoint with. ServiceID = "kce" // ServiceID is a unique identifer of a specific service. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kcev2 ¶
Kcev2 provides the API operation methods for making requests to kcev2. See this package's package overview docs for details on the service.
Kcev2 methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *Kcev2
New creates a new instance of the Kcev2 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 Kcev2 client from just a session. svc := kcev2.New(mySession) // Create a Kcev2 client with additional configuration svc := kcev2.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*Kcev2) CreateCluster ¶
CreateCluster API operation for kcev2.
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 kcev2's API operation CreateCluster for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/kce-2020-12-31/CreateCluster
func (*Kcev2) CreateClusterRequest ¶
func (c *Kcev2) CreateClusterRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})
CreateClusterRequest generates a "ksc/request.Request" representing the client's request for the CreateCluster 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 CreateCluster for more information on using the CreateCluster 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 CreateClusterRequest method. req, resp := client.CreateClusterRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/kce-2020-12-31/CreateCluster
func (*Kcev2) CreateClusterWithContext ¶
func (c *Kcev2) CreateClusterWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)
CreateClusterWithContext is the same as CreateCluster with the addition of the ability to pass a context and additional request options.
See CreateCluster 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 kcev2iface provides an interface to enable mocking the kcev2 service client for testing your code.
|
Package kcev2iface provides an interface to enable mocking the kcev2 service client for testing your code. |