mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Upgrade AWS SDK to the latest version
This commit is contained in:
+154
-157
@@ -1,6 +1,5 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package workspaces provides a client for Amazon WorkSpaces.
|
||||
package workspaces
|
||||
|
||||
import (
|
||||
@@ -16,19 +15,18 @@ const opCreateTags = "CreateTags"
|
||||
|
||||
// CreateTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateTags for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateTags method directly
|
||||
// instead.
|
||||
// See CreateTags for more information on using the CreateTags
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateTagsRequest method.
|
||||
// req, resp := client.CreateTagsRequest(params)
|
||||
@@ -102,19 +100,18 @@ const opCreateWorkspaces = "CreateWorkspaces"
|
||||
|
||||
// CreateWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CreateWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See CreateWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the CreateWorkspaces method directly
|
||||
// instead.
|
||||
// See CreateWorkspaces for more information on using the CreateWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the CreateWorkspacesRequest method.
|
||||
// req, resp := client.CreateWorkspacesRequest(params)
|
||||
@@ -187,19 +184,18 @@ const opDeleteTags = "DeleteTags"
|
||||
|
||||
// DeleteTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DeleteTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DeleteTags for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DeleteTags method directly
|
||||
// instead.
|
||||
// See DeleteTags for more information on using the DeleteTags
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DeleteTagsRequest method.
|
||||
// req, resp := client.DeleteTagsRequest(params)
|
||||
@@ -270,19 +266,18 @@ const opDescribeTags = "DescribeTags"
|
||||
|
||||
// DescribeTagsRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeTags operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeTags for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeTags method directly
|
||||
// instead.
|
||||
// See DescribeTags for more information on using the DescribeTags
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeTagsRequest method.
|
||||
// req, resp := client.DescribeTagsRequest(params)
|
||||
@@ -350,19 +345,18 @@ const opDescribeWorkspaceBundles = "DescribeWorkspaceBundles"
|
||||
|
||||
// DescribeWorkspaceBundlesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeWorkspaceBundles operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeWorkspaceBundles for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeWorkspaceBundles method directly
|
||||
// instead.
|
||||
// See DescribeWorkspaceBundles for more information on using the DescribeWorkspaceBundles
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeWorkspaceBundlesRequest method.
|
||||
// req, resp := client.DescribeWorkspaceBundlesRequest(params)
|
||||
@@ -472,8 +466,12 @@ func (c *WorkSpaces) DescribeWorkspaceBundlesPages(input *DescribeWorkspaceBundl
|
||||
func (c *WorkSpaces) DescribeWorkspaceBundlesPagesWithContext(ctx aws.Context, input *DescribeWorkspaceBundlesInput, fn func(*DescribeWorkspaceBundlesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeWorkspaceBundlesRequest(&inCpy)
|
||||
var inCpy *DescribeWorkspaceBundlesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeWorkspaceBundlesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -491,19 +489,18 @@ const opDescribeWorkspaceDirectories = "DescribeWorkspaceDirectories"
|
||||
|
||||
// DescribeWorkspaceDirectoriesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeWorkspaceDirectories operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeWorkspaceDirectories for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeWorkspaceDirectories method directly
|
||||
// instead.
|
||||
// See DescribeWorkspaceDirectories for more information on using the DescribeWorkspaceDirectories
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeWorkspaceDirectoriesRequest method.
|
||||
// req, resp := client.DescribeWorkspaceDirectoriesRequest(params)
|
||||
@@ -611,8 +608,12 @@ func (c *WorkSpaces) DescribeWorkspaceDirectoriesPages(input *DescribeWorkspaceD
|
||||
func (c *WorkSpaces) DescribeWorkspaceDirectoriesPagesWithContext(ctx aws.Context, input *DescribeWorkspaceDirectoriesInput, fn func(*DescribeWorkspaceDirectoriesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeWorkspaceDirectoriesRequest(&inCpy)
|
||||
var inCpy *DescribeWorkspaceDirectoriesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeWorkspaceDirectoriesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -630,19 +631,18 @@ const opDescribeWorkspaces = "DescribeWorkspaces"
|
||||
|
||||
// DescribeWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeWorkspaces method directly
|
||||
// instead.
|
||||
// See DescribeWorkspaces for more information on using the DescribeWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeWorkspacesRequest method.
|
||||
// req, resp := client.DescribeWorkspacesRequest(params)
|
||||
@@ -754,8 +754,12 @@ func (c *WorkSpaces) DescribeWorkspacesPages(input *DescribeWorkspacesInput, fn
|
||||
func (c *WorkSpaces) DescribeWorkspacesPagesWithContext(ctx aws.Context, input *DescribeWorkspacesInput, fn func(*DescribeWorkspacesOutput, bool) bool, opts ...request.Option) error {
|
||||
p := request.Pagination{
|
||||
NewRequest: func() (*request.Request, error) {
|
||||
inCpy := *input
|
||||
req, _ := c.DescribeWorkspacesRequest(&inCpy)
|
||||
var inCpy *DescribeWorkspacesInput
|
||||
if input != nil {
|
||||
tmp := *input
|
||||
inCpy = &tmp
|
||||
}
|
||||
req, _ := c.DescribeWorkspacesRequest(inCpy)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return req, nil
|
||||
@@ -773,19 +777,18 @@ const opDescribeWorkspacesConnectionStatus = "DescribeWorkspacesConnectionStatus
|
||||
|
||||
// DescribeWorkspacesConnectionStatusRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the DescribeWorkspacesConnectionStatus operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See DescribeWorkspacesConnectionStatus for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the DescribeWorkspacesConnectionStatus method directly
|
||||
// instead.
|
||||
// See DescribeWorkspacesConnectionStatus for more information on using the DescribeWorkspacesConnectionStatus
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the DescribeWorkspacesConnectionStatusRequest method.
|
||||
// req, resp := client.DescribeWorkspacesConnectionStatusRequest(params)
|
||||
@@ -853,19 +856,18 @@ const opModifyWorkspaceProperties = "ModifyWorkspaceProperties"
|
||||
|
||||
// ModifyWorkspacePropertiesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the ModifyWorkspaceProperties operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See ModifyWorkspaceProperties for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the ModifyWorkspaceProperties method directly
|
||||
// instead.
|
||||
// See ModifyWorkspaceProperties for more information on using the ModifyWorkspaceProperties
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the ModifyWorkspacePropertiesRequest method.
|
||||
// req, resp := client.ModifyWorkspacePropertiesRequest(params)
|
||||
@@ -894,7 +896,7 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp
|
||||
|
||||
// ModifyWorkspaceProperties API operation for Amazon WorkSpaces.
|
||||
//
|
||||
// Modifies the WorkSpace properties, including the RunningMode and AutoStop
|
||||
// Modifies the WorkSpace properties, including the running mode and AutoStop
|
||||
// time.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
@@ -909,20 +911,21 @@ func (c *WorkSpaces) ModifyWorkspacePropertiesRequest(input *ModifyWorkspaceProp
|
||||
// One or more parameter values are not valid.
|
||||
//
|
||||
// * ErrCodeInvalidResourceStateException "InvalidResourceStateException"
|
||||
// The specified WorkSpace has an invalid state for this operation.
|
||||
// The state of the WorkSpace is not valid for this operation.
|
||||
//
|
||||
// * ErrCodeOperationInProgressException "OperationInProgressException"
|
||||
// The properties of this WorkSpace are currently being modified. Try again
|
||||
// in a moment.
|
||||
//
|
||||
// * ErrCodeUnsupportedWorkspaceConfigurationException "UnsupportedWorkspaceConfigurationException"
|
||||
// The WorkSpace does not have the supported configuration for this operation.
|
||||
// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide).
|
||||
// The configuration of this WorkSpace is not supported for this operation.
|
||||
// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide/).
|
||||
//
|
||||
// * ErrCodeResourceNotFoundException "ResourceNotFoundException"
|
||||
// The resource could not be found.
|
||||
//
|
||||
// * ErrCodeAccessDeniedException "AccessDeniedException"
|
||||
// The user is not authorized to access a resource.
|
||||
//
|
||||
// * ErrCodeResourceUnavailableException "ResourceUnavailableException"
|
||||
// The specified resource is not available.
|
||||
@@ -953,19 +956,18 @@ const opRebootWorkspaces = "RebootWorkspaces"
|
||||
|
||||
// RebootWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RebootWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RebootWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RebootWorkspaces method directly
|
||||
// instead.
|
||||
// See RebootWorkspaces for more information on using the RebootWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RebootWorkspacesRequest method.
|
||||
// req, resp := client.RebootWorkspacesRequest(params)
|
||||
@@ -1033,19 +1035,18 @@ const opRebuildWorkspaces = "RebuildWorkspaces"
|
||||
|
||||
// RebuildWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the RebuildWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See RebuildWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the RebuildWorkspaces method directly
|
||||
// instead.
|
||||
// See RebuildWorkspaces for more information on using the RebuildWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the RebuildWorkspacesRequest method.
|
||||
// req, resp := client.RebuildWorkspacesRequest(params)
|
||||
@@ -1126,19 +1127,18 @@ const opStartWorkspaces = "StartWorkspaces"
|
||||
|
||||
// StartWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StartWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See StartWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StartWorkspaces method directly
|
||||
// instead.
|
||||
// See StartWorkspaces for more information on using the StartWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StartWorkspacesRequest method.
|
||||
// req, resp := client.StartWorkspacesRequest(params)
|
||||
@@ -1167,8 +1167,8 @@ func (c *WorkSpaces) StartWorkspacesRequest(input *StartWorkspacesInput) (req *r
|
||||
|
||||
// StartWorkspaces API operation for Amazon WorkSpaces.
|
||||
//
|
||||
// Starts the specified WorkSpaces. The API only works with WorkSpaces that
|
||||
// have RunningMode configured as AutoStop and the State set to “STOPPED.”
|
||||
// Starts the specified WorkSpaces. The WorkSpaces must have a running mode
|
||||
// of AutoStop and a state of STOPPED.
|
||||
//
|
||||
// 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
|
||||
@@ -1202,19 +1202,18 @@ const opStopWorkspaces = "StopWorkspaces"
|
||||
|
||||
// StopWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the StopWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See StopWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the StopWorkspaces method directly
|
||||
// instead.
|
||||
// See StopWorkspaces for more information on using the StopWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the StopWorkspacesRequest method.
|
||||
// req, resp := client.StopWorkspacesRequest(params)
|
||||
@@ -1243,9 +1242,8 @@ func (c *WorkSpaces) StopWorkspacesRequest(input *StopWorkspacesInput) (req *req
|
||||
|
||||
// StopWorkspaces API operation for Amazon WorkSpaces.
|
||||
//
|
||||
// Stops the specified WorkSpaces. The API only works with WorkSpaces that have
|
||||
// RunningMode configured as AutoStop and the State set to AVAILABLE, IMPAIRED,
|
||||
// UNHEALTHY, or ERROR.
|
||||
// Stops the specified WorkSpaces. The WorkSpaces must have a running mode of
|
||||
// AutoStop and a state of AVAILABLE, IMPAIRED, UNHEALTHY, or ERROR.
|
||||
//
|
||||
// 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
|
||||
@@ -1279,19 +1277,18 @@ const opTerminateWorkspaces = "TerminateWorkspaces"
|
||||
|
||||
// TerminateWorkspacesRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the TerminateWorkspaces operation. The "output" return
|
||||
// value can be used to capture response data after the request's "Send" method
|
||||
// is called.
|
||||
// value will be populated with the request's response once the request complets
|
||||
// successfuly.
|
||||
//
|
||||
// See TerminateWorkspaces for usage and error information.
|
||||
// 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.
|
||||
//
|
||||
// Creating a request object using this method should be used when you want to inject
|
||||
// custom logic into the request's lifecycle using a custom handler, or if you want to
|
||||
// access properties on the request object before or after sending the request. If
|
||||
// you just want the service response, call the TerminateWorkspaces method directly
|
||||
// instead.
|
||||
// See TerminateWorkspaces for more information on using the TerminateWorkspaces
|
||||
// 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.
|
||||
//
|
||||
// Note: You must call the "Send" method on the returned request object in order
|
||||
// to execute the request.
|
||||
//
|
||||
// // Example sending a request using the TerminateWorkspacesRequest method.
|
||||
// req, resp := client.TerminateWorkspacesRequest(params)
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package workspaces provides the client and types for making API
|
||||
// requests to Amazon WorkSpaces.
|
||||
//
|
||||
// This reference provides detailed information about the Amazon WorkSpaces
|
||||
// operations.
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08 for more information on this service.
|
||||
//
|
||||
// See workspaces package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/workspaces/
|
||||
//
|
||||
// Using the Client
|
||||
//
|
||||
// To Amazon WorkSpaces 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 aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon WorkSpaces client WorkSpaces for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/workspaces/#New
|
||||
package workspaces
|
||||
+6
-4
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package workspaces
|
||||
|
||||
@@ -6,6 +6,8 @@ const (
|
||||
|
||||
// ErrCodeAccessDeniedException for service response error code
|
||||
// "AccessDeniedException".
|
||||
//
|
||||
// The user is not authorized to access a resource.
|
||||
ErrCodeAccessDeniedException = "AccessDeniedException"
|
||||
|
||||
// ErrCodeInvalidParameterValuesException for service response error code
|
||||
@@ -17,7 +19,7 @@ const (
|
||||
// ErrCodeInvalidResourceStateException for service response error code
|
||||
// "InvalidResourceStateException".
|
||||
//
|
||||
// The specified WorkSpace has an invalid state for this operation.
|
||||
// The state of the WorkSpace is not valid for this operation.
|
||||
ErrCodeInvalidResourceStateException = "InvalidResourceStateException"
|
||||
|
||||
// ErrCodeOperationInProgressException for service response error code
|
||||
@@ -48,7 +50,7 @@ const (
|
||||
// ErrCodeUnsupportedWorkspaceConfigurationException for service response error code
|
||||
// "UnsupportedWorkspaceConfigurationException".
|
||||
//
|
||||
// The WorkSpace does not have the supported configuration for this operation.
|
||||
// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide).
|
||||
// The configuration of this WorkSpace is not supported for this operation.
|
||||
// For more information, see the Amazon WorkSpaces Administration Guide (http://docs.aws.amazon.com/workspaces/latest/adminguide/).
|
||||
ErrCodeUnsupportedWorkspaceConfigurationException = "UnsupportedWorkspaceConfigurationException"
|
||||
)
|
||||
|
||||
-392
@@ -1,392 +0,0 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
|
||||
package workspaces_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"github.com/aws/aws-sdk-go/service/workspaces"
|
||||
)
|
||||
|
||||
var _ time.Duration
|
||||
var _ bytes.Buffer
|
||||
|
||||
func ExampleWorkSpaces_CreateTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.CreateTagsInput{
|
||||
ResourceId: aws.String("NonEmptyString"), // Required
|
||||
Tags: []*workspaces.Tag{ // Required
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_CreateWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.CreateWorkspacesInput{
|
||||
Workspaces: []*workspaces.WorkspaceRequest{ // Required
|
||||
{ // Required
|
||||
BundleId: aws.String("BundleId"), // Required
|
||||
DirectoryId: aws.String("DirectoryId"), // Required
|
||||
UserName: aws.String("UserName"), // Required
|
||||
RootVolumeEncryptionEnabled: aws.Bool(true),
|
||||
Tags: []*workspaces.Tag{
|
||||
{ // Required
|
||||
Key: aws.String("TagKey"), // Required
|
||||
Value: aws.String("TagValue"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
UserVolumeEncryptionEnabled: aws.Bool(true),
|
||||
VolumeEncryptionKey: aws.String("VolumeEncryptionKey"),
|
||||
WorkspaceProperties: &workspaces.WorkspaceProperties{
|
||||
RunningMode: aws.String("RunningMode"),
|
||||
RunningModeAutoStopTimeoutInMinutes: aws.Int64(1),
|
||||
},
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.CreateWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_DeleteTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.DeleteTagsInput{
|
||||
ResourceId: aws.String("NonEmptyString"), // Required
|
||||
TagKeys: []*string{ // Required
|
||||
aws.String("NonEmptyString"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DeleteTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_DescribeTags() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.DescribeTagsInput{
|
||||
ResourceId: aws.String("NonEmptyString"), // Required
|
||||
}
|
||||
resp, err := svc.DescribeTags(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_DescribeWorkspaceBundles() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.DescribeWorkspaceBundlesInput{
|
||||
BundleIds: []*string{
|
||||
aws.String("BundleId"), // Required
|
||||
// More values...
|
||||
},
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
Owner: aws.String("BundleOwner"),
|
||||
}
|
||||
resp, err := svc.DescribeWorkspaceBundles(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_DescribeWorkspaceDirectories() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.DescribeWorkspaceDirectoriesInput{
|
||||
DirectoryIds: []*string{
|
||||
aws.String("DirectoryId"), // Required
|
||||
// More values...
|
||||
},
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
}
|
||||
resp, err := svc.DescribeWorkspaceDirectories(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_DescribeWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.DescribeWorkspacesInput{
|
||||
BundleId: aws.String("BundleId"),
|
||||
DirectoryId: aws.String("DirectoryId"),
|
||||
Limit: aws.Int64(1),
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
UserName: aws.String("UserName"),
|
||||
WorkspaceIds: []*string{
|
||||
aws.String("WorkspaceId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_DescribeWorkspacesConnectionStatus() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.DescribeWorkspacesConnectionStatusInput{
|
||||
NextToken: aws.String("PaginationToken"),
|
||||
WorkspaceIds: []*string{
|
||||
aws.String("WorkspaceId"), // Required
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.DescribeWorkspacesConnectionStatus(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_ModifyWorkspaceProperties() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.ModifyWorkspacePropertiesInput{
|
||||
WorkspaceId: aws.String("WorkspaceId"), // Required
|
||||
WorkspaceProperties: &workspaces.WorkspaceProperties{ // Required
|
||||
RunningMode: aws.String("RunningMode"),
|
||||
RunningModeAutoStopTimeoutInMinutes: aws.Int64(1),
|
||||
},
|
||||
}
|
||||
resp, err := svc.ModifyWorkspaceProperties(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_RebootWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.RebootWorkspacesInput{
|
||||
RebootWorkspaceRequests: []*workspaces.RebootRequest{ // Required
|
||||
{ // Required
|
||||
WorkspaceId: aws.String("WorkspaceId"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RebootWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_RebuildWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.RebuildWorkspacesInput{
|
||||
RebuildWorkspaceRequests: []*workspaces.RebuildRequest{ // Required
|
||||
{ // Required
|
||||
WorkspaceId: aws.String("WorkspaceId"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.RebuildWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_StartWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.StartWorkspacesInput{
|
||||
StartWorkspaceRequests: []*workspaces.StartRequest{ // Required
|
||||
{ // Required
|
||||
WorkspaceId: aws.String("WorkspaceId"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.StartWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_StopWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.StopWorkspacesInput{
|
||||
StopWorkspaceRequests: []*workspaces.StopRequest{ // Required
|
||||
{ // Required
|
||||
WorkspaceId: aws.String("WorkspaceId"),
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.StopWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
|
||||
func ExampleWorkSpaces_TerminateWorkspaces() {
|
||||
sess := session.Must(session.NewSession())
|
||||
|
||||
svc := workspaces.New(sess)
|
||||
|
||||
params := &workspaces.TerminateWorkspacesInput{
|
||||
TerminateWorkspaceRequests: []*workspaces.TerminateRequest{ // Required
|
||||
{ // Required
|
||||
WorkspaceId: aws.String("WorkspaceId"), // Required
|
||||
},
|
||||
// More values...
|
||||
},
|
||||
}
|
||||
resp, err := svc.TerminateWorkspaces(params)
|
||||
|
||||
if err != nil {
|
||||
// Print the error, cast err to awserr.Error to get the Code and
|
||||
// Message from an error.
|
||||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
// Pretty-print the response data.
|
||||
fmt.Println(resp)
|
||||
}
|
||||
+7
-6
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package workspaces
|
||||
|
||||
@@ -11,11 +11,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// This reference provides detailed information about the Amazon WorkSpaces
|
||||
// operations.
|
||||
// The service client's operations are safe to be used concurrently.
|
||||
// It is not safe to mutate any of the client's properties though.
|
||||
// Please also see https://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08
|
||||
// WorkSpaces provides the API operation methods for making requests to
|
||||
// Amazon WorkSpaces. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// WorkSpaces methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type WorkSpaces struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package workspacesiface provides an interface to enable mocking the Amazon WorkSpaces service client
|
||||
// for testing your code.
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
//
|
||||
// The best way to use this interface is so the SDK's service client's calls
|
||||
// can be stubbed out for unit testing your code with the SDK without needing
|
||||
// to inject custom request handlers into the the SDK's request pipeline.
|
||||
// to inject custom request handlers into the SDK's request pipeline.
|
||||
//
|
||||
// // myFunc uses an SDK service client to make a request to
|
||||
// // Amazon WorkSpaces.
|
||||
|
||||
Reference in New Issue
Block a user