Documentation ¶
Overview ¶
Package storagegateway provides a client for AWS Storage Gateway.
Index ¶
- type ActivateGatewayInput
- type ActivateGatewayOutput
- type AddCacheInput
- type AddCacheOutput
- type AddUploadBufferInput
- type AddUploadBufferOutput
- type AddWorkingStorageInput
- type AddWorkingStorageOutput
- type CachediSCSIVolume
- type CancelArchivalInput
- type CancelArchivalOutput
- type CancelRetrievalInput
- type CancelRetrievalOutput
- type ChapInfo
- type CreateCachediSCSIVolumeInput
- type CreateCachediSCSIVolumeOutput
- type CreateSnapshotFromVolumeRecoveryPointInput
- type CreateSnapshotFromVolumeRecoveryPointOutput
- type CreateSnapshotInput
- type CreateSnapshotOutput
- type CreateStorediSCSIVolumeInput
- type CreateStorediSCSIVolumeOutput
- type CreateTapesInput
- type CreateTapesOutput
- type DeleteBandwidthRateLimitInput
- type DeleteBandwidthRateLimitOutput
- type DeleteChapCredentialsInput
- type DeleteChapCredentialsOutput
- type DeleteGatewayInput
- type DeleteGatewayOutput
- type DeleteSnapshotScheduleInput
- type DeleteSnapshotScheduleOutput
- type DeleteTapeArchiveInput
- type DeleteTapeArchiveOutput
- type DeleteTapeInput
- type DeleteTapeOutput
- type DeleteVolumeInput
- type DeleteVolumeOutput
- type DescribeBandwidthRateLimitInput
- type DescribeBandwidthRateLimitOutput
- type DescribeCacheInput
- type DescribeCacheOutput
- type DescribeCachediSCSIVolumesInput
- type DescribeCachediSCSIVolumesOutput
- type DescribeChapCredentialsInput
- type DescribeChapCredentialsOutput
- type DescribeGatewayInformationInput
- type DescribeGatewayInformationOutput
- type DescribeMaintenanceStartTimeInput
- type DescribeMaintenanceStartTimeOutput
- type DescribeSnapshotScheduleInput
- type DescribeSnapshotScheduleOutput
- type DescribeStorediSCSIVolumesInput
- type DescribeStorediSCSIVolumesOutput
- type DescribeTapeArchivesInput
- type DescribeTapeArchivesOutput
- type DescribeTapeRecoveryPointsInput
- type DescribeTapeRecoveryPointsOutput
- type DescribeTapesInput
- type DescribeTapesOutput
- type DescribeUploadBufferInput
- type DescribeUploadBufferOutput
- type DescribeVTLDevicesInput
- type DescribeVTLDevicesOutput
- type DescribeWorkingStorageInput
- type DescribeWorkingStorageOutput
- type DeviceiSCSIAttributes
- type DisableGatewayInput
- type DisableGatewayOutput
- type Disk
- type Error
- type GatewayInfo
- type ListGatewaysInput
- type ListGatewaysOutput
- type ListLocalDisksInput
- type ListLocalDisksOutput
- type ListVolumeInitiatorsInput
- type ListVolumeInitiatorsOutput
- type ListVolumeRecoveryPointsInput
- type ListVolumeRecoveryPointsOutput
- type ListVolumesInput
- type ListVolumesOutput
- type NetworkInterface
- type ResetCacheInput
- type ResetCacheOutput
- type RetrieveTapeArchiveInput
- type RetrieveTapeArchiveOutput
- type RetrieveTapeRecoveryPointInput
- type RetrieveTapeRecoveryPointOutput
- type ShutdownGatewayInput
- type ShutdownGatewayOutput
- type StartGatewayInput
- type StartGatewayOutput
- type StorageGateway
- func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error)
- func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *aws.Request, output *ActivateGatewayOutput)
- func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error)
- func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *aws.Request, output *AddCacheOutput)
- func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error)
- func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *aws.Request, output *AddUploadBufferOutput)
- func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error)
- func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *aws.Request, output *AddWorkingStorageOutput)
- func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error)
- func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *aws.Request, output *CancelArchivalOutput)
- func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error)
- func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *aws.Request, output *CancelRetrievalOutput)
- func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error)
- func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *aws.Request, output *CreateCachediSCSIVolumeOutput)
- func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error)
- func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error)
- func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *aws.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput)
- func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *aws.Request, output *CreateSnapshotOutput)
- func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error)
- func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *aws.Request, output *CreateStorediSCSIVolumeOutput)
- func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error)
- func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *aws.Request, output *CreateTapesOutput)
- func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error)
- func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *aws.Request, output *DeleteBandwidthRateLimitOutput)
- func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error)
- func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *aws.Request, output *DeleteChapCredentialsOutput)
- func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error)
- func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *aws.Request, output *DeleteGatewayOutput)
- func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error)
- func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *aws.Request, output *DeleteSnapshotScheduleOutput)
- func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error)
- func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error)
- func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *aws.Request, output *DeleteTapeArchiveOutput)
- func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *aws.Request, output *DeleteTapeOutput)
- func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error)
- func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *aws.Request, output *DeleteVolumeOutput)
- func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error)
- func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *aws.Request, output *DescribeBandwidthRateLimitOutput)
- func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error)
- func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *aws.Request, output *DescribeCacheOutput)
- func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error)
- func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *aws.Request, output *DescribeCachediSCSIVolumesOutput)
- func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error)
- func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *aws.Request, output *DescribeChapCredentialsOutput)
- func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error)
- func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *aws.Request, output *DescribeGatewayInformationOutput)
- func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error)
- func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *aws.Request, output *DescribeMaintenanceStartTimeOutput)
- func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error)
- func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *aws.Request, output *DescribeSnapshotScheduleOutput)
- func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error)
- func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *aws.Request, output *DescribeStorediSCSIVolumesOutput)
- func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error)
- func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, ...) error
- func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *aws.Request, output *DescribeTapeArchivesOutput)
- func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error)
- func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, ...) error
- func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *aws.Request, output *DescribeTapeRecoveryPointsOutput)
- func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error)
- func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, ...) error
- func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *aws.Request, output *DescribeTapesOutput)
- func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error)
- func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *aws.Request, output *DescribeUploadBufferOutput)
- func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error)
- func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, ...) error
- func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *aws.Request, output *DescribeVTLDevicesOutput)
- func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error)
- func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *aws.Request, output *DescribeWorkingStorageOutput)
- func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error)
- func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *aws.Request, output *DisableGatewayOutput)
- func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error)
- func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, ...) error
- func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *aws.Request, output *ListGatewaysOutput)
- func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error)
- func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *aws.Request, output *ListLocalDisksOutput)
- func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error)
- func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *aws.Request, output *ListVolumeInitiatorsOutput)
- func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error)
- func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *aws.Request, output *ListVolumeRecoveryPointsOutput)
- func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error)
- func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, ...) error
- func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *aws.Request, output *ListVolumesOutput)
- func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error)
- func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *aws.Request, output *ResetCacheOutput)
- func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error)
- func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *aws.Request, output *RetrieveTapeArchiveOutput)
- func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error)
- func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *aws.Request, output *RetrieveTapeRecoveryPointOutput)
- func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error)
- func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *aws.Request, output *ShutdownGatewayOutput)
- func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error)
- func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *aws.Request, output *StartGatewayOutput)
- func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error)
- func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *aws.Request, output *UpdateBandwidthRateLimitOutput)
- func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error)
- func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *aws.Request, output *UpdateChapCredentialsOutput)
- func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error)
- func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *aws.Request, output *UpdateGatewayInformationOutput)
- func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error)
- func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *aws.Request, output *UpdateGatewaySoftwareNowOutput)
- func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error)
- func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintenanceStartTimeInput) (req *aws.Request, output *UpdateMaintenanceStartTimeOutput)
- func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error)
- func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotScheduleInput) (req *aws.Request, output *UpdateSnapshotScheduleOutput)
- func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error)
- func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeInput) (req *aws.Request, output *UpdateVTLDeviceTypeOutput)
- type StorediSCSIVolume
- type Tape
- type TapeArchive
- type TapeRecoveryPointInfo
- type UpdateBandwidthRateLimitInput
- type UpdateBandwidthRateLimitOutput
- type UpdateChapCredentialsInput
- type UpdateChapCredentialsOutput
- type UpdateGatewayInformationInput
- type UpdateGatewayInformationOutput
- type UpdateGatewaySoftwareNowInput
- type UpdateGatewaySoftwareNowOutput
- type UpdateMaintenanceStartTimeInput
- type UpdateMaintenanceStartTimeOutput
- type UpdateSnapshotScheduleInput
- type UpdateSnapshotScheduleOutput
- type UpdateVTLDeviceTypeInput
- type UpdateVTLDeviceTypeOutput
- type VTLDevice
- type VolumeInfo
- type VolumeRecoveryPointInfo
- type VolumeiSCSIAttributes
Examples ¶
- StorageGateway.ActivateGateway
- StorageGateway.AddCache
- StorageGateway.AddUploadBuffer
- StorageGateway.AddWorkingStorage
- StorageGateway.CancelArchival
- StorageGateway.CancelRetrieval
- StorageGateway.CreateCachediSCSIVolume
- StorageGateway.CreateSnapshot
- StorageGateway.CreateSnapshotFromVolumeRecoveryPoint
- StorageGateway.CreateStorediSCSIVolume
- StorageGateway.CreateTapes
- StorageGateway.DeleteBandwidthRateLimit
- StorageGateway.DeleteChapCredentials
- StorageGateway.DeleteGateway
- StorageGateway.DeleteSnapshotSchedule
- StorageGateway.DeleteTape
- StorageGateway.DeleteTapeArchive
- StorageGateway.DeleteVolume
- StorageGateway.DescribeBandwidthRateLimit
- StorageGateway.DescribeCache
- StorageGateway.DescribeCachediSCSIVolumes
- StorageGateway.DescribeChapCredentials
- StorageGateway.DescribeGatewayInformation
- StorageGateway.DescribeMaintenanceStartTime
- StorageGateway.DescribeSnapshotSchedule
- StorageGateway.DescribeStorediSCSIVolumes
- StorageGateway.DescribeTapeArchives
- StorageGateway.DescribeTapeRecoveryPoints
- StorageGateway.DescribeTapes
- StorageGateway.DescribeUploadBuffer
- StorageGateway.DescribeVTLDevices
- StorageGateway.DescribeWorkingStorage
- StorageGateway.DisableGateway
- StorageGateway.ListGateways
- StorageGateway.ListLocalDisks
- StorageGateway.ListVolumeInitiators
- StorageGateway.ListVolumeRecoveryPoints
- StorageGateway.ListVolumes
- StorageGateway.ResetCache
- StorageGateway.RetrieveTapeArchive
- StorageGateway.RetrieveTapeRecoveryPoint
- StorageGateway.ShutdownGateway
- StorageGateway.StartGateway
- StorageGateway.UpdateBandwidthRateLimit
- StorageGateway.UpdateChapCredentials
- StorageGateway.UpdateGatewayInformation
- StorageGateway.UpdateGatewaySoftwareNow
- StorageGateway.UpdateMaintenanceStartTime
- StorageGateway.UpdateSnapshotSchedule
- StorageGateway.UpdateVTLDeviceType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivateGatewayInput ¶
type ActivateGatewayInput struct { // Your gateway activation key. You can obtain the activation key by sending // an HTTP GET request with redirects enabled to the gateway IP address (port // 80). The redirect URL returned in the response provides you the activation // key for your gateway in the query string parameter activationKey. It may // also include other activation-related parameters, however, these are merely // defaults -- the arguments you pass to the ActivateGateway API call determine // the actual configuration of your gateway. ActivationKey *string `type:"string" required:"true"` // A unique identifier for your gateway. This name becomes part of the gateway // Amazon Resources Name (ARN) which is what you use as an input to other operations. GatewayName *string `type:"string" required:"true"` // One of the values that indicates the region where you want to store the snapshot // backups. The gateway region specified must be the same region as the region // in your Host header in the request. For more information about available // regions and endpoints for AWS Storage Gateway, see Regions and Endpoints // (http://docs.aws.amazon.com/general/latest/gr/rande.html#sg_region) in the // Amazon Web Services Glossary. // // Valid Values: "us-east-1", "us-west-1", "us-west-2", "eu-west-1", "eu-central-1", // "ap-northeast-1", "ap-southeast-1", "ap-southeast-2", "sa-east-1" GatewayRegion *string `type:"string" required:"true"` // One of the values that indicates the time zone you want to set for the gateway. // The time zone is used, for example, for scheduling snapshots and your gateway's // maintenance schedule. GatewayTimezone *string `type:"string" required:"true"` // One of the values that defines the type of gateway to activate. The type // specified is critical to all later functions of the gateway and cannot be // changed after activation. The default value is STORED. GatewayType *string `type:"string"` // The value that indicates the type of medium changer to use for gateway-VTL. // This field is optional. // // Valid Values: "STK-L700", "AWS-Gateway-VTL" MediumChangerType *string `type:"string"` // The value that indicates the type of tape drive to use for gateway-VTL. This // field is optional. // // Valid Values: "IBM-ULT3580-TD5" TapeDriveType *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
ActivateGatewayInput$ActivationKey GatewayName ActivateGatewayInput$GatewayRegion ActivateGatewayInput$GatewayTimezone ActivateGatewayInput$GatewayType ActivateGatewayInput$TapeDriveType ActivateGatewayInput$MediumChangerType
func (ActivateGatewayInput) GoString ¶ added in v0.6.5
func (s ActivateGatewayInput) GoString() string
GoString returns the string representation
func (ActivateGatewayInput) String ¶ added in v0.6.5
func (s ActivateGatewayInput) String() string
String returns the string representation
type ActivateGatewayOutput ¶
type ActivateGatewayOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
AWS Storage Gateway returns the Amazon Resource Name (ARN) of the activated gateway. It is a string made of information such as your account, gateway name, and region. This ARN is used to reference the gateway in other API operations as well as resource-based authorization.
func (ActivateGatewayOutput) GoString ¶ added in v0.6.5
func (s ActivateGatewayOutput) GoString() string
GoString returns the string representation
func (ActivateGatewayOutput) String ¶ added in v0.6.5
func (s ActivateGatewayOutput) String() string
String returns the string representation
type AddCacheInput ¶
type AddCacheInput struct { DiskIDs []*string `locationName:"DiskIds" type:"list" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (AddCacheInput) GoString ¶ added in v0.6.5
func (s AddCacheInput) GoString() string
GoString returns the string representation
func (AddCacheInput) String ¶ added in v0.6.5
func (s AddCacheInput) String() string
String returns the string representation
type AddCacheOutput ¶
type AddCacheOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
func (AddCacheOutput) GoString ¶ added in v0.6.5
func (s AddCacheOutput) GoString() string
GoString returns the string representation
func (AddCacheOutput) String ¶ added in v0.6.5
func (s AddCacheOutput) String() string
String returns the string representation
type AddUploadBufferInput ¶
type AddUploadBufferInput struct { DiskIDs []*string `locationName:"DiskIds" type:"list" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (AddUploadBufferInput) GoString ¶ added in v0.6.5
func (s AddUploadBufferInput) GoString() string
GoString returns the string representation
func (AddUploadBufferInput) String ¶ added in v0.6.5
func (s AddUploadBufferInput) String() string
String returns the string representation
type AddUploadBufferOutput ¶
type AddUploadBufferOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
func (AddUploadBufferOutput) GoString ¶ added in v0.6.5
func (s AddUploadBufferOutput) GoString() string
GoString returns the string representation
func (AddUploadBufferOutput) String ¶ added in v0.6.5
func (s AddUploadBufferOutput) String() string
String returns the string representation
type AddWorkingStorageInput ¶
type AddWorkingStorageInput struct { // An array of strings that identify disks that are to be configured as working // storage. Each string have a minimum length of 1 and maximum length of 300. // You can get the disk IDs from the ListLocalDisks API. DiskIDs []*string `locationName:"DiskIds" type:"list" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
AddWorkingStorageInput$DiskIds
func (AddWorkingStorageInput) GoString ¶ added in v0.6.5
func (s AddWorkingStorageInput) GoString() string
GoString returns the string representation
func (AddWorkingStorageInput) String ¶ added in v0.6.5
func (s AddWorkingStorageInput) String() string
String returns the string representation
type AddWorkingStorageOutput ¶
type AddWorkingStorageOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway for which working storage was configured.
func (AddWorkingStorageOutput) GoString ¶ added in v0.6.5
func (s AddWorkingStorageOutput) GoString() string
GoString returns the string representation
func (AddWorkingStorageOutput) String ¶ added in v0.6.5
func (s AddWorkingStorageOutput) String() string
String returns the string representation
type CachediSCSIVolume ¶
type CachediSCSIVolume struct { SourceSnapshotID *string `locationName:"SourceSnapshotId" type:"string"` VolumeARN *string `type:"string"` VolumeID *string `locationName:"VolumeId" type:"string"` VolumeProgress *float64 `type:"double"` VolumeSizeInBytes *int64 `type:"long"` VolumeStatus *string `type:"string"` VolumeType *string `type:"string"` // Lists iSCSI information about a volume. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"` // contains filtered or unexported fields }
func (CachediSCSIVolume) GoString ¶ added in v0.6.5
func (s CachediSCSIVolume) GoString() string
GoString returns the string representation
func (CachediSCSIVolume) String ¶ added in v0.6.5
func (s CachediSCSIVolume) String() string
String returns the string representation
type CancelArchivalInput ¶
type CancelArchivalInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving // for. TapeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
CancelArchivalInput
func (CancelArchivalInput) GoString ¶ added in v0.6.5
func (s CancelArchivalInput) GoString() string
GoString returns the string representation
func (CancelArchivalInput) String ¶ added in v0.6.5
func (s CancelArchivalInput) String() string
String returns the string representation
type CancelArchivalOutput ¶
type CancelArchivalOutput struct { // The Amazon Resource Name (ARN) of the virtual tape for which archiving was // canceled. TapeARN *string `type:"string"` // contains filtered or unexported fields }
CancelArchivalOutput
func (CancelArchivalOutput) GoString ¶ added in v0.6.5
func (s CancelArchivalOutput) GoString() string
GoString returns the string representation
func (CancelArchivalOutput) String ¶ added in v0.6.5
func (s CancelArchivalOutput) String() string
String returns the string representation
type CancelRetrievalInput ¶
type CancelRetrievalInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval // for. TapeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
CancelRetrievalInput
func (CancelRetrievalInput) GoString ¶ added in v0.6.5
func (s CancelRetrievalInput) GoString() string
GoString returns the string representation
func (CancelRetrievalInput) String ¶ added in v0.6.5
func (s CancelRetrievalInput) String() string
String returns the string representation
type CancelRetrievalOutput ¶
type CancelRetrievalOutput struct { // The Amazon Resource Name (ARN) of the virtual tape for which retrieval was // canceled. TapeARN *string `type:"string"` // contains filtered or unexported fields }
CancelRetrievalOutput
func (CancelRetrievalOutput) GoString ¶ added in v0.6.5
func (s CancelRetrievalOutput) GoString() string
GoString returns the string representation
func (CancelRetrievalOutput) String ¶ added in v0.6.5
func (s CancelRetrievalOutput) String() string
String returns the string representation
type ChapInfo ¶
type ChapInfo struct { // The iSCSI initiator that connects to the target. InitiatorName *string `type:"string"` // The secret key that the initiator (for example, the Windows client) must // provide to participate in mutual CHAP with the target. SecretToAuthenticateInitiator *string `type:"string"` // The secret key that the target must provide to participate in mutual CHAP // with the initiator (e.g. Windows client). SecretToAuthenticateTarget *string `type:"string"` // The Amazon Resource Name (ARN) of the volume. // // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens // (-). TargetARN *string `type:"string"` // contains filtered or unexported fields }
Describes Challenge-Handshake Authentication Protocol (CHAP) information that supports authentication between your gateway and iSCSI initiators.
type CreateCachediSCSIVolumeInput ¶
type CreateCachediSCSIVolumeInput struct { ClientToken *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` NetworkInterfaceID *string `locationName:"NetworkInterfaceId" type:"string" required:"true"` SnapshotID *string `locationName:"SnapshotId" type:"string"` TargetName *string `type:"string" required:"true"` VolumeSizeInBytes *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
func (CreateCachediSCSIVolumeInput) GoString ¶ added in v0.6.5
func (s CreateCachediSCSIVolumeInput) GoString() string
GoString returns the string representation
func (CreateCachediSCSIVolumeInput) String ¶ added in v0.6.5
func (s CreateCachediSCSIVolumeInput) String() string
String returns the string representation
type CreateCachediSCSIVolumeOutput ¶
type CreateCachediSCSIVolumeOutput struct { TargetARN *string `type:"string"` VolumeARN *string `type:"string"` // contains filtered or unexported fields }
func (CreateCachediSCSIVolumeOutput) GoString ¶ added in v0.6.5
func (s CreateCachediSCSIVolumeOutput) GoString() string
GoString returns the string representation
func (CreateCachediSCSIVolumeOutput) String ¶ added in v0.6.5
func (s CreateCachediSCSIVolumeOutput) String() string
String returns the string representation
type CreateSnapshotFromVolumeRecoveryPointInput ¶
type CreateSnapshotFromVolumeRecoveryPointInput struct { SnapshotDescription *string `type:"string" required:"true"` VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (CreateSnapshotFromVolumeRecoveryPointInput) GoString ¶ added in v0.6.5
func (s CreateSnapshotFromVolumeRecoveryPointInput) GoString() string
GoString returns the string representation
func (CreateSnapshotFromVolumeRecoveryPointInput) String ¶ added in v0.6.5
func (s CreateSnapshotFromVolumeRecoveryPointInput) String() string
String returns the string representation
type CreateSnapshotFromVolumeRecoveryPointOutput ¶
type CreateSnapshotFromVolumeRecoveryPointOutput struct { SnapshotID *string `locationName:"SnapshotId" type:"string"` VolumeARN *string `type:"string"` VolumeRecoveryPointTime *string `type:"string"` // contains filtered or unexported fields }
func (CreateSnapshotFromVolumeRecoveryPointOutput) GoString ¶ added in v0.6.5
func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string
GoString returns the string representation
func (CreateSnapshotFromVolumeRecoveryPointOutput) String ¶ added in v0.6.5
func (s CreateSnapshotFromVolumeRecoveryPointOutput) String() string
String returns the string representation
type CreateSnapshotInput ¶
type CreateSnapshotInput struct { // Textual description of the snapshot that appears in the Amazon EC2 console, // Elastic Block Store snapshots panel in the Description field, and in the // AWS Storage Gateway snapshot Details pane, Description field SnapshotDescription *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
CreateSnapshotInput$SnapshotDescription CreateSnapshotInput$VolumeARN
func (CreateSnapshotInput) GoString ¶ added in v0.6.5
func (s CreateSnapshotInput) GoString() string
GoString returns the string representation
func (CreateSnapshotInput) String ¶ added in v0.6.5
func (s CreateSnapshotInput) String() string
String returns the string representation
type CreateSnapshotOutput ¶
type CreateSnapshotOutput struct { // The snapshot ID that is used to refer to the snapshot in future operations // such as describing snapshots (Amazon Elastic Compute Cloud API DescribeSnapshots) // or creating a volume from a snapshot (CreateStorediSCSIVolume). SnapshotID *string `locationName:"SnapshotId" type:"string"` // The Amazon Resource Name (ARN) of the volume of which the snapshot was taken. VolumeARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (CreateSnapshotOutput) GoString ¶ added in v0.6.5
func (s CreateSnapshotOutput) GoString() string
GoString returns the string representation
func (CreateSnapshotOutput) String ¶ added in v0.6.5
func (s CreateSnapshotOutput) String() string
String returns the string representation
type CreateStorediSCSIVolumeInput ¶
type CreateStorediSCSIVolumeInput struct { // The unique identifier for the gateway local disk that is configured as a // stored volume. Use ListLocalDisks (http://docs.aws.amazon.com/storagegateway/latest/userguide/API_ListLocalDisks.html) // to list disk IDs for a gateway. DiskID *string `locationName:"DiskId" type:"string" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The network interface of the gateway on which to expose the iSCSI target. // Only IPv4 addresses are accepted. Use DescribeGatewayInformation to get a // list of the network interfaces available on a gateway. // // Valid Values: A valid IP address. NetworkInterfaceID *string `locationName:"NetworkInterfaceId" type:"string" required:"true"` // Specify this field as true if you want to preserve the data on the local // disk. Otherwise, specifying this field as false creates an empty volume. // // Valid Values: true, false PreserveExistingData *bool `type:"boolean" required:"true"` // The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the // new stored volume. Specify this field if you want to create the iSCSI storage // volume from a snapshot otherwise do not include this field. To list snapshots // for your account use DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html) // in the Amazon Elastic Compute Cloud API Reference. SnapshotID *string `locationName:"SnapshotId" type:"string"` // The name of the iSCSI target used by initiators to connect to the target // and as a suffix for the target ARN. For example, specifying TargetName as // myvolume results in the target ARN of arn:aws:storagegateway:us-east-1:111122223333:gateway/mygateway/target/iqn.1997-05.com.amazon:myvolume. // The target name must be unique across all volumes of a gateway. TargetName *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
CreateStorediSCSIVolumeInput$DiskId CreateStorediSCSIVolumeInput$NetworkInterfaceId CreateStorediSCSIVolumeInput$PreserveExistingData CreateStorediSCSIVolumeInput$SnapshotId CreateStorediSCSIVolumeInput$TargetName
func (CreateStorediSCSIVolumeInput) GoString ¶ added in v0.6.5
func (s CreateStorediSCSIVolumeInput) GoString() string
GoString returns the string representation
func (CreateStorediSCSIVolumeInput) String ¶ added in v0.6.5
func (s CreateStorediSCSIVolumeInput) String() string
String returns the string representation
type CreateStorediSCSIVolumeOutput ¶
type CreateStorediSCSIVolumeOutput struct { // he Amazon Resource Name (ARN) of the volume target that includes the iSCSI // name that initiators can use to connect to the target. TargetARN *string `type:"string"` // The Amazon Resource Name (ARN) of the configured volume. VolumeARN *string `type:"string"` // The size of the volume in bytes. VolumeSizeInBytes *int64 `type:"long"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (CreateStorediSCSIVolumeOutput) GoString ¶ added in v0.6.5
func (s CreateStorediSCSIVolumeOutput) GoString() string
GoString returns the string representation
func (CreateStorediSCSIVolumeOutput) String ¶ added in v0.6.5
func (s CreateStorediSCSIVolumeOutput) String() string
String returns the string representation
type CreateTapesInput ¶
type CreateTapesInput struct { // A unique identifier that you use to retry a request. If you retry a request, // use the same ClientToken you specified in the initial request. // // Using the same ClientToken prevents creating the tape multiple times. ClientToken *string `type:"string" required:"true"` // The unique Amazon Resource Name(ARN) that represents the gateway to associate // the virtual tapes with. Use the ListGateways operation to return a list of // gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The number of virtual tapes you want to create. NumTapesToCreate *int64 `type:"integer" required:"true"` // A prefix you append to the barcode of the virtual tape you are creating. // This makes a barcode unique. // // The prefix must be 1 to 4 characters in length and must be upper-case letters // A-Z. TapeBarcodePrefix *string `type:"string" required:"true"` // The size, in bytes, of the virtual tapes you want to create. // // The size must be gigabyte (1024*1024*1024 byte) aligned. TapeSizeInBytes *int64 `type:"long" required:"true"` // contains filtered or unexported fields }
CreateTapesInput
func (CreateTapesInput) GoString ¶ added in v0.6.5
func (s CreateTapesInput) GoString() string
GoString returns the string representation
func (CreateTapesInput) String ¶ added in v0.6.5
func (s CreateTapesInput) String() string
String returns the string representation
type CreateTapesOutput ¶
type CreateTapesOutput struct { // A list of unique Amazon Resource Named (ARN) the represents the virtual tapes // that were created. TapeARNs []*string `type:"list"` // contains filtered or unexported fields }
CreateTapeOutput
func (CreateTapesOutput) GoString ¶ added in v0.6.5
func (s CreateTapesOutput) GoString() string
GoString returns the string representation
func (CreateTapesOutput) String ¶ added in v0.6.5
func (s CreateTapesOutput) String() string
String returns the string representation
type DeleteBandwidthRateLimitInput ¶
type DeleteBandwidthRateLimitInput struct { BandwidthType *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteBandwidthRateLimitInput) GoString ¶ added in v0.6.5
func (s DeleteBandwidthRateLimitInput) GoString() string
GoString returns the string representation
func (DeleteBandwidthRateLimitInput) String ¶ added in v0.6.5
func (s DeleteBandwidthRateLimitInput) String() string
String returns the string representation
type DeleteBandwidthRateLimitOutput ¶
type DeleteBandwidthRateLimitOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway whose bandwidth rate information was deleted.
func (DeleteBandwidthRateLimitOutput) GoString ¶ added in v0.6.5
func (s DeleteBandwidthRateLimitOutput) GoString() string
GoString returns the string representation
func (DeleteBandwidthRateLimitOutput) String ¶ added in v0.6.5
func (s DeleteBandwidthRateLimitOutput) String() string
String returns the string representation
type DeleteChapCredentialsInput ¶
type DeleteChapCredentialsInput struct { // The iSCSI initiator that connects to the target. InitiatorName *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes // operation to return to retrieve the TargetARN for specified VolumeARN. TargetARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
DeleteChapCredentialsInput$InitiatorName DeleteChapCredentialsInput$TargetARN
func (DeleteChapCredentialsInput) GoString ¶ added in v0.6.5
func (s DeleteChapCredentialsInput) GoString() string
GoString returns the string representation
func (DeleteChapCredentialsInput) String ¶ added in v0.6.5
func (s DeleteChapCredentialsInput) String() string
String returns the string representation
type DeleteChapCredentialsOutput ¶
type DeleteChapCredentialsOutput struct { // The iSCSI initiator that connects to the target. InitiatorName *string `type:"string"` // The Amazon Resource Name (ARN) of the target. TargetARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (DeleteChapCredentialsOutput) GoString ¶ added in v0.6.5
func (s DeleteChapCredentialsOutput) GoString() string
GoString returns the string representation
func (DeleteChapCredentialsOutput) String ¶ added in v0.6.5
func (s DeleteChapCredentialsOutput) String() string
String returns the string representation
type DeleteGatewayInput ¶
type DeleteGatewayInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the id of the gateway to delete.
func (DeleteGatewayInput) GoString ¶ added in v0.6.5
func (s DeleteGatewayInput) GoString() string
GoString returns the string representation
func (DeleteGatewayInput) String ¶ added in v0.6.5
func (s DeleteGatewayInput) String() string
String returns the string representation
type DeleteGatewayOutput ¶
type DeleteGatewayOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the id of the deleted gateway.
func (DeleteGatewayOutput) GoString ¶ added in v0.6.5
func (s DeleteGatewayOutput) GoString() string
GoString returns the string representation
func (DeleteGatewayOutput) String ¶ added in v0.6.5
func (s DeleteGatewayOutput) String() string
String returns the string representation
type DeleteSnapshotScheduleInput ¶
type DeleteSnapshotScheduleInput struct { VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (DeleteSnapshotScheduleInput) GoString ¶ added in v0.6.5
func (s DeleteSnapshotScheduleInput) GoString() string
GoString returns the string representation
func (DeleteSnapshotScheduleInput) String ¶ added in v0.6.5
func (s DeleteSnapshotScheduleInput) String() string
String returns the string representation
type DeleteSnapshotScheduleOutput ¶
type DeleteSnapshotScheduleOutput struct { VolumeARN *string `type:"string"` // contains filtered or unexported fields }
func (DeleteSnapshotScheduleOutput) GoString ¶ added in v0.6.5
func (s DeleteSnapshotScheduleOutput) GoString() string
GoString returns the string representation
func (DeleteSnapshotScheduleOutput) String ¶ added in v0.6.5
func (s DeleteSnapshotScheduleOutput) String() string
String returns the string representation
type DeleteTapeArchiveInput ¶
type DeleteTapeArchiveInput struct { // The Amazon Resource Name (ARN) of the virtual tape to delete from the virtual // tape shelf (VTS). TapeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
DeleteTapeArchiveInput
func (DeleteTapeArchiveInput) GoString ¶ added in v0.6.5
func (s DeleteTapeArchiveInput) GoString() string
GoString returns the string representation
func (DeleteTapeArchiveInput) String ¶ added in v0.6.5
func (s DeleteTapeArchiveInput) String() string
String returns the string representation
type DeleteTapeArchiveOutput ¶
type DeleteTapeArchiveOutput struct { // The Amazon Resource Name (ARN) of the virtual tape that was deleted from // the virtual tape shelf (VTS). TapeARN *string `type:"string"` // contains filtered or unexported fields }
DeleteTapeArchiveOutput
func (DeleteTapeArchiveOutput) GoString ¶ added in v0.6.5
func (s DeleteTapeArchiveOutput) GoString() string
GoString returns the string representation
func (DeleteTapeArchiveOutput) String ¶ added in v0.6.5
func (s DeleteTapeArchiveOutput) String() string
String returns the string representation
type DeleteTapeInput ¶
type DeleteTapeInput struct { // The unique Amazon Resource Name (ARN) of the gateway that the virtual tape // to delete is associated with. Use the ListGateways operation to return a // list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape to delete. TapeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
DeleteTapeInput
func (DeleteTapeInput) GoString ¶ added in v0.6.5
func (s DeleteTapeInput) GoString() string
GoString returns the string representation
func (DeleteTapeInput) String ¶ added in v0.6.5
func (s DeleteTapeInput) String() string
String returns the string representation
type DeleteTapeOutput ¶
type DeleteTapeOutput struct { // The Amazon Resource Name (ARN) of the deleted virtual tape. TapeARN *string `type:"string"` // contains filtered or unexported fields }
DeleteTapeOutput
func (DeleteTapeOutput) GoString ¶ added in v0.6.5
func (s DeleteTapeOutput) GoString() string
GoString returns the string representation
func (DeleteTapeOutput) String ¶ added in v0.6.5
func (s DeleteTapeOutput) String() string
String returns the string representation
type DeleteVolumeInput ¶
type DeleteVolumeInput struct { // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the DeleteVolumeInput$VolumeARN to delete.
func (DeleteVolumeInput) GoString ¶ added in v0.6.5
func (s DeleteVolumeInput) GoString() string
GoString returns the string representation
func (DeleteVolumeInput) String ¶ added in v0.6.5
func (s DeleteVolumeInput) String() string
String returns the string representation
type DeleteVolumeOutput ¶
type DeleteVolumeOutput struct { // The Amazon Resource Name (ARN) of the storage volume that was deleted. It // is the same ARN you provided in the request. VolumeARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the storage volume that was deleted
func (DeleteVolumeOutput) GoString ¶ added in v0.6.5
func (s DeleteVolumeOutput) GoString() string
GoString returns the string representation
func (DeleteVolumeOutput) String ¶ added in v0.6.5
func (s DeleteVolumeOutput) String() string
String returns the string representation
type DescribeBandwidthRateLimitInput ¶
type DescribeBandwidthRateLimitInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway.
func (DescribeBandwidthRateLimitInput) GoString ¶ added in v0.6.5
func (s DescribeBandwidthRateLimitInput) GoString() string
GoString returns the string representation
func (DescribeBandwidthRateLimitInput) String ¶ added in v0.6.5
func (s DescribeBandwidthRateLimitInput) String() string
String returns the string representation
type DescribeBandwidthRateLimitOutput ¶
type DescribeBandwidthRateLimitOutput struct { // The average download bandwidth rate limit in bits per second. This field // does not appear in the response if the download rate limit is not set. AverageDownloadRateLimitInBitsPerSec *int64 `type:"long"` // The average upload bandwidth rate limit in bits per second. This field does // not appear in the response if the upload rate limit is not set. AverageUploadRateLimitInBitsPerSec *int64 `type:"long"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (DescribeBandwidthRateLimitOutput) GoString ¶ added in v0.6.5
func (s DescribeBandwidthRateLimitOutput) GoString() string
GoString returns the string representation
func (DescribeBandwidthRateLimitOutput) String ¶ added in v0.6.5
func (s DescribeBandwidthRateLimitOutput) String() string
String returns the string representation
type DescribeCacheInput ¶
type DescribeCacheInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeCacheInput) GoString ¶ added in v0.6.5
func (s DescribeCacheInput) GoString() string
GoString returns the string representation
func (DescribeCacheInput) String ¶ added in v0.6.5
func (s DescribeCacheInput) String() string
String returns the string representation
type DescribeCacheOutput ¶
type DescribeCacheOutput struct { CacheAllocatedInBytes *int64 `type:"long"` CacheDirtyPercentage *float64 `type:"double"` CacheHitPercentage *float64 `type:"double"` CacheMissPercentage *float64 `type:"double"` CacheUsedPercentage *float64 `type:"double"` DiskIDs []*string `locationName:"DiskIds" type:"list"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
func (DescribeCacheOutput) GoString ¶ added in v0.6.5
func (s DescribeCacheOutput) GoString() string
GoString returns the string representation
func (DescribeCacheOutput) String ¶ added in v0.6.5
func (s DescribeCacheOutput) String() string
String returns the string representation
type DescribeCachediSCSIVolumesInput ¶
type DescribeCachediSCSIVolumesInput struct { VolumeARNs []*string `type:"list" required:"true"` // contains filtered or unexported fields }
func (DescribeCachediSCSIVolumesInput) GoString ¶ added in v0.6.5
func (s DescribeCachediSCSIVolumesInput) GoString() string
GoString returns the string representation
func (DescribeCachediSCSIVolumesInput) String ¶ added in v0.6.5
func (s DescribeCachediSCSIVolumesInput) String() string
String returns the string representation
type DescribeCachediSCSIVolumesOutput ¶
type DescribeCachediSCSIVolumesOutput struct { // An array of objects where each object contains metadata about one cached // volume. CachediSCSIVolumes []*CachediSCSIVolume `type:"list"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (DescribeCachediSCSIVolumesOutput) GoString ¶ added in v0.6.5
func (s DescribeCachediSCSIVolumesOutput) GoString() string
GoString returns the string representation
func (DescribeCachediSCSIVolumesOutput) String ¶ added in v0.6.5
func (s DescribeCachediSCSIVolumesOutput) String() string
String returns the string representation
type DescribeChapCredentialsInput ¶
type DescribeChapCredentialsInput struct { // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes // operation to return to retrieve the TargetARN for specified VolumeARN. TargetARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the Amazon Resource Name (ARN) of the iSCSI volume target.
func (DescribeChapCredentialsInput) GoString ¶ added in v0.6.5
func (s DescribeChapCredentialsInput) GoString() string
GoString returns the string representation
func (DescribeChapCredentialsInput) String ¶ added in v0.6.5
func (s DescribeChapCredentialsInput) String() string
String returns the string representation
type DescribeChapCredentialsOutput ¶
type DescribeChapCredentialsOutput struct { // An array of ChapInfo objects that represent CHAP credentials. Each object // in the array contains CHAP credential information for one target-initiator // pair. If no CHAP credentials are set, an empty array is returned. CHAP credential // information is provided in a JSON object with the following fields: // // InitiatorName: The iSCSI initiator that connects to the target. // // SecretToAuthenticateInitiator: The secret key that the initiator (for // example, the Windows client) must provide to participate in mutual CHAP with // the target. // // SecretToAuthenticateTarget: The secret key that the target must provide // to participate in mutual CHAP with the initiator (e.g. Windows client). // // TargetARN: The Amazon Resource Name (ARN) of the storage volume. ChapCredentials []*ChapInfo `type:"list"` // contains filtered or unexported fields }
A JSON object containing a .
func (DescribeChapCredentialsOutput) GoString ¶ added in v0.6.5
func (s DescribeChapCredentialsOutput) GoString() string
GoString returns the string representation
func (DescribeChapCredentialsOutput) String ¶ added in v0.6.5
func (s DescribeChapCredentialsOutput) String() string
String returns the string representation
type DescribeGatewayInformationInput ¶
type DescribeGatewayInformationInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the id of the gateway.
func (DescribeGatewayInformationInput) GoString ¶ added in v0.6.5
func (s DescribeGatewayInformationInput) GoString() string
GoString returns the string representation
func (DescribeGatewayInformationInput) String ¶ added in v0.6.5
func (s DescribeGatewayInformationInput) String() string
String returns the string representation
type DescribeGatewayInformationOutput ¶
type DescribeGatewayInformationOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // The gateway ID. GatewayID *string `locationName:"GatewayId" type:"string"` // A NetworkInterface array that contains descriptions of the gateway network // interfaces. GatewayNetworkInterfaces []*NetworkInterface `type:"list"` // One of the values that indicates the operating state of the gateway. GatewayState *string `type:"string"` // One of the values that indicates the time zone configured for the gateway. GatewayTimezone *string `type:"string"` // The type of the gateway. GatewayType *string `type:"string"` // The date on which the last software update was applied to the gateway. If // the gateway has never been updated, this field does not return a value in // the response. LastSoftwareUpdate *string `type:"string"` // The date on which an update to the gateway is available. This date is in // the time zone of the gateway. If the gateway is not available for an update // this field is not returned in the response. NextUpdateAvailabilityDate *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (DescribeGatewayInformationOutput) GoString ¶ added in v0.6.5
func (s DescribeGatewayInformationOutput) GoString() string
GoString returns the string representation
func (DescribeGatewayInformationOutput) String ¶ added in v0.6.5
func (s DescribeGatewayInformationOutput) String() string
String returns the string representation
type DescribeMaintenanceStartTimeInput ¶
type DescribeMaintenanceStartTimeInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway.
func (DescribeMaintenanceStartTimeInput) GoString ¶ added in v0.6.5
func (s DescribeMaintenanceStartTimeInput) GoString() string
GoString returns the string representation
func (DescribeMaintenanceStartTimeInput) String ¶ added in v0.6.5
func (s DescribeMaintenanceStartTimeInput) String() string
String returns the string representation
type DescribeMaintenanceStartTimeOutput ¶
type DescribeMaintenanceStartTimeOutput struct { DayOfWeek *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` HourOfDay *int64 `type:"integer"` MinuteOfHour *int64 `type:"integer"` Timezone *string `type:"string"` // contains filtered or unexported fields }
func (DescribeMaintenanceStartTimeOutput) GoString ¶ added in v0.6.5
func (s DescribeMaintenanceStartTimeOutput) GoString() string
GoString returns the string representation
func (DescribeMaintenanceStartTimeOutput) String ¶ added in v0.6.5
func (s DescribeMaintenanceStartTimeOutput) String() string
String returns the string representation
type DescribeSnapshotScheduleInput ¶
type DescribeSnapshotScheduleInput struct { // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the volume.
func (DescribeSnapshotScheduleInput) GoString ¶ added in v0.6.5
func (s DescribeSnapshotScheduleInput) GoString() string
GoString returns the string representation
func (DescribeSnapshotScheduleInput) String ¶ added in v0.6.5
func (s DescribeSnapshotScheduleInput) String() string
String returns the string representation
type DescribeSnapshotScheduleOutput ¶
type DescribeSnapshotScheduleOutput struct { Description *string `type:"string"` RecurrenceInHours *int64 `type:"integer"` StartAt *int64 `type:"integer"` Timezone *string `type:"string"` VolumeARN *string `type:"string"` // contains filtered or unexported fields }
func (DescribeSnapshotScheduleOutput) GoString ¶ added in v0.6.5
func (s DescribeSnapshotScheduleOutput) GoString() string
GoString returns the string representation
func (DescribeSnapshotScheduleOutput) String ¶ added in v0.6.5
func (s DescribeSnapshotScheduleOutput) String() string
String returns the string representation
type DescribeStorediSCSIVolumesInput ¶
type DescribeStorediSCSIVolumesInput struct { // An array of strings where each string represents the Amazon Resource Name // (ARN) of a stored volume. All of the specified stored volumes must from the // same gateway. Use ListVolumes to get volume ARNs for a gateway. VolumeARNs []*string `type:"list" required:"true"` // contains filtered or unexported fields }
A JSON Object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.
func (DescribeStorediSCSIVolumesInput) GoString ¶ added in v0.6.5
func (s DescribeStorediSCSIVolumesInput) GoString() string
GoString returns the string representation
func (DescribeStorediSCSIVolumesInput) String ¶ added in v0.6.5
func (s DescribeStorediSCSIVolumesInput) String() string
String returns the string representation
type DescribeStorediSCSIVolumesOutput ¶
type DescribeStorediSCSIVolumesOutput struct { StorediSCSIVolumes []*StorediSCSIVolume `type:"list"` // contains filtered or unexported fields }
func (DescribeStorediSCSIVolumesOutput) GoString ¶ added in v0.6.5
func (s DescribeStorediSCSIVolumesOutput) GoString() string
GoString returns the string representation
func (DescribeStorediSCSIVolumesOutput) String ¶ added in v0.6.5
func (s DescribeStorediSCSIVolumesOutput) String() string
String returns the string representation
type DescribeTapeArchivesInput ¶
type DescribeTapeArchivesInput struct { // Specifies that the number of virtual tapes descried be limited to the specified // number. Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin describing // virtual tapes. Marker *string `type:"string"` // Specifies one or more unique Amazon Resource Names (ARNs) that represent // the virtual tapes you want to describe. TapeARNs []*string `type:"list"` // contains filtered or unexported fields }
DescribeTapeArchivesInput
func (DescribeTapeArchivesInput) GoString ¶ added in v0.6.5
func (s DescribeTapeArchivesInput) GoString() string
GoString returns the string representation
func (DescribeTapeArchivesInput) String ¶ added in v0.6.5
func (s DescribeTapeArchivesInput) String() string
String returns the string representation
type DescribeTapeArchivesOutput ¶
type DescribeTapeArchivesOutput struct { // An opaque string that indicates the position at which the virtual tapes that // were fetched for description ended. Use this marker in your next request // to fetch the next set of virtual tapes in the virtual tape shelf (VTS). If // there are no more virtual tapes to describe, this field does not appear in // the response. Marker *string `type:"string"` // An array of virtual tape objects in the virtual tape shelf (VTS). The description // includes of the Amazon Resource Name(ARN) of the virtual tapes. The information // returned includes the Amazon Resource Names (ARNs) of the tapes, size of // the tapes, status of the tapes, progress of the description and tape barcode. TapeArchives []*TapeArchive `type:"list"` // contains filtered or unexported fields }
DescribeTapeArchivesOutput
func (DescribeTapeArchivesOutput) GoString ¶ added in v0.6.5
func (s DescribeTapeArchivesOutput) GoString() string
GoString returns the string representation
func (DescribeTapeArchivesOutput) String ¶ added in v0.6.5
func (s DescribeTapeArchivesOutput) String() string
String returns the string representation
type DescribeTapeRecoveryPointsInput ¶
type DescribeTapeRecoveryPointsInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // Specifies that the number of virtual tape recovery points that are described // be limited to the specified number. Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin describing // the virtual tape recovery points. Marker *string `type:"string"` // contains filtered or unexported fields }
DescribeTapeRecoveryPointsInput
func (DescribeTapeRecoveryPointsInput) GoString ¶ added in v0.6.5
func (s DescribeTapeRecoveryPointsInput) GoString() string
GoString returns the string representation
func (DescribeTapeRecoveryPointsInput) String ¶ added in v0.6.5
func (s DescribeTapeRecoveryPointsInput) String() string
String returns the string representation
type DescribeTapeRecoveryPointsOutput ¶
type DescribeTapeRecoveryPointsOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // An opaque string that indicates the position at which the virtual tape recovery // points that were listed for description ended. // // Use this marker in your next request to list the next set of virtual tape // recovery points in the list. If there are no more recovery points to describe, // this field does not appear in the response. Marker *string `type:"string"` // An array of TapeRecoveryPointInfos that are available for the specified gateway. TapeRecoveryPointInfos []*TapeRecoveryPointInfo `type:"list"` // contains filtered or unexported fields }
DescribeTapeRecoveryPointsOutput
func (DescribeTapeRecoveryPointsOutput) GoString ¶ added in v0.6.5
func (s DescribeTapeRecoveryPointsOutput) GoString() string
GoString returns the string representation
func (DescribeTapeRecoveryPointsOutput) String ¶ added in v0.6.5
func (s DescribeTapeRecoveryPointsOutput) String() string
String returns the string representation
type DescribeTapesInput ¶
type DescribeTapesInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // Specifies that the number of virtual tapes described be limited to the specified // number. // // Amazon Web Services may impose its own limit, if this field is not set. Limit *int64 `type:"integer"` // A marker value, obtained in a previous call to DescribeTapes. This marker // indicates which page of results to retrieve. // // If not specified, the first page of results is retrieved. Marker *string `type:"string"` // Specifies one or more unique Amazon Resource Names (ARNs) that represent // the virtual tapes you want to describe. If this parameter is not specified, // AWS Storage Gateway returns a description of all virtual tapes associated // with the specified gateway. TapeARNs []*string `type:"list"` // contains filtered or unexported fields }
DescribeTapesInput
func (DescribeTapesInput) GoString ¶ added in v0.6.5
func (s DescribeTapesInput) GoString() string
GoString returns the string representation
func (DescribeTapesInput) String ¶ added in v0.6.5
func (s DescribeTapesInput) String() string
String returns the string representation
type DescribeTapesOutput ¶
type DescribeTapesOutput struct { // An opaque string which can be used as part of a subsequent DescribeTapes // call to retrieve the next page of results. // // If a response does not contain a marker, then there are no more results // to be retrieved. Marker *string `type:"string"` // An array of virtual tape descriptions. Tapes []*Tape `type:"list"` // contains filtered or unexported fields }
DescribeTapesOutput
func (DescribeTapesOutput) GoString ¶ added in v0.6.5
func (s DescribeTapesOutput) GoString() string
GoString returns the string representation
func (DescribeTapesOutput) String ¶ added in v0.6.5
func (s DescribeTapesOutput) String() string
String returns the string representation
type DescribeUploadBufferInput ¶
type DescribeUploadBufferInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (DescribeUploadBufferInput) GoString ¶ added in v0.6.5
func (s DescribeUploadBufferInput) GoString() string
GoString returns the string representation
func (DescribeUploadBufferInput) String ¶ added in v0.6.5
func (s DescribeUploadBufferInput) String() string
String returns the string representation
type DescribeUploadBufferOutput ¶
type DescribeUploadBufferOutput struct { DiskIDs []*string `locationName:"DiskIds" type:"list"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` UploadBufferAllocatedInBytes *int64 `type:"long"` UploadBufferUsedInBytes *int64 `type:"long"` // contains filtered or unexported fields }
func (DescribeUploadBufferOutput) GoString ¶ added in v0.6.5
func (s DescribeUploadBufferOutput) GoString() string
GoString returns the string representation
func (DescribeUploadBufferOutput) String ¶ added in v0.6.5
func (s DescribeUploadBufferOutput) String() string
String returns the string representation
type DescribeVTLDevicesInput ¶
type DescribeVTLDevicesInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // Specifies that the number of VTL devices described be limited to the specified // number. Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin describing // the VTL devices. Marker *string `type:"string"` // An array of strings, where each string represents the Amazon Resource Name // (ARN) of a VTL device. // // All of the specified VTL devices must be from the same gateway. If no VTL // devices are specified, the result will contain all devices on the specified // gateway. VTLDeviceARNs []*string `type:"list"` // contains filtered or unexported fields }
DescribeVTLDevicesInput
func (DescribeVTLDevicesInput) GoString ¶ added in v0.6.5
func (s DescribeVTLDevicesInput) GoString() string
GoString returns the string representation
func (DescribeVTLDevicesInput) String ¶ added in v0.6.5
func (s DescribeVTLDevicesInput) String() string
String returns the string representation
type DescribeVTLDevicesOutput ¶
type DescribeVTLDevicesOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // An opaque string that indicates the position at which the VTL devices that // were fetched for description ended. Use the marker in your next request to // fetch the next set of VTL devices in the list. If there are no more VTL devices // to describe, this field does not appear in the response. Marker *string `type:"string"` // An array of VTL device objects composed of the Amazon Resource Name(ARN) // of the VTL devices. VTLDevices []*VTLDevice `type:"list"` // contains filtered or unexported fields }
DescribeVTLDevicesOutput
func (DescribeVTLDevicesOutput) GoString ¶ added in v0.6.5
func (s DescribeVTLDevicesOutput) GoString() string
GoString returns the string representation
func (DescribeVTLDevicesOutput) String ¶ added in v0.6.5
func (s DescribeVTLDevicesOutput) String() string
String returns the string representation
type DescribeWorkingStorageInput ¶
type DescribeWorkingStorageInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway.
func (DescribeWorkingStorageInput) GoString ¶ added in v0.6.5
func (s DescribeWorkingStorageInput) GoString() string
GoString returns the string representation
func (DescribeWorkingStorageInput) String ¶ added in v0.6.5
func (s DescribeWorkingStorageInput) String() string
String returns the string representation
type DescribeWorkingStorageOutput ¶
type DescribeWorkingStorageOutput struct { // An array of the gateway's local disk IDs that are configured as working storage. // Each local disk ID is specified as a string (minimum length of 1 and maximum // length of 300). If no local disks are configured as working storage, then // the DiskIds array is empty. DiskIDs []*string `locationName:"DiskIds" type:"list"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // The total working storage in bytes allocated for the gateway. If no working // storage is configured for the gateway, this field returns 0. WorkingStorageAllocatedInBytes *int64 `type:"long"` // The total working storage in bytes in use by the gateway. If no working storage // is configured for the gateway, this field returns 0. WorkingStorageUsedInBytes *int64 `type:"long"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (DescribeWorkingStorageOutput) GoString ¶ added in v0.6.5
func (s DescribeWorkingStorageOutput) GoString() string
GoString returns the string representation
func (DescribeWorkingStorageOutput) String ¶ added in v0.6.5
func (s DescribeWorkingStorageOutput) String() string
String returns the string representation
type DeviceiSCSIAttributes ¶
type DeviceiSCSIAttributes struct { // Indicates whether mutual CHAP is enabled for the iSCSI target. ChapEnabled *bool `type:"boolean"` // The network interface identifier of the VTL device. NetworkInterfaceID *string `locationName:"NetworkInterfaceId" type:"string"` // The port used to communicate with iSCSI VTL device targets. NetworkInterfacePort *int64 `type:"integer"` // Specifies the unique Amazon Resource Name(ARN) that encodes the iSCSI qualified // name(iqn) of a tape drive or media changer target. TargetARN *string `type:"string"` // contains filtered or unexported fields }
Lists iSCSI information about a VTL device.
func (DeviceiSCSIAttributes) GoString ¶ added in v0.6.5
func (s DeviceiSCSIAttributes) GoString() string
GoString returns the string representation
func (DeviceiSCSIAttributes) String ¶ added in v0.6.5
func (s DeviceiSCSIAttributes) String() string
String returns the string representation
type DisableGatewayInput ¶
type DisableGatewayInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
DisableGatewayInput
func (DisableGatewayInput) GoString ¶ added in v0.6.5
func (s DisableGatewayInput) GoString() string
GoString returns the string representation
func (DisableGatewayInput) String ¶ added in v0.6.5
func (s DisableGatewayInput) String() string
String returns the string representation
type DisableGatewayOutput ¶
type DisableGatewayOutput struct { // The unique Amazon Resource Name of the disabled gateway. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
DisableGatewayOutput
func (DisableGatewayOutput) GoString ¶ added in v0.6.5
func (s DisableGatewayOutput) GoString() string
GoString returns the string representation
func (DisableGatewayOutput) String ¶ added in v0.6.5
func (s DisableGatewayOutput) String() string
String returns the string representation
type Disk ¶
type Disk struct { DiskAllocationResource *string `type:"string"` DiskAllocationType *string `type:"string"` DiskID *string `locationName:"DiskId" type:"string"` DiskNode *string `type:"string"` DiskPath *string `type:"string"` DiskSizeInBytes *int64 `type:"long"` DiskStatus *string `type:"string"` // contains filtered or unexported fields }
type Error ¶
type Error struct { // Additional information about the error. ErrorCode *string `locationName:"errorCode" type:"string"` // Human-readable text that provides detail about the error that occurred. ErrorDetails map[string]*string `locationName:"errorDetails" type:"map"` // contains filtered or unexported fields }
Provides additional information about an error that was returned by the service as an or. See the errorCode and errorDetails members for more information about the error.
type GatewayInfo ¶
type GatewayInfo struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` GatewayOperationalState *string `type:"string"` GatewayType *string `type:"string"` // contains filtered or unexported fields }
func (GatewayInfo) GoString ¶ added in v0.6.5
func (s GatewayInfo) GoString() string
GoString returns the string representation
func (GatewayInfo) String ¶ added in v0.6.5
func (s GatewayInfo) String() string
String returns the string representation
type ListGatewaysInput ¶
type ListGatewaysInput struct { // Specifies that the list of gateways returned be limited to the specified // number of items. Limit *int64 `type:"integer"` // An opaque string that indicates the position at which to begin the returned // list of gateways. Marker *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing zero or more of the following fields:
ListGatewaysInput$Limit ListGatewaysInput$Marker
func (ListGatewaysInput) GoString ¶ added in v0.6.5
func (s ListGatewaysInput) GoString() string
GoString returns the string representation
func (ListGatewaysInput) String ¶ added in v0.6.5
func (s ListGatewaysInput) String() string
String returns the string representation
type ListGatewaysOutput ¶
type ListGatewaysOutput struct { Gateways []*GatewayInfo `type:"list"` Marker *string `type:"string"` // contains filtered or unexported fields }
func (ListGatewaysOutput) GoString ¶ added in v0.6.5
func (s ListGatewaysOutput) GoString() string
GoString returns the string representation
func (ListGatewaysOutput) String ¶ added in v0.6.5
func (s ListGatewaysOutput) String() string
String returns the string representation
type ListLocalDisksInput ¶
type ListLocalDisksInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway.
func (ListLocalDisksInput) GoString ¶ added in v0.6.5
func (s ListLocalDisksInput) GoString() string
GoString returns the string representation
func (ListLocalDisksInput) String ¶ added in v0.6.5
func (s ListLocalDisksInput) String() string
String returns the string representation
type ListLocalDisksOutput ¶
type ListLocalDisksOutput struct { Disks []*Disk `type:"list"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
func (ListLocalDisksOutput) GoString ¶ added in v0.6.5
func (s ListLocalDisksOutput) GoString() string
GoString returns the string representation
func (ListLocalDisksOutput) String ¶ added in v0.6.5
func (s ListLocalDisksOutput) String() string
String returns the string representation
type ListVolumeInitiatorsInput ¶ added in v0.6.1
type ListVolumeInitiatorsInput struct { // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes for the gateway. VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
ListVolumeInitiatorsInput
func (ListVolumeInitiatorsInput) GoString ¶ added in v0.6.5
func (s ListVolumeInitiatorsInput) GoString() string
GoString returns the string representation
func (ListVolumeInitiatorsInput) String ¶ added in v0.6.5
func (s ListVolumeInitiatorsInput) String() string
String returns the string representation
type ListVolumeInitiatorsOutput ¶ added in v0.6.1
type ListVolumeInitiatorsOutput struct { // The host names and port numbers of all iSCSI initiators that are connected // to the gateway. Initiators []*string `type:"list"` // contains filtered or unexported fields }
ListVolumeInitiatorsOutput
func (ListVolumeInitiatorsOutput) GoString ¶ added in v0.6.5
func (s ListVolumeInitiatorsOutput) GoString() string
GoString returns the string representation
func (ListVolumeInitiatorsOutput) String ¶ added in v0.6.5
func (s ListVolumeInitiatorsOutput) String() string
String returns the string representation
type ListVolumeRecoveryPointsInput ¶
type ListVolumeRecoveryPointsInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (ListVolumeRecoveryPointsInput) GoString ¶ added in v0.6.5
func (s ListVolumeRecoveryPointsInput) GoString() string
GoString returns the string representation
func (ListVolumeRecoveryPointsInput) String ¶ added in v0.6.5
func (s ListVolumeRecoveryPointsInput) String() string
String returns the string representation
type ListVolumeRecoveryPointsOutput ¶
type ListVolumeRecoveryPointsOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` VolumeRecoveryPointInfos []*VolumeRecoveryPointInfo `type:"list"` // contains filtered or unexported fields }
func (ListVolumeRecoveryPointsOutput) GoString ¶ added in v0.6.5
func (s ListVolumeRecoveryPointsOutput) GoString() string
GoString returns the string representation
func (ListVolumeRecoveryPointsOutput) String ¶ added in v0.6.5
func (s ListVolumeRecoveryPointsOutput) String() string
String returns the string representation
type ListVolumesInput ¶
type ListVolumesInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // Specifies that the list of volumes returned be limited to the specified number // of items. Limit *int64 `type:"integer"` // A string that indicates the position at which to begin the returned list // of volumes. Obtain the marker from the response of a previous List iSCSI // Volumes request. Marker *string `type:"string"` // contains filtered or unexported fields }
A JSON object that contains one or more of the following fields:
ListVolumesInput$Limit ListVolumesInput$Marker
func (ListVolumesInput) GoString ¶ added in v0.6.5
func (s ListVolumesInput) GoString() string
GoString returns the string representation
func (ListVolumesInput) String ¶ added in v0.6.5
func (s ListVolumesInput) String() string
String returns the string representation
type ListVolumesOutput ¶
type ListVolumesOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` Marker *string `type:"string"` VolumeInfos []*VolumeInfo `type:"list"` // contains filtered or unexported fields }
func (ListVolumesOutput) GoString ¶ added in v0.6.5
func (s ListVolumesOutput) GoString() string
GoString returns the string representation
func (ListVolumesOutput) String ¶ added in v0.6.5
func (s ListVolumesOutput) String() string
String returns the string representation
type NetworkInterface ¶
type NetworkInterface struct { // The Internet Protocol version 4 (IPv4) address of the interface. IPV4Address *string `locationName:"Ipv4Address" type:"string"` // The Internet Protocol version 6 (IPv6) address of the interface. Currently // not supported. IPV6Address *string `locationName:"Ipv6Address" type:"string"` // The Media Access Control (MAC) address of the interface. // // This is currently unsupported and will not be returned in output. MACAddress *string `locationName:"MacAddress" type:"string"` // contains filtered or unexported fields }
Describes a gateway's network interface.
func (NetworkInterface) GoString ¶ added in v0.6.5
func (s NetworkInterface) GoString() string
GoString returns the string representation
func (NetworkInterface) String ¶ added in v0.6.5
func (s NetworkInterface) String() string
String returns the string representation
type ResetCacheInput ¶
type ResetCacheInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
func (ResetCacheInput) GoString ¶ added in v0.6.5
func (s ResetCacheInput) GoString() string
GoString returns the string representation
func (ResetCacheInput) String ¶ added in v0.6.5
func (s ResetCacheInput) String() string
String returns the string representation
type ResetCacheOutput ¶
type ResetCacheOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
func (ResetCacheOutput) GoString ¶ added in v0.6.5
func (s ResetCacheOutput) GoString() string
GoString returns the string representation
func (ResetCacheOutput) String ¶ added in v0.6.5
func (s ResetCacheOutput) String() string
String returns the string representation
type RetrieveTapeArchiveInput ¶
type RetrieveTapeArchiveInput struct { // The Amazon Resource Name (ARN) of the gateway you want to retrieve the virtual // tape to. Use the ListGateways operation to return a list of gateways for // your account and region. // // You retrieve archived virtual tapes to only one gateway and the gateway // must be a gateway-VTL. GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from // the virtual tape shelf (VTS). TapeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
RetrieveTapeArchiveInput
func (RetrieveTapeArchiveInput) GoString ¶ added in v0.6.5
func (s RetrieveTapeArchiveInput) GoString() string
GoString returns the string representation
func (RetrieveTapeArchiveInput) String ¶ added in v0.6.5
func (s RetrieveTapeArchiveInput) String() string
String returns the string representation
type RetrieveTapeArchiveOutput ¶
type RetrieveTapeArchiveOutput struct { // The Amazon Resource Name (ARN) of the retrieved virtual tape. TapeARN *string `type:"string"` // contains filtered or unexported fields }
RetrieveTapeArchiveOutput
func (RetrieveTapeArchiveOutput) GoString ¶ added in v0.6.5
func (s RetrieveTapeArchiveOutput) GoString() string
GoString returns the string representation
func (RetrieveTapeArchiveOutput) String ¶ added in v0.6.5
func (s RetrieveTapeArchiveOutput) String() string
String returns the string representation
type RetrieveTapeRecoveryPointInput ¶
type RetrieveTapeRecoveryPointInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the virtual tape for which you want to // retrieve the recovery point. TapeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
RetrieveTapeRecoveryPointInput
func (RetrieveTapeRecoveryPointInput) GoString ¶ added in v0.6.5
func (s RetrieveTapeRecoveryPointInput) GoString() string
GoString returns the string representation
func (RetrieveTapeRecoveryPointInput) String ¶ added in v0.6.5
func (s RetrieveTapeRecoveryPointInput) String() string
String returns the string representation
type RetrieveTapeRecoveryPointOutput ¶
type RetrieveTapeRecoveryPointOutput struct { // The Amazon Resource Name (ARN) of the virtual tape for which the recovery // point was retrieved. TapeARN *string `type:"string"` // contains filtered or unexported fields }
RetrieveTapeRecoveryPointOutput
func (RetrieveTapeRecoveryPointOutput) GoString ¶ added in v0.6.5
func (s RetrieveTapeRecoveryPointOutput) GoString() string
GoString returns the string representation
func (RetrieveTapeRecoveryPointOutput) String ¶ added in v0.6.5
func (s RetrieveTapeRecoveryPointOutput) String() string
String returns the string representation
type ShutdownGatewayInput ¶
type ShutdownGatewayInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway to shut down.
func (ShutdownGatewayInput) GoString ¶ added in v0.6.5
func (s ShutdownGatewayInput) GoString() string
GoString returns the string representation
func (ShutdownGatewayInput) String ¶ added in v0.6.5
func (s ShutdownGatewayInput) String() string
String returns the string representation
type ShutdownGatewayOutput ¶
type ShutdownGatewayOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway that was shut down.
func (ShutdownGatewayOutput) GoString ¶ added in v0.6.5
func (s ShutdownGatewayOutput) GoString() string
GoString returns the string representation
func (ShutdownGatewayOutput) String ¶ added in v0.6.5
func (s ShutdownGatewayOutput) String() string
String returns the string representation
type StartGatewayInput ¶
type StartGatewayInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway to start.
func (StartGatewayInput) GoString ¶ added in v0.6.5
func (s StartGatewayInput) GoString() string
GoString returns the string representation
func (StartGatewayInput) String ¶ added in v0.6.5
func (s StartGatewayInput) String() string
String returns the string representation
type StartGatewayOutput ¶
type StartGatewayOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway that was restarted.
func (StartGatewayOutput) GoString ¶ added in v0.6.5
func (s StartGatewayOutput) GoString() string
GoString returns the string representation
func (StartGatewayOutput) String ¶ added in v0.6.5
func (s StartGatewayOutput) String() string
String returns the string representation
type StorageGateway ¶
AWS Storage Gateway is the service that connects an on-premises software appliance with cloud-based storage to provide seamless and secure integration between an organization's on-premises IT environment and AWS's storage infrastructure. The service enables you to securely upload data to the AWS cloud for cost effective backup and rapid disaster recovery.
Use the following links to get started using the AWS Storage Gateway Service API Reference:
AWS Storage Gateway Required Request Headers (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayHTTPRequestsHeaders.html):
Describes the required headers that you must send with every POST request to AWS Storage Gateway. Signing Requests (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewaySigningRequests.html): AWS Storage Gateway requires that you authenticate every request you send; this topic describes how sign such a request. Error Responses (http://docs.aws.amazon.com/storagegateway/latest/userguide/APIErrorResponses.html): Provides reference information about AWS Storage Gateway errors. Operations in AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/AWSStorageGatewayAPIOperations.html): Contains detailed descriptions of all AWS Storage Gateway operations, their request parameters, response elements, possible errors, and examples of requests and responses. AWS Storage Gateway Regions and Endpoints (http://docs.aws.amazon.com/general/latest/gr/index.html?rande.html): Provides a list of each of the regions and endpoints available for use with AWS Storage Gateway.
func (*StorageGateway) ActivateGateway ¶
func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error)
This operation activates the gateway you previously deployed on your host. For more information, see Activate the AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/userguide/GettingStartedActivateGateway-common.html). In the activation process, you specify information such as the region you want to use for storing snapshots, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account; for more information, see UpdateGatewayInformation.
You must turn on the gateway VM before you can activate your gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ActivateGatewayInput{ ActivationKey: aws.String("ActivationKey"), // Required GatewayName: aws.String("GatewayName"), // Required GatewayRegion: aws.String("RegionId"), // Required GatewayTimezone: aws.String("GatewayTimezone"), // Required GatewayType: aws.String("GatewayType"), MediumChangerType: aws.String("MediumChangerType"), TapeDriveType: aws.String("TapeDriveType"), } resp, err := svc.ActivateGateway(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ActivateGatewayRequest ¶
func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *aws.Request, output *ActivateGatewayOutput)
ActivateGatewayRequest generates a request for the ActivateGateway operation.
func (*StorageGateway) AddCache ¶
func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error)
This operation configures one or more gateway local disks as cache for a cached-volume gateway. This operation is supported only for the gateway-cached volume architecture (see Storage Gateway Concepts (http://docs.aws.amazon.com/storagegateway/latest/userguide/StorageGatewayConcepts.html)).
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add cache, and one or more disk IDs that you want to configure as cache.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.AddCacheInput{ DiskIDs: []*string{ // Required aws.String("DiskId"), // Required // More values... }, GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.AddCache(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) AddCacheRequest ¶
func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *aws.Request, output *AddCacheOutput)
AddCacheRequest generates a request for the AddCache operation.
func (*StorageGateway) AddUploadBuffer ¶
func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error)
This operation configures one or more gateway local disks as upload buffer for a specified gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.
In the request, you specify the gateway Amazon Resource Name (ARN) to which
you want to add upload buffer, and one or more disk IDs that you want to configure as upload buffer.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.AddUploadBufferInput{ DiskIDs: []*string{ // Required aws.String("DiskId"), // Required // More values... }, GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.AddUploadBuffer(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) AddUploadBufferRequest ¶
func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *aws.Request, output *AddUploadBufferOutput)
AddUploadBufferRequest generates a request for the AddUploadBuffer operation.
func (*StorageGateway) AddWorkingStorage ¶
func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error)
This operation configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated method in cached-volumes API version (20120630). Use AddUploadBuffer instead.
Working storage is also referred to as upload buffer. You can also use the AddUploadBuffer operation to add upload buffer to a stored-volume gateway.
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.AddWorkingStorageInput{ DiskIDs: []*string{ // Required aws.String("DiskId"), // Required // More values... }, GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.AddWorkingStorage(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) AddWorkingStorageRequest ¶
func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *aws.Request, output *AddWorkingStorageOutput)
AddWorkingStorageRequest generates a request for the AddWorkingStorage operation.
func (*StorageGateway) CancelArchival ¶
func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error)
Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CancelArchivalInput{ GatewayARN: aws.String("GatewayARN"), // Required TapeARN: aws.String("TapeARN"), // Required } resp, err := svc.CancelArchival(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CancelArchivalRequest ¶
func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *aws.Request, output *CancelArchivalOutput)
CancelArchivalRequest generates a request for the CancelArchival operation.
func (*StorageGateway) CancelRetrieval ¶
func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error)
Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated. The virtual tape is returned to the VTS.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CancelRetrievalInput{ GatewayARN: aws.String("GatewayARN"), // Required TapeARN: aws.String("TapeARN"), // Required } resp, err := svc.CancelRetrieval(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CancelRetrievalRequest ¶
func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *aws.Request, output *CancelRetrievalOutput)
CancelRetrievalRequest generates a request for the CancelRetrieval operation.
func (*StorageGateway) CreateCachediSCSIVolume ¶
func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error)
This operation creates a cached volume on a specified cached gateway. This operation is supported only for the gateway-cached volume architecture.
Cache storage must be allocated to the gateway before you can create a cached volume. Use the AddCache operation to add cache storage to a gateway. In the request, you must specify the gateway, size of the volume in bytes, the iSCSI target name, an IP address on which to expose the target, and a unique client token. In response, AWS Storage Gateway creates the volume and returns information about it such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CreateCachediSCSIVolumeInput{ ClientToken: aws.String("ClientToken"), // Required GatewayARN: aws.String("GatewayARN"), // Required NetworkInterfaceID: aws.String("NetworkInterfaceId"), // Required TargetName: aws.String("TargetName"), // Required VolumeSizeInBytes: aws.Long(1), // Required SnapshotID: aws.String("SnapshotId"), } resp, err := svc.CreateCachediSCSIVolume(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CreateCachediSCSIVolumeRequest ¶
func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *aws.Request, output *CreateCachediSCSIVolumeOutput)
CreateCachediSCSIVolumeRequest generates a request for the CreateCachediSCSIVolume operation.
func (*StorageGateway) CreateSnapshot ¶
func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error)
This operation initiates a snapshot of a volume.
AWS Storage Gateway provides the ability to back up point-in-time snapshots of your data to Amazon Simple Storage (S3) for durable off-site recovery, as well as import the data to an Amazon Elastic Block Store (EBS) volume in Amazon Elastic Compute Cloud (EC2). You can take snapshots of your gateway volume on a scheduled or ad-hoc basis. This API enables you to take ad-hoc snapshot. For more information, see Working With Snapshots in the AWS Storage Gateway Console (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html).
In the CreateSnapshot request you identify the volume by providing its Amazon Resource Name (ARN). You must also provide description for the snapshot. When AWS Storage Gateway takes the snapshot of specified volume, the snapshot and description appears in the AWS Storage Gateway Console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.
To list or delete a snapshot, you must use the Amazon EC2 API. For more information, see DescribeSnapshots or DeleteSnapshot in the EC2 API reference (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_Operations.html).
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CreateSnapshotInput{ SnapshotDescription: aws.String("SnapshotDescription"), // Required VolumeARN: aws.String("VolumeARN"), // Required } resp, err := svc.CreateSnapshot(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CreateSnapshotFromVolumeRecoveryPoint ¶
func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error)
This operation initiates a snapshot of a gateway from a volume recovery point. This operation is supported only for the gateway-cached volume architecture (see ).
A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To get a list of volume recovery point for gateway-cached volumes, use ListVolumeRecoveryPoints.
In the CreateSnapshotFromVolumeRecoveryPoint request, you identify the volume by providing its Amazon Resource Name (ARN). You must also provide a description for the snapshot. When AWS Storage Gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, AWS Storage Gateway returns you a snapshot ID. You can use this snapshot ID to check the snapshot progress or later use it when you want to create a volume from a snapshot.
To list or delete a snapshot, you must use the Amazon EC2 API. For more
information, in Amazon Elastic Compute Cloud API Reference.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CreateSnapshotFromVolumeRecoveryPointInput{ SnapshotDescription: aws.String("SnapshotDescription"), // Required VolumeARN: aws.String("VolumeARN"), // Required } resp, err := svc.CreateSnapshotFromVolumeRecoveryPoint(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest ¶
func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *aws.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput)
CreateSnapshotFromVolumeRecoveryPointRequest generates a request for the CreateSnapshotFromVolumeRecoveryPoint operation.
func (*StorageGateway) CreateSnapshotRequest ¶
func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *aws.Request, output *CreateSnapshotOutput)
CreateSnapshotRequest generates a request for the CreateSnapshot operation.
func (*StorageGateway) CreateStorediSCSIVolume ¶
func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error)
This operation creates a volume on a specified gateway. This operation is supported only for the gateway-stored volume architecture.
The size of the volume to create is inferred from the disk size. You can choose to preserve existing data on the disk, create volume from an existing snapshot, or create an empty volume. If you choose to create an empty gateway volume, then any existing data on the disk is erased.
In the request you must specify the gateway and the disk information on which you are creating the volume. In response, AWS Storage Gateway creates the volume and returns volume information such as the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CreateStorediSCSIVolumeInput{ DiskID: aws.String("DiskId"), // Required GatewayARN: aws.String("GatewayARN"), // Required NetworkInterfaceID: aws.String("NetworkInterfaceId"), // Required PreserveExistingData: aws.Boolean(true), // Required TargetName: aws.String("TargetName"), // Required SnapshotID: aws.String("SnapshotId"), } resp, err := svc.CreateStorediSCSIVolume(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CreateStorediSCSIVolumeRequest ¶
func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *aws.Request, output *CreateStorediSCSIVolumeOutput)
CreateStorediSCSIVolumeRequest generates a request for the CreateStorediSCSIVolume operation.
func (*StorageGateway) CreateTapes ¶
func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error)
Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes.
Cache storage must be allocated to the gateway before you can create virtual tapes. Use the AddCache operation to add cache storage to a gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.CreateTapesInput{ ClientToken: aws.String("ClientToken"), // Required GatewayARN: aws.String("GatewayARN"), // Required NumTapesToCreate: aws.Long(1), // Required TapeBarcodePrefix: aws.String("TapeBarcodePrefix"), // Required TapeSizeInBytes: aws.Long(1), // Required } resp, err := svc.CreateTapes(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) CreateTapesRequest ¶
func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *aws.Request, output *CreateTapesOutput)
CreateTapesRequest generates a request for the CreateTapes operation.
func (*StorageGateway) DeleteBandwidthRateLimit ¶
func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error)
This operation deletes the bandwidth rate limits of a gateway. You can delete either the upload and download bandwidth rate limit, or you can delete both. If you delete only one of the limits, the other limit remains unchanged. To specify which gateway to work with, use the Amazon Resource Name (ARN) of the gateway in your request.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteBandwidthRateLimitInput{ BandwidthType: aws.String("BandwidthType"), // Required GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DeleteBandwidthRateLimit(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteBandwidthRateLimitRequest ¶
func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *aws.Request, output *DeleteBandwidthRateLimitOutput)
DeleteBandwidthRateLimitRequest generates a request for the DeleteBandwidthRateLimit operation.
func (*StorageGateway) DeleteChapCredentials ¶
func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error)
This operation deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteChapCredentialsInput{ InitiatorName: aws.String("IqnName"), // Required TargetARN: aws.String("TargetARN"), // Required } resp, err := svc.DeleteChapCredentials(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteChapCredentialsRequest ¶
func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *aws.Request, output *DeleteChapCredentialsOutput)
DeleteChapCredentialsRequest generates a request for the DeleteChapCredentials operation.
func (*StorageGateway) DeleteGateway ¶
func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error)
This operation deletes a gateway. To specify which gateway to delete, use the Amazon Resource Name (ARN) of the gateway in your request. The operation deletes the gateway; however, it does not delete the gateway virtual machine (VM) from your host computer.
After you delete a gateway, you cannot reactivate it. Completed snapshots of the gateway volumes are not deleted upon deleting the gateway, however, pending snapshots will not complete. After you delete a gateway, your next step is to remove it from your environment.
You no longer pay software charges after the gateway is deleted; however,
your existing Amazon EBS snapshots persist and you will continue to be billed for these snapshots. You can choose to remove all remaining Amazon EBS snapshots by canceling your Amazon EC2 subscription. If you prefer not to cancel your Amazon EC2 subscription, you can delete your snapshots using the Amazon EC2 console. For more information, see the AWS Storage Gateway Detail Page (http://aws.amazon.com/storagegateway).
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DeleteGateway(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteGatewayRequest ¶
func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *aws.Request, output *DeleteGatewayOutput)
DeleteGatewayRequest generates a request for the DeleteGateway operation.
func (*StorageGateway) DeleteSnapshotSchedule ¶
func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error)
This operation deletes a snapshot of a volume.
You can take snapshots of your gateway volumes on a scheduled or ad-hoc
basis. This API enables you to delete a snapshot schedule for a volume. For more information, see Working with Snapshots (http://docs.aws.amazon.com/storagegateway/latest/userguide/WorkingWithSnapshots.html). In the DeleteSnapshotSchedule request, you identify the volume by providing its Amazon Resource Name (ARN).
To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon
Elastic Compute Cloud API Reference.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteSnapshotScheduleInput{ VolumeARN: aws.String("VolumeARN"), // Required } resp, err := svc.DeleteSnapshotSchedule(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteSnapshotScheduleRequest ¶
func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *aws.Request, output *DeleteSnapshotScheduleOutput)
DeleteSnapshotScheduleRequest generates a request for the DeleteSnapshotSchedule operation.
func (*StorageGateway) DeleteTape ¶
func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error)
Deletes the specified virtual tape.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteTapeInput{ GatewayARN: aws.String("GatewayARN"), // Required TapeARN: aws.String("TapeARN"), // Required } resp, err := svc.DeleteTape(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteTapeArchive ¶
func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error)
Deletes the specified virtual tape from the virtual tape shelf (VTS).
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteTapeArchiveInput{ TapeARN: aws.String("TapeARN"), // Required } resp, err := svc.DeleteTapeArchive(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteTapeArchiveRequest ¶
func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *aws.Request, output *DeleteTapeArchiveOutput)
DeleteTapeArchiveRequest generates a request for the DeleteTapeArchive operation.
func (*StorageGateway) DeleteTapeRequest ¶
func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *aws.Request, output *DeleteTapeOutput)
DeleteTapeRequest generates a request for the DeleteTape operation.
func (*StorageGateway) DeleteVolume ¶
func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error)
This operation delete the specified gateway volume that you previously created using the CreateStorediSCSIVolume API. For gateway-stored volumes, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.
Before you delete a gateway volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots (http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeSnapshots.html) in the Amazon Elastic Compute Cloud API Reference.
In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DeleteVolumeInput{ VolumeARN: aws.String("VolumeARN"), // Required } resp, err := svc.DeleteVolume(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DeleteVolumeRequest ¶
func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *aws.Request, output *DeleteVolumeOutput)
DeleteVolumeRequest generates a request for the DeleteVolume operation.
func (*StorageGateway) DescribeBandwidthRateLimit ¶
func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error)
This operation returns the bandwidth rate limits of a gateway. By default, these limits are not set, which means no bandwidth rate limiting is in effect.
This operation only returns a value for a bandwidth rate limit only if the limit is set. If no limits are set for the gateway, then this operation returns only the gateway ARN in the response body. To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeBandwidthRateLimitInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DescribeBandwidthRateLimit(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeBandwidthRateLimitRequest ¶
func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *aws.Request, output *DescribeBandwidthRateLimitOutput)
DescribeBandwidthRateLimitRequest generates a request for the DescribeBandwidthRateLimit operation.
func (*StorageGateway) DescribeCache ¶
func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error)
This operation returns information about the cache of a gateway. This operation is supported only for the gateway-cached volume architecture.
The response includes disk IDs that are configured as cache, and it includes
the amount of cache allocated and used.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeCacheInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DescribeCache(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeCacheRequest ¶
func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *aws.Request, output *DescribeCacheOutput)
DescribeCacheRequest generates a request for the DescribeCache operation.
func (*StorageGateway) DescribeCachediSCSIVolumes ¶
func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error)
This operation returns a description of the gateway volumes specified in the request. This operation is supported only for the gateway-cached volume architecture.
The list of gateway volumes in the request must be from one gateway. In
the response Amazon Storage Gateway returns volume information sorted by volume Amazon Resource Name (ARN).
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeCachediSCSIVolumesInput{ VolumeARNs: []*string{ // Required aws.String("VolumeARN"), // Required // More values... }, } resp, err := svc.DescribeCachediSCSIVolumes(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeCachediSCSIVolumesRequest ¶
func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *aws.Request, output *DescribeCachediSCSIVolumesOutput)
DescribeCachediSCSIVolumesRequest generates a request for the DescribeCachediSCSIVolumes operation.
func (*StorageGateway) DescribeChapCredentials ¶
func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error)
This operation returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeChapCredentialsInput{ TargetARN: aws.String("TargetARN"), // Required } resp, err := svc.DescribeChapCredentials(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeChapCredentialsRequest ¶
func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *aws.Request, output *DescribeChapCredentialsOutput)
DescribeChapCredentialsRequest generates a request for the DescribeChapCredentials operation.
func (*StorageGateway) DescribeGatewayInformation ¶
func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error)
This operation returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not). To specify which gateway to describe, use the Amazon Resource Name (ARN) of the gateway in your request.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeGatewayInformationInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DescribeGatewayInformation(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeGatewayInformationRequest ¶
func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *aws.Request, output *DescribeGatewayInformationOutput)
DescribeGatewayInformationRequest generates a request for the DescribeGatewayInformation operation.
func (*StorageGateway) DescribeMaintenanceStartTime ¶
func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error)
This operation returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeMaintenanceStartTimeInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DescribeMaintenanceStartTime(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeMaintenanceStartTimeRequest ¶
func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *aws.Request, output *DescribeMaintenanceStartTimeOutput)
DescribeMaintenanceStartTimeRequest generates a request for the DescribeMaintenanceStartTime operation.
func (*StorageGateway) DescribeSnapshotSchedule ¶
func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error)
This operation describes the snapshot schedule for the specified gateway volume. The snapshot schedule information includes intervals at which snapshots are automatically initiated on the volume.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeSnapshotScheduleInput{ VolumeARN: aws.String("VolumeARN"), // Required } resp, err := svc.DescribeSnapshotSchedule(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeSnapshotScheduleRequest ¶
func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *aws.Request, output *DescribeSnapshotScheduleOutput)
DescribeSnapshotScheduleRequest generates a request for the DescribeSnapshotSchedule operation.
func (*StorageGateway) DescribeStorediSCSIVolumes ¶
func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error)
This operation returns the description of the gateway volumes specified in the request. The list of gateway volumes in the request must be from one gateway. In the response Amazon Storage Gateway returns volume information sorted by volume ARNs.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeStorediSCSIVolumesInput{ VolumeARNs: []*string{ // Required aws.String("VolumeARN"), // Required // More values... }, } resp, err := svc.DescribeStorediSCSIVolumes(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeStorediSCSIVolumesRequest ¶
func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *aws.Request, output *DescribeStorediSCSIVolumesOutput)
DescribeStorediSCSIVolumesRequest generates a request for the DescribeStorediSCSIVolumes operation.
func (*StorageGateway) DescribeTapeArchives ¶
func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error)
Returns a description of specified virtual tapes in the virtual tape shelf (VTS).
If a specific TapeARN is not specified, AWS Storage Gateway returns a description of all virtual tapes found in the VTS associated with your account.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeTapeArchivesInput{ Limit: aws.Long(1), Marker: aws.String("Marker"), TapeARNs: []*string{ aws.String("TapeARN"), // Required // More values... }, } resp, err := svc.DescribeTapeArchives(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeTapeArchivesPages ¶
func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, fn func(p *DescribeTapeArchivesOutput, lastPage bool) (shouldContinue bool)) error
func (*StorageGateway) DescribeTapeArchivesRequest ¶
func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *aws.Request, output *DescribeTapeArchivesOutput)
DescribeTapeArchivesRequest generates a request for the DescribeTapeArchives operation.
func (*StorageGateway) DescribeTapeRecoveryPoints ¶
func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error)
Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.
A recovery point is a point in time view of a virtual tape at which all the data on the virtual tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeTapeRecoveryPointsInput{ GatewayARN: aws.String("GatewayARN"), // Required Limit: aws.Long(1), Marker: aws.String("Marker"), } resp, err := svc.DescribeTapeRecoveryPoints(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeTapeRecoveryPointsPages ¶
func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, fn func(p *DescribeTapeRecoveryPointsOutput, lastPage bool) (shouldContinue bool)) error
func (*StorageGateway) DescribeTapeRecoveryPointsRequest ¶
func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *aws.Request, output *DescribeTapeRecoveryPointsOutput)
DescribeTapeRecoveryPointsRequest generates a request for the DescribeTapeRecoveryPoints operation.
func (*StorageGateway) DescribeTapes ¶
func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error)
Returns a description of the specified Amazon Resource Name (ARN) of virtual tapes. If a TapeARN is not specified, returns a description of all virtual tapes associated with the specified gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeTapesInput{ GatewayARN: aws.String("GatewayARN"), // Required Limit: aws.Long(1), Marker: aws.String("Marker"), TapeARNs: []*string{ aws.String("TapeARN"), // Required // More values... }, } resp, err := svc.DescribeTapes(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeTapesPages ¶
func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, fn func(p *DescribeTapesOutput, lastPage bool) (shouldContinue bool)) error
func (*StorageGateway) DescribeTapesRequest ¶
func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *aws.Request, output *DescribeTapesOutput)
DescribeTapesRequest generates a request for the DescribeTapes operation.
func (*StorageGateway) DescribeUploadBuffer ¶
func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error)
This operation returns information about the upload buffer of a gateway. This operation is supported for both the gateway-stored and gateway-cached volume architectures.
The response includes disk IDs that are configured as upload buffer space,
and it includes the amount of upload buffer space allocated and used.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeUploadBufferInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DescribeUploadBuffer(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeUploadBufferRequest ¶
func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *aws.Request, output *DescribeUploadBufferOutput)
DescribeUploadBufferRequest generates a request for the DescribeUploadBuffer operation.
func (*StorageGateway) DescribeVTLDevices ¶
func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error)
Returns a description of virtual tape library (VTL) devices for the specified gateway. In the response, AWS Storage Gateway returns VTL device information.
The list of VTL devices must be from one gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeVTLDevicesInput{ GatewayARN: aws.String("GatewayARN"), // Required Limit: aws.Long(1), Marker: aws.String("Marker"), VTLDeviceARNs: []*string{ aws.String("VTLDeviceARN"), // Required // More values... }, } resp, err := svc.DescribeVTLDevices(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeVTLDevicesPages ¶
func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, fn func(p *DescribeVTLDevicesOutput, lastPage bool) (shouldContinue bool)) error
func (*StorageGateway) DescribeVTLDevicesRequest ¶
func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *aws.Request, output *DescribeVTLDevicesOutput)
DescribeVTLDevicesRequest generates a request for the DescribeVTLDevices operation.
func (*StorageGateway) DescribeWorkingStorage ¶
func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error)
This operation returns information about the working storage of a gateway. This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.
Working storage is also referred to as upload buffer. You can also use the DescribeUploadBuffer operation to add upload buffer to a stored-volume gateway.
The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DescribeWorkingStorageInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DescribeWorkingStorage(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DescribeWorkingStorageRequest ¶
func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *aws.Request, output *DescribeWorkingStorageOutput)
DescribeWorkingStorageRequest generates a request for the DescribeWorkingStorage operation.
func (*StorageGateway) DisableGateway ¶
func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error)
Disables a gateway when the gateway is no longer functioning. For example, if your gateway VM is damaged, you can disable the gateway so you can recover virtual tapes.
Use this operation for a gateway-VTL that is not reachable or not functioning.
Once a gateway is disabled it cannot be enabled.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.DisableGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.DisableGateway(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) DisableGatewayRequest ¶
func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *aws.Request, output *DisableGatewayOutput)
DisableGatewayRequest generates a request for the DisableGateway operation.
func (*StorageGateway) ListGateways ¶
func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error)
This operation lists gateways owned by an AWS account in a region specified in the request. The returned list is ordered by gateway Amazon Resource Name (ARN).
By default, the operation returns a maximum of 100 gateways. This operation supports pagination that allows you to optionally reduce the number of gateways returned in a response.
If you have more gateways than are returned in a response-that is, the response returns only a truncated list of your gateways-the response contains a marker that you can specify in your next request to fetch the next page of gateways.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ListGatewaysInput{ Limit: aws.Long(1), Marker: aws.String("Marker"), } resp, err := svc.ListGateways(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ListGatewaysPages ¶
func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, fn func(p *ListGatewaysOutput, lastPage bool) (shouldContinue bool)) error
func (*StorageGateway) ListGatewaysRequest ¶
func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *aws.Request, output *ListGatewaysOutput)
ListGatewaysRequest generates a request for the ListGateways operation.
func (*StorageGateway) ListLocalDisks ¶
func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error)
This operation returns a list of the gateway's local disks. To specify which gateway to describe, you use the Amazon Resource Name (ARN) of the gateway in the body of the request.
The request returns a list of all disks, specifying which are configured as working storage, cache storage, or stored volume or not configured at all. The response includes a DiskStatus field. This field can have a value of present (the disk is available to use), missing (the disk is no longer connected to the gateway), or mismatch (the disk node is occupied by a disk that has incorrect metadata or the disk content is corrupted).
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ListLocalDisksInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.ListLocalDisks(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ListLocalDisksRequest ¶
func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *aws.Request, output *ListLocalDisksOutput)
ListLocalDisksRequest generates a request for the ListLocalDisks operation.
func (*StorageGateway) ListVolumeInitiators ¶ added in v0.6.1
func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error)
This operation lists iSCSI initiators that are connected to a volume. You can use this operation to determine whether a volume is being used or not.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ListVolumeInitiatorsInput{ VolumeARN: aws.String("VolumeARN"), // Required } resp, err := svc.ListVolumeInitiators(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ListVolumeInitiatorsRequest ¶ added in v0.6.1
func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *aws.Request, output *ListVolumeInitiatorsOutput)
ListVolumeInitiatorsRequest generates a request for the ListVolumeInitiators operation.
func (*StorageGateway) ListVolumeRecoveryPoints ¶
func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error)
This operation lists the recovery points for a specified gateway. This operation is supported only for the gateway-cached volume architecture.
Each gateway-cached volume has one recovery point. A volume recovery point is a point in time at which all data of the volume is consistent and from which you can create a snapshot. To create a snapshot from a volume recovery point use the CreateSnapshotFromVolumeRecoveryPoint operation.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ListVolumeRecoveryPointsInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.ListVolumeRecoveryPoints(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ListVolumeRecoveryPointsRequest ¶
func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *aws.Request, output *ListVolumeRecoveryPointsOutput)
ListVolumeRecoveryPointsRequest generates a request for the ListVolumeRecoveryPoints operation.
func (*StorageGateway) ListVolumes ¶
func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error)
This operation lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN. The response includes only the volume ARNs. If you want additional volume information, use the DescribeStorediSCSIVolumes API.
The operation supports pagination. By default, the operation returns a maximum of up to 100 volumes. You can optionally specify the Limit field in the body to limit the number of volumes in the response. If the number of volumes returned in the response is truncated, the response includes a Marker field. You can use this Marker value in your subsequent request to retrieve the next set of volumes.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ListVolumesInput{ GatewayARN: aws.String("GatewayARN"), // Required Limit: aws.Long(1), Marker: aws.String("Marker"), } resp, err := svc.ListVolumes(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ListVolumesPages ¶
func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, fn func(p *ListVolumesOutput, lastPage bool) (shouldContinue bool)) error
func (*StorageGateway) ListVolumesRequest ¶
func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *aws.Request, output *ListVolumesOutput)
ListVolumesRequest generates a request for the ListVolumes operation.
func (*StorageGateway) ResetCache ¶
func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error)
This operation resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage. If your cache disk encounters a error, the gateway prevents read and write operations on virtual tapes in the gateway. For example, an error can occur when a disk is corrupted or removed from the gateway. When a cache is reset, the gateway loses its cache storage. At this point you can reconfigure the disks as cache disks.
If the cache disk you are resetting contains data that has not been uploaded
to Amazon S3 yet, that data can be lost. After you reset cache disks, there will be no configured cache disks left in the gateway, so you must configure at least one new cache disk for your gateway to function properly.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ResetCacheInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.ResetCache(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ResetCacheRequest ¶
func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *aws.Request, output *ResetCacheOutput)
ResetCacheRequest generates a request for the ResetCache operation.
func (*StorageGateway) RetrieveTapeArchive ¶
func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error)
Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a gateway-VTL. Virtual tapes archived in the VTS are not associated with any gateway. However after a tape is retrieved, it is associated with a gateway, even though it is also listed in the VTS.
Once a tape is successfully retrieved to a gateway, it cannot be retrieved again to another gateway. You must archive the tape again before you can retrieve it to another gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.RetrieveTapeArchiveInput{ GatewayARN: aws.String("GatewayARN"), // Required TapeARN: aws.String("TapeARN"), // Required } resp, err := svc.RetrieveTapeArchive(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) RetrieveTapeArchiveRequest ¶
func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *aws.Request, output *RetrieveTapeArchiveOutput)
RetrieveTapeArchiveRequest generates a request for the RetrieveTapeArchive operation.
func (*StorageGateway) RetrieveTapeRecoveryPoint ¶
func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error)
Retrieves the recovery point for the specified virtual tape.
A recovery point is a point in time view of a virtual tape at which all the data on the tape is consistent. If your gateway crashes, virtual tapes that have recovery points can be recovered to a new gateway.
The virtual tape can be retrieved to only one gateway. The retrieved tape is read-only. The virtual tape can be retrieved to only a gateway-VTL. There is no charge for retrieving recovery points.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.RetrieveTapeRecoveryPointInput{ GatewayARN: aws.String("GatewayARN"), // Required TapeARN: aws.String("TapeARN"), // Required } resp, err := svc.RetrieveTapeRecoveryPoint(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) RetrieveTapeRecoveryPointRequest ¶
func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *aws.Request, output *RetrieveTapeRecoveryPointOutput)
RetrieveTapeRecoveryPointRequest generates a request for the RetrieveTapeRecoveryPoint operation.
func (*StorageGateway) ShutdownGateway ¶
func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error)
This operation shuts down a gateway. To specify which gateway to shut down, use the Amazon Resource Name (ARN) of the gateway in the body of your request.
The operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.
If you want to shut down the VM, it is recommended that you first shut down the gateway component in the VM to avoid unpredictable conditions. After the gateway is shutdown, you cannot call any other API except StartGateway, DescribeGatewayInformation, and ListGateways. For more information, see ActivateGateway. Your applications cannot read from or write to the gateway's storage volumes, and there are no snapshots taken.
When you make a shutdown request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to shut down. You can call the DescribeGatewayInformation API to check the status. For more information, see ActivateGateway. If do not intend to use the gateway again, you must delete the gateway (using DeleteGateway) to no longer pay software charges associated with the gateway.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.ShutdownGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.ShutdownGateway(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) ShutdownGatewayRequest ¶
func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *aws.Request, output *ShutdownGatewayOutput)
ShutdownGatewayRequest generates a request for the ShutdownGateway operation.
func (*StorageGateway) StartGateway ¶
func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error)
This operation starts a gateway that you previously shut down (see ShutdownGateway). After the gateway starts, you can then make other API calls, your applications can read from or write to the gateway's storage volumes and you will be able to take snapshot backups.
When you make a request, you will get a 200 OK success response immediately. However, it might take some time for the gateway to be ready. You should call DescribeGatewayInformation and check the status before making any additional API calls. For more information, see ActivateGateway. To specify which gateway to start, use the Amazon Resource Name (ARN) of the gateway in your request.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.StartGatewayInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.StartGateway(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) StartGatewayRequest ¶
func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *aws.Request, output *StartGatewayOutput)
StartGatewayRequest generates a request for the StartGateway operation.
func (*StorageGateway) UpdateBandwidthRateLimit ¶
func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error)
This operation updates the bandwidth rate limits of a gateway. You can update both the upload and download bandwidth rate limit or specify only one of the two. If you don't set a bandwidth rate limit, the existing rate limit remains.
By default, a gateway's bandwidth rate limits are not set. If you don't set any limit, the gateway does not have any limitations on its bandwidth usage and could potentially use the maximum available bandwidth.
To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateBandwidthRateLimitInput{ GatewayARN: aws.String("GatewayARN"), // Required AverageDownloadRateLimitInBitsPerSec: aws.Long(1), AverageUploadRateLimitInBitsPerSec: aws.Long(1), } resp, err := svc.UpdateBandwidthRateLimit(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateBandwidthRateLimitRequest ¶
func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *aws.Request, output *UpdateBandwidthRateLimitOutput)
UpdateBandwidthRateLimitRequest generates a request for the UpdateBandwidthRateLimit operation.
func (*StorageGateway) UpdateChapCredentials ¶
func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error)
This operation updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target. By default, a gateway does not have CHAP enabled; however, for added security, you might use it.
When you update CHAP credentials, all existing connections on the target
are closed and initiators must reconnect with the new credentials.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateChapCredentialsInput{ InitiatorName: aws.String("IqnName"), // Required SecretToAuthenticateInitiator: aws.String("ChapSecret"), // Required TargetARN: aws.String("TargetARN"), // Required SecretToAuthenticateTarget: aws.String("ChapSecret"), } resp, err := svc.UpdateChapCredentials(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateChapCredentialsRequest ¶
func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *aws.Request, output *UpdateChapCredentialsOutput)
UpdateChapCredentialsRequest generates a request for the UpdateChapCredentials operation.
func (*StorageGateway) UpdateGatewayInformation ¶
func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error)
This operation updates a gateway's metadata, which includes the gateway's name and time zone. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateGatewayInformationInput{ GatewayARN: aws.String("GatewayARN"), // Required GatewayName: aws.String("GatewayName"), GatewayTimezone: aws.String("GatewayTimezone"), } resp, err := svc.UpdateGatewayInformation(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateGatewayInformationRequest ¶
func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *aws.Request, output *UpdateGatewayInformationOutput)
UpdateGatewayInformationRequest generates a request for the UpdateGatewayInformation operation.
func (*StorageGateway) UpdateGatewaySoftwareNow ¶
func (c *StorageGateway) UpdateGatewaySoftwareNow(input *UpdateGatewaySoftwareNowInput) (*UpdateGatewaySoftwareNowOutput, error)
This operation updates the gateway virtual machine (VM) software. The request immediately triggers the software update.
When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete. You can call DescribeGatewayInformation to verify the gateway is in the STATE_RUNNING state. A software update forces a system restart of your gateway. You can minimize the chance of any disruption to your applications by increasing your iSCSI Initiators' timeouts. For more information about increasing iSCSI Initiator timeouts for Windows and Linux, see Customizing Your Windows iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorWindowsClient.html#CustomizeWindowsiSCSISettings) and Customizing Your Linux iSCSI Settings (http://docs.aws.amazon.com/storagegateway/latest/userguide/ConfiguringiSCSIClientInitiatorRedHatClient.html#CustomizeLinuxiSCSISettings), respectively.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateGatewaySoftwareNowInput{ GatewayARN: aws.String("GatewayARN"), // Required } resp, err := svc.UpdateGatewaySoftwareNow(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateGatewaySoftwareNowRequest ¶
func (c *StorageGateway) UpdateGatewaySoftwareNowRequest(input *UpdateGatewaySoftwareNowInput) (req *aws.Request, output *UpdateGatewaySoftwareNowOutput)
UpdateGatewaySoftwareNowRequest generates a request for the UpdateGatewaySoftwareNow operation.
func (*StorageGateway) UpdateMaintenanceStartTime ¶
func (c *StorageGateway) UpdateMaintenanceStartTime(input *UpdateMaintenanceStartTimeInput) (*UpdateMaintenanceStartTimeOutput, error)
This operation updates a gateway's weekly maintenance start time information, including day and time of the week. The maintenance time is the time in your gateway's time zone.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateMaintenanceStartTimeInput{ DayOfWeek: aws.Long(1), // Required GatewayARN: aws.String("GatewayARN"), // Required HourOfDay: aws.Long(1), // Required MinuteOfHour: aws.Long(1), // Required } resp, err := svc.UpdateMaintenanceStartTime(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateMaintenanceStartTimeRequest ¶
func (c *StorageGateway) UpdateMaintenanceStartTimeRequest(input *UpdateMaintenanceStartTimeInput) (req *aws.Request, output *UpdateMaintenanceStartTimeOutput)
UpdateMaintenanceStartTimeRequest generates a request for the UpdateMaintenanceStartTime operation.
func (*StorageGateway) UpdateSnapshotSchedule ¶
func (c *StorageGateway) UpdateSnapshotSchedule(input *UpdateSnapshotScheduleInput) (*UpdateSnapshotScheduleOutput, error)
This operation updates a snapshot schedule configured for a gateway volume.
The default snapshot schedule for volume is once every 24 hours, starting at the creation time of the volume. You can use this API to change the snapshot schedule configured for the volume.
In the request you must identify the gateway volume whose snapshot schedule you want to update, and the schedule information, including when you want the snapshot to begin on a day and the frequency (in hours) of snapshots.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateSnapshotScheduleInput{ RecurrenceInHours: aws.Long(1), // Required StartAt: aws.Long(1), // Required VolumeARN: aws.String("VolumeARN"), // Required Description: aws.String("Description"), } resp, err := svc.UpdateSnapshotSchedule(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateSnapshotScheduleRequest ¶
func (c *StorageGateway) UpdateSnapshotScheduleRequest(input *UpdateSnapshotScheduleInput) (req *aws.Request, output *UpdateSnapshotScheduleOutput)
UpdateSnapshotScheduleRequest generates a request for the UpdateSnapshotSchedule operation.
func (*StorageGateway) UpdateVTLDeviceType ¶
func (c *StorageGateway) UpdateVTLDeviceType(input *UpdateVTLDeviceTypeInput) (*UpdateVTLDeviceTypeOutput, error)
This operation updates the type of medium changer in a gateway-VTL. When you activate a gateway-VTL, you select a medium changer type for the gateway-VTL. This operation enables you to select a different type of medium changer after a gateway-VTL is activated.
Example ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/aws/awsutil" "github.com/aws/aws-sdk-go/service/storagegateway" ) func main() { svc := storagegateway.New(nil) params := &storagegateway.UpdateVTLDeviceTypeInput{ DeviceType: aws.String("DeviceType"), // Required VTLDeviceARN: aws.String("VTLDeviceARN"), // Required } resp, err := svc.UpdateVTLDeviceType(params) if err != nil { if awsErr, ok := err.(awserr.Error); ok { // Generic AWS error with Code, Message, and original error (if any) fmt.Println(awsErr.Code(), awsErr.Message(), awsErr.OrigErr()) if reqErr, ok := err.(awserr.RequestFailure); ok { // A service error occurred fmt.Println(reqErr.Code(), reqErr.Message(), reqErr.StatusCode(), reqErr.RequestID()) } } else { // This case should never be hit, the SDK should always return an // error which satisfies the awserr.Error interface. fmt.Println(err.Error()) } } // Pretty-print the response data. fmt.Println(awsutil.StringValue(resp)) }
Output:
func (*StorageGateway) UpdateVTLDeviceTypeRequest ¶
func (c *StorageGateway) UpdateVTLDeviceTypeRequest(input *UpdateVTLDeviceTypeInput) (req *aws.Request, output *UpdateVTLDeviceTypeOutput)
UpdateVTLDeviceTypeRequest generates a request for the UpdateVTLDeviceType operation.
type StorediSCSIVolume ¶
type StorediSCSIVolume struct { PreservedExistingData *bool `type:"boolean"` SourceSnapshotID *string `locationName:"SourceSnapshotId" type:"string"` VolumeARN *string `type:"string"` VolumeDiskID *string `locationName:"VolumeDiskId" type:"string"` VolumeID *string `locationName:"VolumeId" type:"string"` VolumeProgress *float64 `type:"double"` VolumeSizeInBytes *int64 `type:"long"` VolumeStatus *string `type:"string"` VolumeType *string `type:"string"` // Lists iSCSI information about a volume. VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"` // contains filtered or unexported fields }
func (StorediSCSIVolume) GoString ¶ added in v0.6.5
func (s StorediSCSIVolume) GoString() string
GoString returns the string representation
func (StorediSCSIVolume) String ¶ added in v0.6.5
func (s StorediSCSIVolume) String() string
String returns the string representation
type Tape ¶
type Tape struct { // For archiving virtual tapes, indicates how much data remains to be uploaded // before archiving is complete. // // Range: 0 (not started) to 100 (complete). Progress *float64 `type:"double"` // The Amazon Resource Name (ARN) of the virtual tape. TapeARN *string `type:"string"` // The barcode that identifies a specific virtual tape. TapeBarcode *string `type:"string"` // The size, in bytes, of the virtual tape. TapeSizeInBytes *int64 `type:"long"` // The current state of the virtual tape. TapeStatus *string `type:"string"` // The virtual tape library (VTL) device that the virtual tape is associated // with. VTLDevice *string `type:"string"` // contains filtered or unexported fields }
Describes a virtual tape object.
type TapeArchive ¶
type TapeArchive struct { // The time that the archiving of the virtual tape was completed. // // The string format of the completion time is in the ISO8601 extended YYYY-MM-DD'T'HH:MM:SS'Z' // format. CompletionTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The Amazon Resource Name (ARN) of the gateway-VTL that the virtual tape is // being retrieved to. // // The virtual tape is retrieved from the virtual tape shelf (VTS). RetrievedTo *string `type:"string"` // The Amazon Resource Name (ARN) of an archived virtual tape. TapeARN *string `type:"string"` // The barcode that identifies the archived virtual tape. TapeBarcode *string `type:"string"` // The size, in bytes, of the archived virtual tape. TapeSizeInBytes *int64 `type:"long"` // The current state of the archived virtual tape. TapeStatus *string `type:"string"` // contains filtered or unexported fields }
Represents a virtual tape that is archived in the virtual tape shelf (VTS).
func (TapeArchive) GoString ¶ added in v0.6.5
func (s TapeArchive) GoString() string
GoString returns the string representation
func (TapeArchive) String ¶ added in v0.6.5
func (s TapeArchive) String() string
String returns the string representation
type TapeRecoveryPointInfo ¶
type TapeRecoveryPointInfo struct { // The Amazon Resource Name (ARN) of the virtual tape. TapeARN *string `type:"string"` // The time when the point-in-time view of the virtual tape was replicated for // later recovery. // // The string format of the tape recovery point time is in the ISO8601 extended // YYYY-MM-DD'T'HH:MM:SS'Z' format. TapeRecoveryPointTime *time.Time `type:"timestamp" timestampFormat:"unix"` // The size, in bytes, of the virtual tapes to recover. TapeSizeInBytes *int64 `type:"long"` TapeStatus *string `type:"string"` // contains filtered or unexported fields }
Describes a recovery point.
func (TapeRecoveryPointInfo) GoString ¶ added in v0.6.5
func (s TapeRecoveryPointInfo) GoString() string
GoString returns the string representation
func (TapeRecoveryPointInfo) String ¶ added in v0.6.5
func (s TapeRecoveryPointInfo) String() string
String returns the string representation
type UpdateBandwidthRateLimitInput ¶
type UpdateBandwidthRateLimitInput struct { // The average download bandwidth rate limit in bits per second. AverageDownloadRateLimitInBitsPerSec *int64 `type:"long"` // The average upload bandwidth rate limit in bits per second. AverageUploadRateLimitInBitsPerSec *int64 `type:"long"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
UpdateBandwidthRateLimitInput$AverageDownloadRateLimitInBitsPerSec UpdateBandwidthRateLimitInput$AverageUploadRateLimitInBitsPerSec
func (UpdateBandwidthRateLimitInput) GoString ¶ added in v0.6.5
func (s UpdateBandwidthRateLimitInput) GoString() string
GoString returns the string representation
func (UpdateBandwidthRateLimitInput) String ¶ added in v0.6.5
func (s UpdateBandwidthRateLimitInput) String() string
String returns the string representation
type UpdateBandwidthRateLimitOutput ¶
type UpdateBandwidthRateLimitOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway whose throttle information was updated.
func (UpdateBandwidthRateLimitOutput) GoString ¶ added in v0.6.5
func (s UpdateBandwidthRateLimitOutput) GoString() string
GoString returns the string representation
func (UpdateBandwidthRateLimitOutput) String ¶ added in v0.6.5
func (s UpdateBandwidthRateLimitOutput) String() string
String returns the string representation
type UpdateChapCredentialsInput ¶
type UpdateChapCredentialsInput struct { // The iSCSI initiator that connects to the target. InitiatorName *string `type:"string" required:"true"` // The secret key that the initiator (for example, the Windows client) must // provide to participate in mutual CHAP with the target. // // The secret key must be between 12 and 16 bytes when encoded in UTF-8. SecretToAuthenticateInitiator *string `type:"string" required:"true"` // The secret key that the target must provide to participate in mutual CHAP // with the initiator (e.g. Windows client). // // Byte constraints: Minimum bytes of 12. Maximum bytes of 16. // // The secret key must be between 12 and 16 bytes when encoded in UTF-8. SecretToAuthenticateTarget *string `type:"string"` // The Amazon Resource Name (ARN) of the iSCSI volume target. Use the DescribeStorediSCSIVolumes // operation to return the TargetARN for specified VolumeARN. TargetARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
UpdateChapCredentialsInput$InitiatorName UpdateChapCredentialsInput$SecretToAuthenticateInitiator UpdateChapCredentialsInput$SecretToAuthenticateTarget UpdateChapCredentialsInput$TargetARN
func (UpdateChapCredentialsInput) GoString ¶ added in v0.6.5
func (s UpdateChapCredentialsInput) GoString() string
GoString returns the string representation
func (UpdateChapCredentialsInput) String ¶ added in v0.6.5
func (s UpdateChapCredentialsInput) String() string
String returns the string representation
type UpdateChapCredentialsOutput ¶
type UpdateChapCredentialsOutput struct { // The iSCSI initiator that connects to the target. This is the same initiator // name specified in the request. InitiatorName *string `type:"string"` // The Amazon Resource Name (ARN) of the target. This is the same target specified // in the request. TargetARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the following fields:
func (UpdateChapCredentialsOutput) GoString ¶ added in v0.6.5
func (s UpdateChapCredentialsOutput) GoString() string
GoString returns the string representation
func (UpdateChapCredentialsOutput) String ¶ added in v0.6.5
func (s UpdateChapCredentialsOutput) String() string
String returns the string representation
type UpdateGatewayInformationInput ¶
type UpdateGatewayInformationInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // A unique identifier for your gateway. This name becomes part of the gateway // Amazon Resources Name (ARN) which is what you use as an input to other operations. GatewayName *string `type:"string"` GatewayTimezone *string `type:"string"` // contains filtered or unexported fields }
func (UpdateGatewayInformationInput) GoString ¶ added in v0.6.5
func (s UpdateGatewayInformationInput) GoString() string
GoString returns the string representation
func (UpdateGatewayInformationInput) String ¶ added in v0.6.5
func (s UpdateGatewayInformationInput) String() string
String returns the string representation
type UpdateGatewayInformationOutput ¶
type UpdateGatewayInformationOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway that was updated.
func (UpdateGatewayInformationOutput) GoString ¶ added in v0.6.5
func (s UpdateGatewayInformationOutput) GoString() string
GoString returns the string representation
func (UpdateGatewayInformationOutput) String ¶ added in v0.6.5
func (s UpdateGatewayInformationOutput) String() string
String returns the string representation
type UpdateGatewaySoftwareNowInput ¶
type UpdateGatewaySoftwareNowInput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing the of the gateway to update.
func (UpdateGatewaySoftwareNowInput) GoString ¶ added in v0.6.5
func (s UpdateGatewaySoftwareNowInput) GoString() string
GoString returns the string representation
func (UpdateGatewaySoftwareNowInput) String ¶ added in v0.6.5
func (s UpdateGatewaySoftwareNowInput) String() string
String returns the string representation
type UpdateGatewaySoftwareNowOutput ¶
type UpdateGatewaySoftwareNowOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway that was updated.
func (UpdateGatewaySoftwareNowOutput) GoString ¶ added in v0.6.5
func (s UpdateGatewaySoftwareNowOutput) GoString() string
GoString returns the string representation
func (UpdateGatewaySoftwareNowOutput) String ¶ added in v0.6.5
func (s UpdateGatewaySoftwareNowOutput) String() string
String returns the string representation
type UpdateMaintenanceStartTimeInput ¶
type UpdateMaintenanceStartTimeInput struct { // The maintenance start time day of the week. DayOfWeek *int64 `type:"integer" required:"true"` // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string" required:"true"` // The hour component of the maintenance start time represented as hh, where // hh is the hour (00 to 23). The hour of the day is in the time zone of the // gateway. HourOfDay *int64 `type:"integer" required:"true"` // The minute component of the maintenance start time represented as mm, where // mm is the minute (00 to 59). The minute of the hour is in the time zone of // the gateway. MinuteOfHour *int64 `type:"integer" required:"true"` // contains filtered or unexported fields }
A JSON object containing the following fields:
UpdateMaintenanceStartTimeInput$DayOfWeek UpdateMaintenanceStartTimeInput$HourOfDay UpdateMaintenanceStartTimeInput$MinuteOfHour
func (UpdateMaintenanceStartTimeInput) GoString ¶ added in v0.6.5
func (s UpdateMaintenanceStartTimeInput) GoString() string
GoString returns the string representation
func (UpdateMaintenanceStartTimeInput) String ¶ added in v0.6.5
func (s UpdateMaintenanceStartTimeInput) String() string
String returns the string representation
type UpdateMaintenanceStartTimeOutput ¶
type UpdateMaintenanceStartTimeOutput struct { // The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation // to return a list of gateways for your account and region. GatewayARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the gateway whose maintenance start time is updated.
func (UpdateMaintenanceStartTimeOutput) GoString ¶ added in v0.6.5
func (s UpdateMaintenanceStartTimeOutput) GoString() string
GoString returns the string representation
func (UpdateMaintenanceStartTimeOutput) String ¶ added in v0.6.5
func (s UpdateMaintenanceStartTimeOutput) String() string
String returns the string representation
type UpdateSnapshotScheduleInput ¶
type UpdateSnapshotScheduleInput struct { // Optional description of the snapshot that overwrites the existing description. Description *string `type:"string"` // Frequency of snapshots. Specify the number of hours between snapshots. RecurrenceInHours *int64 `type:"integer" required:"true"` // The hour of the day at which the snapshot schedule begins represented as // hh, where hh is the hour (0 to 23). The hour of the day is in the time zone // of the gateway. StartAt *int64 `type:"integer" required:"true"` // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation // to return a list of gateway volumes. VolumeARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
A JSON object containing one or more of the following fields:
UpdateSnapshotScheduleInput$Description UpdateSnapshotScheduleInput$RecurrenceInHours UpdateSnapshotScheduleInput$StartAt UpdateSnapshotScheduleInput$VolumeARN
func (UpdateSnapshotScheduleInput) GoString ¶ added in v0.6.5
func (s UpdateSnapshotScheduleInput) GoString() string
GoString returns the string representation
func (UpdateSnapshotScheduleInput) String ¶ added in v0.6.5
func (s UpdateSnapshotScheduleInput) String() string
String returns the string representation
type UpdateSnapshotScheduleOutput ¶
type UpdateSnapshotScheduleOutput struct { VolumeARN *string `type:"string"` // contains filtered or unexported fields }
A JSON object containing the of the updated storage volume.
func (UpdateSnapshotScheduleOutput) GoString ¶ added in v0.6.5
func (s UpdateSnapshotScheduleOutput) GoString() string
GoString returns the string representation
func (UpdateSnapshotScheduleOutput) String ¶ added in v0.6.5
func (s UpdateSnapshotScheduleOutput) String() string
String returns the string representation
type UpdateVTLDeviceTypeInput ¶
type UpdateVTLDeviceTypeInput struct { // The type of medium changer you want to select. // // Valid Values: "STK-L700", "AWS-Gateway-VTL" DeviceType *string `type:"string" required:"true"` // The Amazon Resource Name (ARN) of the medium changer you want to select. VTLDeviceARN *string `type:"string" required:"true"` // contains filtered or unexported fields }
UpdateVTLDeviceTypeInput
func (UpdateVTLDeviceTypeInput) GoString ¶ added in v0.6.5
func (s UpdateVTLDeviceTypeInput) GoString() string
GoString returns the string representation
func (UpdateVTLDeviceTypeInput) String ¶ added in v0.6.5
func (s UpdateVTLDeviceTypeInput) String() string
String returns the string representation
type UpdateVTLDeviceTypeOutput ¶
type UpdateVTLDeviceTypeOutput struct { // The Amazon Resource Name (ARN) of the medium changer you have selected. VTLDeviceARN *string `type:"string"` // contains filtered or unexported fields }
UpdateVTLDeviceTypeOutput
func (UpdateVTLDeviceTypeOutput) GoString ¶ added in v0.6.5
func (s UpdateVTLDeviceTypeOutput) GoString() string
GoString returns the string representation
func (UpdateVTLDeviceTypeOutput) String ¶ added in v0.6.5
func (s UpdateVTLDeviceTypeOutput) String() string
String returns the string representation
type VTLDevice ¶
type VTLDevice struct { // A list of iSCSI information about a VTL device. DeviceiSCSIAttributes *DeviceiSCSIAttributes `type:"structure"` // Specifies the unique Amazon Resource Name (ARN) of the device (tape drive // or media changer). VTLDeviceARN *string `type:"string"` VTLDeviceProductIdentifier *string `type:"string"` VTLDeviceType *string `type:"string"` VTLDeviceVendor *string `type:"string"` // contains filtered or unexported fields }
Represents a device object associated with a gateway-VTL.
type VolumeInfo ¶
type VolumeInfo struct { VolumeARN *string `type:"string"` VolumeType *string `type:"string"` // contains filtered or unexported fields }
func (VolumeInfo) GoString ¶ added in v0.6.5
func (s VolumeInfo) GoString() string
GoString returns the string representation
func (VolumeInfo) String ¶ added in v0.6.5
func (s VolumeInfo) String() string
String returns the string representation
type VolumeRecoveryPointInfo ¶
type VolumeRecoveryPointInfo struct { VolumeARN *string `type:"string"` VolumeRecoveryPointTime *string `type:"string"` VolumeSizeInBytes *int64 `type:"long"` VolumeUsageInBytes *int64 `type:"long"` // contains filtered or unexported fields }
func (VolumeRecoveryPointInfo) GoString ¶ added in v0.6.5
func (s VolumeRecoveryPointInfo) GoString() string
GoString returns the string representation
func (VolumeRecoveryPointInfo) String ¶ added in v0.6.5
func (s VolumeRecoveryPointInfo) String() string
String returns the string representation
type VolumeiSCSIAttributes ¶
type VolumeiSCSIAttributes struct { // Indicates whether mutual CHAP is enabled for the iSCSI target. ChapEnabled *bool `type:"boolean"` // The logical disk number. LunNumber *int64 `type:"integer"` // The network interface identifier. NetworkInterfaceID *string `locationName:"NetworkInterfaceId" type:"string"` // The port used to communicate with iSCSI targets. NetworkInterfacePort *int64 `type:"integer"` // The Amazon Resource Name (ARN) of the volume target. TargetARN *string `type:"string"` // contains filtered or unexported fields }
Lists iSCSI information about a volume.
func (VolumeiSCSIAttributes) GoString ¶ added in v0.6.5
func (s VolumeiSCSIAttributes) GoString() string
GoString returns the string representation
func (VolumeiSCSIAttributes) String ¶ added in v0.6.5
func (s VolumeiSCSIAttributes) String() string
String returns the string representation
Directories ¶
Path | Synopsis |
---|---|
Package storagegatewayiface provides an interface for the AWS Storage Gateway.
|
Package storagegatewayiface provides an interface for the AWS Storage Gateway. |