Documentation ¶
Overview ¶
Package cvm provides the client and types for making API requests to Cloud Virtual Machine.
欢迎使用云服务器(Cloud Virtual Machine)
腾讯云服务器(Cloud Virtual Machine,以下又称CVM)运行在腾讯数据中心,它提供了可以弹性伸缩的计算服务,可以根据业务需要来构建和托管软件系统。
云服务器向用户提供弹性的计算、存储和网络资源。用户可以使用本文档介绍的 API,并参照相应的示例,对云服务器进行相关操作:如创建、销毁、更改带宽、重启等;支持的全部操作可参见API概览页 (https://cloud.tencent.com/document/api/213/569)。
See cvm package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/cvm/
Using the Client ¶
To contact Cloud Virtual Machine with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See sdf.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Cloud Virtual Machine client CVM for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/cvm/#New
Index ¶
- Constants
- type CVM
- func (c *CVM) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error)
- func (c *CVM) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput)
- func (c *CVM) DescribeImagesWithContext(ctx sdf.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error)
- func (c *CVM) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error)
- func (c *CVM) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error
- func (c *CVM) DescribeInstancesPagesWithContext(ctx sdf.Context, input *DescribeInstancesInput, ...) error
- func (c *CVM) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput)
- func (c *CVM) DescribeInstancesStatus(input *DescribeInstancesStatusInput) (*DescribeInstancesStatusOutput, error)
- func (c *CVM) DescribeInstancesStatusRequest(input *DescribeInstancesStatusInput) (req *request.Request, output *DescribeInstancesStatusOutput)
- func (c *CVM) DescribeInstancesStatusWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.Option) (*DescribeInstancesStatusOutput, error)
- func (c *CVM) DescribeInstancesWithContext(ctx sdf.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error)
- func (c *CVM) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error)
- func (c *CVM) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput)
- func (c *CVM) RebootInstancesWithContext(ctx sdf.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error)
- func (c *CVM) RunInstances(input *RunInstancesInput) (*RunInstancesOutput, error)
- func (c *CVM) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *RunInstancesOutput)
- func (c *CVM) RunInstancesWithContext(ctx sdf.Context, input *RunInstancesInput, opts ...request.Option) (*RunInstancesOutput, error)
- func (c *CVM) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error)
- func (c *CVM) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput)
- func (c *CVM) StartInstancesWithContext(ctx sdf.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error)
- func (c *CVM) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error)
- func (c *CVM) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput)
- func (c *CVM) StopInstancesWithContext(ctx sdf.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error)
- func (c *CVM) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error)
- func (c *CVM) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput)
- func (c *CVM) TerminateInstancesWithContext(ctx sdf.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error)
- func (c *CVM) WaitUntilInstanceRestart(input *DescribeInstancesStatusInput) error
- func (c *CVM) WaitUntilInstanceRestartWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, ...) error
- func (c *CVM) WaitUntilInstanceRunning(input *DescribeInstancesStatusInput) error
- func (c *CVM) WaitUntilInstanceRunningWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, ...) error
- func (c *CVM) WaitUntilInstanceStopped(input *DescribeInstancesStatusInput) error
- func (c *CVM) WaitUntilInstanceStoppedWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, ...) error
- type DataDisk
- type DescribeImagesInput
- func (s DescribeImagesInput) GoString() string
- func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput
- func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput
- func (s *DescribeImagesInput) SetInstanceType(v string) *DescribeImagesInput
- func (s *DescribeImagesInput) SetLimit(v int64) *DescribeImagesInput
- func (s *DescribeImagesInput) SetOffset(v int64) *DescribeImagesInput
- func (s DescribeImagesInput) String() string
- type DescribeImagesOutput
- type DescribeInstancesInput
- func (s DescribeInstancesInput) GoString() string
- func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput
- func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput
- func (s *DescribeInstancesInput) SetLimit(v int64) *DescribeInstancesInput
- func (s *DescribeInstancesInput) SetOffset(v int64) *DescribeInstancesInput
- func (s DescribeInstancesInput) String() string
- type DescribeInstancesOutput
- type DescribeInstancesStatusInput
- func (s DescribeInstancesStatusInput) GoString() string
- func (s *DescribeInstancesStatusInput) SetInstanceIds(v []*string) *DescribeInstancesStatusInput
- func (s *DescribeInstancesStatusInput) SetLimit(v int64) *DescribeInstancesStatusInput
- func (s *DescribeInstancesStatusInput) SetOffset(v int64) *DescribeInstancesStatusInput
- func (s DescribeInstancesStatusInput) String() string
- type DescribeInstancesStatusOutput
- type EnhancedService
- type Filter
- type Image
- func (s Image) GoString() string
- func (s *Image) SetArchitecture(v string) *Image
- func (s *Image) SetCreatedTime(v string) *Image
- func (s *Image) SetImageCreator(v string) *Image
- func (s *Image) SetImageDescription(v string) *Image
- func (s *Image) SetImageID(v string) *Image
- func (s *Image) SetImageName(v string) *Image
- func (s *Image) SetImageSize(v string) *Image
- func (s *Image) SetImageSource(v string) *Image
- func (s *Image) SetImageState(v string) *Image
- func (s *Image) SetImageType(v string) *Image
- func (s *Image) SetOsName(v string) *Image
- func (s *Image) SetPlatform(v string) *Image
- func (s Image) String() string
- type ImageResponse
- type Instance
- func (s Instance) GoString() string
- func (s *Instance) SetCPU(v int64) *Instance
- func (s *Instance) SetCreatedTime(v string) *Instance
- func (s *Instance) SetDataDisks(v []*DataDisk) *Instance
- func (s *Instance) SetExpiredTime(v string) *Instance
- func (s *Instance) SetImageID(v string) *Instance
- func (s *Instance) SetInstanceChargeType(v string) *Instance
- func (s *Instance) SetInstanceID(v string) *Instance
- func (s *Instance) SetInstanceName(v string) *Instance
- func (s *Instance) SetInstanceState(v string) *Instance
- func (s *Instance) SetInstanceType(v string) *Instance
- func (s *Instance) SetInternetAccessible(v *InternetAccessible) *Instance
- func (s *Instance) SetLoginSettings(v *LoginSettings) *Instance
- func (s *Instance) SetMemory(v int64) *Instance
- func (s *Instance) SetOsName(v string) *Instance
- func (s *Instance) SetPlacement(v *Placement) *Instance
- func (s *Instance) SetPrivateIpAddresses(v []*string) *Instance
- func (s *Instance) SetPublicIpAddresses(v []*string) *Instance
- func (s *Instance) SetRenewFlag(v string) *Instance
- func (s *Instance) SetRestrictState(v string) *Instance
- func (s *Instance) SetSecurityGroupIds(v []*string) *Instance
- func (s *Instance) SetSystemDisk(v *SystemDisk) *Instance
- func (s *Instance) SetVirtualPrivateCloud(v *VirtualPrivateCloud) *Instance
- func (s Instance) String() string
- type InstanceChargePrepaid
- type InstanceStatus
- type InternetAccessible
- func (s InternetAccessible) GoString() string
- func (s *InternetAccessible) SetInternetChargeType(v string) *InternetAccessible
- func (s *InternetAccessible) SetInternetMaxBandwidthOut(v int64) *InternetAccessible
- func (s *InternetAccessible) SetPublicIpAssigned(v bool) *InternetAccessible
- func (s InternetAccessible) String() string
- type LoginSettings
- type OperateInstancesResponse
- type Placement
- type RebootInstancesInput
- type RebootInstancesOutput
- type Response
- type RunInstancesInput
- func (s RunInstancesInput) GoString() string
- func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetDataDisks(v []*DataDisk) *RunInstancesInput
- func (s *RunInstancesInput) SetEnhancedService(v *EnhancedService) *RunInstancesInput
- func (s *RunInstancesInput) SetHostName(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetInstanceChargePrepaid(v *InstanceChargePrepaid) *RunInstancesInput
- func (s *RunInstancesInput) SetInstanceChargeType(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetInstanceCount(v int64) *RunInstancesInput
- func (s *RunInstancesInput) SetInstanceName(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetInternetAccessible(v *InternetAccessible) *RunInstancesInput
- func (s *RunInstancesInput) SetLoginSettings(v *LoginSettings) *RunInstancesInput
- func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput
- func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput
- func (s *RunInstancesInput) SetSystemDisk(v *SystemDisk) *RunInstancesInput
- func (s *RunInstancesInput) SetTagSpecification(v []*TagSpecification) *RunInstancesInput
- func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput
- func (s *RunInstancesInput) SetVirtualPrivateCloud(v *VirtualPrivateCloud) *RunInstancesInput
- func (s RunInstancesInput) String() string
- type RunInstancesOutput
- type RunInstancesResponse
- type RunMonitorServiceEnabled
- type RunSecurityServiceEnabled
- type StartInstancesInput
- type StartInstancesOutput
- type StatusResponse
- type StopInstancesInput
- func (s StopInstancesInput) GoString() string
- func (s *StopInstancesInput) SetForceStop(v bool) *StopInstancesInput
- func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput
- func (s *StopInstancesInput) SetStopType(v string) *StopInstancesInput
- func (s *StopInstancesInput) SetStoppedMode(v string) *StopInstancesInput
- func (s StopInstancesInput) String() string
- type StopInstancesOutput
- type SystemDisk
- type Tag
- type TagSpecification
- type TerminateInstancesInput
- type TerminateInstancesOutput
- type VirtualPrivateCloud
- func (s VirtualPrivateCloud) GoString() string
- func (s *VirtualPrivateCloud) SetAsVpcGateway(v bool) *VirtualPrivateCloud
- func (s *VirtualPrivateCloud) SetPrivateIpAddresses(v []*string) *VirtualPrivateCloud
- func (s *VirtualPrivateCloud) SetSubnetId(v string) *VirtualPrivateCloud
- func (s *VirtualPrivateCloud) SetVpcId(v string) *VirtualPrivateCloud
- func (s VirtualPrivateCloud) String() string
Examples ¶
Constants ¶
const ( ServiceName = "cvm" // Service endpoint prefix API calls made to. EndpointsID = ServiceName // Service ID for Regions and Endpoints metadata. )
Service information constants
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CVM ¶
CVM provides the API operation methods for making requests to Cloud Virtual Machine. See this package's package overview docs for details on the service.
CVM 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 ...*sdf.Config) *CVM
New creates a new instance of the CVM client with a session. If additional configuration is needed for the client instance use the optional sdf.Config parameter to add your extra config.
Example:
// Create a CVM client from just a session. svc := cvm.New(mySession) // Create a CVM client with additional configuration svc := cvm.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*CVM) DescribeImages ¶
func (c *CVM) DescribeImages(input *DescribeImagesInput) (*DescribeImagesOutput, error)
DescribeImages API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation DescribeImages for usage and error information.
func (*CVM) DescribeImagesRequest ¶
func (c *CVM) DescribeImagesRequest(input *DescribeImagesInput) (req *request.Request, output *DescribeImagesOutput)
DescribeImagesRequest generates a "aws/request.Request" representing the client's request for the DescribeImages operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 DescribeImages for more information on using the DescribeImages 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 DescribeImagesRequest method. req, resp := client.DescribeImagesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) DescribeImagesWithContext ¶
func (c *CVM) DescribeImagesWithContext(ctx sdf.Context, input *DescribeImagesInput, opts ...request.Option) (*DescribeImagesOutput, error)
DescribeImagesWithContext is the same as DescribeImages with the addition of the ability to pass a context and additional request options.
See DescribeImages 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 (*CVM) DescribeInstances ¶
func (c *CVM) DescribeInstances(input *DescribeInstancesInput) (*DescribeInstancesOutput, error)
DescribeInstances API operation for Cloud Virtual Machine.
本接口 (DescribeInstances) 用于查询一个或多个实例的详细信息。
接口请求域名:cvm.api.qcloud.com
- 可以根据实例ID、实例名称或者实例计费模式等信息来查询实例的详细信息。过滤信息详细请见过滤器Filter。
- 如果参数为空,返回当前用户一定数量(Limit所指定的数量,默认为20)的实例。
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 AWS API reference guide for Cloud Virtual Machine's API operation DescribeInstances for usage and error information.
func (*CVM) DescribeInstancesPages ¶
func (c *CVM) DescribeInstancesPages(input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool) error
DescribeInstancesPages iterates over the pages of a DescribeInstances operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See DescribeInstances method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a DescribeInstances operation. pageNum := 0 err := client.DescribeInstancesPages(params, func(page *DescribeInstancesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*CVM) DescribeInstancesPagesWithContext ¶
func (c *CVM) DescribeInstancesPagesWithContext(ctx sdf.Context, input *DescribeInstancesInput, fn func(*DescribeInstancesOutput, bool) bool, opts ...request.Option) error
DescribeInstancesPagesWithContext same as DescribeInstancesPages except it takes a Context and allows setting request options on the pages.
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 (*CVM) DescribeInstancesRequest ¶
func (c *CVM) DescribeInstancesRequest(input *DescribeInstancesInput) (req *request.Request, output *DescribeInstancesOutput)
DescribeInstancesRequest generates a "aws/request.Request" representing the client's request for the DescribeInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 DescribeInstances for more information on using the DescribeInstances 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 DescribeInstancesRequest method. req, resp := client.DescribeInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) DescribeInstancesStatus ¶
func (c *CVM) DescribeInstancesStatus(input *DescribeInstancesStatusInput) (*DescribeInstancesStatusOutput, error)
DescribeInstancesStatus API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation DescribeInstancesStatus for usage and error information.
func (*CVM) DescribeInstancesStatusRequest ¶
func (c *CVM) DescribeInstancesStatusRequest(input *DescribeInstancesStatusInput) (req *request.Request, output *DescribeInstancesStatusOutput)
DescribeInstancesStatusRequest generates a "aws/request.Request" representing the client's request for the DescribeInstancesStatus operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 DescribeInstancesStatus for more information on using the DescribeInstancesStatus 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 DescribeInstancesStatusRequest method. req, resp := client.DescribeInstancesStatusRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) DescribeInstancesStatusWithContext ¶
func (c *CVM) DescribeInstancesStatusWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.Option) (*DescribeInstancesStatusOutput, error)
DescribeInstancesStatusWithContext is the same as DescribeInstancesStatus with the addition of the ability to pass a context and additional request options.
See DescribeInstancesStatus 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 (*CVM) DescribeInstancesWithContext ¶
func (c *CVM) DescribeInstancesWithContext(ctx sdf.Context, input *DescribeInstancesInput, opts ...request.Option) (*DescribeInstancesOutput, error)
DescribeInstancesWithContext is the same as DescribeInstances with the addition of the ability to pass a context and additional request options.
See DescribeInstances 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 (*CVM) RebootInstances ¶
func (c *CVM) RebootInstances(input *RebootInstancesInput) (*RebootInstancesOutput, error)
RebootInstances API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation RebootInstances for usage and error information.
func (*CVM) RebootInstancesRequest ¶
func (c *CVM) RebootInstancesRequest(input *RebootInstancesInput) (req *request.Request, output *RebootInstancesOutput)
RebootInstancesRequest generates a "aws/request.Request" representing the client's request for the RebootInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 RebootInstances for more information on using the RebootInstances 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 RebootInstancesRequest method. req, resp := client.RebootInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) RebootInstancesWithContext ¶
func (c *CVM) RebootInstancesWithContext(ctx sdf.Context, input *RebootInstancesInput, opts ...request.Option) (*RebootInstancesOutput, error)
RebootInstancesWithContext is the same as RebootInstances with the addition of the ability to pass a context and additional request options.
See RebootInstances 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 (*CVM) RunInstances ¶
func (c *CVM) RunInstances(input *RunInstancesInput) (*RunInstancesOutput, error)
RunInstances API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation RunInstances for usage and error information.
func (*CVM) RunInstancesRequest ¶
func (c *CVM) RunInstancesRequest(input *RunInstancesInput) (req *request.Request, output *RunInstancesOutput)
RunInstancesRequest generates a "aws/request.Request" representing the client's request for the RunInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 RunInstances for more information on using the RunInstances 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 RunInstancesRequest method. req, resp := client.RunInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) RunInstancesWithContext ¶
func (c *CVM) RunInstancesWithContext(ctx sdf.Context, input *RunInstancesInput, opts ...request.Option) (*RunInstancesOutput, error)
RunInstancesWithContext is the same as RunInstances with the addition of the ability to pass a context and additional request options.
See RunInstances 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 (*CVM) StartInstances ¶
func (c *CVM) StartInstances(input *StartInstancesInput) (*StartInstancesOutput, error)
StartInstances API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation StartInstances for usage and error information.
func (*CVM) StartInstancesRequest ¶
func (c *CVM) StartInstancesRequest(input *StartInstancesInput) (req *request.Request, output *StartInstancesOutput)
StartInstancesRequest generates a "aws/request.Request" representing the client's request for the StartInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 StartInstances for more information on using the StartInstances 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 StartInstancesRequest method. req, resp := client.StartInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) StartInstancesWithContext ¶
func (c *CVM) StartInstancesWithContext(ctx sdf.Context, input *StartInstancesInput, opts ...request.Option) (*StartInstancesOutput, error)
StartInstancesWithContext is the same as StartInstances with the addition of the ability to pass a context and additional request options.
See StartInstances 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 (*CVM) StopInstances ¶
func (c *CVM) StopInstances(input *StopInstancesInput) (*StopInstancesOutput, error)
StopInstances API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation StopInstances for usage and error information.
func (*CVM) StopInstancesRequest ¶
func (c *CVM) StopInstancesRequest(input *StopInstancesInput) (req *request.Request, output *StopInstancesOutput)
StopInstancesRequest generates a "aws/request.Request" representing the client's request for the StopInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 StopInstances for more information on using the StopInstances 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 StopInstancesRequest method. req, resp := client.StopInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) StopInstancesWithContext ¶
func (c *CVM) StopInstancesWithContext(ctx sdf.Context, input *StopInstancesInput, opts ...request.Option) (*StopInstancesOutput, error)
StopInstancesWithContext is the same as StopInstances with the addition of the ability to pass a context and additional request options.
See StopInstances 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 (*CVM) TerminateInstances ¶
func (c *CVM) TerminateInstances(input *TerminateInstancesInput) (*TerminateInstancesOutput, error)
TerminateInstances API operation for Cloud Virtual Machine.
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 AWS API reference guide for Cloud Virtual Machine's API operation TerminateInstances for usage and error information.
func (*CVM) TerminateInstancesRequest ¶
func (c *CVM) TerminateInstancesRequest(input *TerminateInstancesInput) (req *request.Request, output *TerminateInstancesOutput)
TerminateInstancesRequest generates a "aws/request.Request" representing the client's request for the TerminateInstances operation. The "output" return value will be populated with the request's response once the request completes successfuly.
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 TerminateInstances for more information on using the TerminateInstances 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 TerminateInstancesRequest method. req, resp := client.TerminateInstancesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (*CVM) TerminateInstancesWithContext ¶
func (c *CVM) TerminateInstancesWithContext(ctx sdf.Context, input *TerminateInstancesInput, opts ...request.Option) (*TerminateInstancesOutput, error)
TerminateInstancesWithContext is the same as TerminateInstances with the addition of the ability to pass a context and additional request options.
See TerminateInstances 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 (*CVM) WaitUntilInstanceRestart ¶
func (c *CVM) WaitUntilInstanceRestart(input *DescribeInstancesStatusInput) error
WaitUntilInstanceRestart uses the CVM API operation DescribeInstancesStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (*CVM) WaitUntilInstanceRestartWithContext ¶
func (c *CVM) WaitUntilInstanceRestartWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.WaiterOption) error
WaitUntilInstanceRestartWithContext is an extended version of WaitUntilInstanceRestart. With the support for passing in a context and options to configure the Waiter and the underlying request options.
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 (*CVM) WaitUntilInstanceRunning ¶
func (c *CVM) WaitUntilInstanceRunning(input *DescribeInstancesStatusInput) error
WaitUntilInstanceRunning uses the CVM API operation DescribeInstancesStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (*CVM) WaitUntilInstanceRunningWithContext ¶
func (c *CVM) WaitUntilInstanceRunningWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.WaiterOption) error
WaitUntilInstanceRunningWithContext is an extended version of WaitUntilInstanceRunning. With the support for passing in a context and options to configure the Waiter and the underlying request options.
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 (*CVM) WaitUntilInstanceStopped ¶
func (c *CVM) WaitUntilInstanceStopped(input *DescribeInstancesStatusInput) error
WaitUntilInstanceStopped uses the CVM API operation DescribeInstancesStatus to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (*CVM) WaitUntilInstanceStoppedWithContext ¶
func (c *CVM) WaitUntilInstanceStoppedWithContext(ctx sdf.Context, input *DescribeInstancesStatusInput, opts ...request.WaiterOption) error
WaitUntilInstanceStoppedWithContext is an extended version of WaitUntilInstanceStopped. With the support for passing in a context and options to configure the Waiter and the underlying request options.
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.
type DataDisk ¶
type DataDisk struct { DiskId *string `locationName:"DiskId" type:"string"` DiskSize *int64 `locationName:"DiskId" type:"integer"` DiskType *string `locationName:"DiskType" type:"string"` // contains filtered or unexported fields }
func (*DataDisk) SetDiskSize ¶
SetDiskSize sets the DiskSize field's value.
func (*DataDisk) SetDiskType ¶
SetDiskType sets the DiskType field's value.
type DescribeImagesInput ¶
type DescribeImagesInput struct { Filters []*Filter `locationName:"Filters" locationNameList:"Filter" type:"list" flattened:"true"` ImageIds []*string `locationName:"ImageIds" type:"list"` InstanceType *string `type:"string"` Limit *int64 `type:"integer"` Offset *int64 `type:"integer"` // contains filtered or unexported fields }
func (DescribeImagesInput) GoString ¶
func (s DescribeImagesInput) GoString() string
GoString returns the string representation
func (*DescribeImagesInput) SetFilters ¶
func (s *DescribeImagesInput) SetFilters(v []*Filter) *DescribeImagesInput
SetFilters sets the Filters field's value.
func (*DescribeImagesInput) SetImageIds ¶
func (s *DescribeImagesInput) SetImageIds(v []*string) *DescribeImagesInput
SetImageIds sets the ImageIds field's value.
func (*DescribeImagesInput) SetInstanceType ¶
func (s *DescribeImagesInput) SetInstanceType(v string) *DescribeImagesInput
SetInstanceType sets the InstanceType field's value.
func (*DescribeImagesInput) SetLimit ¶
func (s *DescribeImagesInput) SetLimit(v int64) *DescribeImagesInput
SetLimit sets the Limit field's value.
func (*DescribeImagesInput) SetOffset ¶
func (s *DescribeImagesInput) SetOffset(v int64) *DescribeImagesInput
SetOffset sets the Offset field's value.
func (DescribeImagesInput) String ¶
func (s DescribeImagesInput) String() string
String returns the string representation
type DescribeImagesOutput ¶
type DescribeImagesOutput struct { Response *ImageResponse `type:"structure"` // contains filtered or unexported fields }
func (DescribeImagesOutput) GoString ¶
func (s DescribeImagesOutput) GoString() string
GoString returns the string representation
func (*DescribeImagesOutput) SetResponse ¶
func (s *DescribeImagesOutput) SetResponse(v *ImageResponse) *DescribeImagesOutput
SetResponse sets the Response field's value.
func (DescribeImagesOutput) String ¶
func (s DescribeImagesOutput) String() string
String returns the string representation
type DescribeInstancesInput ¶
type DescribeInstancesInput struct { Filters []*Filter `locationName:"Filters" locationNameList:"Filter" type:"list" flattened:"true"` InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"` // test Limit *int64 `type:"integer"` // test Offset *int64 `type:"integer"` // contains filtered or unexported fields }
test
func (DescribeInstancesInput) GoString ¶
func (s DescribeInstancesInput) GoString() string
GoString returns the string representation
func (*DescribeInstancesInput) SetFilters ¶
func (s *DescribeInstancesInput) SetFilters(v []*Filter) *DescribeInstancesInput
SetFilters sets the Filters field's value.
func (*DescribeInstancesInput) SetInstanceIds ¶
func (s *DescribeInstancesInput) SetInstanceIds(v []*string) *DescribeInstancesInput
SetInstanceIds sets the InstanceIds field's value.
func (*DescribeInstancesInput) SetLimit ¶
func (s *DescribeInstancesInput) SetLimit(v int64) *DescribeInstancesInput
SetLimit sets the Limit field's value.
func (*DescribeInstancesInput) SetOffset ¶
func (s *DescribeInstancesInput) SetOffset(v int64) *DescribeInstancesInput
SetOffset sets the Offset field's value.
func (DescribeInstancesInput) String ¶
func (s DescribeInstancesInput) String() string
String returns the string representation
type DescribeInstancesOutput ¶
type DescribeInstancesOutput struct { // test Response *Response `type:"structure"` // contains filtered or unexported fields }
test
func (DescribeInstancesOutput) GoString ¶
func (s DescribeInstancesOutput) GoString() string
GoString returns the string representation
func (*DescribeInstancesOutput) SetResponse ¶
func (s *DescribeInstancesOutput) SetResponse(v *Response) *DescribeInstancesOutput
SetResponse sets the Response field's value.
func (DescribeInstancesOutput) String ¶
func (s DescribeInstancesOutput) String() string
String returns the string representation
type DescribeInstancesStatusInput ¶
type DescribeInstancesStatusInput struct { InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"` Limit *int64 `type:"integer"` Offset *int64 `type:"integer"` // contains filtered or unexported fields }
func (DescribeInstancesStatusInput) GoString ¶
func (s DescribeInstancesStatusInput) GoString() string
GoString returns the string representation
func (*DescribeInstancesStatusInput) SetInstanceIds ¶
func (s *DescribeInstancesStatusInput) SetInstanceIds(v []*string) *DescribeInstancesStatusInput
SetInstanceIds sets the InstanceIds field's value.
func (*DescribeInstancesStatusInput) SetLimit ¶
func (s *DescribeInstancesStatusInput) SetLimit(v int64) *DescribeInstancesStatusInput
SetLimit sets the Limit field's value.
func (*DescribeInstancesStatusInput) SetOffset ¶
func (s *DescribeInstancesStatusInput) SetOffset(v int64) *DescribeInstancesStatusInput
SetOffset sets the Offset field's value.
func (DescribeInstancesStatusInput) String ¶
func (s DescribeInstancesStatusInput) String() string
String returns the string representation
type DescribeInstancesStatusOutput ¶
type DescribeInstancesStatusOutput struct { Response *StatusResponse `type:"structure"` // contains filtered or unexported fields }
func (DescribeInstancesStatusOutput) GoString ¶
func (s DescribeInstancesStatusOutput) GoString() string
GoString returns the string representation
func (*DescribeInstancesStatusOutput) SetResponse ¶
func (s *DescribeInstancesStatusOutput) SetResponse(v *StatusResponse) *DescribeInstancesStatusOutput
SetResponse sets the Response field's value.
func (DescribeInstancesStatusOutput) String ¶
func (s DescribeInstancesStatusOutput) String() string
String returns the string representation
type EnhancedService ¶
type EnhancedService struct { MonitorService *RunMonitorServiceEnabled `locationName:"SecurityService" type:"structure"` SecurityService *RunSecurityServiceEnabled `locationName:"SecurityService" type:"structure"` // contains filtered or unexported fields }
func (EnhancedService) GoString ¶
func (s EnhancedService) GoString() string
GoString returns the string representation
func (*EnhancedService) SetMonitorService ¶
func (s *EnhancedService) SetMonitorService(v *RunMonitorServiceEnabled) *EnhancedService
SetMonitorService sets the MonitorService field's value.
func (*EnhancedService) SetSecurityService ¶
func (s *EnhancedService) SetSecurityService(v *RunSecurityServiceEnabled) *EnhancedService
SetSecurityService sets the SecurityService field's value.
func (EnhancedService) String ¶
func (s EnhancedService) String() string
String returns the string representation
type Filter ¶
type Filter struct { Name *string `type:"string"` Values []*string `type:"list" flattened:"true"` // contains filtered or unexported fields }
type Image ¶
type Image struct { Architecture *string `locationName:"Architecture" type:"string"` CreatedTime *string `locationName:"CreatedTime" type:"string"` ImageCreator *string `locationName:"ImageCreator" type:"string"` ImageDescription *string `locationName:"ImageDescription" type:"string"` ImageID *string `locationName:"ImageId" type:"string"` ImageName *string `locationName:"ImageName" type:"string"` ImageSize *string `locationName:"Integer" type:"string"` ImageSource *string `locationName:"ImageSource" type:"string"` ImageState *string `locationName:"ImageState" type:"string"` ImageType *string `locationName:"ImageType" type:"string"` OsName *string `locationName:"OsName" type:"string"` Platform *string `locationName:"Platform" type:"string"` // contains filtered or unexported fields }
func (*Image) SetArchitecture ¶
SetArchitecture sets the Architecture field's value.
func (*Image) SetCreatedTime ¶
SetCreatedTime sets the CreatedTime field's value.
func (*Image) SetImageCreator ¶
SetImageCreator sets the ImageCreator field's value.
func (*Image) SetImageDescription ¶
SetImageDescription sets the ImageDescription field's value.
func (*Image) SetImageID ¶
SetImageID sets the ImageID field's value.
func (*Image) SetImageName ¶
SetImageName sets the ImageName field's value.
func (*Image) SetImageSize ¶
SetImageSize sets the ImageSize field's value.
func (*Image) SetImageSource ¶
SetImageSource sets the ImageSource field's value.
func (*Image) SetImageState ¶
SetImageState sets the ImageState field's value.
func (*Image) SetImageType ¶
SetImageType sets the ImageType field's value.
func (*Image) SetPlatform ¶
SetPlatform sets the Platform field's value.
type ImageResponse ¶
type ImageResponse struct { ImageSet []*Image `locationName:"ImageSet" type:"list"` RequestID *string `locationName:"RequestId" type:"string"` TotalCount *int64 `locationName:"TotalCount" type:"integer"` // contains filtered or unexported fields }
func (ImageResponse) GoString ¶
func (s ImageResponse) GoString() string
GoString returns the string representation
func (*ImageResponse) SetImageSet ¶
func (s *ImageResponse) SetImageSet(v []*Image) *ImageResponse
SetImageSet sets the ImageSet field's value.
func (*ImageResponse) SetRequestID ¶
func (s *ImageResponse) SetRequestID(v string) *ImageResponse
SetRequestID sets the RequestID field's value.
func (*ImageResponse) SetTotalCount ¶
func (s *ImageResponse) SetTotalCount(v int64) *ImageResponse
SetTotalCount sets the TotalCount field's value.
func (ImageResponse) String ¶
func (s ImageResponse) String() string
String returns the string representation
type Instance ¶
type Instance struct { // test CPU *int64 `locationName:"CPU" type:"integer"` CreatedTime *string `locationName:"CreatedTime" type:"string"` DataDisks []*DataDisk `type:"list"` ExpiredTime *string `locationName:"ExpiredTime" type:"string"` ImageID *string `locationName:"ImageId" type:"string"` InstanceChargeType *string `locationName:"InstanceChargeType" type:"string"` InstanceID *string `locationName:"InstanceId" type:"string"` InstanceName *string `locationName:"InstanceName" type:"string"` InstanceState *string `locationName:"InstanceState" type:"string"` // test InstanceType *string `locationName:"InstanceType" type:"string"` InternetAccessible *InternetAccessible `type:"structure"` LoginSettings *LoginSettings `type:"structure"` // test Memory *int64 `locationName:"Memory" type:"integer"` OsName *string `locationName:"OsName" type:"string"` Placement *Placement `type:"structure"` // test PrivateIpAddresses []*string `locationName:"PrivateIpAddresses" type:"list"` // test PublicIpAddresses []*string `locationName:"PublicIpAddresses" type:"list"` RenewFlag *string `locationName:"RenewFlag" type:"string"` RestrictState *string `locationName:"RestrictState" type:"string"` SecurityGroupIds []*string `locationName:"SecurityGroupIds" type:"list"` SystemDisk *SystemDisk `type:"structure"` VirtualPrivateCloud *VirtualPrivateCloud `type:"structure" flattened:"true"` // contains filtered or unexported fields }
item
func (*Instance) SetCreatedTime ¶
SetCreatedTime sets the CreatedTime field's value.
func (*Instance) SetDataDisks ¶
SetDataDisks sets the DataDisks field's value.
func (*Instance) SetExpiredTime ¶
SetExpiredTime sets the ExpiredTime field's value.
func (*Instance) SetImageID ¶
SetImageID sets the ImageID field's value.
func (*Instance) SetInstanceChargeType ¶
SetInstanceChargeType sets the InstanceChargeType field's value.
func (*Instance) SetInstanceID ¶
SetInstanceID sets the InstanceID field's value.
func (*Instance) SetInstanceName ¶
SetInstanceName sets the InstanceName field's value.
func (*Instance) SetInstanceState ¶
SetInstanceState sets the InstanceState field's value.
func (*Instance) SetInstanceType ¶
SetInstanceType sets the InstanceType field's value.
func (*Instance) SetInternetAccessible ¶
func (s *Instance) SetInternetAccessible(v *InternetAccessible) *Instance
SetInternetAccessible sets the InternetAccessible field's value.
func (*Instance) SetLoginSettings ¶
func (s *Instance) SetLoginSettings(v *LoginSettings) *Instance
SetLoginSettings sets the LoginSettings field's value.
func (*Instance) SetPlacement ¶
SetPlacement sets the Placement field's value.
func (*Instance) SetPrivateIpAddresses ¶
SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
func (*Instance) SetPublicIpAddresses ¶
SetPublicIpAddresses sets the PublicIpAddresses field's value.
func (*Instance) SetRenewFlag ¶
SetRenewFlag sets the RenewFlag field's value.
func (*Instance) SetRestrictState ¶
SetRestrictState sets the RestrictState field's value.
func (*Instance) SetSecurityGroupIds ¶
SetSecurityGroupIds sets the SecurityGroupIds field's value.
func (*Instance) SetSystemDisk ¶
func (s *Instance) SetSystemDisk(v *SystemDisk) *Instance
SetSystemDisk sets the SystemDisk field's value.
func (*Instance) SetVirtualPrivateCloud ¶
func (s *Instance) SetVirtualPrivateCloud(v *VirtualPrivateCloud) *Instance
SetVirtualPrivateCloud sets the VirtualPrivateCloud field's value.
type InstanceChargePrepaid ¶
type InstanceChargePrepaid struct { Period *int64 `locationName:"Period" type:"integer"` RenewFlag *string `locationName:"RenewFlag" type:"string"` // contains filtered or unexported fields }
func (InstanceChargePrepaid) GoString ¶
func (s InstanceChargePrepaid) GoString() string
GoString returns the string representation
func (*InstanceChargePrepaid) SetPeriod ¶
func (s *InstanceChargePrepaid) SetPeriod(v int64) *InstanceChargePrepaid
SetPeriod sets the Period field's value.
func (*InstanceChargePrepaid) SetRenewFlag ¶
func (s *InstanceChargePrepaid) SetRenewFlag(v string) *InstanceChargePrepaid
SetRenewFlag sets the RenewFlag field's value.
func (InstanceChargePrepaid) String ¶
func (s InstanceChargePrepaid) String() string
String returns the string representation
type InstanceStatus ¶
type InstanceStatus struct { InstanceID *string `locationName:"InstanceId" type:"string"` InstanceState *string `locationName:"InstanceState" type:"string"` // contains filtered or unexported fields }
func (InstanceStatus) GoString ¶
func (s InstanceStatus) GoString() string
GoString returns the string representation
func (*InstanceStatus) SetInstanceID ¶
func (s *InstanceStatus) SetInstanceID(v string) *InstanceStatus
SetInstanceID sets the InstanceID field's value.
func (*InstanceStatus) SetInstanceState ¶
func (s *InstanceStatus) SetInstanceState(v string) *InstanceStatus
SetInstanceState sets the InstanceState field's value.
func (InstanceStatus) String ¶
func (s InstanceStatus) String() string
String returns the string representation
type InternetAccessible ¶
type InternetAccessible struct { InternetChargeType *string `locationName:"InternetChargeType" type:"string"` InternetMaxBandwidthOut *int64 `locationName:"InternetMaxBandwidthOut" type:"integer"` PublicIpAssigned *bool `locationName:"PublicIpAssigned" type:"boolean"` // contains filtered or unexported fields }
func (InternetAccessible) GoString ¶
func (s InternetAccessible) GoString() string
GoString returns the string representation
func (*InternetAccessible) SetInternetChargeType ¶
func (s *InternetAccessible) SetInternetChargeType(v string) *InternetAccessible
SetInternetChargeType sets the InternetChargeType field's value.
func (*InternetAccessible) SetInternetMaxBandwidthOut ¶
func (s *InternetAccessible) SetInternetMaxBandwidthOut(v int64) *InternetAccessible
SetInternetMaxBandwidthOut sets the InternetMaxBandwidthOut field's value.
func (*InternetAccessible) SetPublicIpAssigned ¶
func (s *InternetAccessible) SetPublicIpAssigned(v bool) *InternetAccessible
SetPublicIpAssigned sets the PublicIpAssigned field's value.
func (InternetAccessible) String ¶
func (s InternetAccessible) String() string
String returns the string representation
type LoginSettings ¶
type LoginSettings struct { KeepImageLogin *bool `locationName:"KeepImageLogin" type:"boolean"` KeyIds []*string `locationName:"KeyIds" type:"list" flattened:"true"` Password *string `locationName:"Password" type:"string"` // contains filtered or unexported fields }
func (LoginSettings) GoString ¶
func (s LoginSettings) GoString() string
GoString returns the string representation
func (*LoginSettings) SetKeepImageLogin ¶
func (s *LoginSettings) SetKeepImageLogin(v bool) *LoginSettings
SetKeepImageLogin sets the KeepImageLogin field's value.
func (*LoginSettings) SetKeyIds ¶
func (s *LoginSettings) SetKeyIds(v []*string) *LoginSettings
SetKeyIds sets the KeyIds field's value.
func (*LoginSettings) SetPassword ¶
func (s *LoginSettings) SetPassword(v string) *LoginSettings
SetPassword sets the Password field's value.
func (LoginSettings) String ¶
func (s LoginSettings) String() string
String returns the string representation
type OperateInstancesResponse ¶
type OperateInstancesResponse struct { RequestID *string `locationName:"RequestId" type:"string"` // contains filtered or unexported fields }
func (OperateInstancesResponse) GoString ¶
func (s OperateInstancesResponse) GoString() string
GoString returns the string representation
func (*OperateInstancesResponse) SetRequestID ¶
func (s *OperateInstancesResponse) SetRequestID(v string) *OperateInstancesResponse
SetRequestID sets the RequestID field's value.
func (OperateInstancesResponse) String ¶
func (s OperateInstancesResponse) String() string
String returns the string representation
type Placement ¶
type Placement struct { HostIds []*string `locationName:"HostIds" type:"list"` ProjectId *int64 `locationName:"ProjectId" type:"integer"` Zone *string `locationName:"Zone" type:"string"` // contains filtered or unexported fields }
func (*Placement) SetHostIds ¶
SetHostIds sets the HostIds field's value.
func (*Placement) SetProjectId ¶
SetProjectId sets the ProjectId field's value.
type RebootInstancesInput ¶
type RebootInstancesInput struct { ForceReboot *bool `type:"boolean"` InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (RebootInstancesInput) GoString ¶
func (s RebootInstancesInput) GoString() string
GoString returns the string representation
func (*RebootInstancesInput) SetForceReboot ¶
func (s *RebootInstancesInput) SetForceReboot(v bool) *RebootInstancesInput
SetForceReboot sets the ForceReboot field's value.
func (*RebootInstancesInput) SetInstanceIds ¶
func (s *RebootInstancesInput) SetInstanceIds(v []*string) *RebootInstancesInput
SetInstanceIds sets the InstanceIds field's value.
func (RebootInstancesInput) String ¶
func (s RebootInstancesInput) String() string
String returns the string representation
type RebootInstancesOutput ¶
type RebootInstancesOutput struct { Response *OperateInstancesResponse `type:"structure"` // contains filtered or unexported fields }
func (RebootInstancesOutput) GoString ¶
func (s RebootInstancesOutput) GoString() string
GoString returns the string representation
func (*RebootInstancesOutput) SetResponse ¶
func (s *RebootInstancesOutput) SetResponse(v *OperateInstancesResponse) *RebootInstancesOutput
SetResponse sets the Response field's value.
func (RebootInstancesOutput) String ¶
func (s RebootInstancesOutput) String() string
String returns the string representation
type Response ¶
type Response struct { // test InstanceSet []*Instance `locationName:"InstanceSet" type:"list"` RequestID *string `locationName:"RequestId" type:"string"` TotalCount *int64 `locationName:"TotalCount" type:"integer"` // contains filtered or unexported fields }
Response item
func (*Response) SetInstanceSet ¶
SetInstanceSet sets the InstanceSet field's value.
func (*Response) SetRequestID ¶
SetRequestID sets the RequestID field's value.
func (*Response) SetTotalCount ¶
SetTotalCount sets the TotalCount field's value.
type RunInstancesInput ¶
type RunInstancesInput struct { ClientToken *string `locationName:"ClientToken" type:"string"` DataDisks []*DataDisk `locationName:"DataDisks" type:"list"` EnhancedService *EnhancedService `type:"structure"` HostName *string `type:"string"` ImageId *string `type:"string"` InstanceChargePrepaid *InstanceChargePrepaid `locationName:"InstanceChargePrepaid" type:"structure"` InstanceChargeType *string `locationName:"InstanceChargeType" type:"string"` InstanceCount *int64 `locationName:"InstanceCount" type:"integer"` InstanceName *string `locationName:"InstanceName" type:"string"` InstanceType *string `locationName:"InstanceType" type:"string"` InternetAccessible *InternetAccessible `locationName:"InternetAccessible" type:"structure"` LoginSettings *LoginSettings `locationName:"LoginSettings" type:"structure"` Placement *Placement `locationName:"Placement" type:"structure"` SecurityGroupIds []*string `locationName:"SecurityGroupIds" type:"list" flattened:"true"` SystemDisk *SystemDisk `locationName:"SystemDisk" type:"structure"` TagSpecification []*TagSpecification `type:"list"` UserData *string `type:"string"` VirtualPrivateCloud *VirtualPrivateCloud `locationName:"VirtualPrivateCloud" type:"structure" flattened:"true"` // contains filtered or unexported fields }
func (RunInstancesInput) GoString ¶
func (s RunInstancesInput) GoString() string
GoString returns the string representation
func (*RunInstancesInput) SetClientToken ¶
func (s *RunInstancesInput) SetClientToken(v string) *RunInstancesInput
SetClientToken sets the ClientToken field's value.
func (*RunInstancesInput) SetDataDisks ¶
func (s *RunInstancesInput) SetDataDisks(v []*DataDisk) *RunInstancesInput
SetDataDisks sets the DataDisks field's value.
func (*RunInstancesInput) SetEnhancedService ¶
func (s *RunInstancesInput) SetEnhancedService(v *EnhancedService) *RunInstancesInput
SetEnhancedService sets the EnhancedService field's value.
func (*RunInstancesInput) SetHostName ¶
func (s *RunInstancesInput) SetHostName(v string) *RunInstancesInput
SetHostName sets the HostName field's value.
func (*RunInstancesInput) SetImageId ¶
func (s *RunInstancesInput) SetImageId(v string) *RunInstancesInput
SetImageId sets the ImageId field's value.
func (*RunInstancesInput) SetInstanceChargePrepaid ¶
func (s *RunInstancesInput) SetInstanceChargePrepaid(v *InstanceChargePrepaid) *RunInstancesInput
SetInstanceChargePrepaid sets the InstanceChargePrepaid field's value.
func (*RunInstancesInput) SetInstanceChargeType ¶
func (s *RunInstancesInput) SetInstanceChargeType(v string) *RunInstancesInput
SetInstanceChargeType sets the InstanceChargeType field's value.
func (*RunInstancesInput) SetInstanceCount ¶
func (s *RunInstancesInput) SetInstanceCount(v int64) *RunInstancesInput
SetInstanceCount sets the InstanceCount field's value.
func (*RunInstancesInput) SetInstanceName ¶
func (s *RunInstancesInput) SetInstanceName(v string) *RunInstancesInput
SetInstanceName sets the InstanceName field's value.
func (*RunInstancesInput) SetInstanceType ¶
func (s *RunInstancesInput) SetInstanceType(v string) *RunInstancesInput
SetInstanceType sets the InstanceType field's value.
func (*RunInstancesInput) SetInternetAccessible ¶
func (s *RunInstancesInput) SetInternetAccessible(v *InternetAccessible) *RunInstancesInput
SetInternetAccessible sets the InternetAccessible field's value.
func (*RunInstancesInput) SetLoginSettings ¶
func (s *RunInstancesInput) SetLoginSettings(v *LoginSettings) *RunInstancesInput
SetLoginSettings sets the LoginSettings field's value.
func (*RunInstancesInput) SetPlacement ¶
func (s *RunInstancesInput) SetPlacement(v *Placement) *RunInstancesInput
SetPlacement sets the Placement field's value.
func (*RunInstancesInput) SetSecurityGroupIds ¶
func (s *RunInstancesInput) SetSecurityGroupIds(v []*string) *RunInstancesInput
SetSecurityGroupIds sets the SecurityGroupIds field's value.
func (*RunInstancesInput) SetSystemDisk ¶
func (s *RunInstancesInput) SetSystemDisk(v *SystemDisk) *RunInstancesInput
SetSystemDisk sets the SystemDisk field's value.
func (*RunInstancesInput) SetTagSpecification ¶
func (s *RunInstancesInput) SetTagSpecification(v []*TagSpecification) *RunInstancesInput
SetTagSpecification sets the TagSpecification field's value.
func (*RunInstancesInput) SetUserData ¶
func (s *RunInstancesInput) SetUserData(v string) *RunInstancesInput
SetUserData sets the UserData field's value.
func (*RunInstancesInput) SetVirtualPrivateCloud ¶
func (s *RunInstancesInput) SetVirtualPrivateCloud(v *VirtualPrivateCloud) *RunInstancesInput
SetVirtualPrivateCloud sets the VirtualPrivateCloud field's value.
func (RunInstancesInput) String ¶
func (s RunInstancesInput) String() string
String returns the string representation
type RunInstancesOutput ¶
type RunInstancesOutput struct { Response *RunInstancesResponse `type:"structure"` // contains filtered or unexported fields }
func (RunInstancesOutput) GoString ¶
func (s RunInstancesOutput) GoString() string
GoString returns the string representation
func (*RunInstancesOutput) SetResponse ¶
func (s *RunInstancesOutput) SetResponse(v *RunInstancesResponse) *RunInstancesOutput
SetResponse sets the Response field's value.
func (RunInstancesOutput) String ¶
func (s RunInstancesOutput) String() string
String returns the string representation
type RunInstancesResponse ¶
type RunInstancesResponse struct { InstanceIdSet []*string `type:"list"` RequestId *string `locationName:"InstanceIds" type:"string"` // contains filtered or unexported fields }
func (RunInstancesResponse) GoString ¶
func (s RunInstancesResponse) GoString() string
GoString returns the string representation
func (*RunInstancesResponse) SetInstanceIdSet ¶
func (s *RunInstancesResponse) SetInstanceIdSet(v []*string) *RunInstancesResponse
SetInstanceIdSet sets the InstanceIdSet field's value.
func (*RunInstancesResponse) SetRequestId ¶
func (s *RunInstancesResponse) SetRequestId(v string) *RunInstancesResponse
SetRequestId sets the RequestId field's value.
func (RunInstancesResponse) String ¶
func (s RunInstancesResponse) String() string
String returns the string representation
type RunMonitorServiceEnabled ¶
type RunMonitorServiceEnabled struct { Enabled *bool `locationName:"Enabled" type:"boolean"` // contains filtered or unexported fields }
func (RunMonitorServiceEnabled) GoString ¶
func (s RunMonitorServiceEnabled) GoString() string
GoString returns the string representation
func (*RunMonitorServiceEnabled) SetEnabled ¶
func (s *RunMonitorServiceEnabled) SetEnabled(v bool) *RunMonitorServiceEnabled
SetEnabled sets the Enabled field's value.
func (RunMonitorServiceEnabled) String ¶
func (s RunMonitorServiceEnabled) String() string
String returns the string representation
type RunSecurityServiceEnabled ¶
type RunSecurityServiceEnabled struct { Enabled *bool `locationName:"Enabled" type:"boolean"` // contains filtered or unexported fields }
func (RunSecurityServiceEnabled) GoString ¶
func (s RunSecurityServiceEnabled) GoString() string
GoString returns the string representation
func (*RunSecurityServiceEnabled) SetEnabled ¶
func (s *RunSecurityServiceEnabled) SetEnabled(v bool) *RunSecurityServiceEnabled
SetEnabled sets the Enabled field's value.
func (RunSecurityServiceEnabled) String ¶
func (s RunSecurityServiceEnabled) String() string
String returns the string representation
type StartInstancesInput ¶
type StartInstancesInput struct { InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (StartInstancesInput) GoString ¶
func (s StartInstancesInput) GoString() string
GoString returns the string representation
func (*StartInstancesInput) SetInstanceIds ¶
func (s *StartInstancesInput) SetInstanceIds(v []*string) *StartInstancesInput
SetInstanceIds sets the InstanceIds field's value.
func (StartInstancesInput) String ¶
func (s StartInstancesInput) String() string
String returns the string representation
type StartInstancesOutput ¶
type StartInstancesOutput struct { Response *OperateInstancesResponse `type:"structure"` // contains filtered or unexported fields }
func (StartInstancesOutput) GoString ¶
func (s StartInstancesOutput) GoString() string
GoString returns the string representation
func (*StartInstancesOutput) SetResponse ¶
func (s *StartInstancesOutput) SetResponse(v *OperateInstancesResponse) *StartInstancesOutput
SetResponse sets the Response field's value.
func (StartInstancesOutput) String ¶
func (s StartInstancesOutput) String() string
String returns the string representation
type StatusResponse ¶
type StatusResponse struct { InstanceStatusSet []*InstanceStatus `locationName:"InstanceStatusSet" type:"list"` RequestID *string `locationName:"RequestId" type:"string"` TotalCount *int64 `locationName:"TotalCount" type:"integer"` // contains filtered or unexported fields }
func (StatusResponse) GoString ¶
func (s StatusResponse) GoString() string
GoString returns the string representation
func (*StatusResponse) SetInstanceStatusSet ¶
func (s *StatusResponse) SetInstanceStatusSet(v []*InstanceStatus) *StatusResponse
SetInstanceStatusSet sets the InstanceStatusSet field's value.
func (*StatusResponse) SetRequestID ¶
func (s *StatusResponse) SetRequestID(v string) *StatusResponse
SetRequestID sets the RequestID field's value.
func (*StatusResponse) SetTotalCount ¶
func (s *StatusResponse) SetTotalCount(v int64) *StatusResponse
SetTotalCount sets the TotalCount field's value.
func (StatusResponse) String ¶
func (s StatusResponse) String() string
String returns the string representation
type StopInstancesInput ¶
type StopInstancesInput struct { ForceStop *bool `locationName:"ForceStop" type:"boolean"` InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"` StopType *string `type:"string"` StoppedMode *string `type:"string"` // contains filtered or unexported fields }
func (StopInstancesInput) GoString ¶
func (s StopInstancesInput) GoString() string
GoString returns the string representation
func (*StopInstancesInput) SetForceStop ¶
func (s *StopInstancesInput) SetForceStop(v bool) *StopInstancesInput
SetForceStop sets the ForceStop field's value.
func (*StopInstancesInput) SetInstanceIds ¶
func (s *StopInstancesInput) SetInstanceIds(v []*string) *StopInstancesInput
SetInstanceIds sets the InstanceIds field's value.
func (*StopInstancesInput) SetStopType ¶
func (s *StopInstancesInput) SetStopType(v string) *StopInstancesInput
SetStopType sets the StopType field's value.
func (*StopInstancesInput) SetStoppedMode ¶
func (s *StopInstancesInput) SetStoppedMode(v string) *StopInstancesInput
SetStoppedMode sets the StoppedMode field's value.
func (StopInstancesInput) String ¶
func (s StopInstancesInput) String() string
String returns the string representation
type StopInstancesOutput ¶
type StopInstancesOutput struct { Response *OperateInstancesResponse `type:"structure"` // contains filtered or unexported fields }
func (StopInstancesOutput) GoString ¶
func (s StopInstancesOutput) GoString() string
GoString returns the string representation
func (*StopInstancesOutput) SetResponse ¶
func (s *StopInstancesOutput) SetResponse(v *OperateInstancesResponse) *StopInstancesOutput
SetResponse sets the Response field's value.
func (StopInstancesOutput) String ¶
func (s StopInstancesOutput) String() string
String returns the string representation
type SystemDisk ¶
type SystemDisk struct { DiskId *string `locationName:"DiskId" type:"string"` DiskSize *int64 `locationName:"DiskSize" type:"integer"` DiskType *string `locationName:"DiskType" type:"string"` // contains filtered or unexported fields }
func (SystemDisk) GoString ¶
func (s SystemDisk) GoString() string
GoString returns the string representation
func (*SystemDisk) SetDiskId ¶
func (s *SystemDisk) SetDiskId(v string) *SystemDisk
SetDiskId sets the DiskId field's value.
func (*SystemDisk) SetDiskSize ¶
func (s *SystemDisk) SetDiskSize(v int64) *SystemDisk
SetDiskSize sets the DiskSize field's value.
func (*SystemDisk) SetDiskType ¶
func (s *SystemDisk) SetDiskType(v string) *SystemDisk
SetDiskType sets the DiskType field's value.
func (SystemDisk) String ¶
func (s SystemDisk) String() string
String returns the string representation
type Tag ¶
type TagSpecification ¶
type TagSpecification struct { ResourceType *string `type:"string"` Tags []*Tag `type:"list"` // contains filtered or unexported fields }
func (TagSpecification) GoString ¶
func (s TagSpecification) GoString() string
GoString returns the string representation
func (*TagSpecification) SetResourceType ¶
func (s *TagSpecification) SetResourceType(v string) *TagSpecification
SetResourceType sets the ResourceType field's value.
func (*TagSpecification) SetTags ¶
func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification
SetTags sets the Tags field's value.
func (TagSpecification) String ¶
func (s TagSpecification) String() string
String returns the string representation
type TerminateInstancesInput ¶
type TerminateInstancesInput struct { InstanceIds []*string `locationName:"InstanceIds" type:"list" flattened:"true"` // contains filtered or unexported fields }
func (TerminateInstancesInput) GoString ¶
func (s TerminateInstancesInput) GoString() string
GoString returns the string representation
func (*TerminateInstancesInput) SetInstanceIds ¶
func (s *TerminateInstancesInput) SetInstanceIds(v []*string) *TerminateInstancesInput
SetInstanceIds sets the InstanceIds field's value.
func (TerminateInstancesInput) String ¶
func (s TerminateInstancesInput) String() string
String returns the string representation
type TerminateInstancesOutput ¶
type TerminateInstancesOutput struct { Response *OperateInstancesResponse `type:"structure"` // contains filtered or unexported fields }
func (TerminateInstancesOutput) GoString ¶
func (s TerminateInstancesOutput) GoString() string
GoString returns the string representation
func (*TerminateInstancesOutput) SetResponse ¶
func (s *TerminateInstancesOutput) SetResponse(v *OperateInstancesResponse) *TerminateInstancesOutput
SetResponse sets the Response field's value.
func (TerminateInstancesOutput) String ¶
func (s TerminateInstancesOutput) String() string
String returns the string representation
type VirtualPrivateCloud ¶
type VirtualPrivateCloud struct { AsVpcGateway *bool `locationName:"AsVpcGateway" type:"boolean"` PrivateIpAddresses []*string `locationName:"PrivateIpAddresses" type:"list" flattened:"true"` SubnetId *string `locationName:"SubnetId" type:"string"` VpcId *string `locationName:"VpcId" type:"string"` // contains filtered or unexported fields }
func (VirtualPrivateCloud) GoString ¶
func (s VirtualPrivateCloud) GoString() string
GoString returns the string representation
func (*VirtualPrivateCloud) SetAsVpcGateway ¶
func (s *VirtualPrivateCloud) SetAsVpcGateway(v bool) *VirtualPrivateCloud
SetAsVpcGateway sets the AsVpcGateway field's value.
func (*VirtualPrivateCloud) SetPrivateIpAddresses ¶
func (s *VirtualPrivateCloud) SetPrivateIpAddresses(v []*string) *VirtualPrivateCloud
SetPrivateIpAddresses sets the PrivateIpAddresses field's value.
func (*VirtualPrivateCloud) SetSubnetId ¶
func (s *VirtualPrivateCloud) SetSubnetId(v string) *VirtualPrivateCloud
SetSubnetId sets the SubnetId field's value.
func (*VirtualPrivateCloud) SetVpcId ¶
func (s *VirtualPrivateCloud) SetVpcId(v string) *VirtualPrivateCloud
SetVpcId sets the VpcId field's value.
func (VirtualPrivateCloud) String ¶
func (s VirtualPrivateCloud) String() string
String returns the string representation