...
AWS SDK for Go API Reference
import "github.com/aws/aws-sdk-go/service/storagegateway"
Overview
Constants
Examples

Overview ▾

Package storagegateway provides the client and types for making API requests to AWS Storage Gateway.

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/AWSStorageGatewayAPI.html#AWSStorageGatewayHTTPRequestsHeaders):
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/AWSStorageGatewayAPI.html#AWSStorageGatewaySigningRequests):
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/AWSStorageGatewayAPI.html#APIErrorResponses):
Provides reference information about AWS Storage Gateway errors.

* Operations in AWS Storage Gateway (http://docs.aws.amazon.com/storagegateway/latest/APIReference/API_Operations.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/rande.html#sg_region)
Provides a list of each AWS region and endpoints available for use with
AWS Storage Gateway.

AWS Storage Gateway resource IDs are in uppercase. When you use these resource IDs with the Amazon EC2 API, EC2 expects resource IDs in lowercase. You must change your resource ID to lowercase to use it with the EC2 API. For example, in Storage Gateway the ID for a volume might be vol-AA22BB012345DAF670. When you use this ID with the EC2 API, you must change it to vol-aa22bb012345daf670. Otherwise, the EC2 API might not behave as expected.

IDs for Storage Gateway volumes and Amazon EBS snapshots created from gateway volumes are changing to a longer format. Starting in December 2016, all new volumes and snapshots will be created with a 17-character string. Starting in April 2016, you will be able to use these longer IDs so you can test your systems with the new format. For more information, see Longer EC2 and EBS Resource IDs (https://aws.amazon.com/ec2/faqs/#longer-ids).

For example, a volume Amazon Resource Name (ARN) with the longer volume

ID format looks like the following:

arn:aws:storagegateway:us-west-2:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABBCCDDEEFFG.

A snapshot ID with the longer ID format looks like the following: snap-78e226633445566ee.

For more information, see Announcement: Heads-up – Longer AWS Storage Gateway volume and snapshot IDs coming in 2016 (https://forums.aws.amazon.com/ann.jspa?annID=3557).

See https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30 for more information on this service.

See storagegateway package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/storagegateway/

Using the Client

To contact AWS Storage Gateway with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS Storage Gateway client StorageGateway for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/storagegateway/#New

The stub package, storagegatewayiface, can be used to provide alternative implementations of service clients, such as mocking the client for testing.

Operations ▾

func New(p client.ConfigProvider, cfgs ...*aws.Config) *StorageGateway
    ActivateGateway
    ActivateGatewayRequest
    ActivateGatewayWithContext
    AddCache
    AddCacheRequest
    AddCacheWithContext
    AddTagsToResource
    AddTagsToResourceRequest
    AddTagsToResourceWithContext
    AddUploadBuffer
    AddUploadBufferRequest
    AddUploadBufferWithContext
    AddWorkingStorage
    AddWorkingStorageRequest
    AddWorkingStorageWithContext
    CancelArchival
    CancelArchivalRequest
    CancelArchivalWithContext
    CancelRetrieval
    CancelRetrievalRequest
    CancelRetrievalWithContext
    CreateCachediSCSIVolume
    CreateCachediSCSIVolumeRequest
    CreateCachediSCSIVolumeWithContext
    CreateNFSFileShare
    CreateNFSFileShareRequest
    CreateNFSFileShareWithContext
    CreateSMBFileShare
    CreateSMBFileShareRequest
    CreateSMBFileShareWithContext
    CreateSnapshot
    CreateSnapshotFromVolumeRecoveryPoint
    CreateSnapshotFromVolumeRecoveryPointRequest
    CreateSnapshotFromVolumeRecoveryPointWithContext
    CreateSnapshotRequest
    CreateSnapshotWithContext
    CreateStorediSCSIVolume
    CreateStorediSCSIVolumeRequest
    CreateStorediSCSIVolumeWithContext
    CreateTapeWithBarcode
    CreateTapeWithBarcodeRequest
    CreateTapeWithBarcodeWithContext
    CreateTapes
    CreateTapesRequest
    CreateTapesWithContext
    DeleteBandwidthRateLimit
    DeleteBandwidthRateLimitRequest
    DeleteBandwidthRateLimitWithContext
    DeleteChapCredentials
    DeleteChapCredentialsRequest
    DeleteChapCredentialsWithContext
    DeleteFileShare
    DeleteFileShareRequest
    DeleteFileShareWithContext
    DeleteGateway
    DeleteGatewayRequest
    DeleteGatewayWithContext
    DeleteSnapshotSchedule
    DeleteSnapshotScheduleRequest
    DeleteSnapshotScheduleWithContext
    DeleteTape
    DeleteTapeArchive
    DeleteTapeArchiveRequest
    DeleteTapeArchiveWithContext
    DeleteTapeRequest
    DeleteTapeWithContext
    DeleteVolume
    DeleteVolumeRequest
    DeleteVolumeWithContext
    DescribeBandwidthRateLimit
    DescribeBandwidthRateLimitRequest
    DescribeBandwidthRateLimitWithContext
    DescribeCache
    DescribeCacheRequest
    DescribeCacheWithContext
    DescribeCachediSCSIVolumes
    DescribeCachediSCSIVolumesRequest
    DescribeCachediSCSIVolumesWithContext
    DescribeChapCredentials
    DescribeChapCredentialsRequest
    DescribeChapCredentialsWithContext
    DescribeGatewayInformation
    DescribeGatewayInformationRequest
    DescribeGatewayInformationWithContext
    DescribeMaintenanceStartTime
    DescribeMaintenanceStartTimeRequest
    DescribeMaintenanceStartTimeWithContext
    DescribeNFSFileShares
    DescribeNFSFileSharesRequest
    DescribeNFSFileSharesWithContext
    DescribeSMBFileShares
    DescribeSMBFileSharesRequest
    DescribeSMBFileSharesWithContext
    DescribeSMBSettings
    DescribeSMBSettingsRequest
    DescribeSMBSettingsWithContext
    DescribeSnapshotSchedule
    DescribeSnapshotScheduleRequest
    DescribeSnapshotScheduleWithContext
    DescribeStorediSCSIVolumes
    DescribeStorediSCSIVolumesRequest
    DescribeStorediSCSIVolumesWithContext
    DescribeTapeArchives
    DescribeTapeArchivesPagesWithContext
    DescribeTapeArchivesRequest
    DescribeTapeArchivesWithContext
    DescribeTapeRecoveryPoints
    DescribeTapeRecoveryPointsPagesWithContext
    DescribeTapeRecoveryPointsRequest
    DescribeTapeRecoveryPointsWithContext
    DescribeTapes
    DescribeTapesPagesWithContext
    DescribeTapesRequest
    DescribeTapesWithContext
    DescribeUploadBuffer
    DescribeUploadBufferRequest
    DescribeUploadBufferWithContext
    DescribeVTLDevices
    DescribeVTLDevicesPagesWithContext
    DescribeVTLDevicesRequest
    DescribeVTLDevicesWithContext
    DescribeWorkingStorage
    DescribeWorkingStorageRequest
    DescribeWorkingStorageWithContext
    DisableGateway
    DisableGatewayRequest
    DisableGatewayWithContext
    JoinDomain
    JoinDomainRequest
    JoinDomainWithContext
    ListFileShares
    ListFileSharesRequest
    ListFileSharesWithContext
    ListGateways
    ListGatewaysPagesWithContext
    ListGatewaysRequest
    ListGatewaysWithContext
    ListLocalDisks
    ListLocalDisksRequest
    ListLocalDisksWithContext
    ListTagsForResource
    ListTagsForResourceRequest
    ListTagsForResourceWithContext
    ListTapes
    ListTapesRequest
    ListTapesWithContext
    ListVolumeInitiators
    ListVolumeInitiatorsRequest
    ListVolumeInitiatorsWithContext
    ListVolumeRecoveryPoints
    ListVolumeRecoveryPointsRequest
    ListVolumeRecoveryPointsWithContext
    ListVolumes
    ListVolumesPagesWithContext
    ListVolumesRequest
    ListVolumesWithContext
    NotifyWhenUploaded
    NotifyWhenUploadedRequest
    NotifyWhenUploadedWithContext
    RefreshCache
    RefreshCacheRequest
    RefreshCacheWithContext
    RemoveTagsFromResource
    RemoveTagsFromResourceRequest
    RemoveTagsFromResourceWithContext
    ResetCache
    ResetCacheRequest
    ResetCacheWithContext
    RetrieveTapeArchive
    RetrieveTapeArchiveRequest
    RetrieveTapeArchiveWithContext
    RetrieveTapeRecoveryPoint
    RetrieveTapeRecoveryPointRequest
    RetrieveTapeRecoveryPointWithContext
    ShutdownGateway
    ShutdownGatewayRequest
    ShutdownGatewayWithContext
    StartGateway
    StartGatewayRequest
    StartGatewayWithContext
    UpdateBandwidthRateLimit
    UpdateBandwidthRateLimitRequest
    UpdateBandwidthRateLimitWithContext
    UpdateChapCredentials
    UpdateChapCredentialsRequest
    UpdateChapCredentialsWithContext
    UpdateGatewayInformation
    UpdateGatewayInformationRequest
    UpdateGatewayInformationWithContext
    UpdateGatewaySoftwareNow
    UpdateGatewaySoftwareNowRequest
    UpdateGatewaySoftwareNowWithContext
    UpdateMaintenanceStartTime
    UpdateMaintenanceStartTimeRequest
    UpdateMaintenanceStartTimeWithContext
    UpdateNFSFileShare
    UpdateNFSFileShareRequest
    UpdateNFSFileShareWithContext
    UpdateSMBFileShare
    UpdateSMBFileShareRequest
    UpdateSMBFileShareWithContext
    UpdateSnapshotSchedule
    UpdateSnapshotScheduleRequest
    UpdateSnapshotScheduleWithContext
    UpdateVTLDeviceType
    UpdateVTLDeviceTypeRequest
    UpdateVTLDeviceTypeWithContext

Types ▾

type ActivateGatewayInput
func (s *ActivateGatewayInput) SetActivationKey(v string) *ActivateGatewayInput
func (s *ActivateGatewayInput) SetGatewayName(v string) *ActivateGatewayInput
func (s *ActivateGatewayInput) SetGatewayRegion(v string) *ActivateGatewayInput
func (s *ActivateGatewayInput) SetGatewayTimezone(v string) *ActivateGatewayInput
func (s *ActivateGatewayInput) SetGatewayType(v string) *ActivateGatewayInput
func (s *ActivateGatewayInput) SetMediumChangerType(v string) *ActivateGatewayInput
func (s *ActivateGatewayInput) SetTapeDriveType(v string) *ActivateGatewayInput
type ActivateGatewayOutput
func (s *ActivateGatewayOutput) SetGatewayARN(v string) *ActivateGatewayOutput
type AddCacheInput
func (s *AddCacheInput) SetDiskIds(v []*string) *AddCacheInput
func (s *AddCacheInput) SetGatewayARN(v string) *AddCacheInput
type AddCacheOutput
func (s *AddCacheOutput) SetGatewayARN(v string) *AddCacheOutput
type AddTagsToResourceInput
func (s *AddTagsToResourceInput) SetResourceARN(v string) *AddTagsToResourceInput
func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput
type AddTagsToResourceOutput
func (s *AddTagsToResourceOutput) SetResourceARN(v string) *AddTagsToResourceOutput
type AddUploadBufferInput
func (s *AddUploadBufferInput) SetDiskIds(v []*string) *AddUploadBufferInput
func (s *AddUploadBufferInput) SetGatewayARN(v string) *AddUploadBufferInput
type AddUploadBufferOutput
func (s *AddUploadBufferOutput) SetGatewayARN(v string) *AddUploadBufferOutput
type AddWorkingStorageInput
func (s *AddWorkingStorageInput) SetDiskIds(v []*string) *AddWorkingStorageInput
func (s *AddWorkingStorageInput) SetGatewayARN(v string) *AddWorkingStorageInput
type AddWorkingStorageOutput
func (s *AddWorkingStorageOutput) SetGatewayARN(v string) *AddWorkingStorageOutput
type CachediSCSIVolume
func (s *CachediSCSIVolume) SetCreatedDate(v time.Time) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetKMSKey(v string) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetSourceSnapshotId(v string) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeARN(v string) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeId(v string) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeProgress(v float64) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeSizeInBytes(v int64) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeStatus(v string) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeType(v string) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeUsedInBytes(v int64) *CachediSCSIVolume
func (s *CachediSCSIVolume) SetVolumeiSCSIAttributes(v *VolumeiSCSIAttributes) *CachediSCSIVolume
type CancelArchivalInput
func (s *CancelArchivalInput) SetGatewayARN(v string) *CancelArchivalInput
func (s *CancelArchivalInput) SetTapeARN(v string) *CancelArchivalInput
type CancelArchivalOutput
func (s *CancelArchivalOutput) SetTapeARN(v string) *CancelArchivalOutput
type CancelRetrievalInput
func (s *CancelRetrievalInput) SetGatewayARN(v string) *CancelRetrievalInput
func (s *CancelRetrievalInput) SetTapeARN(v string) *CancelRetrievalInput
type CancelRetrievalOutput
func (s *CancelRetrievalOutput) SetTapeARN(v string) *CancelRetrievalOutput
type ChapInfo
func (s *ChapInfo) SetInitiatorName(v string) *ChapInfo
func (s *ChapInfo) SetSecretToAuthenticateInitiator(v string) *ChapInfo
func (s *ChapInfo) SetSecretToAuthenticateTarget(v string) *ChapInfo
func (s *ChapInfo) SetTargetARN(v string) *ChapInfo
type CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetClientToken(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetGatewayARN(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetKMSEncrypted(v bool) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetKMSKey(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetNetworkInterfaceId(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetSnapshotId(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetSourceVolumeARN(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetTargetName(v string) *CreateCachediSCSIVolumeInput
func (s *CreateCachediSCSIVolumeInput) SetVolumeSizeInBytes(v int64) *CreateCachediSCSIVolumeInput
type CreateCachediSCSIVolumeOutput
func (s *CreateCachediSCSIVolumeOutput) SetTargetARN(v string) *CreateCachediSCSIVolumeOutput
func (s *CreateCachediSCSIVolumeOutput) SetVolumeARN(v string) *CreateCachediSCSIVolumeOutput
type CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetClientList(v []*string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetClientToken(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetDefaultStorageClass(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetGatewayARN(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetGuessMIMETypeEnabled(v bool) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetKMSEncrypted(v bool) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetKMSKey(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetLocationARN(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetObjectACL(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetReadOnly(v bool) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetRequesterPays(v bool) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetRole(v string) *CreateNFSFileShareInput
func (s *CreateNFSFileShareInput) SetSquash(v string) *CreateNFSFileShareInput
type CreateNFSFileShareOutput
func (s *CreateNFSFileShareOutput) SetFileShareARN(v string) *CreateNFSFileShareOutput
type CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetAuthentication(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetClientToken(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetDefaultStorageClass(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetGatewayARN(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetGuessMIMETypeEnabled(v bool) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetInvalidUserList(v []*string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetKMSEncrypted(v bool) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetKMSKey(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetLocationARN(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetObjectACL(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetReadOnly(v bool) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetRequesterPays(v bool) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetRole(v string) *CreateSMBFileShareInput
func (s *CreateSMBFileShareInput) SetValidUserList(v []*string) *CreateSMBFileShareInput
type CreateSMBFileShareOutput
func (s *CreateSMBFileShareOutput) SetFileShareARN(v string) *CreateSMBFileShareOutput
type CreateSnapshotFromVolumeRecoveryPointInput
func (s *CreateSnapshotFromVolumeRecoveryPointInput) SetSnapshotDescription(v string) *CreateSnapshotFromVolumeRecoveryPointInput
func (s *CreateSnapshotFromVolumeRecoveryPointInput) SetVolumeARN(v string) *CreateSnapshotFromVolumeRecoveryPointInput
type CreateSnapshotFromVolumeRecoveryPointOutput
func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetSnapshotId(v string) *CreateSnapshotFromVolumeRecoveryPointOutput
func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeARN(v string) *CreateSnapshotFromVolumeRecoveryPointOutput
func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeRecoveryPointTime(v string) *CreateSnapshotFromVolumeRecoveryPointOutput
type CreateSnapshotInput
func (s *CreateSnapshotInput) SetSnapshotDescription(v string) *CreateSnapshotInput
func (s *CreateSnapshotInput) SetVolumeARN(v string) *CreateSnapshotInput
type CreateSnapshotOutput
func (s *CreateSnapshotOutput) SetSnapshotId(v string) *CreateSnapshotOutput
func (s *CreateSnapshotOutput) SetVolumeARN(v string) *CreateSnapshotOutput
type CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetDiskId(v string) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetGatewayARN(v string) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetKMSEncrypted(v bool) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetKMSKey(v string) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetNetworkInterfaceId(v string) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetPreserveExistingData(v bool) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetSnapshotId(v string) *CreateStorediSCSIVolumeInput
func (s *CreateStorediSCSIVolumeInput) SetTargetName(v string) *CreateStorediSCSIVolumeInput
type CreateStorediSCSIVolumeOutput
func (s *CreateStorediSCSIVolumeOutput) SetTargetARN(v string) *CreateStorediSCSIVolumeOutput
func (s *CreateStorediSCSIVolumeOutput) SetVolumeARN(v string) *CreateStorediSCSIVolumeOutput
func (s *CreateStorediSCSIVolumeOutput) SetVolumeSizeInBytes(v int64) *CreateStorediSCSIVolumeOutput
type CreateTapeWithBarcodeInput
func (s *CreateTapeWithBarcodeInput) SetGatewayARN(v string) *CreateTapeWithBarcodeInput
func (s *CreateTapeWithBarcodeInput) SetKMSEncrypted(v bool) *CreateTapeWithBarcodeInput
func (s *CreateTapeWithBarcodeInput) SetKMSKey(v string) *CreateTapeWithBarcodeInput
func (s *CreateTapeWithBarcodeInput) SetTapeBarcode(v string) *CreateTapeWithBarcodeInput
func (s *CreateTapeWithBarcodeInput) SetTapeSizeInBytes(v int64) *CreateTapeWithBarcodeInput
type CreateTapeWithBarcodeOutput
func (s *CreateTapeWithBarcodeOutput) SetTapeARN(v string) *CreateTapeWithBarcodeOutput
type CreateTapesInput
func (s *CreateTapesInput) SetClientToken(v string) *CreateTapesInput
func (s *CreateTapesInput) SetGatewayARN(v string) *CreateTapesInput
func (s *CreateTapesInput) SetKMSEncrypted(v bool) *CreateTapesInput
func (s *CreateTapesInput) SetKMSKey(v string) *CreateTapesInput
func (s *CreateTapesInput) SetNumTapesToCreate(v int64) *CreateTapesInput
func (s *CreateTapesInput) SetTapeBarcodePrefix(v string) *CreateTapesInput
func (s *CreateTapesInput) SetTapeSizeInBytes(v int64) *CreateTapesInput
type CreateTapesOutput
func (s *CreateTapesOutput) SetTapeARNs(v []*string) *CreateTapesOutput
type DeleteBandwidthRateLimitInput
func (s *DeleteBandwidthRateLimitInput) SetBandwidthType(v string) *DeleteBandwidthRateLimitInput
func (s *DeleteBandwidthRateLimitInput) SetGatewayARN(v string) *DeleteBandwidthRateLimitInput
type DeleteBandwidthRateLimitOutput
func (s *DeleteBandwidthRateLimitOutput) SetGatewayARN(v string) *DeleteBandwidthRateLimitOutput
type DeleteChapCredentialsInput
func (s *DeleteChapCredentialsInput) SetInitiatorName(v string) *DeleteChapCredentialsInput
func (s *DeleteChapCredentialsInput) SetTargetARN(v string) *DeleteChapCredentialsInput
type DeleteChapCredentialsOutput
func (s *DeleteChapCredentialsOutput) SetInitiatorName(v string) *DeleteChapCredentialsOutput
func (s *DeleteChapCredentialsOutput) SetTargetARN(v string) *DeleteChapCredentialsOutput
type DeleteFileShareInput
func (s *DeleteFileShareInput) SetFileShareARN(v string) *DeleteFileShareInput
func (s *DeleteFileShareInput) SetForceDelete(v bool) *DeleteFileShareInput
type DeleteFileShareOutput
func (s *DeleteFileShareOutput) SetFileShareARN(v string) *DeleteFileShareOutput
type DeleteGatewayInput
func (s *DeleteGatewayInput) SetGatewayARN(v string) *DeleteGatewayInput
type DeleteGatewayOutput
func (s *DeleteGatewayOutput) SetGatewayARN(v string) *DeleteGatewayOutput
type DeleteSnapshotScheduleInput
func (s *DeleteSnapshotScheduleInput) SetVolumeARN(v string) *DeleteSnapshotScheduleInput
type DeleteSnapshotScheduleOutput
func (s *DeleteSnapshotScheduleOutput) SetVolumeARN(v string) *DeleteSnapshotScheduleOutput
type DeleteTapeArchiveInput
func (s *DeleteTapeArchiveInput) SetTapeARN(v string) *DeleteTapeArchiveInput
type DeleteTapeArchiveOutput
func (s *DeleteTapeArchiveOutput) SetTapeARN(v string) *DeleteTapeArchiveOutput
type DeleteTapeInput
func (s *DeleteTapeInput) SetGatewayARN(v string) *DeleteTapeInput
func (s *DeleteTapeInput) SetTapeARN(v string) *DeleteTapeInput
type DeleteTapeOutput
func (s *DeleteTapeOutput) SetTapeARN(v string) *DeleteTapeOutput
type DeleteVolumeInput
func (s *DeleteVolumeInput) SetVolumeARN(v string) *DeleteVolumeInput
type DeleteVolumeOutput
func (s *DeleteVolumeOutput) SetVolumeARN(v string) *DeleteVolumeOutput
type DescribeBandwidthRateLimitInput
func (s *DescribeBandwidthRateLimitInput) SetGatewayARN(v string) *DescribeBandwidthRateLimitInput
type DescribeBandwidthRateLimitOutput
func (s *DescribeBandwidthRateLimitOutput) SetAverageDownloadRateLimitInBitsPerSec(v int64) *DescribeBandwidthRateLimitOutput
func (s *DescribeBandwidthRateLimitOutput) SetAverageUploadRateLimitInBitsPerSec(v int64) *DescribeBandwidthRateLimitOutput
func (s *DescribeBandwidthRateLimitOutput) SetGatewayARN(v string) *DescribeBandwidthRateLimitOutput
type DescribeCacheInput
func (s *DescribeCacheInput) SetGatewayARN(v string) *DescribeCacheInput
type DescribeCacheOutput
func (s *DescribeCacheOutput) SetCacheAllocatedInBytes(v int64) *DescribeCacheOutput
func (s *DescribeCacheOutput) SetCacheDirtyPercentage(v float64) *DescribeCacheOutput
func (s *DescribeCacheOutput) SetCacheHitPercentage(v float64) *DescribeCacheOutput
func (s *DescribeCacheOutput) SetCacheMissPercentage(v float64) *DescribeCacheOutput
func (s *DescribeCacheOutput) SetCacheUsedPercentage(v float64) *DescribeCacheOutput
func (s *DescribeCacheOutput) SetDiskIds(v []*string) *DescribeCacheOutput
func (s *DescribeCacheOutput) SetGatewayARN(v string) *DescribeCacheOutput
type DescribeCachediSCSIVolumesInput
func (s *DescribeCachediSCSIVolumesInput) SetVolumeARNs(v []*string) *DescribeCachediSCSIVolumesInput
type DescribeCachediSCSIVolumesOutput
func (s *DescribeCachediSCSIVolumesOutput) SetCachediSCSIVolumes(v []*CachediSCSIVolume) *DescribeCachediSCSIVolumesOutput
type DescribeChapCredentialsInput
func (s *DescribeChapCredentialsInput) SetTargetARN(v string) *DescribeChapCredentialsInput
type DescribeChapCredentialsOutput
func (s *DescribeChapCredentialsOutput) SetChapCredentials(v []*ChapInfo) *DescribeChapCredentialsOutput
type DescribeGatewayInformationInput
func (s *DescribeGatewayInformationInput) SetGatewayARN(v string) *DescribeGatewayInformationInput
type DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayARN(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayId(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayName(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayNetworkInterfaces(v []*NetworkInterface) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayState(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayTimezone(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetGatewayType(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetLastSoftwareUpdate(v string) *DescribeGatewayInformationOutput
func (s *DescribeGatewayInformationOutput) SetNextUpdateAvailabilityDate(v string) *DescribeGatewayInformationOutput
type DescribeMaintenanceStartTimeInput
func (s *DescribeMaintenanceStartTimeInput) SetGatewayARN(v string) *DescribeMaintenanceStartTimeInput
type DescribeMaintenanceStartTimeOutput
func (s *DescribeMaintenanceStartTimeOutput) SetDayOfWeek(v int64) *DescribeMaintenanceStartTimeOutput
func (s *DescribeMaintenanceStartTimeOutput) SetGatewayARN(v string) *DescribeMaintenanceStartTimeOutput
func (s *DescribeMaintenanceStartTimeOutput) SetHourOfDay(v int64) *DescribeMaintenanceStartTimeOutput
func (s *DescribeMaintenanceStartTimeOutput) SetMinuteOfHour(v int64) *DescribeMaintenanceStartTimeOutput
func (s *DescribeMaintenanceStartTimeOutput) SetTimezone(v string) *DescribeMaintenanceStartTimeOutput
type DescribeNFSFileSharesInput
func (s *DescribeNFSFileSharesInput) SetFileShareARNList(v []*string) *DescribeNFSFileSharesInput
type DescribeNFSFileSharesOutput
func (s *DescribeNFSFileSharesOutput) SetNFSFileShareInfoList(v []*NFSFileShareInfo) *DescribeNFSFileSharesOutput
type DescribeSMBFileSharesInput
func (s *DescribeSMBFileSharesInput) SetFileShareARNList(v []*string) *DescribeSMBFileSharesInput
type DescribeSMBFileSharesOutput
func (s *DescribeSMBFileSharesOutput) SetSMBFileShareInfoList(v []*SMBFileShareInfo) *DescribeSMBFileSharesOutput
type DescribeSMBSettingsInput
func (s *DescribeSMBSettingsInput) SetGatewayARN(v string) *DescribeSMBSettingsInput
type DescribeSMBSettingsOutput
func (s *DescribeSMBSettingsOutput) SetDomainName(v string) *DescribeSMBSettingsOutput
func (s *DescribeSMBSettingsOutput) SetGatewayARN(v string) *DescribeSMBSettingsOutput
func (s *DescribeSMBSettingsOutput) SetSMBGuestPasswordSet(v bool) *DescribeSMBSettingsOutput
type DescribeSnapshotScheduleInput
func (s *DescribeSnapshotScheduleInput) SetVolumeARN(v string) *DescribeSnapshotScheduleInput
type DescribeSnapshotScheduleOutput
func (s *DescribeSnapshotScheduleOutput) SetDescription(v string) *DescribeSnapshotScheduleOutput
func (s *DescribeSnapshotScheduleOutput) SetRecurrenceInHours(v int64) *DescribeSnapshotScheduleOutput
func (s *DescribeSnapshotScheduleOutput) SetStartAt(v int64) *DescribeSnapshotScheduleOutput
func (s *DescribeSnapshotScheduleOutput) SetTimezone(v string) *DescribeSnapshotScheduleOutput
func (s *DescribeSnapshotScheduleOutput) SetVolumeARN(v string) *DescribeSnapshotScheduleOutput
type DescribeStorediSCSIVolumesInput
func (s *DescribeStorediSCSIVolumesInput) SetVolumeARNs(v []*string) *DescribeStorediSCSIVolumesInput
type DescribeStorediSCSIVolumesOutput
func (s *DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes(v []*StorediSCSIVolume) *DescribeStorediSCSIVolumesOutput
type DescribeTapeArchivesInput
func (s *DescribeTapeArchivesInput) SetLimit(v int64) *DescribeTapeArchivesInput
func (s *DescribeTapeArchivesInput) SetMarker(v string) *DescribeTapeArchivesInput
func (s *DescribeTapeArchivesInput) SetTapeARNs(v []*string) *DescribeTapeArchivesInput
type DescribeTapeArchivesOutput
func (s *DescribeTapeArchivesOutput) SetMarker(v string) *DescribeTapeArchivesOutput
func (s *DescribeTapeArchivesOutput) SetTapeArchives(v []*TapeArchive) *DescribeTapeArchivesOutput
type DescribeTapeRecoveryPointsInput
func (s *DescribeTapeRecoveryPointsInput) SetGatewayARN(v string) *DescribeTapeRecoveryPointsInput
func (s *DescribeTapeRecoveryPointsInput) SetLimit(v int64) *DescribeTapeRecoveryPointsInput
func (s *DescribeTapeRecoveryPointsInput) SetMarker(v string) *DescribeTapeRecoveryPointsInput
type DescribeTapeRecoveryPointsOutput
func (s *DescribeTapeRecoveryPointsOutput) SetGatewayARN(v string) *DescribeTapeRecoveryPointsOutput
func (s *DescribeTapeRecoveryPointsOutput) SetMarker(v string) *DescribeTapeRecoveryPointsOutput
func (s *DescribeTapeRecoveryPointsOutput) SetTapeRecoveryPointInfos(v []*TapeRecoveryPointInfo) *DescribeTapeRecoveryPointsOutput
type DescribeTapesInput
func (s *DescribeTapesInput) SetGatewayARN(v string) *DescribeTapesInput
func (s *DescribeTapesInput) SetLimit(v int64) *DescribeTapesInput
func (s *DescribeTapesInput) SetMarker(v string) *DescribeTapesInput
func (s *DescribeTapesInput) SetTapeARNs(v []*string) *DescribeTapesInput
type DescribeTapesOutput
func (s *DescribeTapesOutput) SetMarker(v string) *DescribeTapesOutput
func (s *DescribeTapesOutput) SetTapes(v []*Tape) *DescribeTapesOutput
type DescribeUploadBufferInput
func (s *DescribeUploadBufferInput) SetGatewayARN(v string) *DescribeUploadBufferInput
type DescribeUploadBufferOutput
func (s *DescribeUploadBufferOutput) SetDiskIds(v []*string) *DescribeUploadBufferOutput
func (s *DescribeUploadBufferOutput) SetGatewayARN(v string) *DescribeUploadBufferOutput
func (s *DescribeUploadBufferOutput) SetUploadBufferAllocatedInBytes(v int64) *DescribeUploadBufferOutput
func (s *DescribeUploadBufferOutput) SetUploadBufferUsedInBytes(v int64) *DescribeUploadBufferOutput
type DescribeVTLDevicesInput
func (s *DescribeVTLDevicesInput) SetGatewayARN(v string) *DescribeVTLDevicesInput
func (s *DescribeVTLDevicesInput) SetLimit(v int64) *DescribeVTLDevicesInput
func (s *DescribeVTLDevicesInput) SetMarker(v string) *DescribeVTLDevicesInput
func (s *DescribeVTLDevicesInput) SetVTLDeviceARNs(v []*string) *DescribeVTLDevicesInput
type DescribeVTLDevicesOutput
func (s *DescribeVTLDevicesOutput) SetGatewayARN(v string) *DescribeVTLDevicesOutput
func (s *DescribeVTLDevicesOutput) SetMarker(v string) *DescribeVTLDevicesOutput
func (s *DescribeVTLDevicesOutput) SetVTLDevices(v []*VTLDevice) *DescribeVTLDevicesOutput
type DescribeWorkingStorageInput
func (s *DescribeWorkingStorageInput) SetGatewayARN(v string) *DescribeWorkingStorageInput
type DescribeWorkingStorageOutput
func (s *DescribeWorkingStorageOutput) SetDiskIds(v []*string) *DescribeWorkingStorageOutput
func (s *DescribeWorkingStorageOutput) SetGatewayARN(v string) *DescribeWorkingStorageOutput
func (s *DescribeWorkingStorageOutput) SetWorkingStorageAllocatedInBytes(v int64) *DescribeWorkingStorageOutput
func (s *DescribeWorkingStorageOutput) SetWorkingStorageUsedInBytes(v int64) *DescribeWorkingStorageOutput
type DeviceiSCSIAttributes
func (s *DeviceiSCSIAttributes) SetChapEnabled(v bool) *DeviceiSCSIAttributes
func (s *DeviceiSCSIAttributes) SetNetworkInterfaceId(v string) *DeviceiSCSIAttributes
func (s *DeviceiSCSIAttributes) SetNetworkInterfacePort(v int64) *DeviceiSCSIAttributes
func (s *DeviceiSCSIAttributes) SetTargetARN(v string) *DeviceiSCSIAttributes
type DisableGatewayInput
func (s *DisableGatewayInput) SetGatewayARN(v string) *DisableGatewayInput
type DisableGatewayOutput
func (s *DisableGatewayOutput) SetGatewayARN(v string) *DisableGatewayOutput
type Disk
func (s *Disk) SetDiskAllocationResource(v string) *Disk
func (s *Disk) SetDiskAllocationType(v string) *Disk
func (s *Disk) SetDiskId(v string) *Disk
func (s *Disk) SetDiskNode(v string) *Disk
func (s *Disk) SetDiskPath(v string) *Disk
func (s *Disk) SetDiskSizeInBytes(v int64) *Disk
func (s *Disk) SetDiskStatus(v string) *Disk
type Error
func (s *Error) SetErrorCode(v string) *Error
func (s *Error) SetErrorDetails(v map[string]*string) *Error
type FileShareInfo
func (s *FileShareInfo) SetFileShareARN(v string) *FileShareInfo
func (s *FileShareInfo) SetFileShareId(v string) *FileShareInfo
func (s *FileShareInfo) SetFileShareStatus(v string) *FileShareInfo
func (s *FileShareInfo) SetFileShareType(v string) *FileShareInfo
func (s *FileShareInfo) SetGatewayARN(v string) *FileShareInfo
type GatewayInfo
func (s *GatewayInfo) SetGatewayARN(v string) *GatewayInfo
func (s *GatewayInfo) SetGatewayId(v string) *GatewayInfo
func (s *GatewayInfo) SetGatewayName(v string) *GatewayInfo
func (s *GatewayInfo) SetGatewayOperationalState(v string) *GatewayInfo
func (s *GatewayInfo) SetGatewayType(v string) *GatewayInfo
type JoinDomainInput
func (s *JoinDomainInput) SetDomainName(v string) *JoinDomainInput
func (s *JoinDomainInput) SetGatewayARN(v string) *JoinDomainInput
func (s *JoinDomainInput) SetPassword(v string) *JoinDomainInput
func (s *JoinDomainInput) SetUserName(v string) *JoinDomainInput
type JoinDomainOutput
func (s *JoinDomainOutput) SetGatewayARN(v string) *JoinDomainOutput
type ListFileSharesInput
func (s *ListFileSharesInput) SetGatewayARN(v string) *ListFileSharesInput
func (s *ListFileSharesInput) SetLimit(v int64) *ListFileSharesInput
func (s *ListFileSharesInput) SetMarker(v string) *ListFileSharesInput
type ListFileSharesOutput
func (s *ListFileSharesOutput) SetFileShareInfoList(v []*FileShareInfo) *ListFileSharesOutput
func (s *ListFileSharesOutput) SetMarker(v string) *ListFileSharesOutput
func (s *ListFileSharesOutput) SetNextMarker(v string) *ListFileSharesOutput
type ListGatewaysInput
func (s *ListGatewaysInput) SetLimit(v int64) *ListGatewaysInput
func (s *ListGatewaysInput) SetMarker(v string) *ListGatewaysInput
type ListGatewaysOutput
func (s *ListGatewaysOutput) SetGateways(v []*GatewayInfo) *ListGatewaysOutput
func (s *ListGatewaysOutput) SetMarker(v string) *ListGatewaysOutput
type ListLocalDisksInput
func (s *ListLocalDisksInput) SetGatewayARN(v string) *ListLocalDisksInput
type ListLocalDisksOutput
func (s *ListLocalDisksOutput) SetDisks(v []*Disk) *ListLocalDisksOutput
func (s *ListLocalDisksOutput) SetGatewayARN(v string) *ListLocalDisksOutput
type ListTagsForResourceInput
func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput
func (s *ListTagsForResourceInput) SetMarker(v string) *ListTagsForResourceInput
func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput
type ListTagsForResourceOutput
func (s *ListTagsForResourceOutput) SetMarker(v string) *ListTagsForResourceOutput
func (s *ListTagsForResourceOutput) SetResourceARN(v string) *ListTagsForResourceOutput
func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput
type ListTapesInput
func (s *ListTapesInput) SetLimit(v int64) *ListTapesInput
func (s *ListTapesInput) SetMarker(v string) *ListTapesInput
func (s *ListTapesInput) SetTapeARNs(v []*string) *ListTapesInput
type ListTapesOutput
func (s *ListTapesOutput) SetMarker(v string) *ListTapesOutput
func (s *ListTapesOutput) SetTapeInfos(v []*TapeInfo) *ListTapesOutput
type ListVolumeInitiatorsInput
func (s *ListVolumeInitiatorsInput) SetVolumeARN(v string) *ListVolumeInitiatorsInput
type ListVolumeInitiatorsOutput
func (s *ListVolumeInitiatorsOutput) SetInitiators(v []*string) *ListVolumeInitiatorsOutput
type ListVolumeRecoveryPointsInput
func (s *ListVolumeRecoveryPointsInput) SetGatewayARN(v string) *ListVolumeRecoveryPointsInput
type ListVolumeRecoveryPointsOutput
func (s *ListVolumeRecoveryPointsOutput) SetGatewayARN(v string) *ListVolumeRecoveryPointsOutput
func (s *ListVolumeRecoveryPointsOutput) SetVolumeRecoveryPointInfos(v []*VolumeRecoveryPointInfo) *ListVolumeRecoveryPointsOutput
type ListVolumesInput
func (s *ListVolumesInput) SetGatewayARN(v string) *ListVolumesInput
func (s *ListVolumesInput) SetLimit(v int64) *ListVolumesInput
func (s *ListVolumesInput) SetMarker(v string) *ListVolumesInput
type ListVolumesOutput
func (s *ListVolumesOutput) SetGatewayARN(v string) *ListVolumesOutput
func (s *ListVolumesOutput) SetMarker(v string) *ListVolumesOutput
func (s *ListVolumesOutput) SetVolumeInfos(v []*VolumeInfo) *ListVolumesOutput
type NFSFileShareDefaults
func (s *NFSFileShareDefaults) SetDirectoryMode(v string) *NFSFileShareDefaults
func (s *NFSFileShareDefaults) SetFileMode(v string) *NFSFileShareDefaults
func (s *NFSFileShareDefaults) SetGroupId(v int64) *NFSFileShareDefaults
func (s *NFSFileShareDefaults) SetOwnerId(v int64) *NFSFileShareDefaults
type NFSFileShareInfo
func (s *NFSFileShareInfo) SetClientList(v []*string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetDefaultStorageClass(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetFileShareARN(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetFileShareId(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetFileShareStatus(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetGatewayARN(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetGuessMIMETypeEnabled(v bool) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetKMSEncrypted(v bool) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetKMSKey(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetLocationARN(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetObjectACL(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetPath(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetReadOnly(v bool) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetRequesterPays(v bool) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetRole(v string) *NFSFileShareInfo
func (s *NFSFileShareInfo) SetSquash(v string) *NFSFileShareInfo
type NetworkInterface
func (s *NetworkInterface) SetIpv4Address(v string) *NetworkInterface
func (s *NetworkInterface) SetIpv6Address(v string) *NetworkInterface
func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface
type NotifyWhenUploadedInput
func (s *NotifyWhenUploadedInput) SetFileShareARN(v string) *NotifyWhenUploadedInput
type NotifyWhenUploadedOutput
func (s *NotifyWhenUploadedOutput) SetFileShareARN(v string) *NotifyWhenUploadedOutput
func (s *NotifyWhenUploadedOutput) SetNotificationId(v string) *NotifyWhenUploadedOutput
type RefreshCacheInput
func (s *RefreshCacheInput) SetFileShareARN(v string) *RefreshCacheInput
func (s *RefreshCacheInput) SetFolderList(v []*string) *RefreshCacheInput
func (s *RefreshCacheInput) SetRecursive(v bool) *RefreshCacheInput
type RefreshCacheOutput
func (s *RefreshCacheOutput) SetFileShareARN(v string) *RefreshCacheOutput
func (s *RefreshCacheOutput) SetNotificationId(v string) *RefreshCacheOutput
type RemoveTagsFromResourceInput
func (s *RemoveTagsFromResourceInput) SetResourceARN(v string) *RemoveTagsFromResourceInput
func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput
type RemoveTagsFromResourceOutput
func (s *RemoveTagsFromResourceOutput) SetResourceARN(v string) *RemoveTagsFromResourceOutput
type ResetCacheInput
func (s *ResetCacheInput) SetGatewayARN(v string) *ResetCacheInput
type ResetCacheOutput
func (s *ResetCacheOutput) SetGatewayARN(v string) *ResetCacheOutput
type RetrieveTapeArchiveInput
func (s *RetrieveTapeArchiveInput) SetGatewayARN(v string) *RetrieveTapeArchiveInput
func (s *RetrieveTapeArchiveInput) SetTapeARN(v string) *RetrieveTapeArchiveInput
type RetrieveTapeArchiveOutput
func (s *RetrieveTapeArchiveOutput) SetTapeARN(v string) *RetrieveTapeArchiveOutput
type RetrieveTapeRecoveryPointInput
func (s *RetrieveTapeRecoveryPointInput) SetGatewayARN(v string) *RetrieveTapeRecoveryPointInput
func (s *RetrieveTapeRecoveryPointInput) SetTapeARN(v string) *RetrieveTapeRecoveryPointInput
type RetrieveTapeRecoveryPointOutput
func (s *RetrieveTapeRecoveryPointOutput) SetTapeARN(v string) *RetrieveTapeRecoveryPointOutput
type SMBFileShareInfo
func (s *SMBFileShareInfo) SetAuthentication(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetDefaultStorageClass(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetFileShareARN(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetFileShareId(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetFileShareStatus(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetGatewayARN(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetGuessMIMETypeEnabled(v bool) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetInvalidUserList(v []*string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetKMSEncrypted(v bool) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetKMSKey(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetLocationARN(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetObjectACL(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetPath(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetReadOnly(v bool) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetRequesterPays(v bool) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetRole(v string) *SMBFileShareInfo
func (s *SMBFileShareInfo) SetValidUserList(v []*string) *SMBFileShareInfo
type SetLocalConsolePasswordInput
func (s *SetLocalConsolePasswordInput) SetGatewayARN(v string) *SetLocalConsolePasswordInput
func (s *SetLocalConsolePasswordInput) SetLocalConsolePassword(v string) *SetLocalConsolePasswordInput
type SetLocalConsolePasswordOutput
func (s *SetLocalConsolePasswordOutput) SetGatewayARN(v string) *SetLocalConsolePasswordOutput
type SetSMBGuestPasswordInput
func (s *SetSMBGuestPasswordInput) SetGatewayARN(v string) *SetSMBGuestPasswordInput
func (s *SetSMBGuestPasswordInput) SetPassword(v string) *SetSMBGuestPasswordInput
type SetSMBGuestPasswordOutput
func (s *SetSMBGuestPasswordOutput) SetGatewayARN(v string) *SetSMBGuestPasswordOutput
type ShutdownGatewayInput
func (s *ShutdownGatewayInput) SetGatewayARN(v string) *ShutdownGatewayInput
type ShutdownGatewayOutput
func (s *ShutdownGatewayOutput) SetGatewayARN(v string) *ShutdownGatewayOutput
type StartGatewayInput
func (s *StartGatewayInput) SetGatewayARN(v string) *StartGatewayInput
type StartGatewayOutput
func (s *StartGatewayOutput) SetGatewayARN(v string) *StartGatewayOutput
type StorageGateway
func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error)
func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePasswordInput) (req *request.Request, output *SetLocalConsolePasswordOutput)
func (c *StorageGateway) SetLocalConsolePasswordWithContext(ctx aws.Context, input *SetLocalConsolePasswordInput, opts ...request.Option) (*SetLocalConsolePasswordOutput, error)
func (c *StorageGateway) SetSMBGuestPassword(input *SetSMBGuestPasswordInput) (*SetSMBGuestPasswordOutput, error)
func (c *StorageGateway) SetSMBGuestPasswordRequest(input *SetSMBGuestPasswordInput) (req *request.Request, output *SetSMBGuestPasswordOutput)
func (c *StorageGateway) SetSMBGuestPasswordWithContext(ctx aws.Context, input *SetSMBGuestPasswordInput, opts ...request.Option) (*SetSMBGuestPasswordOutput, error)
type StorediSCSIVolume
func (s *StorediSCSIVolume) SetCreatedDate(v time.Time) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetKMSKey(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetPreservedExistingData(v bool) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetSourceSnapshotId(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeARN(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeDiskId(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeId(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeProgress(v float64) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeSizeInBytes(v int64) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeStatus(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeType(v string) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeUsedInBytes(v int64) *StorediSCSIVolume
func (s *StorediSCSIVolume) SetVolumeiSCSIAttributes(v *VolumeiSCSIAttributes) *StorediSCSIVolume
type Tag
func (s *Tag) SetKey(v string) *Tag
func (s *Tag) SetValue(v string) *Tag
type Tape
func (s *Tape) SetKMSKey(v string) *Tape
func (s *Tape) SetProgress(v float64) *Tape
func (s *Tape) SetTapeARN(v string) *Tape
func (s *Tape) SetTapeBarcode(v string) *Tape
func (s *Tape) SetTapeCreatedDate(v time.Time) *Tape
func (s *Tape) SetTapeSizeInBytes(v int64) *Tape
func (s *Tape) SetTapeStatus(v string) *Tape
func (s *Tape) SetTapeUsedInBytes(v int64) *Tape
func (s *Tape) SetVTLDevice(v string) *Tape
type TapeArchive
func (s *TapeArchive) SetCompletionTime(v time.Time) *TapeArchive
func (s *TapeArchive) SetKMSKey(v string) *TapeArchive
func (s *TapeArchive) SetRetrievedTo(v string) *TapeArchive
func (s *TapeArchive) SetTapeARN(v string) *TapeArchive
func (s *TapeArchive) SetTapeBarcode(v string) *TapeArchive
func (s *TapeArchive) SetTapeCreatedDate(v time.Time) *TapeArchive
func (s *TapeArchive) SetTapeSizeInBytes(v int64) *TapeArchive
func (s *TapeArchive) SetTapeStatus(v string) *TapeArchive
func (s *TapeArchive) SetTapeUsedInBytes(v int64) *TapeArchive
type TapeInfo
func (s *TapeInfo) SetGatewayARN(v string) *TapeInfo
func (s *TapeInfo) SetTapeARN(v string) *TapeInfo
func (s *TapeInfo) SetTapeBarcode(v string) *TapeInfo
func (s *TapeInfo) SetTapeSizeInBytes(v int64) *TapeInfo
func (s *TapeInfo) SetTapeStatus(v string) *TapeInfo
type TapeRecoveryPointInfo
func (s *TapeRecoveryPointInfo) SetTapeARN(v string) *TapeRecoveryPointInfo
func (s *TapeRecoveryPointInfo) SetTapeRecoveryPointTime(v time.Time) *TapeRecoveryPointInfo
func (s *TapeRecoveryPointInfo) SetTapeSizeInBytes(v int64) *TapeRecoveryPointInfo
func (s *TapeRecoveryPointInfo) SetTapeStatus(v string) *TapeRecoveryPointInfo
type UpdateBandwidthRateLimitInput
func (s *UpdateBandwidthRateLimitInput) SetAverageDownloadRateLimitInBitsPerSec(v int64) *UpdateBandwidthRateLimitInput
func (s *UpdateBandwidthRateLimitInput) SetAverageUploadRateLimitInBitsPerSec(v int64) *UpdateBandwidthRateLimitInput
func (s *UpdateBandwidthRateLimitInput) SetGatewayARN(v string) *UpdateBandwidthRateLimitInput
type UpdateBandwidthRateLimitOutput
func (s *UpdateBandwidthRateLimitOutput) SetGatewayARN(v string) *UpdateBandwidthRateLimitOutput
type UpdateChapCredentialsInput
func (s *UpdateChapCredentialsInput) SetInitiatorName(v string) *UpdateChapCredentialsInput
func (s *UpdateChapCredentialsInput) SetSecretToAuthenticateInitiator(v string) *UpdateChapCredentialsInput
func (s *UpdateChapCredentialsInput) SetSecretToAuthenticateTarget(v string) *UpdateChapCredentialsInput
func (s *UpdateChapCredentialsInput) SetTargetARN(v string) *UpdateChapCredentialsInput
type UpdateChapCredentialsOutput
func (s *UpdateChapCredentialsOutput) SetInitiatorName(v string) *UpdateChapCredentialsOutput
func (s *UpdateChapCredentialsOutput) SetTargetARN(v string) *UpdateChapCredentialsOutput
type UpdateGatewayInformationInput
func (s *UpdateGatewayInformationInput) SetGatewayARN(v string) *UpdateGatewayInformationInput
func (s *UpdateGatewayInformationInput) SetGatewayName(v string) *UpdateGatewayInformationInput
func (s *UpdateGatewayInformationInput) SetGatewayTimezone(v string) *UpdateGatewayInformationInput
type UpdateGatewayInformationOutput
func (s *UpdateGatewayInformationOutput) SetGatewayARN(v string) *UpdateGatewayInformationOutput
func (s *UpdateGatewayInformationOutput) SetGatewayName(v string) *UpdateGatewayInformationOutput
type UpdateGatewaySoftwareNowInput
func (s *UpdateGatewaySoftwareNowInput) SetGatewayARN(v string) *UpdateGatewaySoftwareNowInput
type UpdateGatewaySoftwareNowOutput
func (s *UpdateGatewaySoftwareNowOutput) SetGatewayARN(v string) *UpdateGatewaySoftwareNowOutput
type UpdateMaintenanceStartTimeInput
func (s *UpdateMaintenanceStartTimeInput) SetDayOfWeek(v int64) *UpdateMaintenanceStartTimeInput
func (s *UpdateMaintenanceStartTimeInput) SetGatewayARN(v string) *UpdateMaintenanceStartTimeInput
func (s *UpdateMaintenanceStartTimeInput) SetHourOfDay(v int64) *UpdateMaintenanceStartTimeInput
func (s *UpdateMaintenanceStartTimeInput) SetMinuteOfHour(v int64) *UpdateMaintenanceStartTimeInput
type UpdateMaintenanceStartTimeOutput
func (s *UpdateMaintenanceStartTimeOutput) SetGatewayARN(v string) *UpdateMaintenanceStartTimeOutput
type UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetClientList(v []*string) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetDefaultStorageClass(v string) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetFileShareARN(v string) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetGuessMIMETypeEnabled(v bool) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetKMSEncrypted(v bool) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetKMSKey(v string) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetObjectACL(v string) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetReadOnly(v bool) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetRequesterPays(v bool) *UpdateNFSFileShareInput
func (s *UpdateNFSFileShareInput) SetSquash(v string) *UpdateNFSFileShareInput
type UpdateNFSFileShareOutput
func (s *UpdateNFSFileShareOutput) SetFileShareARN(v string) *UpdateNFSFileShareOutput
type UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetDefaultStorageClass(v string) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetFileShareARN(v string) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetGuessMIMETypeEnabled(v bool) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetInvalidUserList(v []*string) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetKMSEncrypted(v bool) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetKMSKey(v string) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetObjectACL(v string) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetReadOnly(v bool) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetRequesterPays(v bool) *UpdateSMBFileShareInput
func (s *UpdateSMBFileShareInput) SetValidUserList(v []*string) *UpdateSMBFileShareInput
type UpdateSMBFileShareOutput
func (s *UpdateSMBFileShareOutput) SetFileShareARN(v string) *UpdateSMBFileShareOutput
type UpdateSnapshotScheduleInput
func (s *UpdateSnapshotScheduleInput) SetDescription(v string) *UpdateSnapshotScheduleInput
func (s *UpdateSnapshotScheduleInput) SetRecurrenceInHours(v int64) *UpdateSnapshotScheduleInput
func (s *UpdateSnapshotScheduleInput) SetStartAt(v int64) *UpdateSnapshotScheduleInput
func (s *UpdateSnapshotScheduleInput) SetVolumeARN(v string) *UpdateSnapshotScheduleInput
type UpdateSnapshotScheduleOutput
func (s *UpdateSnapshotScheduleOutput) SetVolumeARN(v string) *UpdateSnapshotScheduleOutput
type UpdateVTLDeviceTypeInput
func (s *UpdateVTLDeviceTypeInput) SetDeviceType(v string) *UpdateVTLDeviceTypeInput
func (s *UpdateVTLDeviceTypeInput) SetVTLDeviceARN(v string) *UpdateVTLDeviceTypeInput
type UpdateVTLDeviceTypeOutput
func (s *UpdateVTLDeviceTypeOutput) SetVTLDeviceARN(v string) *UpdateVTLDeviceTypeOutput
type VTLDevice
func (s *VTLDevice) SetDeviceiSCSIAttributes(v *DeviceiSCSIAttributes) *VTLDevice
func (s *VTLDevice) SetVTLDeviceARN(v string) *VTLDevice
func (s *VTLDevice) SetVTLDeviceProductIdentifier(v string) *VTLDevice
func (s *VTLDevice) SetVTLDeviceType(v string) *VTLDevice
func (s *VTLDevice) SetVTLDeviceVendor(v string) *VTLDevice
type VolumeInfo
func (s *VolumeInfo) SetGatewayARN(v string) *VolumeInfo
func (s *VolumeInfo) SetGatewayId(v string) *VolumeInfo
func (s *VolumeInfo) SetVolumeARN(v string) *VolumeInfo
func (s *VolumeInfo) SetVolumeId(v string) *VolumeInfo
func (s *VolumeInfo) SetVolumeSizeInBytes(v int64) *VolumeInfo
func (s *VolumeInfo) SetVolumeType(v string) *VolumeInfo
type VolumeRecoveryPointInfo
func (s *VolumeRecoveryPointInfo) SetVolumeARN(v string) *VolumeRecoveryPointInfo
func (s *VolumeRecoveryPointInfo) SetVolumeRecoveryPointTime(v string) *VolumeRecoveryPointInfo
func (s *VolumeRecoveryPointInfo) SetVolumeSizeInBytes(v int64) *VolumeRecoveryPointInfo
func (s *VolumeRecoveryPointInfo) SetVolumeUsageInBytes(v int64) *VolumeRecoveryPointInfo
type VolumeiSCSIAttributes
func (s *VolumeiSCSIAttributes) SetChapEnabled(v bool) *VolumeiSCSIAttributes
func (s *VolumeiSCSIAttributes) SetLunNumber(v int64) *VolumeiSCSIAttributes
func (s *VolumeiSCSIAttributes) SetNetworkInterfaceId(v string) *VolumeiSCSIAttributes
func (s *VolumeiSCSIAttributes) SetNetworkInterfacePort(v int64) *VolumeiSCSIAttributes
func (s *VolumeiSCSIAttributes) SetTargetARN(v string) *VolumeiSCSIAttributes

Examples ▾

StorageGateway.ActivateGateway (Shared00)
StorageGateway.AddCache (Shared00)
StorageGateway.AddTagsToResource (Shared00)
StorageGateway.AddUploadBuffer (Shared00)
StorageGateway.AddWorkingStorage (Shared00)
StorageGateway.CancelArchival (Shared00)
StorageGateway.CancelRetrieval (Shared00)
StorageGateway.CreateCachediSCSIVolume (Shared00)
StorageGateway.CreateSnapshotFromVolumeRecoveryPoint (Shared00)
StorageGateway.CreateSnapshot (Shared00)
StorageGateway.CreateStorediSCSIVolume (Shared00)
StorageGateway.CreateTapeWithBarcode (Shared00)
StorageGateway.CreateTapes (Shared00)
StorageGateway.DeleteBandwidthRateLimit (Shared00)
StorageGateway.DeleteChapCredentials (Shared00)
StorageGateway.DeleteGateway (Shared00)
StorageGateway.DeleteSnapshotSchedule (Shared00)
StorageGateway.DeleteTapeArchive (Shared00)
StorageGateway.DeleteTape (Shared00)
StorageGateway.DeleteVolume (Shared00)
StorageGateway.DescribeBandwidthRateLimit (Shared00)
StorageGateway.DescribeCache (Shared00)
StorageGateway.DescribeCachediSCSIVolumes (Shared00)
StorageGateway.DescribeChapCredentials (Shared00)
StorageGateway.DescribeGatewayInformation (Shared00)
StorageGateway.DescribeMaintenanceStartTime (Shared00)
StorageGateway.DescribeSnapshotSchedule (Shared00)
StorageGateway.DescribeStorediSCSIVolumes (Shared00)
StorageGateway.DescribeTapeArchives (Shared00)
StorageGateway.DescribeTapeRecoveryPoints (Shared00)
StorageGateway.DescribeTapes (Shared00)
StorageGateway.DescribeUploadBuffer (Shared00)
StorageGateway.DescribeUploadBuffer (Shared01)
StorageGateway.DescribeVTLDevices (Shared00)
StorageGateway.DescribeWorkingStorage (Shared00)
StorageGateway.DisableGateway (Shared00)
StorageGateway.ListGateways (Shared00)
StorageGateway.ListLocalDisks (Shared00)
StorageGateway.ListTagsForResource (Shared00)
StorageGateway.ListVolumeRecoveryPoints (Shared00)
StorageGateway.ListVolumes (Shared00)
StorageGateway.RemoveTagsFromResource (Shared00)
StorageGateway.ResetCache (Shared00)
StorageGateway.RetrieveTapeArchive (Shared00)
StorageGateway.RetrieveTapeRecoveryPoint (Shared00)
StorageGateway.SetLocalConsolePassword (Shared00)
StorageGateway.ShutdownGateway (Shared00)
StorageGateway.StartGateway (Shared00)
StorageGateway.UpdateBandwidthRateLimit (Shared00)
StorageGateway.UpdateChapCredentials (Shared00)
StorageGateway.UpdateGatewayInformation (Shared00)
StorageGateway.UpdateGatewaySoftwareNow (Shared00)
StorageGateway.UpdateMaintenanceStartTime (Shared00)
StorageGateway.UpdateSnapshotSchedule (Shared00)
StorageGateway.UpdateVTLDeviceType (Shared00)

Constants ▾

const (
    // ErrorCodeActivationKeyExpired is a ErrorCode enum value
    ErrorCodeActivationKeyExpired = "ActivationKeyExpired"

    // ErrorCodeActivationKeyInvalid is a ErrorCode enum value
    ErrorCodeActivationKeyInvalid = "ActivationKeyInvalid"

    // ErrorCodeActivationKeyNotFound is a ErrorCode enum value
    ErrorCodeActivationKeyNotFound = "ActivationKeyNotFound"

    // ErrorCodeGatewayInternalError is a ErrorCode enum value
    ErrorCodeGatewayInternalError = "GatewayInternalError"

    // ErrorCodeGatewayNotConnected is a ErrorCode enum value
    ErrorCodeGatewayNotConnected = "GatewayNotConnected"

    // ErrorCodeGatewayNotFound is a ErrorCode enum value
    ErrorCodeGatewayNotFound = "GatewayNotFound"

    // ErrorCodeGatewayProxyNetworkConnectionBusy is a ErrorCode enum value
    ErrorCodeGatewayProxyNetworkConnectionBusy = "GatewayProxyNetworkConnectionBusy"

    // ErrorCodeAuthenticationFailure is a ErrorCode enum value
    ErrorCodeAuthenticationFailure = "AuthenticationFailure"

    // ErrorCodeBandwidthThrottleScheduleNotFound is a ErrorCode enum value
    ErrorCodeBandwidthThrottleScheduleNotFound = "BandwidthThrottleScheduleNotFound"

    // ErrorCodeBlocked is a ErrorCode enum value
    ErrorCodeBlocked = "Blocked"

    // ErrorCodeCannotExportSnapshot is a ErrorCode enum value
    ErrorCodeCannotExportSnapshot = "CannotExportSnapshot"

    // ErrorCodeChapCredentialNotFound is a ErrorCode enum value
    ErrorCodeChapCredentialNotFound = "ChapCredentialNotFound"

    // ErrorCodeDiskAlreadyAllocated is a ErrorCode enum value
    ErrorCodeDiskAlreadyAllocated = "DiskAlreadyAllocated"

    // ErrorCodeDiskDoesNotExist is a ErrorCode enum value
    ErrorCodeDiskDoesNotExist = "DiskDoesNotExist"

    // ErrorCodeDiskSizeGreaterThanVolumeMaxSize is a ErrorCode enum value
    ErrorCodeDiskSizeGreaterThanVolumeMaxSize = "DiskSizeGreaterThanVolumeMaxSize"

    // ErrorCodeDiskSizeLessThanVolumeSize is a ErrorCode enum value
    ErrorCodeDiskSizeLessThanVolumeSize = "DiskSizeLessThanVolumeSize"

    // ErrorCodeDiskSizeNotGigAligned is a ErrorCode enum value
    ErrorCodeDiskSizeNotGigAligned = "DiskSizeNotGigAligned"

    // ErrorCodeDuplicateCertificateInfo is a ErrorCode enum value
    ErrorCodeDuplicateCertificateInfo = "DuplicateCertificateInfo"

    // ErrorCodeDuplicateSchedule is a ErrorCode enum value
    ErrorCodeDuplicateSchedule = "DuplicateSchedule"

    // ErrorCodeEndpointNotFound is a ErrorCode enum value
    ErrorCodeEndpointNotFound = "EndpointNotFound"

    // ErrorCodeIamnotSupported is a ErrorCode enum value
    ErrorCodeIamnotSupported = "IAMNotSupported"

    // ErrorCodeInitiatorInvalid is a ErrorCode enum value
    ErrorCodeInitiatorInvalid = "InitiatorInvalid"

    // ErrorCodeInitiatorNotFound is a ErrorCode enum value
    ErrorCodeInitiatorNotFound = "InitiatorNotFound"

    // ErrorCodeInternalError is a ErrorCode enum value
    ErrorCodeInternalError = "InternalError"

    // ErrorCodeInvalidGateway is a ErrorCode enum value
    ErrorCodeInvalidGateway = "InvalidGateway"

    // ErrorCodeInvalidEndpoint is a ErrorCode enum value
    ErrorCodeInvalidEndpoint = "InvalidEndpoint"

    // ErrorCodeInvalidParameters is a ErrorCode enum value
    ErrorCodeInvalidParameters = "InvalidParameters"

    // ErrorCodeInvalidSchedule is a ErrorCode enum value
    ErrorCodeInvalidSchedule = "InvalidSchedule"

    // ErrorCodeLocalStorageLimitExceeded is a ErrorCode enum value
    ErrorCodeLocalStorageLimitExceeded = "LocalStorageLimitExceeded"

    // ErrorCodeLunAlreadyAllocated is a ErrorCode enum value
    ErrorCodeLunAlreadyAllocated = "LunAlreadyAllocated "

    // ErrorCodeLunInvalid is a ErrorCode enum value
    ErrorCodeLunInvalid = "LunInvalid"

    // ErrorCodeMaximumContentLengthExceeded is a ErrorCode enum value
    ErrorCodeMaximumContentLengthExceeded = "MaximumContentLengthExceeded"

    // ErrorCodeMaximumTapeCartridgeCountExceeded is a ErrorCode enum value
    ErrorCodeMaximumTapeCartridgeCountExceeded = "MaximumTapeCartridgeCountExceeded"

    // ErrorCodeMaximumVolumeCountExceeded is a ErrorCode enum value
    ErrorCodeMaximumVolumeCountExceeded = "MaximumVolumeCountExceeded"

    // ErrorCodeNetworkConfigurationChanged is a ErrorCode enum value
    ErrorCodeNetworkConfigurationChanged = "NetworkConfigurationChanged"

    // ErrorCodeNoDisksAvailable is a ErrorCode enum value
    ErrorCodeNoDisksAvailable = "NoDisksAvailable"

    // ErrorCodeNotImplemented is a ErrorCode enum value
    ErrorCodeNotImplemented = "NotImplemented"

    // ErrorCodeNotSupported is a ErrorCode enum value
    ErrorCodeNotSupported = "NotSupported"

    // ErrorCodeOperationAborted is a ErrorCode enum value
    ErrorCodeOperationAborted = "OperationAborted"

    // ErrorCodeOutdatedGateway is a ErrorCode enum value
    ErrorCodeOutdatedGateway = "OutdatedGateway"

    // ErrorCodeParametersNotImplemented is a ErrorCode enum value
    ErrorCodeParametersNotImplemented = "ParametersNotImplemented"

    // ErrorCodeRegionInvalid is a ErrorCode enum value
    ErrorCodeRegionInvalid = "RegionInvalid"

    // ErrorCodeRequestTimeout is a ErrorCode enum value
    ErrorCodeRequestTimeout = "RequestTimeout"

    // ErrorCodeServiceUnavailable is a ErrorCode enum value
    ErrorCodeServiceUnavailable = "ServiceUnavailable"

    // ErrorCodeSnapshotDeleted is a ErrorCode enum value
    ErrorCodeSnapshotDeleted = "SnapshotDeleted"

    // ErrorCodeSnapshotIdInvalid is a ErrorCode enum value
    ErrorCodeSnapshotIdInvalid = "SnapshotIdInvalid"

    // ErrorCodeSnapshotInProgress is a ErrorCode enum value
    ErrorCodeSnapshotInProgress = "SnapshotInProgress"

    // ErrorCodeSnapshotNotFound is a ErrorCode enum value
    ErrorCodeSnapshotNotFound = "SnapshotNotFound"

    // ErrorCodeSnapshotScheduleNotFound is a ErrorCode enum value
    ErrorCodeSnapshotScheduleNotFound = "SnapshotScheduleNotFound"

    // ErrorCodeStagingAreaFull is a ErrorCode enum value
    ErrorCodeStagingAreaFull = "StagingAreaFull"

    // ErrorCodeStorageFailure is a ErrorCode enum value
    ErrorCodeStorageFailure = "StorageFailure"

    // ErrorCodeTapeCartridgeNotFound is a ErrorCode enum value
    ErrorCodeTapeCartridgeNotFound = "TapeCartridgeNotFound"

    // ErrorCodeTargetAlreadyExists is a ErrorCode enum value
    ErrorCodeTargetAlreadyExists = "TargetAlreadyExists"

    // ErrorCodeTargetInvalid is a ErrorCode enum value
    ErrorCodeTargetInvalid = "TargetInvalid"

    // ErrorCodeTargetNotFound is a ErrorCode enum value
    ErrorCodeTargetNotFound = "TargetNotFound"

    // ErrorCodeUnauthorizedOperation is a ErrorCode enum value
    ErrorCodeUnauthorizedOperation = "UnauthorizedOperation"

    // ErrorCodeVolumeAlreadyExists is a ErrorCode enum value
    ErrorCodeVolumeAlreadyExists = "VolumeAlreadyExists"

    // ErrorCodeVolumeIdInvalid is a ErrorCode enum value
    ErrorCodeVolumeIdInvalid = "VolumeIdInvalid"

    // ErrorCodeVolumeInUse is a ErrorCode enum value
    ErrorCodeVolumeInUse = "VolumeInUse"

    // ErrorCodeVolumeNotFound is a ErrorCode enum value
    ErrorCodeVolumeNotFound = "VolumeNotFound"

    // ErrorCodeVolumeNotReady is a ErrorCode enum value
    ErrorCodeVolumeNotReady = "VolumeNotReady"
)
const (
    // FileShareTypeNfs is a FileShareType enum value
    FileShareTypeNfs = "NFS"

    // FileShareTypeSmb is a FileShareType enum value
    FileShareTypeSmb = "SMB"
)

The type of the file share.

const (
    // ObjectACLPrivate is a ObjectACL enum value
    ObjectACLPrivate = "private"

    // ObjectACLPublicRead is a ObjectACL enum value
    ObjectACLPublicRead = "public-read"

    // ObjectACLPublicReadWrite is a ObjectACL enum value
    ObjectACLPublicReadWrite = "public-read-write"

    // ObjectACLAuthenticatedRead is a ObjectACL enum value
    ObjectACLAuthenticatedRead = "authenticated-read"

    // ObjectACLBucketOwnerRead is a ObjectACL enum value
    ObjectACLBucketOwnerRead = "bucket-owner-read"

    // ObjectACLBucketOwnerFullControl is a ObjectACL enum value
    ObjectACLBucketOwnerFullControl = "bucket-owner-full-control"

    // ObjectACLAwsExecRead is a ObjectACL enum value
    ObjectACLAwsExecRead = "aws-exec-read"
)

A value that sets the access control list permission for objects in the S3 bucket that a file gateway puts objects into. The default value is "private".

const (

    // ErrCodeInternalServerError for service response error code
    // "InternalServerError".
    //
    // An internal server error has occurred during the request. For more information,
    // see the error and message fields.
    ErrCodeInternalServerError = "InternalServerError"

    // ErrCodeInvalidGatewayRequestException for service response error code
    // "InvalidGatewayRequestException".
    //
    // An exception occurred because an invalid gateway request was issued to the
    // service. For more information, see the error and message fields.
    ErrCodeInvalidGatewayRequestException = "InvalidGatewayRequestException"

    // ErrCodeServiceUnavailableError for service response error code
    // "ServiceUnavailableError".
    //
    // An internal server error has occurred because the service is unavailable.
    // For more information, see the error and message fields.
    ErrCodeServiceUnavailableError = "ServiceUnavailableError"
)
const (
    ServiceName = "storagegateway"  // Name of service.
    EndpointsID = ServiceName       // ID to lookup a service endpoint with.
    ServiceID   = "Storage Gateway" // ServiceID is a unique identifer of a specific service.
)

Service information constants

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.
    //
    // For more information, see https://docs.aws.amazon.com/storagegateway/latest/userguide/get-activation-key.html
    // in the Storage Gateway User Guide.
    //
    // ActivationKey is a required field
    ActivationKey *string `min:"1" type:"string" required:"true"`

    // The name you configured for your gateway.
    //
    // GatewayName is a required field
    GatewayName *string `min:"2" type:"string" required:"true"`

    // A value that indicates the region where you want to store your data. 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-east-2", "us-west-1", "us-west-2", "ca-central-1",
    // "eu-west-1", "eu-central-1", "eu-west-2", "eu-west-3", "ap-northeast-1",
    // "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-south-1", "sa-east-1"
    //
    // GatewayRegion is a required field
    GatewayRegion *string `min:"1" type:"string" required:"true"`

    // A value that indicates the time zone you want to set for the gateway. The
    // time zone is of the format "GMT-hr:mm" or "GMT+hr:mm". For example, GMT-4:00
    // indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is
    // 2 hours ahead of GMT. The time zone is used, for example, for scheduling
    // snapshots and your gateway's maintenance schedule.
    //
    // GatewayTimezone is a required field
    GatewayTimezone *string `min:"3" type:"string" required:"true"`

    // A value 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 CACHED.
    //
    // Valid Values: "STORED", "CACHED", "VTL", "FILE_S3"
    GatewayType *string `min:"2" type:"string"`

    // The value that indicates the type of medium changer to use for tape gateway.
    // This field is optional.
    //
    // Valid Values: "STK-L700", "AWS-Gateway-VTL"
    MediumChangerType *string `min:"2" type:"string"`

    // The value that indicates the type of tape drive to use for tape gateway.
    // This field is optional.
    //
    // Valid Values: "IBM-ULT3580-TD5"
    TapeDriveType *string `min:"2" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing one or more of the following fields:

* ActivateGatewayInput$ActivationKey

* ActivateGatewayInput$GatewayName

* ActivateGatewayInput$GatewayRegion

* ActivateGatewayInput$GatewayTimezone

* ActivateGatewayInput$GatewayType

* ActivateGatewayInput$TapeDriveType

* ActivateGatewayInput$MediumChangerType

func (ActivateGatewayInput) GoString

func (s ActivateGatewayInput) GoString() string

GoString returns the string representation

func (*ActivateGatewayInput) SetActivationKey

func (s *ActivateGatewayInput) SetActivationKey(v string) *ActivateGatewayInput

SetActivationKey sets the ActivationKey field's value.

func (*ActivateGatewayInput) SetGatewayName

func (s *ActivateGatewayInput) SetGatewayName(v string) *ActivateGatewayInput

SetGatewayName sets the GatewayName field's value.

func (*ActivateGatewayInput) SetGatewayRegion

func (s *ActivateGatewayInput) SetGatewayRegion(v string) *ActivateGatewayInput

SetGatewayRegion sets the GatewayRegion field's value.

func (*ActivateGatewayInput) SetGatewayTimezone

func (s *ActivateGatewayInput) SetGatewayTimezone(v string) *ActivateGatewayInput

SetGatewayTimezone sets the GatewayTimezone field's value.

func (*ActivateGatewayInput) SetGatewayType

func (s *ActivateGatewayInput) SetGatewayType(v string) *ActivateGatewayInput

SetGatewayType sets the GatewayType field's value.

func (*ActivateGatewayInput) SetMediumChangerType

func (s *ActivateGatewayInput) SetMediumChangerType(v string) *ActivateGatewayInput

SetMediumChangerType sets the MediumChangerType field's value.

func (*ActivateGatewayInput) SetTapeDriveType

func (s *ActivateGatewayInput) SetTapeDriveType(v string) *ActivateGatewayInput

SetTapeDriveType sets the TapeDriveType field's value.

func (ActivateGatewayInput) String

func (s ActivateGatewayInput) String() string

String returns the string representation

func (*ActivateGatewayInput) Validate

func (s *ActivateGatewayInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" 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.

For gateways activated prior to September 02, 2015, the gateway ARN contains the gateway name rather than the gateway ID. Changing the name of the gateway has no effect on the gateway ARN.

func (ActivateGatewayOutput) GoString

func (s ActivateGatewayOutput) GoString() string

GoString returns the string representation

func (*ActivateGatewayOutput) SetGatewayARN

func (s *ActivateGatewayOutput) SetGatewayARN(v string) *ActivateGatewayOutput

SetGatewayARN sets the GatewayARN field's value.

func (ActivateGatewayOutput) String

func (s ActivateGatewayOutput) String() string

String returns the string representation

type AddCacheInput

type AddCacheInput struct {

    // DiskIds is a required field
    DiskIds []*string `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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (AddCacheInput) GoString

func (s AddCacheInput) GoString() string

GoString returns the string representation

func (*AddCacheInput) SetDiskIds

func (s *AddCacheInput) SetDiskIds(v []*string) *AddCacheInput

SetDiskIds sets the DiskIds field's value.

func (*AddCacheInput) SetGatewayARN

func (s *AddCacheInput) SetGatewayARN(v string) *AddCacheInput

SetGatewayARN sets the GatewayARN field's value.

func (AddCacheInput) String

func (s AddCacheInput) String() string

String returns the string representation

func (*AddCacheInput) Validate

func (s *AddCacheInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (AddCacheOutput) GoString

func (s AddCacheOutput) GoString() string

GoString returns the string representation

func (*AddCacheOutput) SetGatewayARN

func (s *AddCacheOutput) SetGatewayARN(v string) *AddCacheOutput

SetGatewayARN sets the GatewayARN field's value.

func (AddCacheOutput) String

func (s AddCacheOutput) String() string

String returns the string representation

type AddTagsToResourceInput

type AddTagsToResourceInput struct {

    // The Amazon Resource Name (ARN) of the resource you want to add tags to.
    //
    // ResourceARN is a required field
    ResourceARN *string `min:"50" type:"string" required:"true"`

    // The key-value pair that represents the tag you want to add to the resource.
    // The value can be an empty string.
    //
    // Valid characters for key and value are letters, spaces, and numbers representable
    // in UTF-8 format, and the following special characters: + - = . _ : / @.
    //
    // Tags is a required field
    Tags []*Tag `type:"list" required:"true"`
    // contains filtered or unexported fields
}

AddTagsToResourceInput

func (AddTagsToResourceInput) GoString

func (s AddTagsToResourceInput) GoString() string

GoString returns the string representation

func (*AddTagsToResourceInput) SetResourceARN

func (s *AddTagsToResourceInput) SetResourceARN(v string) *AddTagsToResourceInput

SetResourceARN sets the ResourceARN field's value.

func (*AddTagsToResourceInput) SetTags

func (s *AddTagsToResourceInput) SetTags(v []*Tag) *AddTagsToResourceInput

SetTags sets the Tags field's value.

func (AddTagsToResourceInput) String

func (s AddTagsToResourceInput) String() string

String returns the string representation

func (*AddTagsToResourceInput) Validate

func (s *AddTagsToResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AddTagsToResourceOutput

type AddTagsToResourceOutput struct {

    // The Amazon Resource Name (ARN) of the resource you want to add tags to.
    ResourceARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

AddTagsToResourceOutput

func (AddTagsToResourceOutput) GoString

func (s AddTagsToResourceOutput) GoString() string

GoString returns the string representation

func (*AddTagsToResourceOutput) SetResourceARN

func (s *AddTagsToResourceOutput) SetResourceARN(v string) *AddTagsToResourceOutput

SetResourceARN sets the ResourceARN field's value.

func (AddTagsToResourceOutput) String

func (s AddTagsToResourceOutput) String() string

String returns the string representation

type AddUploadBufferInput

type AddUploadBufferInput struct {

    // DiskIds is a required field
    DiskIds []*string `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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (AddUploadBufferInput) GoString

func (s AddUploadBufferInput) GoString() string

GoString returns the string representation

func (*AddUploadBufferInput) SetDiskIds

func (s *AddUploadBufferInput) SetDiskIds(v []*string) *AddUploadBufferInput

SetDiskIds sets the DiskIds field's value.

func (*AddUploadBufferInput) SetGatewayARN

func (s *AddUploadBufferInput) SetGatewayARN(v string) *AddUploadBufferInput

SetGatewayARN sets the GatewayARN field's value.

func (AddUploadBufferInput) String

func (s AddUploadBufferInput) String() string

String returns the string representation

func (*AddUploadBufferInput) Validate

func (s *AddUploadBufferInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (AddUploadBufferOutput) GoString

func (s AddUploadBufferOutput) GoString() string

GoString returns the string representation

func (*AddUploadBufferOutput) SetGatewayARN

func (s *AddUploadBufferOutput) SetGatewayARN(v string) *AddUploadBufferOutput

SetGatewayARN sets the GatewayARN field's value.

func (AddUploadBufferOutput) String

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 is a required field
    DiskIds []*string `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 is a required field
    GatewayARN *string `min:"50" 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

func (s AddWorkingStorageInput) GoString() string

GoString returns the string representation

func (*AddWorkingStorageInput) SetDiskIds

func (s *AddWorkingStorageInput) SetDiskIds(v []*string) *AddWorkingStorageInput

SetDiskIds sets the DiskIds field's value.

func (*AddWorkingStorageInput) SetGatewayARN

func (s *AddWorkingStorageInput) SetGatewayARN(v string) *AddWorkingStorageInput

SetGatewayARN sets the GatewayARN field's value.

func (AddWorkingStorageInput) String

func (s AddWorkingStorageInput) String() string

String returns the string representation

func (*AddWorkingStorageInput) Validate

func (s *AddWorkingStorageInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway for which working storage was configured.

func (AddWorkingStorageOutput) GoString

func (s AddWorkingStorageOutput) GoString() string

GoString returns the string representation

func (*AddWorkingStorageOutput) SetGatewayARN

func (s *AddWorkingStorageOutput) SetGatewayARN(v string) *AddWorkingStorageOutput

SetGatewayARN sets the GatewayARN field's value.

func (AddWorkingStorageOutput) String

func (s AddWorkingStorageOutput) String() string

String returns the string representation

type CachediSCSIVolume

type CachediSCSIVolume struct {

    // The date the volume was created. Volumes created prior to March 28, 2017
    // don’t have this time stamp.
    CreatedDate *time.Time `type:"timestamp"`

    // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // If the cached volume was created from a snapshot, this field contains the
    // snapshot ID used, e.g. snap-78e22663. Otherwise, this field is not included.
    SourceSnapshotId *string `type:"string"`

    // The Amazon Resource Name (ARN) of the storage volume.
    VolumeARN *string `min:"50" type:"string"`

    // The unique identifier of the volume, e.g. vol-AE4B946D.
    VolumeId *string `min:"12" type:"string"`

    // Represents the percentage complete if the volume is restoring or bootstrapping
    // that represents the percent of data transferred. This field does not appear
    // in the response if the cached volume is not restoring or bootstrapping.
    VolumeProgress *float64 `type:"double"`

    // The size, in bytes, of the volume capacity.
    VolumeSizeInBytes *int64 `type:"long"`

    // One of the VolumeStatus values that indicates the state of the storage volume.
    VolumeStatus *string `min:"3" type:"string"`

    // One of the VolumeType enumeration values that describes the type of the volume.
    VolumeType *string `min:"3" type:"string"`

    // The size of the data stored on the volume in bytes.
    //
    // This value is not available for volumes created prior to May 13, 2015, until
    // you store data on the volume.
    VolumeUsedInBytes *int64 `type:"long"`

    // An VolumeiSCSIAttributes object that represents a collection of iSCSI attributes
    // for one stored volume.
    VolumeiSCSIAttributes *VolumeiSCSIAttributes `type:"structure"`
    // contains filtered or unexported fields
}

Describes an iSCSI cached volume.

func (CachediSCSIVolume) GoString

func (s CachediSCSIVolume) GoString() string

GoString returns the string representation

func (*CachediSCSIVolume) SetCreatedDate

func (s *CachediSCSIVolume) SetCreatedDate(v time.Time) *CachediSCSIVolume

SetCreatedDate sets the CreatedDate field's value.

func (*CachediSCSIVolume) SetKMSKey

func (s *CachediSCSIVolume) SetKMSKey(v string) *CachediSCSIVolume

SetKMSKey sets the KMSKey field's value.

func (*CachediSCSIVolume) SetSourceSnapshotId

func (s *CachediSCSIVolume) SetSourceSnapshotId(v string) *CachediSCSIVolume

SetSourceSnapshotId sets the SourceSnapshotId field's value.

func (*CachediSCSIVolume) SetVolumeARN

func (s *CachediSCSIVolume) SetVolumeARN(v string) *CachediSCSIVolume

SetVolumeARN sets the VolumeARN field's value.

func (*CachediSCSIVolume) SetVolumeId

func (s *CachediSCSIVolume) SetVolumeId(v string) *CachediSCSIVolume

SetVolumeId sets the VolumeId field's value.

func (*CachediSCSIVolume) SetVolumeProgress

func (s *CachediSCSIVolume) SetVolumeProgress(v float64) *CachediSCSIVolume

SetVolumeProgress sets the VolumeProgress field's value.

func (*CachediSCSIVolume) SetVolumeSizeInBytes

func (s *CachediSCSIVolume) SetVolumeSizeInBytes(v int64) *CachediSCSIVolume

SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value.

func (*CachediSCSIVolume) SetVolumeStatus

func (s *CachediSCSIVolume) SetVolumeStatus(v string) *CachediSCSIVolume

SetVolumeStatus sets the VolumeStatus field's value.

func (*CachediSCSIVolume) SetVolumeType

func (s *CachediSCSIVolume) SetVolumeType(v string) *CachediSCSIVolume

SetVolumeType sets the VolumeType field's value.

func (*CachediSCSIVolume) SetVolumeUsedInBytes

func (s *CachediSCSIVolume) SetVolumeUsedInBytes(v int64) *CachediSCSIVolume

SetVolumeUsedInBytes sets the VolumeUsedInBytes field's value.

func (*CachediSCSIVolume) SetVolumeiSCSIAttributes

func (s *CachediSCSIVolume) SetVolumeiSCSIAttributes(v *VolumeiSCSIAttributes) *CachediSCSIVolume

SetVolumeiSCSIAttributes sets the VolumeiSCSIAttributes field's value.

func (CachediSCSIVolume) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the virtual tape you want to cancel archiving
    // for.
    //
    // TapeARN is a required field
    TapeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

CancelArchivalInput

func (CancelArchivalInput) GoString

func (s CancelArchivalInput) GoString() string

GoString returns the string representation

func (*CancelArchivalInput) SetGatewayARN

func (s *CancelArchivalInput) SetGatewayARN(v string) *CancelArchivalInput

SetGatewayARN sets the GatewayARN field's value.

func (*CancelArchivalInput) SetTapeARN

func (s *CancelArchivalInput) SetTapeARN(v string) *CancelArchivalInput

SetTapeARN sets the TapeARN field's value.

func (CancelArchivalInput) String

func (s CancelArchivalInput) String() string

String returns the string representation

func (*CancelArchivalInput) Validate

func (s *CancelArchivalInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CancelArchivalOutput

type CancelArchivalOutput struct {

    // The Amazon Resource Name (ARN) of the virtual tape for which archiving was
    // canceled.
    TapeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

CancelArchivalOutput

func (CancelArchivalOutput) GoString

func (s CancelArchivalOutput) GoString() string

GoString returns the string representation

func (*CancelArchivalOutput) SetTapeARN

func (s *CancelArchivalOutput) SetTapeARN(v string) *CancelArchivalOutput

SetTapeARN sets the TapeARN field's value.

func (CancelArchivalOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the virtual tape you want to cancel retrieval
    // for.
    //
    // TapeARN is a required field
    TapeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

CancelRetrievalInput

func (CancelRetrievalInput) GoString

func (s CancelRetrievalInput) GoString() string

GoString returns the string representation

func (*CancelRetrievalInput) SetGatewayARN

func (s *CancelRetrievalInput) SetGatewayARN(v string) *CancelRetrievalInput

SetGatewayARN sets the GatewayARN field's value.

func (*CancelRetrievalInput) SetTapeARN

func (s *CancelRetrievalInput) SetTapeARN(v string) *CancelRetrievalInput

SetTapeARN sets the TapeARN field's value.

func (CancelRetrievalInput) String

func (s CancelRetrievalInput) String() string

String returns the string representation

func (*CancelRetrievalInput) Validate

func (s *CancelRetrievalInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CancelRetrievalOutput

type CancelRetrievalOutput struct {

    // The Amazon Resource Name (ARN) of the virtual tape for which retrieval was
    // canceled.
    TapeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

CancelRetrievalOutput

func (CancelRetrievalOutput) GoString

func (s CancelRetrievalOutput) GoString() string

GoString returns the string representation

func (*CancelRetrievalOutput) SetTapeARN

func (s *CancelRetrievalOutput) SetTapeARN(v string) *CancelRetrievalOutput

SetTapeARN sets the TapeARN field's value.

func (CancelRetrievalOutput) String

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 `min:"1" 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 `min:"1" type:"string"`

    // The secret key that the target must provide to participate in mutual CHAP
    // with the initiator (e.g. Windows client).
    SecretToAuthenticateTarget *string `min:"1" type:"string"`

    // The Amazon Resource Name (ARN) of the volume.
    //
    // Valid Values: 50 to 500 lowercase letters, numbers, periods (.), and hyphens
    // (-).
    TargetARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

Describes Challenge-Handshake Authentication Protocol (CHAP) information that supports authentication between your gateway and iSCSI initiators.

func (ChapInfo) GoString

func (s ChapInfo) GoString() string

GoString returns the string representation

func (*ChapInfo) SetInitiatorName

func (s *ChapInfo) SetInitiatorName(v string) *ChapInfo

SetInitiatorName sets the InitiatorName field's value.

func (*ChapInfo) SetSecretToAuthenticateInitiator

func (s *ChapInfo) SetSecretToAuthenticateInitiator(v string) *ChapInfo

SetSecretToAuthenticateInitiator sets the SecretToAuthenticateInitiator field's value.

func (*ChapInfo) SetSecretToAuthenticateTarget

func (s *ChapInfo) SetSecretToAuthenticateTarget(v string) *ChapInfo

SetSecretToAuthenticateTarget sets the SecretToAuthenticateTarget field's value.

func (*ChapInfo) SetTargetARN

func (s *ChapInfo) SetTargetARN(v string) *ChapInfo

SetTargetARN sets the TargetARN field's value.

func (ChapInfo) String

func (s ChapInfo) String() string

String returns the string representation

type CreateCachediSCSIVolumeInput

type CreateCachediSCSIVolumeInput 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.
    //
    // ClientToken is a required field
    ClientToken *string `min:"5" 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // 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 is a required field
    NetworkInterfaceId *string `type:"string" required:"true"`

    // The snapshot ID (e.g. "snap-1122aabb") of the snapshot to restore as the
    // new cached 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 `type:"string"`

    // The ARN for an existing volume. Specifying this ARN makes the new volume
    // into an exact copy of the specified existing volume's latest recovery point.
    // The VolumeSizeInBytes value for this new volume must be equal to or larger
    // than the size of the existing volume, in bytes.
    SourceVolumeARN *string `min:"50" 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-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume.
    // The target name must be unique across all volumes of a gateway.
    //
    // TargetName is a required field
    TargetName *string `min:"1" type:"string" required:"true"`

    // The size of the volume in bytes.
    //
    // VolumeSizeInBytes is a required field
    VolumeSizeInBytes *int64 `type:"long" required:"true"`
    // contains filtered or unexported fields
}

func (CreateCachediSCSIVolumeInput) GoString

func (s CreateCachediSCSIVolumeInput) GoString() string

GoString returns the string representation

func (*CreateCachediSCSIVolumeInput) SetClientToken

func (s *CreateCachediSCSIVolumeInput) SetClientToken(v string) *CreateCachediSCSIVolumeInput

SetClientToken sets the ClientToken field's value.

func (*CreateCachediSCSIVolumeInput) SetGatewayARN

func (s *CreateCachediSCSIVolumeInput) SetGatewayARN(v string) *CreateCachediSCSIVolumeInput

SetGatewayARN sets the GatewayARN field's value.

func (*CreateCachediSCSIVolumeInput) SetKMSEncrypted

func (s *CreateCachediSCSIVolumeInput) SetKMSEncrypted(v bool) *CreateCachediSCSIVolumeInput

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*CreateCachediSCSIVolumeInput) SetKMSKey

func (s *CreateCachediSCSIVolumeInput) SetKMSKey(v string) *CreateCachediSCSIVolumeInput

SetKMSKey sets the KMSKey field's value.

func (*CreateCachediSCSIVolumeInput) SetNetworkInterfaceId

func (s *CreateCachediSCSIVolumeInput) SetNetworkInterfaceId(v string) *CreateCachediSCSIVolumeInput

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

func (*CreateCachediSCSIVolumeInput) SetSnapshotId

func (s *CreateCachediSCSIVolumeInput) SetSnapshotId(v string) *CreateCachediSCSIVolumeInput

SetSnapshotId sets the SnapshotId field's value.

func (*CreateCachediSCSIVolumeInput) SetSourceVolumeARN

func (s *CreateCachediSCSIVolumeInput) SetSourceVolumeARN(v string) *CreateCachediSCSIVolumeInput

SetSourceVolumeARN sets the SourceVolumeARN field's value.

func (*CreateCachediSCSIVolumeInput) SetTargetName

func (s *CreateCachediSCSIVolumeInput) SetTargetName(v string) *CreateCachediSCSIVolumeInput

SetTargetName sets the TargetName field's value.

func (*CreateCachediSCSIVolumeInput) SetVolumeSizeInBytes

func (s *CreateCachediSCSIVolumeInput) SetVolumeSizeInBytes(v int64) *CreateCachediSCSIVolumeInput

SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value.

func (CreateCachediSCSIVolumeInput) String

func (s CreateCachediSCSIVolumeInput) String() string

String returns the string representation

func (*CreateCachediSCSIVolumeInput) Validate

func (s *CreateCachediSCSIVolumeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateCachediSCSIVolumeOutput

type CreateCachediSCSIVolumeOutput 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 `min:"50" type:"string"`

    // The Amazon Resource Name (ARN) of the configured volume.
    VolumeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (CreateCachediSCSIVolumeOutput) GoString

func (s CreateCachediSCSIVolumeOutput) GoString() string

GoString returns the string representation

func (*CreateCachediSCSIVolumeOutput) SetTargetARN

func (s *CreateCachediSCSIVolumeOutput) SetTargetARN(v string) *CreateCachediSCSIVolumeOutput

SetTargetARN sets the TargetARN field's value.

func (*CreateCachediSCSIVolumeOutput) SetVolumeARN

func (s *CreateCachediSCSIVolumeOutput) SetVolumeARN(v string) *CreateCachediSCSIVolumeOutput

SetVolumeARN sets the VolumeARN field's value.

func (CreateCachediSCSIVolumeOutput) String

func (s CreateCachediSCSIVolumeOutput) String() string

String returns the string representation

type CreateNFSFileShareInput

type CreateNFSFileShareInput struct {

    // The list of clients that are allowed to access the file gateway. The list
    // must contain either valid IP addresses or valid CIDR blocks.
    ClientList []*string `min:"1" type:"list"`

    // A unique string value that you supply that is used by file gateway to ensure
    // idempotent file share creation.
    //
    // ClientToken is a required field
    ClientToken *string `min:"5" type:"string" required:"true"`

    // The default storage class for objects put into an Amazon S3 bucket by the
    // file gateway. Possible values are S3_STANDARD, S3_STANDARD_IA, or S3_ONEZONE_IA.
    // If this field is not populated, the default value S3_STANDARD is used. Optional.
    DefaultStorageClass *string `min:"5" type:"string"`

    // The Amazon Resource Name (ARN) of the file gateway on which you want to create
    // a file share.
    //
    // GatewayARN is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // A value that enables guessing of the MIME type for uploaded objects based
    // on file extensions. Set this value to true to enable MIME type guessing,
    // and otherwise to false. The default value is true.
    GuessMIMETypeEnabled *bool `type:"boolean"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) AWS KMS key used for Amazon S3 server side
    // encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // The ARN of the backed storage used for storing file data.
    //
    // LocationARN is a required field
    LocationARN *string `min:"16" type:"string" required:"true"`

    // File share default values. Optional.
    NFSFileShareDefaults *NFSFileShareDefaults `type:"structure"`

    // A value that sets the access control list permission for objects in the S3
    // bucket that a file gateway puts objects into. The default value is "private".
    ObjectACL *string `type:"string" enum:"ObjectACL"`

    // A value that sets the write status of a file share. This value is true if
    // the write status is read-only, and otherwise false.
    ReadOnly *bool `type:"boolean"`

    // A value that sets the access control list permission for objects in the Amazon
    // S3 bucket that a file gateway puts objects into. The default value is private.
    RequesterPays *bool `type:"boolean"`

    // The ARN of the AWS Identity and Access Management (IAM) role that a file
    // gateway assumes when it accesses the underlying storage.
    //
    // Role is a required field
    Role *string `min:"20" type:"string" required:"true"`

    // Maps a user to anonymous user. Valid options are the following:
    //
    //    * RootSquash - Only root is mapped to anonymous user.
    //
    //    * NoSquash - No one is mapped to anonymous user
    //
    //    * AllSquash - Everyone is mapped to anonymous user.
    Squash *string `min:"5" type:"string"`
    // contains filtered or unexported fields
}

CreateNFSFileShareInput

func (CreateNFSFileShareInput) GoString

func (s CreateNFSFileShareInput) GoString() string

GoString returns the string representation

func (*CreateNFSFileShareInput) SetClientList

func (s *CreateNFSFileShareInput) SetClientList(v []*string) *CreateNFSFileShareInput

SetClientList sets the ClientList field's value.

func (*CreateNFSFileShareInput) SetClientToken

func (s *CreateNFSFileShareInput) SetClientToken(v string) *CreateNFSFileShareInput

SetClientToken sets the ClientToken field's value.

func (*CreateNFSFileShareInput) SetDefaultStorageClass

func (s *CreateNFSFileShareInput) SetDefaultStorageClass(v string) *CreateNFSFileShareInput

SetDefaultStorageClass sets the DefaultStorageClass field's value.

func (*CreateNFSFileShareInput) SetGatewayARN

func (s *CreateNFSFileShareInput) SetGatewayARN(v string) *CreateNFSFileShareInput

SetGatewayARN sets the GatewayARN field's value.

func (*CreateNFSFileShareInput) SetGuessMIMETypeEnabled

func (s *CreateNFSFileShareInput) SetGuessMIMETypeEnabled(v bool) *CreateNFSFileShareInput

SetGuessMIMETypeEnabled sets the GuessMIMETypeEnabled field's value.

func (*CreateNFSFileShareInput) SetKMSEncrypted

func (s *CreateNFSFileShareInput) SetKMSEncrypted(v bool) *CreateNFSFileShareInput

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*CreateNFSFileShareInput) SetKMSKey

func (s *CreateNFSFileShareInput) SetKMSKey(v string) *CreateNFSFileShareInput

SetKMSKey sets the KMSKey field's value.

func (*CreateNFSFileShareInput) SetLocationARN

func (s *CreateNFSFileShareInput) SetLocationARN(v string) *CreateNFSFileShareInput

SetLocationARN sets the LocationARN field's value.

func (*CreateNFSFileShareInput) SetNFSFileShareDefaults

func (s *CreateNFSFileShareInput) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *CreateNFSFileShareInput

SetNFSFileShareDefaults sets the NFSFileShareDefaults field's value.

func (*CreateNFSFileShareInput) SetObjectACL

func (s *CreateNFSFileShareInput) SetObjectACL(v string) *CreateNFSFileShareInput

SetObjectACL sets the ObjectACL field's value.

func (*CreateNFSFileShareInput) SetReadOnly

func (s *CreateNFSFileShareInput) SetReadOnly(v bool) *CreateNFSFileShareInput

SetReadOnly sets the ReadOnly field's value.

func (*CreateNFSFileShareInput) SetRequesterPays

func (s *CreateNFSFileShareInput) SetRequesterPays(v bool) *CreateNFSFileShareInput

SetRequesterPays sets the RequesterPays field's value.

func (*CreateNFSFileShareInput) SetRole

func (s *CreateNFSFileShareInput) SetRole(v string) *CreateNFSFileShareInput

SetRole sets the Role field's value.

func (*CreateNFSFileShareInput) SetSquash

func (s *CreateNFSFileShareInput) SetSquash(v string) *CreateNFSFileShareInput

SetSquash sets the Squash field's value.

func (CreateNFSFileShareInput) String

func (s CreateNFSFileShareInput) String() string

String returns the string representation

func (*CreateNFSFileShareInput) Validate

func (s *CreateNFSFileShareInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateNFSFileShareOutput

type CreateNFSFileShareOutput struct {

    // The Amazon Resource Name (ARN) of the newly created file share.
    FileShareARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

CreateNFSFileShareOutput

func (CreateNFSFileShareOutput) GoString

func (s CreateNFSFileShareOutput) GoString() string

GoString returns the string representation

func (*CreateNFSFileShareOutput) SetFileShareARN

func (s *CreateNFSFileShareOutput) SetFileShareARN(v string) *CreateNFSFileShareOutput

SetFileShareARN sets the FileShareARN field's value.

func (CreateNFSFileShareOutput) String

func (s CreateNFSFileShareOutput) String() string

String returns the string representation

type CreateSMBFileShareInput

type CreateSMBFileShareInput struct {

    // The authentication method that users use to access the file share.
    //
    // Valid values are ActiveDirectory or GuestAccess. The default is ActiveDirectory.
    Authentication *string `min:"5" type:"string"`

    // A unique string value that you supply that is used by file gateway to ensure
    // idempotent file share creation.
    //
    // ClientToken is a required field
    ClientToken *string `min:"5" type:"string" required:"true"`

    // The default storage class for objects put into an Amazon S3 bucket by the
    // file gateway. Possible values are S3_STANDARD, S3_STANDARD_IA, or S3_ONEZONE_IA.
    // If this field is not populated, the default value S3_STANDARD is used. Optional.
    DefaultStorageClass *string `min:"5" type:"string"`

    // The Amazon Resource Name (ARN) of the file gateway on which you want to create
    // a file share.
    //
    // GatewayARN is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // A value that enables guessing of the MIME type for uploaded objects based
    // on file extensions. Set this value to true to enable MIME type guessing,
    // and otherwise to false. The default value is true.
    GuessMIMETypeEnabled *bool `type:"boolean"`

    // A list of users or groups in the Active Directory that are not allowed to
    // access the file share. A group must be prefixed with the @ character. For
    // example @group1. Can only be set if Authentication is set to ActiveDirectory.
    InvalidUserList []*string `type:"list"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // The ARN of the backed storage used for storing file data.
    //
    // LocationARN is a required field
    LocationARN *string `min:"16" type:"string" required:"true"`

    // A value that sets the access control list permission for objects in the S3
    // bucket that a file gateway puts objects into. The default value is "private".
    ObjectACL *string `type:"string" enum:"ObjectACL"`

    // A value that sets the write status of a file share. This value is true if
    // the write status is read-only, and otherwise false.
    ReadOnly *bool `type:"boolean"`

    // A value that sets the access control list permission for objects in the Amazon
    // S3 bucket that a file gateway puts objects into. The default value is private.
    RequesterPays *bool `type:"boolean"`

    // The ARN of the AWS Identity and Access Management (IAM) role that a file
    // gateway assumes when it accesses the underlying storage.
    //
    // Role is a required field
    Role *string `min:"20" type:"string" required:"true"`

    // A list of users or groups in the Active Directory that are allowed to access
    // the file share. A group must be prefixed with the @ character. For example
    // @group1. Can only be set if Authentication is set to ActiveDirectory.
    ValidUserList []*string `type:"list"`
    // contains filtered or unexported fields
}

CreateSMBFileShareInput

func (CreateSMBFileShareInput) GoString

func (s CreateSMBFileShareInput) GoString() string

GoString returns the string representation

func (*CreateSMBFileShareInput) SetAuthentication

func (s *CreateSMBFileShareInput) SetAuthentication(v string) *CreateSMBFileShareInput

SetAuthentication sets the Authentication field's value.

func (*CreateSMBFileShareInput) SetClientToken

func (s *CreateSMBFileShareInput) SetClientToken(v string) *CreateSMBFileShareInput

SetClientToken sets the ClientToken field's value.

func (*CreateSMBFileShareInput) SetDefaultStorageClass

func (s *CreateSMBFileShareInput) SetDefaultStorageClass(v string) *CreateSMBFileShareInput

SetDefaultStorageClass sets the DefaultStorageClass field's value.

func (*CreateSMBFileShareInput) SetGatewayARN

func (s *CreateSMBFileShareInput) SetGatewayARN(v string) *CreateSMBFileShareInput

SetGatewayARN sets the GatewayARN field's value.

func (*CreateSMBFileShareInput) SetGuessMIMETypeEnabled

func (s *CreateSMBFileShareInput) SetGuessMIMETypeEnabled(v bool) *CreateSMBFileShareInput

SetGuessMIMETypeEnabled sets the GuessMIMETypeEnabled field's value.

func (*CreateSMBFileShareInput) SetInvalidUserList

func (s *CreateSMBFileShareInput) SetInvalidUserList(v []*string) *CreateSMBFileShareInput

SetInvalidUserList sets the InvalidUserList field's value.

func (*CreateSMBFileShareInput) SetKMSEncrypted

func (s *CreateSMBFileShareInput) SetKMSEncrypted(v bool) *CreateSMBFileShareInput

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*CreateSMBFileShareInput) SetKMSKey

func (s *CreateSMBFileShareInput) SetKMSKey(v string) *CreateSMBFileShareInput

SetKMSKey sets the KMSKey field's value.

func (*CreateSMBFileShareInput) SetLocationARN

func (s *CreateSMBFileShareInput) SetLocationARN(v string) *CreateSMBFileShareInput

SetLocationARN sets the LocationARN field's value.

func (*CreateSMBFileShareInput) SetObjectACL

func (s *CreateSMBFileShareInput) SetObjectACL(v string) *CreateSMBFileShareInput

SetObjectACL sets the ObjectACL field's value.

func (*CreateSMBFileShareInput) SetReadOnly

func (s *CreateSMBFileShareInput) SetReadOnly(v bool) *CreateSMBFileShareInput

SetReadOnly sets the ReadOnly field's value.

func (*CreateSMBFileShareInput) SetRequesterPays

func (s *CreateSMBFileShareInput) SetRequesterPays(v bool) *CreateSMBFileShareInput

SetRequesterPays sets the RequesterPays field's value.

func (*CreateSMBFileShareInput) SetRole

func (s *CreateSMBFileShareInput) SetRole(v string) *CreateSMBFileShareInput

SetRole sets the Role field's value.

func (*CreateSMBFileShareInput) SetValidUserList

func (s *CreateSMBFileShareInput) SetValidUserList(v []*string) *CreateSMBFileShareInput

SetValidUserList sets the ValidUserList field's value.

func (CreateSMBFileShareInput) String

func (s CreateSMBFileShareInput) String() string

String returns the string representation

func (*CreateSMBFileShareInput) Validate

func (s *CreateSMBFileShareInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateSMBFileShareOutput

type CreateSMBFileShareOutput struct {

    // The Amazon Resource Name (ARN) of the newly created file share.
    FileShareARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

CreateSMBFileShareOutput

func (CreateSMBFileShareOutput) GoString

func (s CreateSMBFileShareOutput) GoString() string

GoString returns the string representation

func (*CreateSMBFileShareOutput) SetFileShareARN

func (s *CreateSMBFileShareOutput) SetFileShareARN(v string) *CreateSMBFileShareOutput

SetFileShareARN sets the FileShareARN field's value.

func (CreateSMBFileShareOutput) String

func (s CreateSMBFileShareOutput) String() string

String returns the string representation

type CreateSnapshotFromVolumeRecoveryPointInput

type CreateSnapshotFromVolumeRecoveryPointInput struct {

    // SnapshotDescription is a required field
    SnapshotDescription *string `min:"1" type:"string" required:"true"`

    // VolumeARN is a required field
    VolumeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (CreateSnapshotFromVolumeRecoveryPointInput) GoString

func (s CreateSnapshotFromVolumeRecoveryPointInput) GoString() string

GoString returns the string representation

func (*CreateSnapshotFromVolumeRecoveryPointInput) SetSnapshotDescription

func (s *CreateSnapshotFromVolumeRecoveryPointInput) SetSnapshotDescription(v string) *CreateSnapshotFromVolumeRecoveryPointInput

SetSnapshotDescription sets the SnapshotDescription field's value.

func (*CreateSnapshotFromVolumeRecoveryPointInput) SetVolumeARN

func (s *CreateSnapshotFromVolumeRecoveryPointInput) SetVolumeARN(v string) *CreateSnapshotFromVolumeRecoveryPointInput

SetVolumeARN sets the VolumeARN field's value.

func (CreateSnapshotFromVolumeRecoveryPointInput) String

func (s CreateSnapshotFromVolumeRecoveryPointInput) String() string

String returns the string representation

func (*CreateSnapshotFromVolumeRecoveryPointInput) Validate

func (s *CreateSnapshotFromVolumeRecoveryPointInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateSnapshotFromVolumeRecoveryPointOutput

type CreateSnapshotFromVolumeRecoveryPointOutput struct {
    SnapshotId *string `type:"string"`

    VolumeARN *string `min:"50" type:"string"`

    VolumeRecoveryPointTime *string `type:"string"`
    // contains filtered or unexported fields
}

func (CreateSnapshotFromVolumeRecoveryPointOutput) GoString

func (s CreateSnapshotFromVolumeRecoveryPointOutput) GoString() string

GoString returns the string representation

func (*CreateSnapshotFromVolumeRecoveryPointOutput) SetSnapshotId

func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetSnapshotId(v string) *CreateSnapshotFromVolumeRecoveryPointOutput

SetSnapshotId sets the SnapshotId field's value.

func (*CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeARN

func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeARN(v string) *CreateSnapshotFromVolumeRecoveryPointOutput

SetVolumeARN sets the VolumeARN field's value.

func (*CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeRecoveryPointTime

func (s *CreateSnapshotFromVolumeRecoveryPointOutput) SetVolumeRecoveryPointTime(v string) *CreateSnapshotFromVolumeRecoveryPointOutput

SetVolumeRecoveryPointTime sets the VolumeRecoveryPointTime field's value.

func (CreateSnapshotFromVolumeRecoveryPointOutput) String

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 is a required field
    SnapshotDescription *string `min:"1" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
    // to return a list of gateway volumes.
    //
    // VolumeARN is a required field
    VolumeARN *string `min:"50" 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

func (s CreateSnapshotInput) GoString() string

GoString returns the string representation

func (*CreateSnapshotInput) SetSnapshotDescription

func (s *CreateSnapshotInput) SetSnapshotDescription(v string) *CreateSnapshotInput

SetSnapshotDescription sets the SnapshotDescription field's value.

func (*CreateSnapshotInput) SetVolumeARN

func (s *CreateSnapshotInput) SetVolumeARN(v string) *CreateSnapshotInput

SetVolumeARN sets the VolumeARN field's value.

func (CreateSnapshotInput) String

func (s CreateSnapshotInput) String() string

String returns the string representation

func (*CreateSnapshotInput) Validate

func (s *CreateSnapshotInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `type:"string"`

    // The Amazon Resource Name (ARN) of the volume of which the snapshot was taken.
    VolumeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

func (CreateSnapshotOutput) GoString

func (s CreateSnapshotOutput) GoString() string

GoString returns the string representation

func (*CreateSnapshotOutput) SetSnapshotId

func (s *CreateSnapshotOutput) SetSnapshotId(v string) *CreateSnapshotOutput

SetSnapshotId sets the SnapshotId field's value.

func (*CreateSnapshotOutput) SetVolumeARN

func (s *CreateSnapshotOutput) SetVolumeARN(v string) *CreateSnapshotOutput

SetVolumeARN sets the VolumeARN field's value.

func (CreateSnapshotOutput) String

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 is a required field
    DiskId *string `min:"1" 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the KMS key used for Amazon S3 server side
    // encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // 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 is a required field
    NetworkInterfaceId *string `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 is a required field
    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 `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-2:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume.
    // The target name must be unique across all volumes of a gateway.
    //
    // TargetName is a required field
    TargetName *string `min:"1" 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

func (s CreateStorediSCSIVolumeInput) GoString() string

GoString returns the string representation

func (*CreateStorediSCSIVolumeInput) SetDiskId

func (s *CreateStorediSCSIVolumeInput) SetDiskId(v string) *CreateStorediSCSIVolumeInput

SetDiskId sets the DiskId field's value.

func (*CreateStorediSCSIVolumeInput) SetGatewayARN

func (s *CreateStorediSCSIVolumeInput) SetGatewayARN(v string) *CreateStorediSCSIVolumeInput

SetGatewayARN sets the GatewayARN field's value.

func (*CreateStorediSCSIVolumeInput) SetKMSEncrypted

func (s *CreateStorediSCSIVolumeInput) SetKMSEncrypted(v bool) *CreateStorediSCSIVolumeInput

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*CreateStorediSCSIVolumeInput) SetKMSKey

func (s *CreateStorediSCSIVolumeInput) SetKMSKey(v string) *CreateStorediSCSIVolumeInput

SetKMSKey sets the KMSKey field's value.

func (*CreateStorediSCSIVolumeInput) SetNetworkInterfaceId

func (s *CreateStorediSCSIVolumeInput) SetNetworkInterfaceId(v string) *CreateStorediSCSIVolumeInput

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

func (*CreateStorediSCSIVolumeInput) SetPreserveExistingData

func (s *CreateStorediSCSIVolumeInput) SetPreserveExistingData(v bool) *CreateStorediSCSIVolumeInput

SetPreserveExistingData sets the PreserveExistingData field's value.

func (*CreateStorediSCSIVolumeInput) SetSnapshotId

func (s *CreateStorediSCSIVolumeInput) SetSnapshotId(v string) *CreateStorediSCSIVolumeInput

SetSnapshotId sets the SnapshotId field's value.

func (*CreateStorediSCSIVolumeInput) SetTargetName

func (s *CreateStorediSCSIVolumeInput) SetTargetName(v string) *CreateStorediSCSIVolumeInput

SetTargetName sets the TargetName field's value.

func (CreateStorediSCSIVolumeInput) String

func (s CreateStorediSCSIVolumeInput) String() string

String returns the string representation

func (*CreateStorediSCSIVolumeInput) Validate

func (s *CreateStorediSCSIVolumeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`

    // The Amazon Resource Name (ARN) of the configured volume.
    VolumeARN *string `min:"50" 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

func (s CreateStorediSCSIVolumeOutput) GoString() string

GoString returns the string representation

func (*CreateStorediSCSIVolumeOutput) SetTargetARN

func (s *CreateStorediSCSIVolumeOutput) SetTargetARN(v string) *CreateStorediSCSIVolumeOutput

SetTargetARN sets the TargetARN field's value.

func (*CreateStorediSCSIVolumeOutput) SetVolumeARN

func (s *CreateStorediSCSIVolumeOutput) SetVolumeARN(v string) *CreateStorediSCSIVolumeOutput

SetVolumeARN sets the VolumeARN field's value.

func (*CreateStorediSCSIVolumeOutput) SetVolumeSizeInBytes

func (s *CreateStorediSCSIVolumeOutput) SetVolumeSizeInBytes(v int64) *CreateStorediSCSIVolumeOutput

SetVolumeSizeInBytes sets the VolumeSizeInBytes field's value.

func (CreateStorediSCSIVolumeOutput) String

func (s CreateStorediSCSIVolumeOutput) String() string

String returns the string representation

type CreateTapeWithBarcodeInput

type CreateTapeWithBarcodeInput struct {

    // The unique Amazon Resource Name (ARN) that represents the gateway to associate
    // the virtual tape with. Use the ListGateways operation to return a list of
    // gateways for your account and region.
    //
    // GatewayARN is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the AWS KMS Key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // The barcode that you want to assign to the tape.
    //
    // Barcodes cannot be reused. This includes barcodes used for tapes that have
    // been deleted.
    //
    // TapeBarcode is a required field
    TapeBarcode *string `min:"7" type:"string" required:"true"`

    // The size, in bytes, of the virtual tape that you want to create.
    //
    // The size must be aligned by gigabyte (1024*1024*1024 byte).
    //
    // TapeSizeInBytes is a required field
    TapeSizeInBytes *int64 `type:"long" required:"true"`
    // contains filtered or unexported fields
}

CreateTapeWithBarcodeInput

func (CreateTapeWithBarcodeInput) GoString

func (s CreateTapeWithBarcodeInput) GoString() string

GoString returns the string representation

func (*CreateTapeWithBarcodeInput) SetGatewayARN

func (s *CreateTapeWithBarcodeInput) SetGatewayARN(v string) *CreateTapeWithBarcodeInput

SetGatewayARN sets the GatewayARN field's value.

func (*CreateTapeWithBarcodeInput) SetKMSEncrypted

func (s *CreateTapeWithBarcodeInput) SetKMSEncrypted(v bool) *CreateTapeWithBarcodeInput

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*CreateTapeWithBarcodeInput) SetKMSKey

func (s *CreateTapeWithBarcodeInput) SetKMSKey(v string) *CreateTapeWithBarcodeInput

SetKMSKey sets the KMSKey field's value.

func (*CreateTapeWithBarcodeInput) SetTapeBarcode

func (s *CreateTapeWithBarcodeInput) SetTapeBarcode(v string) *CreateTapeWithBarcodeInput

SetTapeBarcode sets the TapeBarcode field's value.

func (*CreateTapeWithBarcodeInput) SetTapeSizeInBytes

func (s *CreateTapeWithBarcodeInput) SetTapeSizeInBytes(v int64) *CreateTapeWithBarcodeInput

SetTapeSizeInBytes sets the TapeSizeInBytes field's value.

func (CreateTapeWithBarcodeInput) String

func (s CreateTapeWithBarcodeInput) String() string

String returns the string representation

func (*CreateTapeWithBarcodeInput) Validate

func (s *CreateTapeWithBarcodeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateTapeWithBarcodeOutput

type CreateTapeWithBarcodeOutput struct {

    // A unique Amazon Resource Name (ARN) that represents the virtual tape that
    // was created.
    TapeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

CreateTapeOutput

func (CreateTapeWithBarcodeOutput) GoString

func (s CreateTapeWithBarcodeOutput) GoString() string

GoString returns the string representation

func (*CreateTapeWithBarcodeOutput) SetTapeARN

func (s *CreateTapeWithBarcodeOutput) SetTapeARN(v string) *CreateTapeWithBarcodeOutput

SetTapeARN sets the TapeARN field's value.

func (CreateTapeWithBarcodeOutput) String

func (s CreateTapeWithBarcodeOutput) 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 is a required field
    ClientToken *string `min:"5" 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // The number of virtual tapes that you want to create.
    //
    // NumTapesToCreate is a required field
    NumTapesToCreate *int64 `min:"1" type:"integer" required:"true"`

    // A prefix that you append to the barcode of the virtual tape you are creating.
    // This prefix makes the barcode unique.
    //
    // The prefix must be 1 to 4 characters in length and must be one of the uppercase
    // letters from A to Z.
    //
    // TapeBarcodePrefix is a required field
    TapeBarcodePrefix *string `min:"1" type:"string" required:"true"`

    // The size, in bytes, of the virtual tapes that you want to create.
    //
    // The size must be aligned by gigabyte (1024*1024*1024 byte).
    //
    // TapeSizeInBytes is a required field
    TapeSizeInBytes *int64 `type:"long" required:"true"`
    // contains filtered or unexported fields
}

CreateTapesInput

func (CreateTapesInput) GoString

func (s CreateTapesInput) GoString() string

GoString returns the string representation

func (*CreateTapesInput) SetClientToken

func (s *CreateTapesInput) SetClientToken(v string) *CreateTapesInput

SetClientToken sets the ClientToken field's value.

func (*CreateTapesInput) SetGatewayARN

func (s *CreateTapesInput) SetGatewayARN(v string) *CreateTapesInput

SetGatewayARN sets the GatewayARN field's value.

func (*CreateTapesInput) SetKMSEncrypted

func (s *CreateTapesInput) SetKMSEncrypted(v bool) *CreateTapesInput

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*CreateTapesInput) SetKMSKey

func (s *CreateTapesInput) SetKMSKey(v string) *CreateTapesInput

SetKMSKey sets the KMSKey field's value.

func (*CreateTapesInput) SetNumTapesToCreate

func (s *CreateTapesInput) SetNumTapesToCreate(v int64) *CreateTapesInput

SetNumTapesToCreate sets the NumTapesToCreate field's value.

func (*CreateTapesInput) SetTapeBarcodePrefix

func (s *CreateTapesInput) SetTapeBarcodePrefix(v string) *CreateTapesInput

SetTapeBarcodePrefix sets the TapeBarcodePrefix field's value.

func (*CreateTapesInput) SetTapeSizeInBytes

func (s *CreateTapesInput) SetTapeSizeInBytes(v int64) *CreateTapesInput

SetTapeSizeInBytes sets the TapeSizeInBytes field's value.

func (CreateTapesInput) String

func (s CreateTapesInput) String() string

String returns the string representation

func (*CreateTapesInput) Validate

func (s *CreateTapesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateTapesOutput

type CreateTapesOutput struct {

    // A list of unique Amazon Resource Names (ARNs) that represents the virtual
    // tapes that were created.
    TapeARNs []*string `type:"list"`
    // contains filtered or unexported fields
}

CreateTapeOutput

func (CreateTapesOutput) GoString

func (s CreateTapesOutput) GoString() string

GoString returns the string representation

func (*CreateTapesOutput) SetTapeARNs

func (s *CreateTapesOutput) SetTapeARNs(v []*string) *CreateTapesOutput

SetTapeARNs sets the TapeARNs field's value.

func (CreateTapesOutput) String

func (s CreateTapesOutput) String() string

String returns the string representation

type DeleteBandwidthRateLimitInput

type DeleteBandwidthRateLimitInput struct {

    // One of the BandwidthType values that indicates the gateway bandwidth rate
    // limit to delete.
    //
    // Valid Values: Upload, Download, All.
    //
    // BandwidthType is a required field
    BandwidthType *string `min:"3" 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

* DeleteBandwidthRateLimitInput$BandwidthType

func (DeleteBandwidthRateLimitInput) GoString

func (s DeleteBandwidthRateLimitInput) GoString() string

GoString returns the string representation

func (*DeleteBandwidthRateLimitInput) SetBandwidthType

func (s *DeleteBandwidthRateLimitInput) SetBandwidthType(v string) *DeleteBandwidthRateLimitInput

SetBandwidthType sets the BandwidthType field's value.

func (*DeleteBandwidthRateLimitInput) SetGatewayARN

func (s *DeleteBandwidthRateLimitInput) SetGatewayARN(v string) *DeleteBandwidthRateLimitInput

SetGatewayARN sets the GatewayARN field's value.

func (DeleteBandwidthRateLimitInput) String

func (s DeleteBandwidthRateLimitInput) String() string

String returns the string representation

func (*DeleteBandwidthRateLimitInput) Validate

func (s *DeleteBandwidthRateLimitInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway whose bandwidth rate information was deleted.

func (DeleteBandwidthRateLimitOutput) GoString

func (s DeleteBandwidthRateLimitOutput) GoString() string

GoString returns the string representation

func (*DeleteBandwidthRateLimitOutput) SetGatewayARN

func (s *DeleteBandwidthRateLimitOutput) SetGatewayARN(v string) *DeleteBandwidthRateLimitOutput

SetGatewayARN sets the GatewayARN field's value.

func (DeleteBandwidthRateLimitOutput) String

func (s DeleteBandwidthRateLimitOutput) String() string

String returns the string representation

type DeleteChapCredentialsInput

type DeleteChapCredentialsInput struct {

    // The iSCSI initiator that connects to the target.
    //
    // InitiatorName is a required field
    InitiatorName *string `min:"1" 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 is a required field
    TargetARN *string `min:"50" 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

func (s DeleteChapCredentialsInput) GoString() string

GoString returns the string representation

func (*DeleteChapCredentialsInput) SetInitiatorName

func (s *DeleteChapCredentialsInput) SetInitiatorName(v string) *DeleteChapCredentialsInput

SetInitiatorName sets the InitiatorName field's value.

func (*DeleteChapCredentialsInput) SetTargetARN

func (s *DeleteChapCredentialsInput) SetTargetARN(v string) *DeleteChapCredentialsInput

SetTargetARN sets the TargetARN field's value.

func (DeleteChapCredentialsInput) String

func (s DeleteChapCredentialsInput) String() string

String returns the string representation

func (*DeleteChapCredentialsInput) Validate

func (s *DeleteChapCredentialsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteChapCredentialsOutput

type DeleteChapCredentialsOutput struct {

    // The iSCSI initiator that connects to the target.
    InitiatorName *string `min:"1" type:"string"`

    // The Amazon Resource Name (ARN) of the target.
    TargetARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

func (DeleteChapCredentialsOutput) GoString

func (s DeleteChapCredentialsOutput) GoString() string

GoString returns the string representation

func (*DeleteChapCredentialsOutput) SetInitiatorName

func (s *DeleteChapCredentialsOutput) SetInitiatorName(v string) *DeleteChapCredentialsOutput

SetInitiatorName sets the InitiatorName field's value.

func (*DeleteChapCredentialsOutput) SetTargetARN

func (s *DeleteChapCredentialsOutput) SetTargetARN(v string) *DeleteChapCredentialsOutput

SetTargetARN sets the TargetARN field's value.

func (DeleteChapCredentialsOutput) String

func (s DeleteChapCredentialsOutput) String() string

String returns the string representation

type DeleteFileShareInput

type DeleteFileShareInput struct {

    // The Amazon Resource Name (ARN) of the file share to be deleted.
    //
    // FileShareARN is a required field
    FileShareARN *string `min:"50" type:"string" required:"true"`

    // If this value is set to true, the operation deletes a file share immediately
    // and aborts all data uploads to AWS. Otherwise, the file share is not deleted
    // until all data is uploaded to AWS. This process aborts the data upload process,
    // and the file share enters the FORCE_DELETING status.
    ForceDelete *bool `type:"boolean"`
    // contains filtered or unexported fields
}

DeleteFileShareInput

func (DeleteFileShareInput) GoString

func (s DeleteFileShareInput) GoString() string

GoString returns the string representation

func (*DeleteFileShareInput) SetFileShareARN

func (s *DeleteFileShareInput) SetFileShareARN(v string) *DeleteFileShareInput

SetFileShareARN sets the FileShareARN field's value.

func (*DeleteFileShareInput) SetForceDelete

func (s *DeleteFileShareInput) SetForceDelete(v bool) *DeleteFileShareInput

SetForceDelete sets the ForceDelete field's value.

func (DeleteFileShareInput) String

func (s DeleteFileShareInput) String() string

String returns the string representation

func (*DeleteFileShareInput) Validate

func (s *DeleteFileShareInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteFileShareOutput

type DeleteFileShareOutput struct {

    // The Amazon Resource Name (ARN) of the deleted file share.
    FileShareARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

DeleteFileShareOutput

func (DeleteFileShareOutput) GoString

func (s DeleteFileShareOutput) GoString() string

GoString returns the string representation

func (*DeleteFileShareOutput) SetFileShareARN

func (s *DeleteFileShareOutput) SetFileShareARN(v string) *DeleteFileShareOutput

SetFileShareARN sets the FileShareARN field's value.

func (DeleteFileShareOutput) String

func (s DeleteFileShareOutput) 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the ID of the gateway to delete.

func (DeleteGatewayInput) GoString

func (s DeleteGatewayInput) GoString() string

GoString returns the string representation

func (*DeleteGatewayInput) SetGatewayARN

func (s *DeleteGatewayInput) SetGatewayARN(v string) *DeleteGatewayInput

SetGatewayARN sets the GatewayARN field's value.

func (DeleteGatewayInput) String

func (s DeleteGatewayInput) String() string

String returns the string representation

func (*DeleteGatewayInput) Validate

func (s *DeleteGatewayInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the ID of the deleted gateway.

func (DeleteGatewayOutput) GoString

func (s DeleteGatewayOutput) GoString() string

GoString returns the string representation

func (*DeleteGatewayOutput) SetGatewayARN

func (s *DeleteGatewayOutput) SetGatewayARN(v string) *DeleteGatewayOutput

SetGatewayARN sets the GatewayARN field's value.

func (DeleteGatewayOutput) String

func (s DeleteGatewayOutput) String() string

String returns the string representation

type DeleteSnapshotScheduleInput

type DeleteSnapshotScheduleInput struct {

    // VolumeARN is a required field
    VolumeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DeleteSnapshotScheduleInput) GoString

func (s DeleteSnapshotScheduleInput) GoString() string

GoString returns the string representation

func (*DeleteSnapshotScheduleInput) SetVolumeARN

func (s *DeleteSnapshotScheduleInput) SetVolumeARN(v string) *DeleteSnapshotScheduleInput

SetVolumeARN sets the VolumeARN field's value.

func (DeleteSnapshotScheduleInput) String

func (s DeleteSnapshotScheduleInput) String() string

String returns the string representation

func (*DeleteSnapshotScheduleInput) Validate

func (s *DeleteSnapshotScheduleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteSnapshotScheduleOutput

type DeleteSnapshotScheduleOutput struct {
    VolumeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (DeleteSnapshotScheduleOutput) GoString

func (s DeleteSnapshotScheduleOutput) GoString() string

GoString returns the string representation

func (*DeleteSnapshotScheduleOutput) SetVolumeARN

func (s *DeleteSnapshotScheduleOutput) SetVolumeARN(v string) *DeleteSnapshotScheduleOutput

SetVolumeARN sets the VolumeARN field's value.

func (DeleteSnapshotScheduleOutput) String

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 is a required field
    TapeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

DeleteTapeArchiveInput

func (DeleteTapeArchiveInput) GoString

func (s DeleteTapeArchiveInput) GoString() string

GoString returns the string representation

func (*DeleteTapeArchiveInput) SetTapeARN

func (s *DeleteTapeArchiveInput) SetTapeARN(v string) *DeleteTapeArchiveInput

SetTapeARN sets the TapeARN field's value.

func (DeleteTapeArchiveInput) String

func (s DeleteTapeArchiveInput) String() string

String returns the string representation

func (*DeleteTapeArchiveInput) Validate

func (s *DeleteTapeArchiveInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

DeleteTapeArchiveOutput

func (DeleteTapeArchiveOutput) GoString

func (s DeleteTapeArchiveOutput) GoString() string

GoString returns the string representation

func (*DeleteTapeArchiveOutput) SetTapeARN

func (s *DeleteTapeArchiveOutput) SetTapeARN(v string) *DeleteTapeArchiveOutput

SetTapeARN sets the TapeARN field's value.

func (DeleteTapeArchiveOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the virtual tape to delete.
    //
    // TapeARN is a required field
    TapeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

DeleteTapeInput

func (DeleteTapeInput) GoString

func (s DeleteTapeInput) GoString() string

GoString returns the string representation

func (*DeleteTapeInput) SetGatewayARN

func (s *DeleteTapeInput) SetGatewayARN(v string) *DeleteTapeInput

SetGatewayARN sets the GatewayARN field's value.

func (*DeleteTapeInput) SetTapeARN

func (s *DeleteTapeInput) SetTapeARN(v string) *DeleteTapeInput

SetTapeARN sets the TapeARN field's value.

func (DeleteTapeInput) String

func (s DeleteTapeInput) String() string

String returns the string representation

func (*DeleteTapeInput) Validate

func (s *DeleteTapeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteTapeOutput

type DeleteTapeOutput struct {

    // The Amazon Resource Name (ARN) of the deleted virtual tape.
    TapeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

DeleteTapeOutput

func (DeleteTapeOutput) GoString

func (s DeleteTapeOutput) GoString() string

GoString returns the string representation

func (*DeleteTapeOutput) SetTapeARN

func (s *DeleteTapeOutput) SetTapeARN(v string) *DeleteTapeOutput

SetTapeARN sets the TapeARN field's value.

func (DeleteTapeOutput) String

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 is a required field
    VolumeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the DeleteVolumeInput$VolumeARN to delete.

func (DeleteVolumeInput) GoString

func (s DeleteVolumeInput) GoString() string

GoString returns the string representation

func (*DeleteVolumeInput) SetVolumeARN

func (s *DeleteVolumeInput) SetVolumeARN(v string) *DeleteVolumeInput

SetVolumeARN sets the VolumeARN field's value.

func (DeleteVolumeInput) String

func (s DeleteVolumeInput) String() string

String returns the string representation

func (*DeleteVolumeInput) Validate

func (s *DeleteVolumeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the of the storage volume that was deleted

func (DeleteVolumeOutput) GoString

func (s DeleteVolumeOutput) GoString() string

GoString returns the string representation

func (*DeleteVolumeOutput) SetVolumeARN

func (s *DeleteVolumeOutput) SetVolumeARN(v string) *DeleteVolumeOutput

SetVolumeARN sets the VolumeARN field's value.

func (DeleteVolumeOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway.

func (DescribeBandwidthRateLimitInput) GoString

func (s DescribeBandwidthRateLimitInput) GoString() string

GoString returns the string representation

func (*DescribeBandwidthRateLimitInput) SetGatewayARN

func (s *DescribeBandwidthRateLimitInput) SetGatewayARN(v string) *DescribeBandwidthRateLimitInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeBandwidthRateLimitInput) String

func (s DescribeBandwidthRateLimitInput) String() string

String returns the string representation

func (*DescribeBandwidthRateLimitInput) Validate

func (s *DescribeBandwidthRateLimitInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"102400" 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 `min:"51200" 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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

func (DescribeBandwidthRateLimitOutput) GoString

func (s DescribeBandwidthRateLimitOutput) GoString() string

GoString returns the string representation

func (*DescribeBandwidthRateLimitOutput) SetAverageDownloadRateLimitInBitsPerSec

func (s *DescribeBandwidthRateLimitOutput) SetAverageDownloadRateLimitInBitsPerSec(v int64) *DescribeBandwidthRateLimitOutput

SetAverageDownloadRateLimitInBitsPerSec sets the AverageDownloadRateLimitInBitsPerSec field's value.

func (*DescribeBandwidthRateLimitOutput) SetAverageUploadRateLimitInBitsPerSec

func (s *DescribeBandwidthRateLimitOutput) SetAverageUploadRateLimitInBitsPerSec(v int64) *DescribeBandwidthRateLimitOutput

SetAverageUploadRateLimitInBitsPerSec sets the AverageUploadRateLimitInBitsPerSec field's value.

func (*DescribeBandwidthRateLimitOutput) SetGatewayARN

func (s *DescribeBandwidthRateLimitOutput) SetGatewayARN(v string) *DescribeBandwidthRateLimitOutput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeBandwidthRateLimitOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeCacheInput) GoString

func (s DescribeCacheInput) GoString() string

GoString returns the string representation

func (*DescribeCacheInput) SetGatewayARN

func (s *DescribeCacheInput) SetGatewayARN(v string) *DescribeCacheInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeCacheInput) String

func (s DescribeCacheInput) String() string

String returns the string representation

func (*DescribeCacheInput) Validate

func (s *DescribeCacheInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (DescribeCacheOutput) GoString

func (s DescribeCacheOutput) GoString() string

GoString returns the string representation

func (*DescribeCacheOutput) SetCacheAllocatedInBytes

func (s *DescribeCacheOutput) SetCacheAllocatedInBytes(v int64) *DescribeCacheOutput

SetCacheAllocatedInBytes sets the CacheAllocatedInBytes field's value.

func (*DescribeCacheOutput) SetCacheDirtyPercentage

func (s *DescribeCacheOutput) SetCacheDirtyPercentage(v float64) *DescribeCacheOutput

SetCacheDirtyPercentage sets the CacheDirtyPercentage field's value.

func (*DescribeCacheOutput) SetCacheHitPercentage

func (s *DescribeCacheOutput) SetCacheHitPercentage(v float64) *DescribeCacheOutput

SetCacheHitPercentage sets the CacheHitPercentage field's value.

func (*DescribeCacheOutput) SetCacheMissPercentage

func (s *DescribeCacheOutput) SetCacheMissPercentage(v float64) *DescribeCacheOutput

SetCacheMissPercentage sets the CacheMissPercentage field's value.

func (*DescribeCacheOutput) SetCacheUsedPercentage

func (s *DescribeCacheOutput) SetCacheUsedPercentage(v float64) *DescribeCacheOutput

SetCacheUsedPercentage sets the CacheUsedPercentage field's value.

func (*DescribeCacheOutput) SetDiskIds

func (s *DescribeCacheOutput) SetDiskIds(v []*string) *DescribeCacheOutput

SetDiskIds sets the DiskIds field's value.

func (*DescribeCacheOutput) SetGatewayARN

func (s *DescribeCacheOutput) SetGatewayARN(v string) *DescribeCacheOutput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeCacheOutput) String

func (s DescribeCacheOutput) String() string

String returns the string representation

type DescribeCachediSCSIVolumesInput

type DescribeCachediSCSIVolumesInput struct {

    // VolumeARNs is a required field
    VolumeARNs []*string `type:"list" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeCachediSCSIVolumesInput) GoString

func (s DescribeCachediSCSIVolumesInput) GoString() string

GoString returns the string representation

func (*DescribeCachediSCSIVolumesInput) SetVolumeARNs

func (s *DescribeCachediSCSIVolumesInput) SetVolumeARNs(v []*string) *DescribeCachediSCSIVolumesInput

SetVolumeARNs sets the VolumeARNs field's value.

func (DescribeCachediSCSIVolumesInput) String

func (s DescribeCachediSCSIVolumesInput) String() string

String returns the string representation

func (*DescribeCachediSCSIVolumesInput) Validate

func (s *DescribeCachediSCSIVolumesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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

func (s DescribeCachediSCSIVolumesOutput) GoString() string

GoString returns the string representation

func (*DescribeCachediSCSIVolumesOutput) SetCachediSCSIVolumes

func (s *DescribeCachediSCSIVolumesOutput) SetCachediSCSIVolumes(v []*CachediSCSIVolume) *DescribeCachediSCSIVolumesOutput

SetCachediSCSIVolumes sets the CachediSCSIVolumes field's value.

func (DescribeCachediSCSIVolumesOutput) String

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 is a required field
    TargetARN *string `min:"50" 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

func (s DescribeChapCredentialsInput) GoString() string

GoString returns the string representation

func (*DescribeChapCredentialsInput) SetTargetARN

func (s *DescribeChapCredentialsInput) SetTargetARN(v string) *DescribeChapCredentialsInput

SetTargetARN sets the TargetARN field's value.

func (DescribeChapCredentialsInput) String

func (s DescribeChapCredentialsInput) String() string

String returns the string representation

func (*DescribeChapCredentialsInput) Validate

func (s *DescribeChapCredentialsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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

func (s DescribeChapCredentialsOutput) GoString() string

GoString returns the string representation

func (*DescribeChapCredentialsOutput) SetChapCredentials

func (s *DescribeChapCredentialsOutput) SetChapCredentials(v []*ChapInfo) *DescribeChapCredentialsOutput

SetChapCredentials sets the ChapCredentials field's value.

func (DescribeChapCredentialsOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the ID of the gateway.

func (DescribeGatewayInformationInput) GoString

func (s DescribeGatewayInformationInput) GoString() string

GoString returns the string representation

func (*DescribeGatewayInformationInput) SetGatewayARN

func (s *DescribeGatewayInformationInput) SetGatewayARN(v string) *DescribeGatewayInformationInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeGatewayInformationInput) String

func (s DescribeGatewayInformationInput) String() string

String returns the string representation

func (*DescribeGatewayInformationInput) Validate

func (s *DescribeGatewayInformationInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`

    // The unique identifier assigned to your gateway during activation. This ID
    // becomes part of the gateway Amazon Resource Name (ARN), which you use as
    // input for other operations.
    GatewayId *string `min:"12" type:"string"`

    // The name you configured for your gateway.
    GatewayName *string `type:"string"`

    // A NetworkInterface array that contains descriptions of the gateway network
    // interfaces.
    GatewayNetworkInterfaces []*NetworkInterface `type:"list"`

    // A value that indicates the operating state of the gateway.
    GatewayState *string `min:"2" type:"string"`

    // A value that indicates the time zone configured for the gateway.
    GatewayTimezone *string `min:"3" type:"string"`

    // The type of the gateway.
    GatewayType *string `min:"2" 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 `min:"1" 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 `min:"1" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

func (DescribeGatewayInformationOutput) GoString

func (s DescribeGatewayInformationOutput) GoString() string

GoString returns the string representation

func (*DescribeGatewayInformationOutput) SetGatewayARN

func (s *DescribeGatewayInformationOutput) SetGatewayARN(v string) *DescribeGatewayInformationOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeGatewayInformationOutput) SetGatewayId

func (s *DescribeGatewayInformationOutput) SetGatewayId(v string) *DescribeGatewayInformationOutput

SetGatewayId sets the GatewayId field's value.

func (*DescribeGatewayInformationOutput) SetGatewayName

func (s *DescribeGatewayInformationOutput) SetGatewayName(v string) *DescribeGatewayInformationOutput

SetGatewayName sets the GatewayName field's value.

func (*DescribeGatewayInformationOutput) SetGatewayNetworkInterfaces

func (s *DescribeGatewayInformationOutput) SetGatewayNetworkInterfaces(v []*NetworkInterface) *DescribeGatewayInformationOutput

SetGatewayNetworkInterfaces sets the GatewayNetworkInterfaces field's value.

func (*DescribeGatewayInformationOutput) SetGatewayState

func (s *DescribeGatewayInformationOutput) SetGatewayState(v string) *DescribeGatewayInformationOutput

SetGatewayState sets the GatewayState field's value.

func (*DescribeGatewayInformationOutput) SetGatewayTimezone

func (s *DescribeGatewayInformationOutput) SetGatewayTimezone(v string) *DescribeGatewayInformationOutput

SetGatewayTimezone sets the GatewayTimezone field's value.

func (*DescribeGatewayInformationOutput) SetGatewayType

func (s *DescribeGatewayInformationOutput) SetGatewayType(v string) *DescribeGatewayInformationOutput

SetGatewayType sets the GatewayType field's value.

func (*DescribeGatewayInformationOutput) SetLastSoftwareUpdate

func (s *DescribeGatewayInformationOutput) SetLastSoftwareUpdate(v string) *DescribeGatewayInformationOutput

SetLastSoftwareUpdate sets the LastSoftwareUpdate field's value.

func (*DescribeGatewayInformationOutput) SetNextUpdateAvailabilityDate

func (s *DescribeGatewayInformationOutput) SetNextUpdateAvailabilityDate(v string) *DescribeGatewayInformationOutput

SetNextUpdateAvailabilityDate sets the NextUpdateAvailabilityDate field's value.

func (DescribeGatewayInformationOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway.

func (DescribeMaintenanceStartTimeInput) GoString

func (s DescribeMaintenanceStartTimeInput) GoString() string

GoString returns the string representation

func (*DescribeMaintenanceStartTimeInput) SetGatewayARN

func (s *DescribeMaintenanceStartTimeInput) SetGatewayARN(v string) *DescribeMaintenanceStartTimeInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeMaintenanceStartTimeInput) String

func (s DescribeMaintenanceStartTimeInput) String() string

String returns the string representation

func (*DescribeMaintenanceStartTimeInput) Validate

func (s *DescribeMaintenanceStartTimeInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeMaintenanceStartTimeOutput

type DescribeMaintenanceStartTimeOutput struct {

    // An ordinal number between 0 and 6 that represents the day of the week, where
    // 0 represents Sunday and 6 represents Saturday. The day of week is in the
    // time zone of the gateway.
    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 `min:"50" type:"string"`

    // The hour component of the maintenance start time represented as hh, where
    // hh is the hour (0 to 23). The hour of the day is in the time zone of the
    // gateway.
    HourOfDay *int64 `type:"integer"`

    // The minute component of the maintenance start time represented as mm, where
    // mm is the minute (0 to 59). The minute of the hour is in the time zone of
    // the gateway.
    MinuteOfHour *int64 `type:"integer"`

    Timezone *string `min:"3" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

* DescribeMaintenanceStartTimeOutput$DayOfWeek

* DescribeMaintenanceStartTimeOutput$HourOfDay

* DescribeMaintenanceStartTimeOutput$MinuteOfHour

* DescribeMaintenanceStartTimeOutput$Timezone

func (DescribeMaintenanceStartTimeOutput) GoString

func (s DescribeMaintenanceStartTimeOutput) GoString() string

GoString returns the string representation

func (*DescribeMaintenanceStartTimeOutput) SetDayOfWeek

func (s *DescribeMaintenanceStartTimeOutput) SetDayOfWeek(v int64) *DescribeMaintenanceStartTimeOutput

SetDayOfWeek sets the DayOfWeek field's value.

func (*DescribeMaintenanceStartTimeOutput) SetGatewayARN

func (s *DescribeMaintenanceStartTimeOutput) SetGatewayARN(v string) *DescribeMaintenanceStartTimeOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeMaintenanceStartTimeOutput) SetHourOfDay

func (s *DescribeMaintenanceStartTimeOutput) SetHourOfDay(v int64) *DescribeMaintenanceStartTimeOutput

SetHourOfDay sets the HourOfDay field's value.

func (*DescribeMaintenanceStartTimeOutput) SetMinuteOfHour

func (s *DescribeMaintenanceStartTimeOutput) SetMinuteOfHour(v int64) *DescribeMaintenanceStartTimeOutput

SetMinuteOfHour sets the MinuteOfHour field's value.

func (*DescribeMaintenanceStartTimeOutput) SetTimezone

func (s *DescribeMaintenanceStartTimeOutput) SetTimezone(v string) *DescribeMaintenanceStartTimeOutput

SetTimezone sets the Timezone field's value.

func (DescribeMaintenanceStartTimeOutput) String

func (s DescribeMaintenanceStartTimeOutput) String() string

String returns the string representation

type DescribeNFSFileSharesInput

type DescribeNFSFileSharesInput struct {

    // An array containing the Amazon Resource Name (ARN) of each file share to
    // be described.
    //
    // FileShareARNList is a required field
    FileShareARNList []*string `min:"1" type:"list" required:"true"`
    // contains filtered or unexported fields
}

DescribeNFSFileSharesInput

func (DescribeNFSFileSharesInput) GoString

func (s DescribeNFSFileSharesInput) GoString() string

GoString returns the string representation

func (*DescribeNFSFileSharesInput) SetFileShareARNList

func (s *DescribeNFSFileSharesInput) SetFileShareARNList(v []*string) *DescribeNFSFileSharesInput

SetFileShareARNList sets the FileShareARNList field's value.

func (DescribeNFSFileSharesInput) String

func (s DescribeNFSFileSharesInput) String() string

String returns the string representation

func (*DescribeNFSFileSharesInput) Validate

func (s *DescribeNFSFileSharesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeNFSFileSharesOutput

type DescribeNFSFileSharesOutput struct {

    // An array containing a description for each requested file share.
    NFSFileShareInfoList []*NFSFileShareInfo `type:"list"`
    // contains filtered or unexported fields
}

DescribeNFSFileSharesOutput

func (DescribeNFSFileSharesOutput) GoString

func (s DescribeNFSFileSharesOutput) GoString() string

GoString returns the string representation

func (*DescribeNFSFileSharesOutput) SetNFSFileShareInfoList

func (s *DescribeNFSFileSharesOutput) SetNFSFileShareInfoList(v []*NFSFileShareInfo) *DescribeNFSFileSharesOutput

SetNFSFileShareInfoList sets the NFSFileShareInfoList field's value.

func (DescribeNFSFileSharesOutput) String

func (s DescribeNFSFileSharesOutput) String() string

String returns the string representation

type DescribeSMBFileSharesInput

type DescribeSMBFileSharesInput struct {

    // An array containing the Amazon Resource Name (ARN) of each file share to
    // be described.
    //
    // FileShareARNList is a required field
    FileShareARNList []*string `min:"1" type:"list" required:"true"`
    // contains filtered or unexported fields
}

DescribeSMBFileSharesInput

func (DescribeSMBFileSharesInput) GoString

func (s DescribeSMBFileSharesInput) GoString() string

GoString returns the string representation

func (*DescribeSMBFileSharesInput) SetFileShareARNList

func (s *DescribeSMBFileSharesInput) SetFileShareARNList(v []*string) *DescribeSMBFileSharesInput

SetFileShareARNList sets the FileShareARNList field's value.

func (DescribeSMBFileSharesInput) String

func (s DescribeSMBFileSharesInput) String() string

String returns the string representation

func (*DescribeSMBFileSharesInput) Validate

func (s *DescribeSMBFileSharesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeSMBFileSharesOutput

type DescribeSMBFileSharesOutput struct {

    // An array containing a description for each requested file share.
    SMBFileShareInfoList []*SMBFileShareInfo `type:"list"`
    // contains filtered or unexported fields
}

DescribeSMBFileSharesOutput

func (DescribeSMBFileSharesOutput) GoString

func (s DescribeSMBFileSharesOutput) GoString() string

GoString returns the string representation

func (*DescribeSMBFileSharesOutput) SetSMBFileShareInfoList

func (s *DescribeSMBFileSharesOutput) SetSMBFileShareInfoList(v []*SMBFileShareInfo) *DescribeSMBFileSharesOutput

SetSMBFileShareInfoList sets the SMBFileShareInfoList field's value.

func (DescribeSMBFileSharesOutput) String

func (s DescribeSMBFileSharesOutput) String() string

String returns the string representation

type DescribeSMBSettingsInput

type DescribeSMBSettingsInput 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeSMBSettingsInput) GoString

func (s DescribeSMBSettingsInput) GoString() string

GoString returns the string representation

func (*DescribeSMBSettingsInput) SetGatewayARN

func (s *DescribeSMBSettingsInput) SetGatewayARN(v string) *DescribeSMBSettingsInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeSMBSettingsInput) String

func (s DescribeSMBSettingsInput) String() string

String returns the string representation

func (*DescribeSMBSettingsInput) Validate

func (s *DescribeSMBSettingsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeSMBSettingsOutput

type DescribeSMBSettingsOutput struct {

    // The name of the domain that the gateway is joined to.
    DomainName *string `type:"string"`

    // 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 `min:"50" type:"string"`

    // This value is true if a password for the guest user “smbguest” is set, and
    // otherwise false.
    SMBGuestPasswordSet *bool `type:"boolean"`
    // contains filtered or unexported fields
}

func (DescribeSMBSettingsOutput) GoString

func (s DescribeSMBSettingsOutput) GoString() string

GoString returns the string representation

func (*DescribeSMBSettingsOutput) SetDomainName

func (s *DescribeSMBSettingsOutput) SetDomainName(v string) *DescribeSMBSettingsOutput

SetDomainName sets the DomainName field's value.

func (*DescribeSMBSettingsOutput) SetGatewayARN

func (s *DescribeSMBSettingsOutput) SetGatewayARN(v string) *DescribeSMBSettingsOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeSMBSettingsOutput) SetSMBGuestPasswordSet

func (s *DescribeSMBSettingsOutput) SetSMBGuestPasswordSet(v bool) *DescribeSMBSettingsOutput

SetSMBGuestPasswordSet sets the SMBGuestPasswordSet field's value.

func (DescribeSMBSettingsOutput) String

func (s DescribeSMBSettingsOutput) 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 is a required field
    VolumeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the DescribeSnapshotScheduleInput$VolumeARN of the volume.

func (DescribeSnapshotScheduleInput) GoString

func (s DescribeSnapshotScheduleInput) GoString() string

GoString returns the string representation

func (*DescribeSnapshotScheduleInput) SetVolumeARN

func (s *DescribeSnapshotScheduleInput) SetVolumeARN(v string) *DescribeSnapshotScheduleInput

SetVolumeARN sets the VolumeARN field's value.

func (DescribeSnapshotScheduleInput) String

func (s DescribeSnapshotScheduleInput) String() string

String returns the string representation

func (*DescribeSnapshotScheduleInput) Validate

func (s *DescribeSnapshotScheduleInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeSnapshotScheduleOutput

type DescribeSnapshotScheduleOutput struct {
    Description *string `min:"1" type:"string"`

    RecurrenceInHours *int64 `min:"1" type:"integer"`

    StartAt *int64 `type:"integer"`

    Timezone *string `min:"3" type:"string"`

    VolumeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (DescribeSnapshotScheduleOutput) GoString

func (s DescribeSnapshotScheduleOutput) GoString() string

GoString returns the string representation

func (*DescribeSnapshotScheduleOutput) SetDescription

func (s *DescribeSnapshotScheduleOutput) SetDescription(v string) *DescribeSnapshotScheduleOutput

SetDescription sets the Description field's value.

func (*DescribeSnapshotScheduleOutput) SetRecurrenceInHours

func (s *DescribeSnapshotScheduleOutput) SetRecurrenceInHours(v int64) *DescribeSnapshotScheduleOutput

SetRecurrenceInHours sets the RecurrenceInHours field's value.

func (*DescribeSnapshotScheduleOutput) SetStartAt

func (s *DescribeSnapshotScheduleOutput) SetStartAt(v int64) *DescribeSnapshotScheduleOutput

SetStartAt sets the StartAt field's value.

func (*DescribeSnapshotScheduleOutput) SetTimezone

func (s *DescribeSnapshotScheduleOutput) SetTimezone(v string) *DescribeSnapshotScheduleOutput

SetTimezone sets the Timezone field's value.

func (*DescribeSnapshotScheduleOutput) SetVolumeARN

func (s *DescribeSnapshotScheduleOutput) SetVolumeARN(v string) *DescribeSnapshotScheduleOutput

SetVolumeARN sets the VolumeARN field's value.

func (DescribeSnapshotScheduleOutput) String

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 is a required field
    VolumeARNs []*string `type:"list" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing a list of DescribeStorediSCSIVolumesInput$VolumeARNs.

func (DescribeStorediSCSIVolumesInput) GoString

func (s DescribeStorediSCSIVolumesInput) GoString() string

GoString returns the string representation

func (*DescribeStorediSCSIVolumesInput) SetVolumeARNs

func (s *DescribeStorediSCSIVolumesInput) SetVolumeARNs(v []*string) *DescribeStorediSCSIVolumesInput

SetVolumeARNs sets the VolumeARNs field's value.

func (DescribeStorediSCSIVolumesInput) String

func (s DescribeStorediSCSIVolumesInput) String() string

String returns the string representation

func (*DescribeStorediSCSIVolumesInput) Validate

func (s *DescribeStorediSCSIVolumesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeStorediSCSIVolumesOutput

type DescribeStorediSCSIVolumesOutput struct {
    StorediSCSIVolumes []*StorediSCSIVolume `type:"list"`
    // contains filtered or unexported fields
}

func (DescribeStorediSCSIVolumesOutput) GoString

func (s DescribeStorediSCSIVolumesOutput) GoString() string

GoString returns the string representation

func (*DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes

func (s *DescribeStorediSCSIVolumesOutput) SetStorediSCSIVolumes(v []*StorediSCSIVolume) *DescribeStorediSCSIVolumesOutput

SetStorediSCSIVolumes sets the StorediSCSIVolumes field's value.

func (DescribeStorediSCSIVolumesOutput) String

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 `min:"1" type:"integer"`

    // An opaque string that indicates the position at which to begin describing
    // virtual tapes.
    Marker *string `min:"1" 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

func (s DescribeTapeArchivesInput) GoString() string

GoString returns the string representation

func (*DescribeTapeArchivesInput) SetLimit

func (s *DescribeTapeArchivesInput) SetLimit(v int64) *DescribeTapeArchivesInput

SetLimit sets the Limit field's value.

func (*DescribeTapeArchivesInput) SetMarker

func (s *DescribeTapeArchivesInput) SetMarker(v string) *DescribeTapeArchivesInput

SetMarker sets the Marker field's value.

func (*DescribeTapeArchivesInput) SetTapeARNs

func (s *DescribeTapeArchivesInput) SetTapeARNs(v []*string) *DescribeTapeArchivesInput

SetTapeARNs sets the TapeARNs field's value.

func (DescribeTapeArchivesInput) String

func (s DescribeTapeArchivesInput) String() string

String returns the string representation

func (*DescribeTapeArchivesInput) Validate

func (s *DescribeTapeArchivesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"1" 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

func (s DescribeTapeArchivesOutput) GoString() string

GoString returns the string representation

func (*DescribeTapeArchivesOutput) SetMarker

func (s *DescribeTapeArchivesOutput) SetMarker(v string) *DescribeTapeArchivesOutput

SetMarker sets the Marker field's value.

func (*DescribeTapeArchivesOutput) SetTapeArchives

func (s *DescribeTapeArchivesOutput) SetTapeArchives(v []*TapeArchive) *DescribeTapeArchivesOutput

SetTapeArchives sets the TapeArchives field's value.

func (DescribeTapeArchivesOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // Specifies that the number of virtual tape recovery points that are described
    // be limited to the specified number.
    Limit *int64 `min:"1" type:"integer"`

    // An opaque string that indicates the position at which to begin describing
    // the virtual tape recovery points.
    Marker *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

DescribeTapeRecoveryPointsInput

func (DescribeTapeRecoveryPointsInput) GoString

func (s DescribeTapeRecoveryPointsInput) GoString() string

GoString returns the string representation

func (*DescribeTapeRecoveryPointsInput) SetGatewayARN

func (s *DescribeTapeRecoveryPointsInput) SetGatewayARN(v string) *DescribeTapeRecoveryPointsInput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeTapeRecoveryPointsInput) SetLimit

func (s *DescribeTapeRecoveryPointsInput) SetLimit(v int64) *DescribeTapeRecoveryPointsInput

SetLimit sets the Limit field's value.

func (*DescribeTapeRecoveryPointsInput) SetMarker

func (s *DescribeTapeRecoveryPointsInput) SetMarker(v string) *DescribeTapeRecoveryPointsInput

SetMarker sets the Marker field's value.

func (DescribeTapeRecoveryPointsInput) String

func (s DescribeTapeRecoveryPointsInput) String() string

String returns the string representation

func (*DescribeTapeRecoveryPointsInput) Validate

func (s *DescribeTapeRecoveryPointsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" 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 `min:"1" 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

func (s DescribeTapeRecoveryPointsOutput) GoString() string

GoString returns the string representation

func (*DescribeTapeRecoveryPointsOutput) SetGatewayARN

func (s *DescribeTapeRecoveryPointsOutput) SetGatewayARN(v string) *DescribeTapeRecoveryPointsOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeTapeRecoveryPointsOutput) SetMarker

func (s *DescribeTapeRecoveryPointsOutput) SetMarker(v string) *DescribeTapeRecoveryPointsOutput

SetMarker sets the Marker field's value.

func (*DescribeTapeRecoveryPointsOutput) SetTapeRecoveryPointInfos

func (s *DescribeTapeRecoveryPointsOutput) SetTapeRecoveryPointInfos(v []*TapeRecoveryPointInfo) *DescribeTapeRecoveryPointsOutput

SetTapeRecoveryPointInfos sets the TapeRecoveryPointInfos field's value.

func (DescribeTapeRecoveryPointsOutput) String

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 is a required field
    GatewayARN *string `min:"50" 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 `min:"1" 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 `min:"1" 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,
    // Tape 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

func (s DescribeTapesInput) GoString() string

GoString returns the string representation

func (*DescribeTapesInput) SetGatewayARN

func (s *DescribeTapesInput) SetGatewayARN(v string) *DescribeTapesInput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeTapesInput) SetLimit

func (s *DescribeTapesInput) SetLimit(v int64) *DescribeTapesInput

SetLimit sets the Limit field's value.

func (*DescribeTapesInput) SetMarker

func (s *DescribeTapesInput) SetMarker(v string) *DescribeTapesInput

SetMarker sets the Marker field's value.

func (*DescribeTapesInput) SetTapeARNs

func (s *DescribeTapesInput) SetTapeARNs(v []*string) *DescribeTapesInput

SetTapeARNs sets the TapeARNs field's value.

func (DescribeTapesInput) String

func (s DescribeTapesInput) String() string

String returns the string representation

func (*DescribeTapesInput) Validate

func (s *DescribeTapesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"1" type:"string"`

    // An array of virtual tape descriptions.
    Tapes []*Tape `type:"list"`
    // contains filtered or unexported fields
}

DescribeTapesOutput

func (DescribeTapesOutput) GoString

func (s DescribeTapesOutput) GoString() string

GoString returns the string representation

func (*DescribeTapesOutput) SetMarker

func (s *DescribeTapesOutput) SetMarker(v string) *DescribeTapesOutput

SetMarker sets the Marker field's value.

func (*DescribeTapesOutput) SetTapes

func (s *DescribeTapesOutput) SetTapes(v []*Tape) *DescribeTapesOutput

SetTapes sets the Tapes field's value.

func (DescribeTapesOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (DescribeUploadBufferInput) GoString

func (s DescribeUploadBufferInput) GoString() string

GoString returns the string representation

func (*DescribeUploadBufferInput) SetGatewayARN

func (s *DescribeUploadBufferInput) SetGatewayARN(v string) *DescribeUploadBufferInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeUploadBufferInput) String

func (s DescribeUploadBufferInput) String() string

String returns the string representation

func (*DescribeUploadBufferInput) Validate

func (s *DescribeUploadBufferInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeUploadBufferOutput

type DescribeUploadBufferOutput struct {
    DiskIds []*string `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 `min:"50" type:"string"`

    UploadBufferAllocatedInBytes *int64 `type:"long"`

    UploadBufferUsedInBytes *int64 `type:"long"`
    // contains filtered or unexported fields
}

func (DescribeUploadBufferOutput) GoString

func (s DescribeUploadBufferOutput) GoString() string

GoString returns the string representation

func (*DescribeUploadBufferOutput) SetDiskIds

func (s *DescribeUploadBufferOutput) SetDiskIds(v []*string) *DescribeUploadBufferOutput

SetDiskIds sets the DiskIds field's value.

func (*DescribeUploadBufferOutput) SetGatewayARN

func (s *DescribeUploadBufferOutput) SetGatewayARN(v string) *DescribeUploadBufferOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeUploadBufferOutput) SetUploadBufferAllocatedInBytes

func (s *DescribeUploadBufferOutput) SetUploadBufferAllocatedInBytes(v int64) *DescribeUploadBufferOutput

SetUploadBufferAllocatedInBytes sets the UploadBufferAllocatedInBytes field's value.

func (*DescribeUploadBufferOutput) SetUploadBufferUsedInBytes

func (s *DescribeUploadBufferOutput) SetUploadBufferUsedInBytes(v int64) *DescribeUploadBufferOutput

SetUploadBufferUsedInBytes sets the UploadBufferUsedInBytes field's value.

func (DescribeUploadBufferOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // Specifies that the number of VTL devices described be limited to the specified
    // number.
    Limit *int64 `min:"1" type:"integer"`

    // An opaque string that indicates the position at which to begin describing
    // the VTL devices.
    Marker *string `min:"1" 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

func (s DescribeVTLDevicesInput) GoString() string

GoString returns the string representation

func (*DescribeVTLDevicesInput) SetGatewayARN

func (s *DescribeVTLDevicesInput) SetGatewayARN(v string) *DescribeVTLDevicesInput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeVTLDevicesInput) SetLimit

func (s *DescribeVTLDevicesInput) SetLimit(v int64) *DescribeVTLDevicesInput

SetLimit sets the Limit field's value.

func (*DescribeVTLDevicesInput) SetMarker

func (s *DescribeVTLDevicesInput) SetMarker(v string) *DescribeVTLDevicesInput

SetMarker sets the Marker field's value.

func (*DescribeVTLDevicesInput) SetVTLDeviceARNs

func (s *DescribeVTLDevicesInput) SetVTLDeviceARNs(v []*string) *DescribeVTLDevicesInput

SetVTLDeviceARNs sets the VTLDeviceARNs field's value.

func (DescribeVTLDevicesInput) String

func (s DescribeVTLDevicesInput) String() string

String returns the string representation

func (*DescribeVTLDevicesInput) Validate

func (s *DescribeVTLDevicesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" 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 `min:"1" 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

func (s DescribeVTLDevicesOutput) GoString() string

GoString returns the string representation

func (*DescribeVTLDevicesOutput) SetGatewayARN

func (s *DescribeVTLDevicesOutput) SetGatewayARN(v string) *DescribeVTLDevicesOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeVTLDevicesOutput) SetMarker

func (s *DescribeVTLDevicesOutput) SetMarker(v string) *DescribeVTLDevicesOutput

SetMarker sets the Marker field's value.

func (*DescribeVTLDevicesOutput) SetVTLDevices

func (s *DescribeVTLDevicesOutput) SetVTLDevices(v []*VTLDevice) *DescribeVTLDevicesOutput

SetVTLDevices sets the VTLDevices field's value.

func (DescribeVTLDevicesOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway.

func (DescribeWorkingStorageInput) GoString

func (s DescribeWorkingStorageInput) GoString() string

GoString returns the string representation

func (*DescribeWorkingStorageInput) SetGatewayARN

func (s *DescribeWorkingStorageInput) SetGatewayARN(v string) *DescribeWorkingStorageInput

SetGatewayARN sets the GatewayARN field's value.

func (DescribeWorkingStorageInput) String

func (s DescribeWorkingStorageInput) String() string

String returns the string representation

func (*DescribeWorkingStorageInput) Validate

func (s *DescribeWorkingStorageInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `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 `min:"50" 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

func (s DescribeWorkingStorageOutput) GoString() string

GoString returns the string representation

func (*DescribeWorkingStorageOutput) SetDiskIds

func (s *DescribeWorkingStorageOutput) SetDiskIds(v []*string) *DescribeWorkingStorageOutput

SetDiskIds sets the DiskIds field's value.

func (*DescribeWorkingStorageOutput) SetGatewayARN

func (s *DescribeWorkingStorageOutput) SetGatewayARN(v string) *DescribeWorkingStorageOutput

SetGatewayARN sets the GatewayARN field's value.

func (*DescribeWorkingStorageOutput) SetWorkingStorageAllocatedInBytes

func (s *DescribeWorkingStorageOutput) SetWorkingStorageAllocatedInBytes(v int64) *DescribeWorkingStorageOutput

SetWorkingStorageAllocatedInBytes sets the WorkingStorageAllocatedInBytes field's value.

func (*DescribeWorkingStorageOutput) SetWorkingStorageUsedInBytes

func (s *DescribeWorkingStorageOutput) SetWorkingStorageUsedInBytes(v int64) *DescribeWorkingStorageOutput

SetWorkingStorageUsedInBytes sets the WorkingStorageUsedInBytes field's value.

func (DescribeWorkingStorageOutput) String

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 `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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

Lists iSCSI information about a VTL device.

func (DeviceiSCSIAttributes) GoString

func (s DeviceiSCSIAttributes) GoString() string

GoString returns the string representation

func (*DeviceiSCSIAttributes) SetChapEnabled

func (s *DeviceiSCSIAttributes) SetChapEnabled(v bool) *DeviceiSCSIAttributes

SetChapEnabled sets the ChapEnabled field's value.

func (*DeviceiSCSIAttributes) SetNetworkInterfaceId

func (s *DeviceiSCSIAttributes) SetNetworkInterfaceId(v string) *DeviceiSCSIAttributes

SetNetworkInterfaceId sets the NetworkInterfaceId field's value.

func (*DeviceiSCSIAttributes) SetNetworkInterfacePort

func (s *DeviceiSCSIAttributes) SetNetworkInterfacePort(v int64) *DeviceiSCSIAttributes

SetNetworkInterfacePort sets the NetworkInterfacePort field's value.

func (*DeviceiSCSIAttributes) SetTargetARN

func (s *DeviceiSCSIAttributes) SetTargetARN(v string) *DeviceiSCSIAttributes

SetTargetARN sets the TargetARN field's value.

func (DeviceiSCSIAttributes) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

DisableGatewayInput

func (DisableGatewayInput) GoString

func (s DisableGatewayInput) GoString() string

GoString returns the string representation

func (*DisableGatewayInput) SetGatewayARN

func (s *DisableGatewayInput) SetGatewayARN(v string) *DisableGatewayInput

SetGatewayARN sets the GatewayARN field's value.

func (DisableGatewayInput) String

func (s DisableGatewayInput) String() string

String returns the string representation

func (*DisableGatewayInput) Validate

func (s *DisableGatewayInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DisableGatewayOutput

type DisableGatewayOutput struct {

    // The unique Amazon Resource Name (ARN) of the disabled gateway.
    GatewayARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

DisableGatewayOutput

func (DisableGatewayOutput) GoString

func (s DisableGatewayOutput) GoString() string

GoString returns the string representation

func (*DisableGatewayOutput) SetGatewayARN

func (s *DisableGatewayOutput) SetGatewayARN(v string) *DisableGatewayOutput

SetGatewayARN sets the GatewayARN field's value.

func (DisableGatewayOutput) String

func (s DisableGatewayOutput) String() string

String returns the string representation

type Disk

type Disk struct {
    DiskAllocationResource *string `type:"string"`

    DiskAllocationType *string `min:"3" type:"string"`

    DiskId *string `min:"1" type:"string"`

    DiskNode *string `type:"string"`

    DiskPath *string `type:"string"`

    DiskSizeInBytes *int64 `type:"long"`

    DiskStatus *string `type:"string"`
    // contains filtered or unexported fields
}

func (Disk) GoString

func (s Disk) GoString() string

GoString returns the string representation

func (*Disk) SetDiskAllocationResource

func (s *Disk) SetDiskAllocationResource(v string) *Disk

SetDiskAllocationResource sets the DiskAllocationResource field's value.

func (*Disk) SetDiskAllocationType

func (s *Disk) SetDiskAllocationType(v string) *Disk

SetDiskAllocationType sets the DiskAllocationType field's value.

func (*Disk) SetDiskId

func (s *Disk) SetDiskId(v string) *Disk

SetDiskId sets the DiskId field's value.

func (*Disk) SetDiskNode

func (s *Disk) SetDiskNode(v string) *Disk

SetDiskNode sets the DiskNode field's value.

func (*Disk) SetDiskPath

func (s *Disk) SetDiskPath(v string) *Disk

SetDiskPath sets the DiskPath field's value.

func (*Disk) SetDiskSizeInBytes

func (s *Disk) SetDiskSizeInBytes(v int64) *Disk

SetDiskSizeInBytes sets the DiskSizeInBytes field's value.

func (*Disk) SetDiskStatus

func (s *Disk) SetDiskStatus(v string) *Disk

SetDiskStatus sets the DiskStatus field's value.

func (Disk) String

func (s Disk) String() string

String returns the string representation

type Error

type Error struct {

    // Additional information about the error.
    ErrorCode *string `locationName:"errorCode" type:"string" enum:"ErrorCode"`

    // 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.

func (Error) GoString

func (s Error) GoString() string

GoString returns the string representation

func (*Error) SetErrorCode

func (s *Error) SetErrorCode(v string) *Error

SetErrorCode sets the ErrorCode field's value.

func (*Error) SetErrorDetails

func (s *Error) SetErrorDetails(v map[string]*string) *Error

SetErrorDetails sets the ErrorDetails field's value.

func (Error) String

func (s Error) String() string

String returns the string representation

type FileShareInfo

type FileShareInfo struct {

    // The Amazon Resource Name (ARN) of the file share.
    FileShareARN *string `min:"50" type:"string"`

    // The ID of the file share.
    FileShareId *string `min:"12" type:"string"`

    // The status of the file share. Possible values are CREATING, UPDATING, AVAILABLE
    // and DELETING.
    FileShareStatus *string `min:"3" type:"string"`

    // The type of the file share.
    FileShareType *string `type:"string" enum:"FileShareType"`

    // 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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

Describes a file share.

func (FileShareInfo) GoString

func (s FileShareInfo) GoString() string

GoString returns the string representation

func (*FileShareInfo) SetFileShareARN

func (s *FileShareInfo) SetFileShareARN(v string) *FileShareInfo

SetFileShareARN sets the FileShareARN field's value.

func (*FileShareInfo) SetFileShareId

func (s *FileShareInfo) SetFileShareId(v string) *FileShareInfo

SetFileShareId sets the FileShareId field's value.

func (*FileShareInfo) SetFileShareStatus

func (s *FileShareInfo) SetFileShareStatus(v string) *FileShareInfo

SetFileShareStatus sets the FileShareStatus field's value.

func (*FileShareInfo) SetFileShareType

func (s *FileShareInfo) SetFileShareType(v string) *FileShareInfo

SetFileShareType sets the FileShareType field's value.

func (*FileShareInfo) SetGatewayARN

func (s *FileShareInfo) SetGatewayARN(v string) *FileShareInfo

SetGatewayARN sets the GatewayARN field's value.

func (FileShareInfo) String

func (s FileShareInfo) String() string

String returns the string representation

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 `min:"50" type:"string"`

    // The unique identifier assigned to your gateway during activation. This ID
    // becomes part of the gateway Amazon Resource Name (ARN), which you use as
    // input for other operations.
    GatewayId *string `min:"12" type:"string"`

    // The name of the gateway.
    GatewayName *string `type:"string"`

    // The state of the gateway.
    //
    // Valid Values: DISABLED or ACTIVE
    GatewayOperationalState *string `min:"2" type:"string"`

    // The type of the gateway.
    GatewayType *string `min:"2" type:"string"`
    // contains filtered or unexported fields
}

Describes a gateway object.

func (GatewayInfo) GoString

func (s GatewayInfo) GoString() string

GoString returns the string representation

func (*GatewayInfo) SetGatewayARN

func (s *GatewayInfo) SetGatewayARN(v string) *GatewayInfo

SetGatewayARN sets the GatewayARN field's value.

func (*GatewayInfo) SetGatewayId

func (s *GatewayInfo) SetGatewayId(v string) *GatewayInfo

SetGatewayId sets the GatewayId field's value.

func (*GatewayInfo) SetGatewayName

func (s *GatewayInfo) SetGatewayName(v string) *GatewayInfo

SetGatewayName sets the GatewayName field's value.

func (*GatewayInfo) SetGatewayOperationalState

func (s *GatewayInfo) SetGatewayOperationalState(v string) *GatewayInfo

SetGatewayOperationalState sets the GatewayOperationalState field's value.

func (*GatewayInfo) SetGatewayType

func (s *GatewayInfo) SetGatewayType(v string) *GatewayInfo

SetGatewayType sets the GatewayType field's value.

func (GatewayInfo) String

func (s GatewayInfo) String() string

String returns the string representation

type JoinDomainInput

type JoinDomainInput struct {

    // The name of the domain that you want the gateway to join.
    //
    // DomainName is a required field
    DomainName *string `type:"string" required:"true"`

    // The unique Amazon Resource Name (ARN) of the file gateway you want to add
    // to the Active Directory domain.
    //
    // GatewayARN is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // Sets the password of the user who has permission to add the gateway to the
    // Active Directory domain.
    //
    // Password is a required field
    Password *string `type:"string" required:"true"`

    // Sets the user name of user who has permission to add the gateway to the Active
    // Directory domain.
    //
    // UserName is a required field
    UserName *string `type:"string" required:"true"`
    // contains filtered or unexported fields
}

JoinDomainInput

func (JoinDomainInput) GoString

func (s JoinDomainInput) GoString() string

GoString returns the string representation

func (*JoinDomainInput) SetDomainName

func (s *JoinDomainInput) SetDomainName(v string) *JoinDomainInput

SetDomainName sets the DomainName field's value.

func (*JoinDomainInput) SetGatewayARN

func (s *JoinDomainInput) SetGatewayARN(v string) *JoinDomainInput

SetGatewayARN sets the GatewayARN field's value.

func (*JoinDomainInput) SetPassword

func (s *JoinDomainInput) SetPassword(v string) *JoinDomainInput

SetPassword sets the Password field's value.

func (*JoinDomainInput) SetUserName

func (s *JoinDomainInput) SetUserName(v string) *JoinDomainInput

SetUserName sets the UserName field's value.

func (JoinDomainInput) String

func (s JoinDomainInput) String() string

String returns the string representation

func (*JoinDomainInput) Validate

func (s *JoinDomainInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type JoinDomainOutput

type JoinDomainOutput struct {

    // The unique Amazon Resource Name (ARN) of the gateway that joined the domain.
    GatewayARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

JoinDomainOutput

func (JoinDomainOutput) GoString

func (s JoinDomainOutput) GoString() string

GoString returns the string representation

func (*JoinDomainOutput) SetGatewayARN

func (s *JoinDomainOutput) SetGatewayARN(v string) *JoinDomainOutput

SetGatewayARN sets the GatewayARN field's value.

func (JoinDomainOutput) String

func (s JoinDomainOutput) String() string

String returns the string representation

type ListFileSharesInput

type ListFileSharesInput struct {

    // The Amazon resource Name (ARN) of the gateway whose file shares you want
    // to list. If this field is not present, all file shares under your account
    // are listed.
    GatewayARN *string `min:"50" type:"string"`

    // The maximum number of file shares to return in the response. The value must
    // be an integer with a value greater than zero. Optional.
    Limit *int64 `min:"1" type:"integer"`

    // Opaque pagination token returned from a previous ListFileShares operation.
    // If present, Marker specifies where to continue the list from after a previous
    // call to ListFileShares. Optional.
    Marker *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

ListFileShareInput

func (ListFileSharesInput) GoString

func (s ListFileSharesInput) GoString() string

GoString returns the string representation

func (*ListFileSharesInput) SetGatewayARN

func (s *ListFileSharesInput) SetGatewayARN(v string) *ListFileSharesInput

SetGatewayARN sets the GatewayARN field's value.

func (*ListFileSharesInput) SetLimit

func (s *ListFileSharesInput) SetLimit(v int64) *ListFileSharesInput

SetLimit sets the Limit field's value.

func (*ListFileSharesInput) SetMarker

func (s *ListFileSharesInput) SetMarker(v string) *ListFileSharesInput

SetMarker sets the Marker field's value.

func (ListFileSharesInput) String

func (s ListFileSharesInput) String() string

String returns the string representation

func (*ListFileSharesInput) Validate

func (s *ListFileSharesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListFileSharesOutput

type ListFileSharesOutput struct {

    // An array of information about the file gateway's file shares.
    FileShareInfoList []*FileShareInfo `type:"list"`

    // If the request includes Marker, the response returns that value in this field.
    Marker *string `min:"1" type:"string"`

    // If a value is present, there are more file shares to return. In a subsequent
    // request, use NextMarker as the value for Marker to retrieve the next set
    // of file shares.
    NextMarker *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

ListFileShareOutput

func (ListFileSharesOutput) GoString

func (s ListFileSharesOutput) GoString() string

GoString returns the string representation

func (*ListFileSharesOutput) SetFileShareInfoList

func (s *ListFileSharesOutput) SetFileShareInfoList(v []*FileShareInfo) *ListFileSharesOutput

SetFileShareInfoList sets the FileShareInfoList field's value.

func (*ListFileSharesOutput) SetMarker

func (s *ListFileSharesOutput) SetMarker(v string) *ListFileSharesOutput

SetMarker sets the Marker field's value.

func (*ListFileSharesOutput) SetNextMarker

func (s *ListFileSharesOutput) SetNextMarker(v string) *ListFileSharesOutput

SetNextMarker sets the NextMarker field's value.

func (ListFileSharesOutput) String

func (s ListFileSharesOutput) 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 `min:"1" type:"integer"`

    // An opaque string that indicates the position at which to begin the returned
    // list of gateways.
    Marker *string `min:"1" 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

func (s ListGatewaysInput) GoString() string

GoString returns the string representation

func (*ListGatewaysInput) SetLimit

func (s *ListGatewaysInput) SetLimit(v int64) *ListGatewaysInput

SetLimit sets the Limit field's value.

func (*ListGatewaysInput) SetMarker

func (s *ListGatewaysInput) SetMarker(v string) *ListGatewaysInput

SetMarker sets the Marker field's value.

func (ListGatewaysInput) String

func (s ListGatewaysInput) String() string

String returns the string representation

func (*ListGatewaysInput) Validate

func (s *ListGatewaysInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListGatewaysOutput

type ListGatewaysOutput struct {
    Gateways []*GatewayInfo `type:"list"`

    Marker *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (ListGatewaysOutput) GoString

func (s ListGatewaysOutput) GoString() string

GoString returns the string representation

func (*ListGatewaysOutput) SetGateways

func (s *ListGatewaysOutput) SetGateways(v []*GatewayInfo) *ListGatewaysOutput

SetGateways sets the Gateways field's value.

func (*ListGatewaysOutput) SetMarker

func (s *ListGatewaysOutput) SetMarker(v string) *ListGatewaysOutput

SetMarker sets the Marker field's value.

func (ListGatewaysOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway.

func (ListLocalDisksInput) GoString

func (s ListLocalDisksInput) GoString() string

GoString returns the string representation

func (*ListLocalDisksInput) SetGatewayARN

func (s *ListLocalDisksInput) SetGatewayARN(v string) *ListLocalDisksInput

SetGatewayARN sets the GatewayARN field's value.

func (ListLocalDisksInput) String

func (s ListLocalDisksInput) String() string

String returns the string representation

func (*ListLocalDisksInput) Validate

func (s *ListLocalDisksInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (ListLocalDisksOutput) GoString

func (s ListLocalDisksOutput) GoString() string

GoString returns the string representation

func (*ListLocalDisksOutput) SetDisks

func (s *ListLocalDisksOutput) SetDisks(v []*Disk) *ListLocalDisksOutput

SetDisks sets the Disks field's value.

func (*ListLocalDisksOutput) SetGatewayARN

func (s *ListLocalDisksOutput) SetGatewayARN(v string) *ListLocalDisksOutput

SetGatewayARN sets the GatewayARN field's value.

func (ListLocalDisksOutput) String

func (s ListLocalDisksOutput) String() string

String returns the string representation

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

    // Specifies that the list of tags returned be limited to the specified number
    // of items.
    Limit *int64 `min:"1" type:"integer"`

    // An opaque string that indicates the position at which to begin returning
    // the list of tags.
    Marker *string `min:"1" type:"string"`

    // The Amazon Resource Name (ARN) of the resource for which you want to list
    // tags.
    //
    // ResourceARN is a required field
    ResourceARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

ListTagsForResourceInput

func (ListTagsForResourceInput) GoString

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceInput) SetLimit

func (s *ListTagsForResourceInput) SetLimit(v int64) *ListTagsForResourceInput

SetLimit sets the Limit field's value.

func (*ListTagsForResourceInput) SetMarker

func (s *ListTagsForResourceInput) SetMarker(v string) *ListTagsForResourceInput

SetMarker sets the Marker field's value.

func (*ListTagsForResourceInput) SetResourceARN

func (s *ListTagsForResourceInput) SetResourceARN(v string) *ListTagsForResourceInput

SetResourceARN sets the ResourceARN field's value.

func (ListTagsForResourceInput) String

func (s ListTagsForResourceInput) String() string

String returns the string representation

func (*ListTagsForResourceInput) Validate

func (s *ListTagsForResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {

    // An opaque string that indicates the position at which to stop returning the
    // list of tags.
    Marker *string `min:"1" type:"string"`

    // he Amazon Resource Name (ARN) of the resource for which you want to list
    // tags.
    ResourceARN *string `min:"50" type:"string"`

    // An array that contains the tags for the specified resource.
    Tags []*Tag `type:"list"`
    // contains filtered or unexported fields
}

ListTagsForResourceOutput

func (ListTagsForResourceOutput) GoString

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation

func (*ListTagsForResourceOutput) SetMarker

func (s *ListTagsForResourceOutput) SetMarker(v string) *ListTagsForResourceOutput

SetMarker sets the Marker field's value.

func (*ListTagsForResourceOutput) SetResourceARN

func (s *ListTagsForResourceOutput) SetResourceARN(v string) *ListTagsForResourceOutput

SetResourceARN sets the ResourceARN field's value.

func (*ListTagsForResourceOutput) SetTags

func (s *ListTagsForResourceOutput) SetTags(v []*Tag) *ListTagsForResourceOutput

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type ListTapesInput

type ListTapesInput struct {

    // An optional number limit for the tapes in the list returned by this call.
    Limit *int64 `min:"1" type:"integer"`

    // A string that indicates the position at which to begin the returned list
    // of tapes.
    Marker *string `min:"1" type:"string"`

    // The Amazon Resource Name (ARN) of each of the tapes you want to list. If
    // you don't specify a tape ARN, the response lists all tapes in both your VTL
    // and VTS.
    TapeARNs []*string `type:"list"`
    // contains filtered or unexported fields
}

A JSON object that contains one or more of the following fields:

* ListTapesInput$Limit

* ListTapesInput$Marker

* ListTapesInput$TapeARNs

func (ListTapesInput) GoString

func (s ListTapesInput) GoString() string

GoString returns the string representation

func (*ListTapesInput) SetLimit

func (s *ListTapesInput) SetLimit(v int64) *ListTapesInput

SetLimit sets the Limit field's value.

func (*ListTapesInput) SetMarker

func (s *ListTapesInput) SetMarker(v string) *ListTapesInput

SetMarker sets the Marker field's value.

func (*ListTapesInput) SetTapeARNs

func (s *ListTapesInput) SetTapeARNs(v []*string) *ListTapesInput

SetTapeARNs sets the TapeARNs field's value.

func (ListTapesInput) String

func (s ListTapesInput) String() string

String returns the string representation

func (*ListTapesInput) Validate

func (s *ListTapesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTapesOutput

type ListTapesOutput struct {

    // A string that indicates the position at which to begin returning the next
    // list of tapes. Use the marker in your next request to continue pagination
    // of tapes. If there are no more tapes to list, this element does not appear
    // in the response body.
    Marker *string `min:"1" type:"string"`

    // An array of TapeInfo objects, where each object describes an a single tape.
    // If there not tapes in the tape library or VTS, then the TapeInfos is an empty
    // array.
    TapeInfos []*TapeInfo `type:"list"`
    // contains filtered or unexported fields
}

A JSON object containing the following fields:

* ListTapesOutput$Marker

* ListTapesOutput$VolumeInfos

func (ListTapesOutput) GoString

func (s ListTapesOutput) GoString() string

GoString returns the string representation

func (*ListTapesOutput) SetMarker

func (s *ListTapesOutput) SetMarker(v string) *ListTapesOutput

SetMarker sets the Marker field's value.

func (*ListTapesOutput) SetTapeInfos

func (s *ListTapesOutput) SetTapeInfos(v []*TapeInfo) *ListTapesOutput

SetTapeInfos sets the TapeInfos field's value.

func (ListTapesOutput) String

func (s ListTapesOutput) String() string

String returns the string representation

type ListVolumeInitiatorsInput

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 is a required field
    VolumeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

ListVolumeInitiatorsInput

func (ListVolumeInitiatorsInput) GoString

func (s ListVolumeInitiatorsInput) GoString() string

GoString returns the string representation

func (*ListVolumeInitiatorsInput) SetVolumeARN

func (s *ListVolumeInitiatorsInput) SetVolumeARN(v string) *ListVolumeInitiatorsInput

SetVolumeARN sets the VolumeARN field's value.

func (ListVolumeInitiatorsInput) String

func (s ListVolumeInitiatorsInput) String() string

String returns the string representation

func (*ListVolumeInitiatorsInput) Validate

func (s *ListVolumeInitiatorsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListVolumeInitiatorsOutput

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

func (s ListVolumeInitiatorsOutput) GoString() string

GoString returns the string representation

func (*ListVolumeInitiatorsOutput) SetInitiators

func (s *ListVolumeInitiatorsOutput) SetInitiators(v []*string) *ListVolumeInitiatorsOutput

SetInitiators sets the Initiators field's value.

func (ListVolumeInitiatorsOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (ListVolumeRecoveryPointsInput) GoString

func (s ListVolumeRecoveryPointsInput) GoString() string

GoString returns the string representation

func (*ListVolumeRecoveryPointsInput) SetGatewayARN

func (s *ListVolumeRecoveryPointsInput) SetGatewayARN(v string) *ListVolumeRecoveryPointsInput

SetGatewayARN sets the GatewayARN field's value.

func (ListVolumeRecoveryPointsInput) String

func (s ListVolumeRecoveryPointsInput) String() string

String returns the string representation

func (*ListVolumeRecoveryPointsInput) Validate

func (s *ListVolumeRecoveryPointsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`

    VolumeRecoveryPointInfos []*VolumeRecoveryPointInfo `type:"list"`
    // contains filtered or unexported fields
}

func (ListVolumeRecoveryPointsOutput) GoString

func (s ListVolumeRecoveryPointsOutput) GoString() string

GoString returns the string representation

func (*ListVolumeRecoveryPointsOutput) SetGatewayARN

func (s *ListVolumeRecoveryPointsOutput) SetGatewayARN(v string) *ListVolumeRecoveryPointsOutput

SetGatewayARN sets the GatewayARN field's value.

func (*ListVolumeRecoveryPointsOutput) SetVolumeRecoveryPointInfos

func (s *ListVolumeRecoveryPointsOutput) SetVolumeRecoveryPointInfos(v []*VolumeRecoveryPointInfo) *ListVolumeRecoveryPointsOutput

SetVolumeRecoveryPointInfos sets the VolumeRecoveryPointInfos field's value.

func (ListVolumeRecoveryPointsOutput) String

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 `min:"50" type:"string"`

    // Specifies that the list of volumes returned be limited to the specified number
    // of items.
    Limit *int64 `min:"1" 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 `min:"1" 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

func (s ListVolumesInput) GoString() string

GoString returns the string representation

func (*ListVolumesInput) SetGatewayARN

func (s *ListVolumesInput) SetGatewayARN(v string) *ListVolumesInput

SetGatewayARN sets the GatewayARN field's value.

func (*ListVolumesInput) SetLimit

func (s *ListVolumesInput) SetLimit(v int64) *ListVolumesInput

SetLimit sets the Limit field's value.

func (*ListVolumesInput) SetMarker

func (s *ListVolumesInput) SetMarker(v string) *ListVolumesInput

SetMarker sets the Marker field's value.

func (ListVolumesInput) String

func (s ListVolumesInput) String() string

String returns the string representation

func (*ListVolumesInput) Validate

func (s *ListVolumesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`

    Marker *string `min:"1" type:"string"`

    VolumeInfos []*VolumeInfo `type:"list"`
    // contains filtered or unexported fields
}

func (ListVolumesOutput) GoString

func (s ListVolumesOutput) GoString() string

GoString returns the string representation

func (*ListVolumesOutput) SetGatewayARN

func (s *ListVolumesOutput) SetGatewayARN(v string) *ListVolumesOutput

SetGatewayARN sets the GatewayARN field's value.

func (*ListVolumesOutput) SetMarker

func (s *ListVolumesOutput) SetMarker(v string) *ListVolumesOutput

SetMarker sets the Marker field's value.

func (*ListVolumesOutput) SetVolumeInfos

func (s *ListVolumesOutput) SetVolumeInfos(v []*VolumeInfo) *ListVolumesOutput

SetVolumeInfos sets the VolumeInfos field's value.

func (ListVolumesOutput) String

func (s ListVolumesOutput) String() string

String returns the string representation

type NFSFileShareDefaults

type NFSFileShareDefaults struct {

    // The Unix directory mode in the form "nnnn". For example, "0666" represents
    // the default access mode for all directories inside the file share. The default
    // value is 0777.
    DirectoryMode *string `min:"1" type:"string"`

    // The Unix file mode in the form "nnnn". For example, "0666" represents the
    // default file mode inside the file share. The default value is 0666.
    FileMode *string `min:"1" type:"string"`

    // The default group ID for the file share (unless the files have another group
    // ID specified). The default value is nfsnobody.
    GroupId *int64 `type:"long"`

    // The default owner ID for files in the file share (unless the files have another
    // owner ID specified). The default value is nfsnobody.
    OwnerId *int64 `type:"long"`
    // contains filtered or unexported fields
}

Describes Network File System (NFS) file share default values. Files and folders stored as Amazon S3 objects in S3 buckets don't, by default, have Unix file permissions assigned to them. Upon discovery in an S3 bucket by Storage Gateway, the S3 objects that represent files and folders are assigned these default Unix permissions. This operation is only supported for file gateways.

func (NFSFileShareDefaults) GoString

func (s NFSFileShareDefaults) GoString() string

GoString returns the string representation

func (*NFSFileShareDefaults) SetDirectoryMode

func (s *NFSFileShareDefaults) SetDirectoryMode(v string) *NFSFileShareDefaults

SetDirectoryMode sets the DirectoryMode field's value.

func (*NFSFileShareDefaults) SetFileMode

func (s *NFSFileShareDefaults) SetFileMode(v string) *NFSFileShareDefaults

SetFileMode sets the FileMode field's value.

func (*NFSFileShareDefaults) SetGroupId

func (s *NFSFileShareDefaults) SetGroupId(v int64) *NFSFileShareDefaults

SetGroupId sets the GroupId field's value.

func (*NFSFileShareDefaults) SetOwnerId

func (s *NFSFileShareDefaults) SetOwnerId(v int64) *NFSFileShareDefaults

SetOwnerId sets the OwnerId field's value.

func (NFSFileShareDefaults) String

func (s NFSFileShareDefaults) String() string

String returns the string representation

func (*NFSFileShareDefaults) Validate

func (s *NFSFileShareDefaults) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type NFSFileShareInfo

type NFSFileShareInfo struct {

    // The list of clients that are allowed to access the file gateway. The list
    // must contain either valid IP addresses or valid CIDR blocks.
    ClientList []*string `min:"1" type:"list"`

    // The default storage class for objects put into an Amazon S3 bucket by the
    // file gateway. Possible values are S3_STANDARD, S3_STANDARD_IA, or S3_ONEZONE_IA.
    // If this field is not populated, the default value S3_STANDARD is used. Optional.
    DefaultStorageClass *string `min:"5" type:"string"`

    // The Amazon Resource Name (ARN) of the file share.
    FileShareARN *string `min:"50" type:"string"`

    // The ID of the file share.
    FileShareId *string `min:"12" type:"string"`

    // The status of the file share. Possible values are CREATING, UPDATING, AVAILABLE
    // and DELETING.
    FileShareStatus *string `min:"3" type:"string"`

    // 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 `min:"50" type:"string"`

    // A value that enables guessing of the MIME type for uploaded objects based
    // on file extensions. Set this value to true to enable MIME type guessing,
    // and otherwise to false. The default value is true.
    GuessMIMETypeEnabled *bool `type:"boolean"`

    // True to use Amazon S3 server side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // The ARN of the backend storage used for storing file data.
    LocationARN *string `min:"16" type:"string"`

    // Describes Network File System (NFS) file share default values. Files and
    // folders stored as Amazon S3 objects in S3 buckets don't, by default, have
    // Unix file permissions assigned to them. Upon discovery in an S3 bucket by
    // Storage Gateway, the S3 objects that represent files and folders are assigned
    // these default Unix permissions. This operation is only supported for file
    // gateways.
    NFSFileShareDefaults *NFSFileShareDefaults `type:"structure"`

    // A value that sets the access control list permission for objects in the S3
    // bucket that a file gateway puts objects into. The default value is "private".
    ObjectACL *string `type:"string" enum:"ObjectACL"`

    // The file share path used by the NFS client to identify the mount point.
    Path *string `type:"string"`

    // A value that sets the write status of a file share. This value is true if
    // the write status is read-only, and otherwise false.
    ReadOnly *bool `type:"boolean"`

    // A value that sets the access control list permission for objects in the Amazon
    // S3 bucket that a file gateway puts objects into. The default value is private.
    RequesterPays *bool `type:"boolean"`

    // The ARN of the IAM role that file gateway assumes when it accesses the underlying
    // storage.
    Role *string `min:"20" type:"string"`

    // The user mapped to anonymous user. Valid options are the following:
    //
    //    * RootSquash - Only root is mapped to anonymous user.
    //
    //    * NoSquash - No one is mapped to anonymous user
    //
    //    * AllSquash - Everyone is mapped to anonymous user.
    Squash *string `min:"5" type:"string"`
    // contains filtered or unexported fields
}

The Unix file permissions and ownership information assigned, by default, to native S3 objects when file gateway discovers them in S3 buckets. This operation is only supported in file gateways.

func (NFSFileShareInfo) GoString

func (s NFSFileShareInfo) GoString() string

GoString returns the string representation

func (*NFSFileShareInfo) SetClientList

func (s *NFSFileShareInfo) SetClientList(v []*string) *NFSFileShareInfo

SetClientList sets the ClientList field's value.

func (*NFSFileShareInfo) SetDefaultStorageClass

func (s *NFSFileShareInfo) SetDefaultStorageClass(v string) *NFSFileShareInfo

SetDefaultStorageClass sets the DefaultStorageClass field's value.

func (*NFSFileShareInfo) SetFileShareARN

func (s *NFSFileShareInfo) SetFileShareARN(v string) *NFSFileShareInfo

SetFileShareARN sets the FileShareARN field's value.

func (*NFSFileShareInfo) SetFileShareId

func (s *NFSFileShareInfo) SetFileShareId(v string) *NFSFileShareInfo

SetFileShareId sets the FileShareId field's value.

func (*NFSFileShareInfo) SetFileShareStatus

func (s *NFSFileShareInfo) SetFileShareStatus(v string) *NFSFileShareInfo

SetFileShareStatus sets the FileShareStatus field's value.

func (*NFSFileShareInfo) SetGatewayARN

func (s *NFSFileShareInfo) SetGatewayARN(v string) *NFSFileShareInfo

SetGatewayARN sets the GatewayARN field's value.

func (*NFSFileShareInfo) SetGuessMIMETypeEnabled

func (s *NFSFileShareInfo) SetGuessMIMETypeEnabled(v bool) *NFSFileShareInfo

SetGuessMIMETypeEnabled sets the GuessMIMETypeEnabled field's value.

func (*NFSFileShareInfo) SetKMSEncrypted

func (s *NFSFileShareInfo) SetKMSEncrypted(v bool) *NFSFileShareInfo

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*NFSFileShareInfo) SetKMSKey

func (s *NFSFileShareInfo) SetKMSKey(v string) *NFSFileShareInfo

SetKMSKey sets the KMSKey field's value.

func (*NFSFileShareInfo) SetLocationARN

func (s *NFSFileShareInfo) SetLocationARN(v string) *NFSFileShareInfo

SetLocationARN sets the LocationARN field's value.

func (*NFSFileShareInfo) SetNFSFileShareDefaults

func (s *NFSFileShareInfo) SetNFSFileShareDefaults(v *NFSFileShareDefaults) *NFSFileShareInfo

SetNFSFileShareDefaults sets the NFSFileShareDefaults field's value.

func (*NFSFileShareInfo) SetObjectACL

func (s *NFSFileShareInfo) SetObjectACL(v string) *NFSFileShareInfo

SetObjectACL sets the ObjectACL field's value.

func (*NFSFileShareInfo) SetPath

func (s *NFSFileShareInfo) SetPath(v string) *NFSFileShareInfo

SetPath sets the Path field's value.

func (*NFSFileShareInfo) SetReadOnly

func (s *NFSFileShareInfo) SetReadOnly(v bool) *NFSFileShareInfo

SetReadOnly sets the ReadOnly field's value.

func (*NFSFileShareInfo) SetRequesterPays

func (s *NFSFileShareInfo) SetRequesterPays(v bool) *NFSFileShareInfo

SetRequesterPays sets the RequesterPays field's value.

func (*NFSFileShareInfo) SetRole

func (s *NFSFileShareInfo) SetRole(v string) *NFSFileShareInfo

SetRole sets the Role field's value.

func (*NFSFileShareInfo) SetSquash

func (s *NFSFileShareInfo) SetSquash(v string) *NFSFileShareInfo

SetSquash sets the Squash field's value.

func (NFSFileShareInfo) String

func (s NFSFileShareInfo) String() string

String returns the string representation

type NetworkInterface

type NetworkInterface struct {

    // The Internet Protocol version 4 (IPv4) address of the interface.
    Ipv4Address *string `type:"string"`

    // The Internet Protocol version 6 (IPv6) address of the interface. Currently
    // not supported.
    Ipv6Address *string `type:"string"`

    // The Media Access Control (MAC) address of the interface.
    //
    // This is currently unsupported and will not be returned in output.
    MacAddress *string `type:"string"`
    // contains filtered or unexported fields
}

Describes a gateway's network interface.

func (NetworkInterface) GoString

func (s NetworkInterface) GoString() string

GoString returns the string representation

func (*NetworkInterface) SetIpv4Address

func (s *NetworkInterface) SetIpv4Address(v string) *NetworkInterface

SetIpv4Address sets the Ipv4Address field's value.

func (*NetworkInterface) SetIpv6Address

func (s *NetworkInterface) SetIpv6Address(v string) *NetworkInterface

SetIpv6Address sets the Ipv6Address field's value.

func (*NetworkInterface) SetMacAddress

func (s *NetworkInterface) SetMacAddress(v string) *NetworkInterface

SetMacAddress sets the MacAddress field's value.

func (NetworkInterface) String

func (s NetworkInterface) String() string

String returns the string representation

type NotifyWhenUploadedInput

type NotifyWhenUploadedInput struct {

    // The Amazon Resource Name (ARN) of the file share.
    //
    // FileShareARN is a required field
    FileShareARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (NotifyWhenUploadedInput) GoString

func (s NotifyWhenUploadedInput) GoString() string

GoString returns the string representation

func (*NotifyWhenUploadedInput) SetFileShareARN

func (s *NotifyWhenUploadedInput) SetFileShareARN(v string) *NotifyWhenUploadedInput

SetFileShareARN sets the FileShareARN field's value.

func (NotifyWhenUploadedInput) String

func (s NotifyWhenUploadedInput) String() string

String returns the string representation

func (*NotifyWhenUploadedInput) Validate

func (s *NotifyWhenUploadedInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type NotifyWhenUploadedOutput

type NotifyWhenUploadedOutput struct {

    // The Amazon Resource Name (ARN) of the file share.
    FileShareARN *string `min:"50" type:"string"`

    // The randomly generated ID of the notification that was sent. This ID is in
    // UUID format.
    NotificationId *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

func (NotifyWhenUploadedOutput) GoString

func (s NotifyWhenUploadedOutput) GoString() string

GoString returns the string representation

func (*NotifyWhenUploadedOutput) SetFileShareARN

func (s *NotifyWhenUploadedOutput) SetFileShareARN(v string) *NotifyWhenUploadedOutput

SetFileShareARN sets the FileShareARN field's value.

func (*NotifyWhenUploadedOutput) SetNotificationId

func (s *NotifyWhenUploadedOutput) SetNotificationId(v string) *NotifyWhenUploadedOutput

SetNotificationId sets the NotificationId field's value.

func (NotifyWhenUploadedOutput) String

func (s NotifyWhenUploadedOutput) String() string

String returns the string representation

type RefreshCacheInput

type RefreshCacheInput struct {

    // The Amazon Resource Name (ARN) of the file share.
    //
    // FileShareARN is a required field
    FileShareARN *string `min:"50" type:"string" required:"true"`

    // A comma-separated list of the paths of folders to refresh in the cache. The
    // default is ["/"]. The default refreshes objects and folders at the root of
    // the Amazon S3 bucket. If Recursive is set to "true", the entire S3 bucket
    // that the file share has access to is refreshed.
    FolderList []*string `min:"1" type:"list"`

    // A value that specifies whether to recursively refresh folders in the cache.
    // The refresh includes folders that were in the cache the last time the gateway
    // listed the folder's contents. If this value set to "true", each folder that
    // is listed in FolderList is recursively updated. Otherwise, subfolders listed
    // in FolderList are not refreshed. Only objects that are in folders listed
    // directly under FolderList are found and used for the update. The default
    // is "true".
    Recursive *bool `type:"boolean"`
    // contains filtered or unexported fields
}

func (RefreshCacheInput) GoString

func (s RefreshCacheInput) GoString() string

GoString returns the string representation

func (*RefreshCacheInput) SetFileShareARN

func (s *RefreshCacheInput) SetFileShareARN(v string) *RefreshCacheInput

SetFileShareARN sets the FileShareARN field's value.

func (*RefreshCacheInput) SetFolderList

func (s *RefreshCacheInput) SetFolderList(v []*string) *RefreshCacheInput

SetFolderList sets the FolderList field's value.

func (*RefreshCacheInput) SetRecursive

func (s *RefreshCacheInput) SetRecursive(v bool) *RefreshCacheInput

SetRecursive sets the Recursive field's value.

func (RefreshCacheInput) String

func (s RefreshCacheInput) String() string

String returns the string representation

func (*RefreshCacheInput) Validate

func (s *RefreshCacheInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RefreshCacheOutput

type RefreshCacheOutput struct {

    // The Amazon Resource Name (ARN) of the file share.
    FileShareARN *string `min:"50" type:"string"`

    // The randomly generated ID of the notification that was sent. This ID is in
    // UUID format.
    NotificationId *string `min:"1" type:"string"`
    // contains filtered or unexported fields
}

RefreshCacheOutput

func (RefreshCacheOutput) GoString

func (s RefreshCacheOutput) GoString() string

GoString returns the string representation

func (*RefreshCacheOutput) SetFileShareARN

func (s *RefreshCacheOutput) SetFileShareARN(v string) *RefreshCacheOutput

SetFileShareARN sets the FileShareARN field's value.

func (*RefreshCacheOutput) SetNotificationId

func (s *RefreshCacheOutput) SetNotificationId(v string) *RefreshCacheOutput

SetNotificationId sets the NotificationId field's value.

func (RefreshCacheOutput) String

func (s RefreshCacheOutput) String() string

String returns the string representation

type RemoveTagsFromResourceInput

type RemoveTagsFromResourceInput struct {

    // The Amazon Resource Name (ARN) of the resource you want to remove the tags
    // from.
    //
    // ResourceARN is a required field
    ResourceARN *string `min:"50" type:"string" required:"true"`

    // The keys of the tags you want to remove from the specified resource. A tag
    // is composed of a key/value pair.
    //
    // TagKeys is a required field
    TagKeys []*string `type:"list" required:"true"`
    // contains filtered or unexported fields
}

RemoveTagsFromResourceInput

func (RemoveTagsFromResourceInput) GoString

func (s RemoveTagsFromResourceInput) GoString() string

GoString returns the string representation

func (*RemoveTagsFromResourceInput) SetResourceARN

func (s *RemoveTagsFromResourceInput) SetResourceARN(v string) *RemoveTagsFromResourceInput

SetResourceARN sets the ResourceARN field's value.

func (*RemoveTagsFromResourceInput) SetTagKeys

func (s *RemoveTagsFromResourceInput) SetTagKeys(v []*string) *RemoveTagsFromResourceInput

SetTagKeys sets the TagKeys field's value.

func (RemoveTagsFromResourceInput) String

func (s RemoveTagsFromResourceInput) String() string

String returns the string representation

func (*RemoveTagsFromResourceInput) Validate

func (s *RemoveTagsFromResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RemoveTagsFromResourceOutput

type RemoveTagsFromResourceOutput struct {

    // The Amazon Resource Name (ARN) of the resource that the tags were removed
    // from.
    ResourceARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

RemoveTagsFromResourceOutput

func (RemoveTagsFromResourceOutput) GoString

func (s RemoveTagsFromResourceOutput) GoString() string

GoString returns the string representation

func (*RemoveTagsFromResourceOutput) SetResourceARN

func (s *RemoveTagsFromResourceOutput) SetResourceARN(v string) *RemoveTagsFromResourceOutput

SetResourceARN sets the ResourceARN field's value.

func (RemoveTagsFromResourceOutput) String

func (s RemoveTagsFromResourceOutput) 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (ResetCacheInput) GoString

func (s ResetCacheInput) GoString() string

GoString returns the string representation

func (*ResetCacheInput) SetGatewayARN

func (s *ResetCacheInput) SetGatewayARN(v string) *ResetCacheInput

SetGatewayARN sets the GatewayARN field's value.

func (ResetCacheInput) String

func (s ResetCacheInput) String() string

String returns the string representation

func (*ResetCacheInput) Validate

func (s *ResetCacheInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (ResetCacheOutput) GoString

func (s ResetCacheOutput) GoString() string

GoString returns the string representation

func (*ResetCacheOutput) SetGatewayARN

func (s *ResetCacheOutput) SetGatewayARN(v string) *ResetCacheOutput

SetGatewayARN sets the GatewayARN field's value.

func (ResetCacheOutput) String

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 tape gateway.
    //
    // GatewayARN is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the virtual tape you want to retrieve from
    // the virtual tape shelf (VTS).
    //
    // TapeARN is a required field
    TapeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

RetrieveTapeArchiveInput

func (RetrieveTapeArchiveInput) GoString

func (s RetrieveTapeArchiveInput) GoString() string

GoString returns the string representation

func (*RetrieveTapeArchiveInput) SetGatewayARN

func (s *RetrieveTapeArchiveInput) SetGatewayARN(v string) *RetrieveTapeArchiveInput

SetGatewayARN sets the GatewayARN field's value.

func (*RetrieveTapeArchiveInput) SetTapeARN

func (s *RetrieveTapeArchiveInput) SetTapeARN(v string) *RetrieveTapeArchiveInput

SetTapeARN sets the TapeARN field's value.

func (RetrieveTapeArchiveInput) String

func (s RetrieveTapeArchiveInput) String() string

String returns the string representation

func (*RetrieveTapeArchiveInput) Validate

func (s *RetrieveTapeArchiveInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RetrieveTapeArchiveOutput

type RetrieveTapeArchiveOutput struct {

    // The Amazon Resource Name (ARN) of the retrieved virtual tape.
    TapeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

RetrieveTapeArchiveOutput

func (RetrieveTapeArchiveOutput) GoString

func (s RetrieveTapeArchiveOutput) GoString() string

GoString returns the string representation

func (*RetrieveTapeArchiveOutput) SetTapeARN

func (s *RetrieveTapeArchiveOutput) SetTapeARN(v string) *RetrieveTapeArchiveOutput

SetTapeARN sets the TapeARN field's value.

func (RetrieveTapeArchiveOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The Amazon Resource Name (ARN) of the virtual tape for which you want to
    // retrieve the recovery point.
    //
    // TapeARN is a required field
    TapeARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

RetrieveTapeRecoveryPointInput

func (RetrieveTapeRecoveryPointInput) GoString

func (s RetrieveTapeRecoveryPointInput) GoString() string

GoString returns the string representation

func (*RetrieveTapeRecoveryPointInput) SetGatewayARN

func (s *RetrieveTapeRecoveryPointInput) SetGatewayARN(v string) *RetrieveTapeRecoveryPointInput

SetGatewayARN sets the GatewayARN field's value.

func (*RetrieveTapeRecoveryPointInput) SetTapeARN

func (s *RetrieveTapeRecoveryPointInput) SetTapeARN(v string) *RetrieveTapeRecoveryPointInput

SetTapeARN sets the TapeARN field's value.

func (RetrieveTapeRecoveryPointInput) String

func (s RetrieveTapeRecoveryPointInput) String() string

String returns the string representation

func (*RetrieveTapeRecoveryPointInput) Validate

func (s *RetrieveTapeRecoveryPointInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RetrieveTapeRecoveryPointOutput

type RetrieveTapeRecoveryPointOutput struct {

    // The Amazon Resource Name (ARN) of the virtual tape for which the recovery
    // point was retrieved.
    TapeARN *string `min:"50" type:"string"`
    // contains filtered or unexported fields
}

RetrieveTapeRecoveryPointOutput

func (RetrieveTapeRecoveryPointOutput) GoString

func (s RetrieveTapeRecoveryPointOutput) GoString() string

GoString returns the string representation

func (*RetrieveTapeRecoveryPointOutput) SetTapeARN

func (s *RetrieveTapeRecoveryPointOutput) SetTapeARN(v string) *RetrieveTapeRecoveryPointOutput

SetTapeARN sets the TapeARN field's value.

func (RetrieveTapeRecoveryPointOutput) String

func (s RetrieveTapeRecoveryPointOutput) String() string

String returns the string representation

type SMBFileShareInfo

type SMBFileShareInfo struct {

    // The authentication method of the file share.
    //
    // Valid values are ActiveDirectory or GuestAccess. The default is ActiveDirectory.
    Authentication *string `min:"5" type:"string"`

    // The default storage class for objects put into an Amazon S3 bucket by the
    // file gateway. Possible values are S3_STANDARD, S3_STANDARD_IA, or S3_ONEZONE_IA.
    // If this field is not populated, the default value S3_STANDARD is used. Optional.
    DefaultStorageClass *string `min:"5" type:"string"`

    // The Amazon Resource Name (ARN) of the file share.
    FileShareARN *string `min:"50" type:"string"`

    // The ID of the file share.
    FileShareId *string `min:"12" type:"string"`

    // The status of the file share. Possible values are CREATING, UPDATING, AVAILABLE
    // and DELETING.
    FileShareStatus *string `min:"3" type:"string"`

    // 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 `min:"50" type:"string"`

    // A value that enables guessing of the MIME type for uploaded objects based
    // on file extensions. Set this value to true to enable MIME type guessing,
    // and otherwise to false. The default value is true.
    GuessMIMETypeEnabled *bool `type:"boolean"`

    // A list of users or groups in the Active Directory that are not allowed to
    // access the file share. A group must be prefixed with the @ character. For
    // example @group1. Can only be set if Authentication is set to ActiveDirectory.
    InvalidUserList []*string `type:"list"`

    // True to use Amazon S3 server-side encryption with your own AWS KMS key, or
    // false to use a key managed by Amazon S3. Optional.
    KMSEncrypted *bool `type:"boolean"`

    // The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server
    // side encryption. This value can only be set when KMSEncrypted is true. Optional.
    KMSKey *string `min:"20" type:"string"`

    // The ARN of the backend storage used for storing file data.
    LocationARN *string `min:"16" type:"string"`

    // A value that sets the access control list permission for objects in the S3
    // bucket that a file gateway puts objects into. The default value is "private".
    ObjectACL *string `type:"string" enum:"ObjectACL"`

    // The file share path used by the SMB client to identify the mount point.
    Path *string `type:"string"`

    // A value that sets the write status of a file share. This value is true if
    // the write status is read-only, and otherwise false.
    ReadOnly *bool `type:"boolean"`

    // A value that sets the access control list permission for objects in the Amazon
    // S3 bucket that a file gateway puts objects into. The default value is private.
    RequesterPays *bool `type:"boolean"`

    // The ARN of the IAM role that file gateway assumes when it accesses the underlying
    // storage.
    Role *string `min:"20" type:"string"`

    // A list of users or groups in the Active Directory that are allowed to access
    // the file share. A group must be prefixed with the @ character. For example
    // @group1. Can only be set if Authentication is set to ActiveDirectory.
    ValidUserList []*string `type:"list"`
    // contains filtered or unexported fields
}

The Windows file permissions and ownership information assigned, by default, to native S3 objects when file gateway discovers them in S3 buckets. This operation is only supported for file gateways.

func (SMBFileShareInfo) GoString

func (s SMBFileShareInfo) GoString() string

GoString returns the string representation

func (*SMBFileShareInfo) SetAuthentication

func (s *SMBFileShareInfo) SetAuthentication(v string) *SMBFileShareInfo

SetAuthentication sets the Authentication field's value.

func (*SMBFileShareInfo) SetDefaultStorageClass

func (s *SMBFileShareInfo) SetDefaultStorageClass(v string) *SMBFileShareInfo

SetDefaultStorageClass sets the DefaultStorageClass field's value.

func (*SMBFileShareInfo) SetFileShareARN

func (s *SMBFileShareInfo) SetFileShareARN(v string) *SMBFileShareInfo

SetFileShareARN sets the FileShareARN field's value.

func (*SMBFileShareInfo) SetFileShareId

func (s *SMBFileShareInfo) SetFileShareId(v string) *SMBFileShareInfo

SetFileShareId sets the FileShareId field's value.

func (*SMBFileShareInfo) SetFileShareStatus

func (s *SMBFileShareInfo) SetFileShareStatus(v string) *SMBFileShareInfo

SetFileShareStatus sets the FileShareStatus field's value.

func (*SMBFileShareInfo) SetGatewayARN

func (s *SMBFileShareInfo) SetGatewayARN(v string) *SMBFileShareInfo

SetGatewayARN sets the GatewayARN field's value.

func (*SMBFileShareInfo) SetGuessMIMETypeEnabled

func (s *SMBFileShareInfo) SetGuessMIMETypeEnabled(v bool) *SMBFileShareInfo

SetGuessMIMETypeEnabled sets the GuessMIMETypeEnabled field's value.

func (*SMBFileShareInfo) SetInvalidUserList

func (s *SMBFileShareInfo) SetInvalidUserList(v []*string) *SMBFileShareInfo

SetInvalidUserList sets the InvalidUserList field's value.

func (*SMBFileShareInfo) SetKMSEncrypted

func (s *SMBFileShareInfo) SetKMSEncrypted(v bool) *SMBFileShareInfo

SetKMSEncrypted sets the KMSEncrypted field's value.

func (*SMBFileShareInfo) SetKMSKey

func (s *SMBFileShareInfo) SetKMSKey(v string) *SMBFileShareInfo

SetKMSKey sets the KMSKey field's value.

func (*SMBFileShareInfo) SetLocationARN

func (s *SMBFileShareInfo) SetLocationARN(v string) *SMBFileShareInfo

SetLocationARN sets the LocationARN field's value.

func (*SMBFileShareInfo) SetObjectACL

func (s *SMBFileShareInfo) SetObjectACL(v string) *SMBFileShareInfo

SetObjectACL sets the ObjectACL field's value.

func (*SMBFileShareInfo) SetPath

func (s *SMBFileShareInfo) SetPath(v string) *SMBFileShareInfo

SetPath sets the Path field's value.

func (*SMBFileShareInfo) SetReadOnly

func (s *SMBFileShareInfo) SetReadOnly(v bool) *SMBFileShareInfo

SetReadOnly sets the ReadOnly field's value.

func (*SMBFileShareInfo) SetRequesterPays

func (s *SMBFileShareInfo) SetRequesterPays(v bool) *SMBFileShareInfo

SetRequesterPays sets the RequesterPays field's value.

func (*SMBFileShareInfo) SetRole

func (s *SMBFileShareInfo) SetRole(v string) *SMBFileShareInfo

SetRole sets the Role field's value.

func (*SMBFileShareInfo) SetValidUserList

func (s *SMBFileShareInfo) SetValidUserList(v []*string) *SMBFileShareInfo

SetValidUserList sets the ValidUserList field's value.

func (SMBFileShareInfo) String

func (s SMBFileShareInfo) String() string

String returns the string representation

type SetLocalConsolePasswordInput

type SetLocalConsolePasswordInput 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The password you want to set for your VM local console.
    //
    // LocalConsolePassword is a required field
    LocalConsolePassword *string `min:"6" type:"string" required:"true"`
    // contains filtered or unexported fields
}

SetLocalConsolePasswordInput

func (SetLocalConsolePasswordInput) GoString

func (s SetLocalConsolePasswordInput) GoString() string

GoString returns the string representation

func (*SetLocalConsolePasswordInput) SetGatewayARN

func (s *SetLocalConsolePasswordInput) SetGatewayARN(v string) *SetLocalConsolePasswordInput

SetGatewayARN sets the GatewayARN field's value.

func (*SetLocalConsolePasswordInput) SetLocalConsolePassword

func (s *SetLocalConsolePasswordInput) SetLocalConsolePassword(v string) *SetLocalConsolePasswordInput

SetLocalConsolePassword sets the LocalConsolePassword field's value.

func (SetLocalConsolePasswordInput) String

func (s SetLocalConsolePasswordInput) String() string

String returns the string representation

func (*SetLocalConsolePasswordInput) Validate

func (s *SetLocalConsolePasswordInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SetLocalConsolePasswordOutput

type SetLocalConsolePasswordOutput 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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (SetLocalConsolePasswordOutput) GoString

func (s SetLocalConsolePasswordOutput) GoString() string

GoString returns the string representation

func (*SetLocalConsolePasswordOutput) SetGatewayARN

func (s *SetLocalConsolePasswordOutput) SetGatewayARN(v string) *SetLocalConsolePasswordOutput

SetGatewayARN sets the GatewayARN field's value.

func (SetLocalConsolePasswordOutput) String

func (s SetLocalConsolePasswordOutput) String() string

String returns the string representation

type SetSMBGuestPasswordInput

type SetSMBGuestPasswordInput struct {

    // The Amazon Resource Name (ARN) of the file gateway the SMB file share is
    // associated with.
    //
    // GatewayARN is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`

    // The password that you want to set for your SMB Server.
    //
    // Password is a required field
    Password *string `min:"6" type:"string" required:"true"`
    // contains filtered or unexported fields
}

SetSMBGuestPasswordInput

func (SetSMBGuestPasswordInput) GoString

func (s SetSMBGuestPasswordInput) GoString() string

GoString returns the string representation

func (*SetSMBGuestPasswordInput) SetGatewayARN

func (s *SetSMBGuestPasswordInput) SetGatewayARN(v string) *SetSMBGuestPasswordInput

SetGatewayARN sets the GatewayARN field's value.

func (*SetSMBGuestPasswordInput) SetPassword

func (s *SetSMBGuestPasswordInput) SetPassword(v string) *SetSMBGuestPasswordInput

SetPassword sets the Password field's value.

func (SetSMBGuestPasswordInput) String

func (s SetSMBGuestPasswordInput) String() string

String returns the string representation

func (*SetSMBGuestPasswordInput) Validate

func (s *SetSMBGuestPasswordInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SetSMBGuestPasswordOutput

type SetSMBGuestPasswordOutput 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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

func (SetSMBGuestPasswordOutput) GoString

func (s SetSMBGuestPasswordOutput) GoString() string

GoString returns the string representation

func (*SetSMBGuestPasswordOutput) SetGatewayARN

func (s *SetSMBGuestPasswordOutput) SetGatewayARN(v string) *SetSMBGuestPasswordOutput

SetGatewayARN sets the GatewayARN field's value.

func (SetSMBGuestPasswordOutput) String

func (s SetSMBGuestPasswordOutput) 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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway to shut down.

func (ShutdownGatewayInput) GoString

func (s ShutdownGatewayInput) GoString() string

GoString returns the string representation

func (*ShutdownGatewayInput) SetGatewayARN

func (s *ShutdownGatewayInput) SetGatewayARN(v string) *ShutdownGatewayInput

SetGatewayARN sets the GatewayARN field's value.

func (ShutdownGatewayInput) String

func (s ShutdownGatewayInput) String() string

String returns the string representation

func (*ShutdownGatewayInput) Validate

func (s *ShutdownGatewayInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway that was shut down.

func (ShutdownGatewayOutput) GoString

func (s ShutdownGatewayOutput) GoString() string

GoString returns the string representation

func (*ShutdownGatewayOutput) SetGatewayARN

func (s *ShutdownGatewayOutput) SetGatewayARN(v string) *ShutdownGatewayOutput

SetGatewayARN sets the GatewayARN field's value.

func (ShutdownGatewayOutput) String

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 is a required field
    GatewayARN *string `min:"50" type:"string" required:"true"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway to start.

func (StartGatewayInput) GoString

func (s StartGatewayInput) GoString() string

GoString returns the string representation

func (*StartGatewayInput) SetGatewayARN

func (s *StartGatewayInput) SetGatewayARN(v string) *StartGatewayInput

SetGatewayARN sets the GatewayARN field's value.

func (StartGatewayInput) String

func (s StartGatewayInput) String() string

String returns the string representation

func (*StartGatewayInput) Validate

func (s *StartGatewayInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

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 `min:"50" type:"string"`
    // contains filtered or unexported fields
}

A JSON object containing the of the gateway that was restarted.

func (StartGatewayOutput) GoString

func (s StartGatewayOutput) GoString() string

GoString returns the string representation

func (*StartGatewayOutput) SetGatewayARN

func (s *StartGatewayOutput) SetGatewayARN(v string) *StartGatewayOutput

SetGatewayARN sets the GatewayARN field's value.

func (StartGatewayOutput) String

func (s StartGatewayOutput) String() string

String returns the string representation

type StorageGateway

type StorageGateway struct {
    *client.Client
}

StorageGateway provides the API operation methods for making requests to AWS Storage Gateway. See this package's package overview docs for details on the service.

StorageGateway methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

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

New creates a new instance of the StorageGateway client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a StorageGateway client from just a session.
svc := storagegateway.New(mySession)

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

func (*StorageGateway) ActivateGateway

func (c *StorageGateway) ActivateGateway(input *ActivateGatewayInput) (*ActivateGatewayOutput, error)

ActivateGateway API operation for AWS Storage Gateway.

Activates the gateway you previously deployed on your host. In the activation process, you specify information such as the region you want to use for storing snapshots or tapes, 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ActivateGateway for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway

Example (Shared00)

To activate the gateway Activates the gateway you previously deployed on your host.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ActivateGatewayInput{
    ActivationKey:     aws.String("29AV1-3OFV9-VVIUB-NKT0I-LRO6V"),
    GatewayName:       aws.String("My_Gateway"),
    GatewayRegion:     aws.String("us-east-1"),
    GatewayTimezone:   aws.String("GMT-12:00"),
    GatewayType:       aws.String("STORED"),
    MediumChangerType: aws.String("AWS-Gateway-VTL"),
    TapeDriveType:     aws.String("IBM-ULT3580-TD5"),
}

result, err := svc.ActivateGateway(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ActivateGatewayRequest

func (c *StorageGateway) ActivateGatewayRequest(input *ActivateGatewayInput) (req *request.Request, output *ActivateGatewayOutput)

ActivateGatewayRequest generates a "aws/request.Request" representing the client's request for the ActivateGateway operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ActivateGateway for more information on using the ActivateGateway API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ActivateGatewayRequest method.
req, resp := client.ActivateGatewayRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ActivateGateway

func (*StorageGateway) ActivateGatewayWithContext

func (c *StorageGateway) ActivateGatewayWithContext(ctx aws.Context, input *ActivateGatewayInput, opts ...request.Option) (*ActivateGatewayOutput, error)

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

See ActivateGateway for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) AddCache

func (c *StorageGateway) AddCache(input *AddCacheInput) (*AddCacheOutput, error)

AddCache API operation for AWS Storage Gateway.

Configures one or more gateway local disks as cache for a gateway. This operation is only supported in the cached volume, tape and file gateway type (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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation AddCache for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache

Example (Shared00)

To add a cache The following example shows a request that activates a gateway-stored volume.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.AddCacheInput{
    DiskIds: []*string{
        aws.String("pci-0000:03:00.0-scsi-0:0:0:0"),
        aws.String("pci-0000:03:00.0-scsi-0:0:1:0"),
    },
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.AddCache(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) AddCacheRequest

func (c *StorageGateway) AddCacheRequest(input *AddCacheInput) (req *request.Request, output *AddCacheOutput)

AddCacheRequest generates a "aws/request.Request" representing the client's request for the AddCache operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddCache for more information on using the AddCache API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddCacheRequest method.
req, resp := client.AddCacheRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddCache

func (*StorageGateway) AddCacheWithContext

func (c *StorageGateway) AddCacheWithContext(ctx aws.Context, input *AddCacheInput, opts ...request.Option) (*AddCacheOutput, error)

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

See AddCache for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) AddTagsToResource

func (c *StorageGateway) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error)

AddTagsToResource API operation for AWS Storage Gateway.

Adds one or more tags to the specified resource. You use tags to add metadata to resources, which you can use to categorize these resources. For example, you can categorize resources by purpose, owner, environment, or team. Each tag consists of a key and a value, which you define. You can add tags to the following AWS Storage Gateway resources:

* Storage gateways of all types

* Storage Volumes

* Virtual Tapes

You can create a maximum of 10 tags for each resource. Virtual tapes and storage volumes that are recovered to a new gateway maintain their tags.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation AddTagsToResource for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddTagsToResource

Example (Shared00)

To add tags to resource Adds one or more tags to the specified resource.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.AddTagsToResourceInput{
    ResourceARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"),
    Tags: []*storagegateway.Tag{
        {
            Key:   aws.String("Dev Gatgeway Region"),
            Value: aws.String("East Coast"),
        },
    },
}

result, err := svc.AddTagsToResource(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) AddTagsToResourceRequest

func (c *StorageGateway) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *request.Request, output *AddTagsToResourceOutput)

AddTagsToResourceRequest generates a "aws/request.Request" representing the client's request for the AddTagsToResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddTagsToResource for more information on using the AddTagsToResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddTagsToResourceRequest method.
req, resp := client.AddTagsToResourceRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddTagsToResource

func (*StorageGateway) AddTagsToResourceWithContext

func (c *StorageGateway) AddTagsToResourceWithContext(ctx aws.Context, input *AddTagsToResourceInput, opts ...request.Option) (*AddTagsToResourceOutput, error)

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

See AddTagsToResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) AddUploadBuffer

func (c *StorageGateway) AddUploadBuffer(input *AddUploadBufferInput) (*AddUploadBufferOutput, error)

AddUploadBuffer API operation for AWS Storage Gateway.

Configures one or more gateway local disks as upload buffer for a specified gateway. This operation is supported for the stored volume, cached volume and tape gateway types.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation AddUploadBuffer for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddUploadBuffer

Example (Shared00)

To add upload buffer on local disk Configures one or more gateway local disks as upload buffer for a specified gateway.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.AddUploadBufferInput{
    DiskIds: []*string{
        aws.String("pci-0000:03:00.0-scsi-0:0:0:0"),
        aws.String("pci-0000:03:00.0-scsi-0:0:1:0"),
    },
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.AddUploadBuffer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) AddUploadBufferRequest

func (c *StorageGateway) AddUploadBufferRequest(input *AddUploadBufferInput) (req *request.Request, output *AddUploadBufferOutput)

AddUploadBufferRequest generates a "aws/request.Request" representing the client's request for the AddUploadBuffer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddUploadBuffer for more information on using the AddUploadBuffer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddUploadBufferRequest method.
req, resp := client.AddUploadBufferRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddUploadBuffer

func (*StorageGateway) AddUploadBufferWithContext

func (c *StorageGateway) AddUploadBufferWithContext(ctx aws.Context, input *AddUploadBufferInput, opts ...request.Option) (*AddUploadBufferOutput, error)

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

See AddUploadBuffer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) AddWorkingStorage

func (c *StorageGateway) AddWorkingStorage(input *AddWorkingStorageInput) (*AddWorkingStorageOutput, error)

AddWorkingStorage API operation for AWS Storage Gateway.

Configures one or more gateway local disks as working storage for a gateway. This operation is only supported in the stored volume gateway type. This operation is deprecated in cached volume 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation AddWorkingStorage for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddWorkingStorage

Example (Shared00)

To add storage on local disk Configures one or more gateway local disks as working storage for a gateway. (Working storage is also referred to as upload buffer.)

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.AddWorkingStorageInput{
    DiskIds: []*string{
        aws.String("pci-0000:03:00.0-scsi-0:0:0:0"),
        aws.String("pci-0000:03:00.0-scsi-0:0:1:0"),
    },
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.AddWorkingStorage(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) AddWorkingStorageRequest

func (c *StorageGateway) AddWorkingStorageRequest(input *AddWorkingStorageInput) (req *request.Request, output *AddWorkingStorageOutput)

AddWorkingStorageRequest generates a "aws/request.Request" representing the client's request for the AddWorkingStorage operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See AddWorkingStorage for more information on using the AddWorkingStorage API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the AddWorkingStorageRequest method.
req, resp := client.AddWorkingStorageRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/AddWorkingStorage

func (*StorageGateway) AddWorkingStorageWithContext

func (c *StorageGateway) AddWorkingStorageWithContext(ctx aws.Context, input *AddWorkingStorageInput, opts ...request.Option) (*AddWorkingStorageOutput, error)

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

See AddWorkingStorage for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CancelArchival

func (c *StorageGateway) CancelArchival(input *CancelArchivalInput) (*CancelArchivalOutput, error)

CancelArchival API operation for AWS Storage Gateway.

Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CancelArchival for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchival

Example (Shared00)

To cancel virtual tape archiving Cancels archiving of a virtual tape to the virtual tape shelf (VTS) after the archiving process is initiated.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CancelArchivalInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    TapeARN:    aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"),
}

result, err := svc.CancelArchival(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CancelArchivalRequest

func (c *StorageGateway) CancelArchivalRequest(input *CancelArchivalInput) (req *request.Request, output *CancelArchivalOutput)

CancelArchivalRequest generates a "aws/request.Request" representing the client's request for the CancelArchival operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CancelArchival for more information on using the CancelArchival API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CancelArchivalRequest method.
req, resp := client.CancelArchivalRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchival

func (*StorageGateway) CancelArchivalWithContext

func (c *StorageGateway) CancelArchivalWithContext(ctx aws.Context, input *CancelArchivalInput, opts ...request.Option) (*CancelArchivalOutput, error)

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

See CancelArchival for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CancelRetrieval

func (c *StorageGateway) CancelRetrieval(input *CancelRetrievalInput) (*CancelRetrievalOutput, error)

CancelRetrieval API operation for AWS Storage Gateway.

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. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CancelRetrieval for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelRetrieval

Example (Shared00)

To cancel virtual tape retrieval Cancels retrieval of a virtual tape from the virtual tape shelf (VTS) to a gateway after the retrieval process is initiated.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CancelRetrievalInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    TapeARN:    aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"),
}

result, err := svc.CancelRetrieval(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CancelRetrievalRequest

func (c *StorageGateway) CancelRetrievalRequest(input *CancelRetrievalInput) (req *request.Request, output *CancelRetrievalOutput)

CancelRetrievalRequest generates a "aws/request.Request" representing the client's request for the CancelRetrieval operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CancelRetrieval for more information on using the CancelRetrieval API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CancelRetrievalRequest method.
req, resp := client.CancelRetrievalRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelRetrieval

func (*StorageGateway) CancelRetrievalWithContext

func (c *StorageGateway) CancelRetrievalWithContext(ctx aws.Context, input *CancelRetrievalInput, opts ...request.Option) (*CancelRetrievalOutput, error)

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

See CancelRetrieval for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateCachediSCSIVolume

func (c *StorageGateway) CreateCachediSCSIVolume(input *CreateCachediSCSIVolumeInput) (*CreateCachediSCSIVolumeOutput, error)

CreateCachediSCSIVolume API operation for AWS Storage Gateway.

Creates a cached volume on a specified cached volume gateway. This operation is only supported in the cached volume gateway type.

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, the gateway creates the volume and returns information about it. This information includes the volume Amazon Resource Name (ARN), its size, and the iSCSI target ARN that initiators can use to connect to the volume target.

Optionally, you can provide the ARN for an existing volume as the SourceVolumeARN for this cached volume, which creates an exact copy of the existing volume’s latest recovery point. The VolumeSizeInBytes value must be equal to or larger than the size of the copied volume, in bytes.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateCachediSCSIVolume for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateCachediSCSIVolume

Example (Shared00)

To create a cached iSCSI volume Creates a cached volume on a specified cached gateway.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CreateCachediSCSIVolumeInput{
    ClientToken:        aws.String("cachedvol112233"),
    GatewayARN:         aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    NetworkInterfaceId: aws.String("10.1.1.1"),
    SnapshotId:         aws.String("snap-f47b7b94"),
    TargetName:         aws.String("my-volume"),
    VolumeSizeInBytes:  aws.Int64(536870912000),
}

result, err := svc.CreateCachediSCSIVolume(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CreateCachediSCSIVolumeRequest

func (c *StorageGateway) CreateCachediSCSIVolumeRequest(input *CreateCachediSCSIVolumeInput) (req *request.Request, output *CreateCachediSCSIVolumeOutput)

CreateCachediSCSIVolumeRequest generates a "aws/request.Request" representing the client's request for the CreateCachediSCSIVolume operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCachediSCSIVolume for more information on using the CreateCachediSCSIVolume API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCachediSCSIVolumeRequest method.
req, resp := client.CreateCachediSCSIVolumeRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateCachediSCSIVolume

func (*StorageGateway) CreateCachediSCSIVolumeWithContext

func (c *StorageGateway) CreateCachediSCSIVolumeWithContext(ctx aws.Context, input *CreateCachediSCSIVolumeInput, opts ...request.Option) (*CreateCachediSCSIVolumeOutput, error)

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

See CreateCachediSCSIVolume for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateNFSFileShare

func (c *StorageGateway) CreateNFSFileShare(input *CreateNFSFileShareInput) (*CreateNFSFileShareOutput, error)

CreateNFSFileShare API operation for AWS Storage Gateway.

Creates a Network File System (NFS) file share on an existing file gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway exposes file shares using a NFS interface. This operation is only supported for file gateways.

File gateway requires AWS Security Token Service (AWS STS) to be activated to enable you create a file share. Make sure AWS STS is activated in the region you are creating your file gateway in. If AWS STS is not activated in the region, activate it. For information about how to activate AWS STS, see Activating and Deactivating AWS STS in an AWS Region in the AWS Identity and Access Management User Guide.

File gateway does not support creating hard or symbolic links on a file share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateNFSFileShare for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateNFSFileShare

func (*StorageGateway) CreateNFSFileShareRequest

func (c *StorageGateway) CreateNFSFileShareRequest(input *CreateNFSFileShareInput) (req *request.Request, output *CreateNFSFileShareOutput)

CreateNFSFileShareRequest generates a "aws/request.Request" representing the client's request for the CreateNFSFileShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateNFSFileShare for more information on using the CreateNFSFileShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateNFSFileShareRequest method.
req, resp := client.CreateNFSFileShareRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateNFSFileShare

func (*StorageGateway) CreateNFSFileShareWithContext

func (c *StorageGateway) CreateNFSFileShareWithContext(ctx aws.Context, input *CreateNFSFileShareInput, opts ...request.Option) (*CreateNFSFileShareOutput, error)

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

See CreateNFSFileShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateSMBFileShare

func (c *StorageGateway) CreateSMBFileShare(input *CreateSMBFileShareInput) (*CreateSMBFileShareOutput, error)

CreateSMBFileShare API operation for AWS Storage Gateway.

Creates a Server Message Block (SMB) file share on an existing file gateway. In Storage Gateway, a file share is a file system mount point backed by Amazon S3 cloud storage. Storage Gateway expose file shares using a SMB interface. This operation is only supported for file gateways.

File gateways require AWS Security Token Service (AWS STS) to be activated to enable you to create a file share. Make sure that AWS STS is activated in the AWS Region you are creating your file gateway in. If AWS STS is not activated in this AWS Region, activate it. For information about how to activate AWS STS, see Activating and Deactivating AWS STS in an AWS Region (http://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html) in the AWS Identity and Access Management User Guide.

File gateways don't support creating hard or symbolic links on a file share.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateSMBFileShare for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSMBFileShare

func (*StorageGateway) CreateSMBFileShareRequest

func (c *StorageGateway) CreateSMBFileShareRequest(input *CreateSMBFileShareInput) (req *request.Request, output *CreateSMBFileShareOutput)

CreateSMBFileShareRequest generates a "aws/request.Request" representing the client's request for the CreateSMBFileShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSMBFileShare for more information on using the CreateSMBFileShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSMBFileShareRequest method.
req, resp := client.CreateSMBFileShareRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSMBFileShare

func (*StorageGateway) CreateSMBFileShareWithContext

func (c *StorageGateway) CreateSMBFileShareWithContext(ctx aws.Context, input *CreateSMBFileShareInput, opts ...request.Option) (*CreateSMBFileShareOutput, error)

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

See CreateSMBFileShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateSnapshot

func (c *StorageGateway) CreateSnapshot(input *CreateSnapshotInput) (*CreateSnapshotOutput, error)

CreateSnapshot API operation for AWS Storage Gateway.

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 Editing a Snapshot Schedule (http://docs.aws.amazon.com/storagegateway/latest/userguide/managing-volumes.html#SchedulingSnapshot).

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. This operation is only supported in stored and cached volume gateway type.

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).

Volume and snapshot IDs are changing to a longer length ID format. For more information, see the important note on the Welcome (http://docs.aws.amazon.com/storagegateway/latest/APIReference/Welcome.html) page.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateSnapshot for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

* ErrCodeServiceUnavailableError "ServiceUnavailableError"
An internal server error has occurred because the service is unavailable.
For more information, see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshot

Example (Shared00)

To create a snapshot of a gateway volume Initiates an ad-hoc snapshot of a gateway volume.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CreateSnapshotInput{
    SnapshotDescription: aws.String("My root volume snapshot as of 10/03/2017"),
    VolumeARN:           aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
}

result, err := svc.CreateSnapshot(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        case storagegateway.ErrCodeServiceUnavailableError:
            fmt.Println(storagegateway.ErrCodeServiceUnavailableError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CreateSnapshotFromVolumeRecoveryPoint

func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPoint(input *CreateSnapshotFromVolumeRecoveryPointInput) (*CreateSnapshotFromVolumeRecoveryPointOutput, error)

CreateSnapshotFromVolumeRecoveryPoint API operation for AWS Storage Gateway.

Initiates a snapshot of a gateway from a volume recovery point. This operation is only supported in the cached volume gateway type.

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 cached volume gateway, 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 the gateway takes a snapshot of the specified volume, the snapshot and its description appear in the AWS Storage Gateway console. In response, the 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateSnapshotFromVolumeRecoveryPoint for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

* ErrCodeServiceUnavailableError "ServiceUnavailableError"
An internal server error has occurred because the service is unavailable.
For more information, see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotFromVolumeRecoveryPoint

Example (Shared00)

To create a snapshot of a gateway volume Initiates a snapshot of a gateway from a volume recovery point.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CreateSnapshotFromVolumeRecoveryPointInput{
    SnapshotDescription: aws.String("My root volume snapshot as of 2017-06-30T10:10:10.000Z"),
    VolumeARN:           aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
}

result, err := svc.CreateSnapshotFromVolumeRecoveryPoint(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        case storagegateway.ErrCodeServiceUnavailableError:
            fmt.Println(storagegateway.ErrCodeServiceUnavailableError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest

func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointRequest(input *CreateSnapshotFromVolumeRecoveryPointInput) (req *request.Request, output *CreateSnapshotFromVolumeRecoveryPointOutput)

CreateSnapshotFromVolumeRecoveryPointRequest generates a "aws/request.Request" representing the client's request for the CreateSnapshotFromVolumeRecoveryPoint operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSnapshotFromVolumeRecoveryPoint for more information on using the CreateSnapshotFromVolumeRecoveryPoint API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSnapshotFromVolumeRecoveryPointRequest method.
req, resp := client.CreateSnapshotFromVolumeRecoveryPointRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshotFromVolumeRecoveryPoint

func (*StorageGateway) CreateSnapshotFromVolumeRecoveryPointWithContext

func (c *StorageGateway) CreateSnapshotFromVolumeRecoveryPointWithContext(ctx aws.Context, input *CreateSnapshotFromVolumeRecoveryPointInput, opts ...request.Option) (*CreateSnapshotFromVolumeRecoveryPointOutput, error)

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

See CreateSnapshotFromVolumeRecoveryPoint for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateSnapshotRequest

func (c *StorageGateway) CreateSnapshotRequest(input *CreateSnapshotInput) (req *request.Request, output *CreateSnapshotOutput)

CreateSnapshotRequest generates a "aws/request.Request" representing the client's request for the CreateSnapshot operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateSnapshot for more information on using the CreateSnapshot API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateSnapshotRequest method.
req, resp := client.CreateSnapshotRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateSnapshot

func (*StorageGateway) CreateSnapshotWithContext

func (c *StorageGateway) CreateSnapshotWithContext(ctx aws.Context, input *CreateSnapshotInput, opts ...request.Option) (*CreateSnapshotOutput, error)

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

See CreateSnapshot for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateStorediSCSIVolume

func (c *StorageGateway) CreateStorediSCSIVolume(input *CreateStorediSCSIVolumeInput) (*CreateStorediSCSIVolumeOutput, error)

CreateStorediSCSIVolume API operation for AWS Storage Gateway.

Creates a volume on a specified gateway. This operation is only supported in the stored volume gateway type.

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, the 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateStorediSCSIVolume for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateStorediSCSIVolume

Example (Shared00)

To create a stored iSCSI volume Creates a stored volume on a specified stored gateway.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CreateStorediSCSIVolumeInput{
    DiskId:               aws.String("pci-0000:03:00.0-scsi-0:0:0:0"),
    GatewayARN:           aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    NetworkInterfaceId:   aws.String("10.1.1.1"),
    PreserveExistingData: aws.Bool(true),
    SnapshotId:           aws.String("snap-f47b7b94"),
    TargetName:           aws.String("my-volume"),
}

result, err := svc.CreateStorediSCSIVolume(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CreateStorediSCSIVolumeRequest

func (c *StorageGateway) CreateStorediSCSIVolumeRequest(input *CreateStorediSCSIVolumeInput) (req *request.Request, output *CreateStorediSCSIVolumeOutput)

CreateStorediSCSIVolumeRequest generates a "aws/request.Request" representing the client's request for the CreateStorediSCSIVolume operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateStorediSCSIVolume for more information on using the CreateStorediSCSIVolume API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateStorediSCSIVolumeRequest method.
req, resp := client.CreateStorediSCSIVolumeRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateStorediSCSIVolume

func (*StorageGateway) CreateStorediSCSIVolumeWithContext

func (c *StorageGateway) CreateStorediSCSIVolumeWithContext(ctx aws.Context, input *CreateStorediSCSIVolumeInput, opts ...request.Option) (*CreateStorediSCSIVolumeOutput, error)

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

See CreateStorediSCSIVolume for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateTapeWithBarcode

func (c *StorageGateway) CreateTapeWithBarcode(input *CreateTapeWithBarcodeInput) (*CreateTapeWithBarcodeOutput, error)

CreateTapeWithBarcode API operation for AWS Storage Gateway.

Creates a virtual tape by using your own barcode. You write data to the virtual tape and then archive the tape. A barcode is unique and can not be reused if it has already been used on a tape . This applies to barcodes used on deleted tapes. This operation is only supported in the tape gateway type.

Cache storage must be allocated to the gateway before you can create a virtual tape. Use the AddCache operation to add cache storage to a gateway.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateTapeWithBarcode for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapeWithBarcode

Example (Shared00)

To create a virtual tape using a barcode Creates a virtual tape by using your own barcode.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CreateTapeWithBarcodeInput{
    GatewayARN:      aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    TapeBarcode:     aws.String("TEST12345"),
    TapeSizeInBytes: aws.Int64(107374182400),
}

result, err := svc.CreateTapeWithBarcode(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CreateTapeWithBarcodeRequest

func (c *StorageGateway) CreateTapeWithBarcodeRequest(input *CreateTapeWithBarcodeInput) (req *request.Request, output *CreateTapeWithBarcodeOutput)

CreateTapeWithBarcodeRequest generates a "aws/request.Request" representing the client's request for the CreateTapeWithBarcode operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateTapeWithBarcode for more information on using the CreateTapeWithBarcode API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateTapeWithBarcodeRequest method.
req, resp := client.CreateTapeWithBarcodeRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapeWithBarcode

func (*StorageGateway) CreateTapeWithBarcodeWithContext

func (c *StorageGateway) CreateTapeWithBarcodeWithContext(ctx aws.Context, input *CreateTapeWithBarcodeInput, opts ...request.Option) (*CreateTapeWithBarcodeOutput, error)

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

See CreateTapeWithBarcode for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) CreateTapes

func (c *StorageGateway) CreateTapes(input *CreateTapesInput) (*CreateTapesOutput, error)

CreateTapes API operation for AWS Storage Gateway.

Creates one or more virtual tapes. You write data to the virtual tapes and then archive the tapes. This operation is only supported in the tape gateway type.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation CreateTapes for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapes

Example (Shared00)

To create a virtual tape Creates one or more virtual tapes.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.CreateTapesInput{
    ClientToken:       aws.String("77777"),
    GatewayARN:        aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    NumTapesToCreate:  aws.Int64(3),
    TapeBarcodePrefix: aws.String("TEST"),
    TapeSizeInBytes:   aws.Int64(107374182400),
}

result, err := svc.CreateTapes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) CreateTapesRequest

func (c *StorageGateway) CreateTapesRequest(input *CreateTapesInput) (req *request.Request, output *CreateTapesOutput)

CreateTapesRequest generates a "aws/request.Request" representing the client's request for the CreateTapes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateTapes for more information on using the CreateTapes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateTapesRequest method.
req, resp := client.CreateTapesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CreateTapes

func (*StorageGateway) CreateTapesWithContext

func (c *StorageGateway) CreateTapesWithContext(ctx aws.Context, input *CreateTapesInput, opts ...request.Option) (*CreateTapesOutput, error)

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

See CreateTapes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteBandwidthRateLimit

func (c *StorageGateway) DeleteBandwidthRateLimit(input *DeleteBandwidthRateLimitInput) (*DeleteBandwidthRateLimitOutput, error)

DeleteBandwidthRateLimit API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteBandwidthRateLimit for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteBandwidthRateLimit

Example (Shared00)

To delete bandwidth rate limits of gateway Deletes the bandwidth rate limits of a gateway; either the upload or download limit, or both.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteBandwidthRateLimitInput{
    BandwidthType: aws.String("All"),
    GatewayARN:    aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DeleteBandwidthRateLimit(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteBandwidthRateLimitRequest

func (c *StorageGateway) DeleteBandwidthRateLimitRequest(input *DeleteBandwidthRateLimitInput) (req *request.Request, output *DeleteBandwidthRateLimitOutput)

DeleteBandwidthRateLimitRequest generates a "aws/request.Request" representing the client's request for the DeleteBandwidthRateLimit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteBandwidthRateLimit for more information on using the DeleteBandwidthRateLimit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteBandwidthRateLimitRequest method.
req, resp := client.DeleteBandwidthRateLimitRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteBandwidthRateLimit

func (*StorageGateway) DeleteBandwidthRateLimitWithContext

func (c *StorageGateway) DeleteBandwidthRateLimitWithContext(ctx aws.Context, input *DeleteBandwidthRateLimitInput, opts ...request.Option) (*DeleteBandwidthRateLimitOutput, error)

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

See DeleteBandwidthRateLimit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteChapCredentials

func (c *StorageGateway) DeleteChapCredentials(input *DeleteChapCredentialsInput) (*DeleteChapCredentialsOutput, error)

DeleteChapCredentials API operation for AWS Storage Gateway.

Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteChapCredentials for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentials

Example (Shared00)

To delete CHAP credentials Deletes Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target and initiator pair.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteChapCredentialsInput{
    InitiatorName: aws.String("iqn.1991-05.com.microsoft:computername.domain.example.com"),
    TargetARN:     aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume"),
}

result, err := svc.DeleteChapCredentials(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteChapCredentialsRequest

func (c *StorageGateway) DeleteChapCredentialsRequest(input *DeleteChapCredentialsInput) (req *request.Request, output *DeleteChapCredentialsOutput)

DeleteChapCredentialsRequest generates a "aws/request.Request" representing the client's request for the DeleteChapCredentials operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteChapCredentials for more information on using the DeleteChapCredentials API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteChapCredentialsRequest method.
req, resp := client.DeleteChapCredentialsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteChapCredentials

func (*StorageGateway) DeleteChapCredentialsWithContext

func (c *StorageGateway) DeleteChapCredentialsWithContext(ctx aws.Context, input *DeleteChapCredentialsInput, opts ...request.Option) (*DeleteChapCredentialsOutput, error)

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

See DeleteChapCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteFileShare

func (c *StorageGateway) DeleteFileShare(input *DeleteFileShareInput) (*DeleteFileShareOutput, error)

DeleteFileShare API operation for AWS Storage Gateway.

Deletes a file share from a file gateway. This operation is only supported for file gateways.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteFileShare for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteFileShare

func (*StorageGateway) DeleteFileShareRequest

func (c *StorageGateway) DeleteFileShareRequest(input *DeleteFileShareInput) (req *request.Request, output *DeleteFileShareOutput)

DeleteFileShareRequest generates a "aws/request.Request" representing the client's request for the DeleteFileShare operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteFileShare for more information on using the DeleteFileShare API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteFileShareRequest method.
req, resp := client.DeleteFileShareRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteFileShare

func (*StorageGateway) DeleteFileShareWithContext

func (c *StorageGateway) DeleteFileShareWithContext(ctx aws.Context, input *DeleteFileShareInput, opts ...request.Option) (*DeleteFileShareOutput, error)

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

See DeleteFileShare for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteGateway

func (c *StorageGateway) DeleteGateway(input *DeleteGatewayInput) (*DeleteGatewayOutput, error)

DeleteGateway API operation for AWS Storage Gateway.

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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteGateway for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteGateway

Example (Shared00)

To delete a gatgeway This operation deletes the gateway, but not the gateway's VM from the host computer.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteGatewayInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DeleteGateway(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteGatewayRequest

func (c *StorageGateway) DeleteGatewayRequest(input *DeleteGatewayInput) (req *request.Request, output *DeleteGatewayOutput)

DeleteGatewayRequest generates a "aws/request.Request" representing the client's request for the DeleteGateway operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteGateway for more information on using the DeleteGateway API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteGatewayRequest method.
req, resp := client.DeleteGatewayRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteGateway

func (*StorageGateway) DeleteGatewayWithContext

func (c *StorageGateway) DeleteGatewayWithContext(ctx aws.Context, input *DeleteGatewayInput, opts ...request.Option) (*DeleteGatewayOutput, error)

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

See DeleteGateway for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteSnapshotSchedule

func (c *StorageGateway) DeleteSnapshotSchedule(input *DeleteSnapshotScheduleInput) (*DeleteSnapshotScheduleOutput, error)

DeleteSnapshotSchedule API operation for AWS Storage Gateway.

Deletes a snapshot of a volume.

You can take snapshots of your gateway volumes on a scheduled or ad hoc basis. This API action 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). This operation is only supported in stored and cached volume gateway types.

To list or delete a snapshot, you must use the Amazon EC2 API. in Amazon Elastic Compute Cloud API Reference.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteSnapshotSchedule for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteSnapshotSchedule

Example (Shared00)

To delete a snapshot of a volume This action enables you to delete a snapshot schedule for a volume.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteSnapshotScheduleInput{
    VolumeARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
}

result, err := svc.DeleteSnapshotSchedule(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteSnapshotScheduleRequest

func (c *StorageGateway) DeleteSnapshotScheduleRequest(input *DeleteSnapshotScheduleInput) (req *request.Request, output *DeleteSnapshotScheduleOutput)

DeleteSnapshotScheduleRequest generates a "aws/request.Request" representing the client's request for the DeleteSnapshotSchedule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteSnapshotSchedule for more information on using the DeleteSnapshotSchedule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteSnapshotScheduleRequest method.
req, resp := client.DeleteSnapshotScheduleRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteSnapshotSchedule

func (*StorageGateway) DeleteSnapshotScheduleWithContext

func (c *StorageGateway) DeleteSnapshotScheduleWithContext(ctx aws.Context, input *DeleteSnapshotScheduleInput, opts ...request.Option) (*DeleteSnapshotScheduleOutput, error)

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

See DeleteSnapshotSchedule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteTape

func (c *StorageGateway) DeleteTape(input *DeleteTapeInput) (*DeleteTapeOutput, error)

DeleteTape API operation for AWS Storage Gateway.

Deletes the specified virtual tape. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteTape for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTape

Example (Shared00)

To delete a virtual tape This example deletes the specified virtual tape.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteTapeInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:204469490176:gateway/sgw-12A3456B"),
    TapeARN:    aws.String("arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0"),
}

result, err := svc.DeleteTape(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteTapeArchive

func (c *StorageGateway) DeleteTapeArchive(input *DeleteTapeArchiveInput) (*DeleteTapeArchiveOutput, error)

DeleteTapeArchive API operation for AWS Storage Gateway.

Deletes the specified virtual tape from the virtual tape shelf (VTS). This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteTapeArchive for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeArchive

Example (Shared00)

To delete a virtual tape from the shelf (VTS) Deletes the specified virtual tape from the virtual tape shelf (VTS).

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteTapeArchiveInput{
    TapeARN: aws.String("arn:aws:storagegateway:us-east-1:204469490176:tape/TEST05A2A0"),
}

result, err := svc.DeleteTapeArchive(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteTapeArchiveRequest

func (c *StorageGateway) DeleteTapeArchiveRequest(input *DeleteTapeArchiveInput) (req *request.Request, output *DeleteTapeArchiveOutput)

DeleteTapeArchiveRequest generates a "aws/request.Request" representing the client's request for the DeleteTapeArchive operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteTapeArchive for more information on using the DeleteTapeArchive API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteTapeArchiveRequest method.
req, resp := client.DeleteTapeArchiveRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTapeArchive

func (*StorageGateway) DeleteTapeArchiveWithContext

func (c *StorageGateway) DeleteTapeArchiveWithContext(ctx aws.Context, input *DeleteTapeArchiveInput, opts ...request.Option) (*DeleteTapeArchiveOutput, error)

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

See DeleteTapeArchive for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteTapeRequest

func (c *StorageGateway) DeleteTapeRequest(input *DeleteTapeInput) (req *request.Request, output *DeleteTapeOutput)

DeleteTapeRequest generates a "aws/request.Request" representing the client's request for the DeleteTape operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteTape for more information on using the DeleteTape API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteTapeRequest method.
req, resp := client.DeleteTapeRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteTape

func (*StorageGateway) DeleteTapeWithContext

func (c *StorageGateway) DeleteTapeWithContext(ctx aws.Context, input *DeleteTapeInput, opts ...request.Option) (*DeleteTapeOutput, error)

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

See DeleteTape for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DeleteVolume

func (c *StorageGateway) DeleteVolume(input *DeleteVolumeInput) (*DeleteVolumeOutput, error)

DeleteVolume API operation for AWS Storage Gateway.

Deletes the specified storage volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. This operation is only supported in the cached volume and stored volume types. For stored volume gateways, 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 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DeleteVolume for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteVolume

Example (Shared00)

To delete a gateway volume Deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DeleteVolumeInput{
    VolumeARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
}

result, err := svc.DeleteVolume(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DeleteVolumeRequest

func (c *StorageGateway) DeleteVolumeRequest(input *DeleteVolumeInput) (req *request.Request, output *DeleteVolumeOutput)

DeleteVolumeRequest generates a "aws/request.Request" representing the client's request for the DeleteVolume operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteVolume for more information on using the DeleteVolume API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteVolumeRequest method.
req, resp := client.DeleteVolumeRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DeleteVolume

func (*StorageGateway) DeleteVolumeWithContext

func (c *StorageGateway) DeleteVolumeWithContext(ctx aws.Context, input *DeleteVolumeInput, opts ...request.Option) (*DeleteVolumeOutput, error)

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

See DeleteVolume for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeBandwidthRateLimit

func (c *StorageGateway) DescribeBandwidthRateLimit(input *DescribeBandwidthRateLimitInput) (*DescribeBandwidthRateLimitOutput, error)

DescribeBandwidthRateLimit API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeBandwidthRateLimit for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimit

Example (Shared00)

To describe the bandwidth rate limits of a gateway Returns a value for a bandwidth rate limit if set. If not set, then only the gateway ARN is returned.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeBandwidthRateLimitInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeBandwidthRateLimit(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeBandwidthRateLimitRequest

func (c *StorageGateway) DescribeBandwidthRateLimitRequest(input *DescribeBandwidthRateLimitInput) (req *request.Request, output *DescribeBandwidthRateLimitOutput)

DescribeBandwidthRateLimitRequest generates a "aws/request.Request" representing the client's request for the DescribeBandwidthRateLimit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeBandwidthRateLimit for more information on using the DescribeBandwidthRateLimit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeBandwidthRateLimitRequest method.
req, resp := client.DescribeBandwidthRateLimitRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeBandwidthRateLimit

func (*StorageGateway) DescribeBandwidthRateLimitWithContext

func (c *StorageGateway) DescribeBandwidthRateLimitWithContext(ctx aws.Context, input *DescribeBandwidthRateLimitInput, opts ...request.Option) (*DescribeBandwidthRateLimitOutput, error)

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

See DescribeBandwidthRateLimit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeCache

func (c *StorageGateway) DescribeCache(input *DescribeCacheInput) (*DescribeCacheOutput, error)

DescribeCache API operation for AWS Storage Gateway.

Returns information about the cache of a gateway. This operation is only supported in the cached volume, tape and file gateway types.

The response includes disk IDs that are configured as cache, and it includes the amount of cache allocated and used.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeCache for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCache

Example (Shared00)

To describe cache information Returns information about the cache of a gateway.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeCacheInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeCache(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeCacheRequest

func (c *StorageGateway) DescribeCacheRequest(input *DescribeCacheInput) (req *request.Request, output *DescribeCacheOutput)

DescribeCacheRequest generates a "aws/request.Request" representing the client's request for the DescribeCache operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeCache for more information on using the DescribeCache API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeCacheRequest method.
req, resp := client.DescribeCacheRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCache

func (*StorageGateway) DescribeCacheWithContext

func (c *StorageGateway) DescribeCacheWithContext(ctx aws.Context, input *DescribeCacheInput, opts ...request.Option) (*DescribeCacheOutput, error)

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

See DescribeCache for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeCachediSCSIVolumes

func (c *StorageGateway) DescribeCachediSCSIVolumes(input *DescribeCachediSCSIVolumesInput) (*DescribeCachediSCSIVolumesOutput, error)

DescribeCachediSCSIVolumes API operation for AWS Storage Gateway.

Returns a description of the gateway volumes specified in the request. This operation is only supported in the cached volume gateway types.

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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeCachediSCSIVolumes for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCachediSCSIVolumes

Example (Shared00)

To describe gateway cached iSCSI volumes Returns a description of the gateway cached iSCSI volumes specified in the request.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeCachediSCSIVolumesInput{
    VolumeARNs: []*string{
        aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
    },
}

result, err := svc.DescribeCachediSCSIVolumes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeCachediSCSIVolumesRequest

func (c *StorageGateway) DescribeCachediSCSIVolumesRequest(input *DescribeCachediSCSIVolumesInput) (req *request.Request, output *DescribeCachediSCSIVolumesOutput)

DescribeCachediSCSIVolumesRequest generates a "aws/request.Request" representing the client's request for the DescribeCachediSCSIVolumes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeCachediSCSIVolumes for more information on using the DescribeCachediSCSIVolumes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeCachediSCSIVolumesRequest method.
req, resp := client.DescribeCachediSCSIVolumesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeCachediSCSIVolumes

func (*StorageGateway) DescribeCachediSCSIVolumesWithContext

func (c *StorageGateway) DescribeCachediSCSIVolumesWithContext(ctx aws.Context, input *DescribeCachediSCSIVolumesInput, opts ...request.Option) (*DescribeCachediSCSIVolumesOutput, error)

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

See DescribeCachediSCSIVolumes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeChapCredentials

func (c *StorageGateway) DescribeChapCredentials(input *DescribeChapCredentialsInput) (*DescribeChapCredentialsOutput, error)

DescribeChapCredentials API operation for AWS Storage Gateway.

Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeChapCredentials for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeChapCredentials

Example (Shared00)

To describe CHAP credetnitals for an iSCSI Returns an array of Challenge-Handshake Authentication Protocol (CHAP) credentials information for a specified iSCSI target, one for each target-initiator pair.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeChapCredentialsInput{
    TargetARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume"),
}

result, err := svc.DescribeChapCredentials(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeChapCredentialsRequest

func (c *StorageGateway) DescribeChapCredentialsRequest(input *DescribeChapCredentialsInput) (req *request.Request, output *DescribeChapCredentialsOutput)

DescribeChapCredentialsRequest generates a "aws/request.Request" representing the client's request for the DescribeChapCredentials operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeChapCredentials for more information on using the DescribeChapCredentials API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeChapCredentialsRequest method.
req, resp := client.DescribeChapCredentialsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeChapCredentials

func (*StorageGateway) DescribeChapCredentialsWithContext

func (c *StorageGateway) DescribeChapCredentialsWithContext(ctx aws.Context, input *DescribeChapCredentialsInput, opts ...request.Option) (*DescribeChapCredentialsOutput, error)

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

See DescribeChapCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeGatewayInformation

func (c *StorageGateway) DescribeGatewayInformation(input *DescribeGatewayInformationInput) (*DescribeGatewayInformationOutput, error)

DescribeGatewayInformation API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeGatewayInformation for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeGatewayInformation

Example (Shared00)

To describe metadata about the gateway Returns metadata about a gateway such as its name, network interfaces, configured time zone, and the state (whether the gateway is running or not).

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeGatewayInformationInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeGatewayInformation(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeGatewayInformationRequest

func (c *StorageGateway) DescribeGatewayInformationRequest(input *DescribeGatewayInformationInput) (req *request.Request, output *DescribeGatewayInformationOutput)

DescribeGatewayInformationRequest generates a "aws/request.Request" representing the client's request for the DescribeGatewayInformation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeGatewayInformation for more information on using the DescribeGatewayInformation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeGatewayInformationRequest method.
req, resp := client.DescribeGatewayInformationRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeGatewayInformation

func (*StorageGateway) DescribeGatewayInformationWithContext

func (c *StorageGateway) DescribeGatewayInformationWithContext(ctx aws.Context, input *DescribeGatewayInformationInput, opts ...request.Option) (*DescribeGatewayInformationOutput, error)

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

See DescribeGatewayInformation for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeMaintenanceStartTime

func (c *StorageGateway) DescribeMaintenanceStartTime(input *DescribeMaintenanceStartTimeInput) (*DescribeMaintenanceStartTimeOutput, error)

DescribeMaintenanceStartTime API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeMaintenanceStartTime for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeMaintenanceStartTime

Example (Shared00)

To describe gateway's maintenance start time Returns your gateway's weekly maintenance start time including the day and time of the week.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeMaintenanceStartTimeInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeMaintenanceStartTime(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeMaintenanceStartTimeRequest

func (c *StorageGateway) DescribeMaintenanceStartTimeRequest(input *DescribeMaintenanceStartTimeInput) (req *request.Request, output *DescribeMaintenanceStartTimeOutput)

DescribeMaintenanceStartTimeRequest generates a "aws/request.Request" representing the client's request for the DescribeMaintenanceStartTime operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeMaintenanceStartTime for more information on using the DescribeMaintenanceStartTime API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeMaintenanceStartTimeRequest method.
req, resp := client.DescribeMaintenanceStartTimeRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeMaintenanceStartTime

func (*StorageGateway) DescribeMaintenanceStartTimeWithContext

func (c *StorageGateway) DescribeMaintenanceStartTimeWithContext(ctx aws.Context, input *DescribeMaintenanceStartTimeInput, opts ...request.Option) (*DescribeMaintenanceStartTimeOutput, error)

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

See DescribeMaintenanceStartTime for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeNFSFileShares

func (c *StorageGateway) DescribeNFSFileShares(input *DescribeNFSFileSharesInput) (*DescribeNFSFileSharesOutput, error)

DescribeNFSFileShares API operation for AWS Storage Gateway.

Gets a description for one or more Network File System (NFS) file shares from a file gateway. This operation is only supported for file gateways.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeNFSFileShares for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeNFSFileShares

func (*StorageGateway) DescribeNFSFileSharesRequest

func (c *StorageGateway) DescribeNFSFileSharesRequest(input *DescribeNFSFileSharesInput) (req *request.Request, output *DescribeNFSFileSharesOutput)

DescribeNFSFileSharesRequest generates a "aws/request.Request" representing the client's request for the DescribeNFSFileShares operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeNFSFileShares for more information on using the DescribeNFSFileShares API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeNFSFileSharesRequest method.
req, resp := client.DescribeNFSFileSharesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeNFSFileShares

func (*StorageGateway) DescribeNFSFileSharesWithContext

func (c *StorageGateway) DescribeNFSFileSharesWithContext(ctx aws.Context, input *DescribeNFSFileSharesInput, opts ...request.Option) (*DescribeNFSFileSharesOutput, error)

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

See DescribeNFSFileShares for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeSMBFileShares

func (c *StorageGateway) DescribeSMBFileShares(input *DescribeSMBFileSharesInput) (*DescribeSMBFileSharesOutput, error)

DescribeSMBFileShares API operation for AWS Storage Gateway.

Gets a description for one or more Server Message Block (SMB) file shares from a file gateway. This operation is only supported for file gateways.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeSMBFileShares for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSMBFileShares

func (*StorageGateway) DescribeSMBFileSharesRequest

func (c *StorageGateway) DescribeSMBFileSharesRequest(input *DescribeSMBFileSharesInput) (req *request.Request, output *DescribeSMBFileSharesOutput)

DescribeSMBFileSharesRequest generates a "aws/request.Request" representing the client's request for the DescribeSMBFileShares operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSMBFileShares for more information on using the DescribeSMBFileShares API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSMBFileSharesRequest method.
req, resp := client.DescribeSMBFileSharesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSMBFileShares

func (*StorageGateway) DescribeSMBFileSharesWithContext

func (c *StorageGateway) DescribeSMBFileSharesWithContext(ctx aws.Context, input *DescribeSMBFileSharesInput, opts ...request.Option) (*DescribeSMBFileSharesOutput, error)

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

See DescribeSMBFileShares for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeSMBSettings

func (c *StorageGateway) DescribeSMBSettings(input *DescribeSMBSettingsInput) (*DescribeSMBSettingsOutput, error)

DescribeSMBSettings API operation for AWS Storage Gateway.

Gets a description of a Server Message Block (SMB) file share settings from a file gateway. This operation is only supported for file gateways.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeSMBSettings for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSMBSettings

func (*StorageGateway) DescribeSMBSettingsRequest

func (c *StorageGateway) DescribeSMBSettingsRequest(input *DescribeSMBSettingsInput) (req *request.Request, output *DescribeSMBSettingsOutput)

DescribeSMBSettingsRequest generates a "aws/request.Request" representing the client's request for the DescribeSMBSettings operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSMBSettings for more information on using the DescribeSMBSettings API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSMBSettingsRequest method.
req, resp := client.DescribeSMBSettingsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSMBSettings

func (*StorageGateway) DescribeSMBSettingsWithContext

func (c *StorageGateway) DescribeSMBSettingsWithContext(ctx aws.Context, input *DescribeSMBSettingsInput, opts ...request.Option) (*DescribeSMBSettingsOutput, error)

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

See DescribeSMBSettings for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeSnapshotSchedule

func (c *StorageGateway) DescribeSnapshotSchedule(input *DescribeSnapshotScheduleInput) (*DescribeSnapshotScheduleOutput, error)

DescribeSnapshotSchedule API operation for AWS Storage Gateway.

Describes the snapshot schedule for the specified gateway volume. The snapshot schedule information includes intervals at which snapshots are automatically initiated on the volume. This operation is only supported in the cached volume and stored volume types.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeSnapshotSchedule for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSnapshotSchedule

Example (Shared00)

To describe snapshot schedule for gateway volume Describes the snapshot schedule for the specified gateway volume including intervals at which snapshots are automatically initiated.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeSnapshotScheduleInput{
    VolumeARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
}

result, err := svc.DescribeSnapshotSchedule(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeSnapshotScheduleRequest

func (c *StorageGateway) DescribeSnapshotScheduleRequest(input *DescribeSnapshotScheduleInput) (req *request.Request, output *DescribeSnapshotScheduleOutput)

DescribeSnapshotScheduleRequest generates a "aws/request.Request" representing the client's request for the DescribeSnapshotSchedule operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeSnapshotSchedule for more information on using the DescribeSnapshotSchedule API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeSnapshotScheduleRequest method.
req, resp := client.DescribeSnapshotScheduleRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeSnapshotSchedule

func (*StorageGateway) DescribeSnapshotScheduleWithContext

func (c *StorageGateway) DescribeSnapshotScheduleWithContext(ctx aws.Context, input *DescribeSnapshotScheduleInput, opts ...request.Option) (*DescribeSnapshotScheduleOutput, error)

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

See DescribeSnapshotSchedule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeStorediSCSIVolumes

func (c *StorageGateway) DescribeStorediSCSIVolumes(input *DescribeStorediSCSIVolumesInput) (*DescribeStorediSCSIVolumesOutput, error)

DescribeStorediSCSIVolumes API operation for AWS Storage Gateway.

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. This operation is only supported in stored volume gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeStorediSCSIVolumes for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeStorediSCSIVolumes

Example (Shared00)

To describe the volumes of a gateway Returns the description of the gateway volumes specified in the request belonging to the same gateway.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeStorediSCSIVolumesInput{
    VolumeARNs: []*string{
        aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/volume/vol-1122AABB"),
    },
}

result, err := svc.DescribeStorediSCSIVolumes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeStorediSCSIVolumesRequest

func (c *StorageGateway) DescribeStorediSCSIVolumesRequest(input *DescribeStorediSCSIVolumesInput) (req *request.Request, output *DescribeStorediSCSIVolumesOutput)

DescribeStorediSCSIVolumesRequest generates a "aws/request.Request" representing the client's request for the DescribeStorediSCSIVolumes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeStorediSCSIVolumes for more information on using the DescribeStorediSCSIVolumes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeStorediSCSIVolumesRequest method.
req, resp := client.DescribeStorediSCSIVolumesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeStorediSCSIVolumes

func (*StorageGateway) DescribeStorediSCSIVolumesWithContext

func (c *StorageGateway) DescribeStorediSCSIVolumesWithContext(ctx aws.Context, input *DescribeStorediSCSIVolumesInput, opts ...request.Option) (*DescribeStorediSCSIVolumesOutput, error)

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

See DescribeStorediSCSIVolumes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeTapeArchives

func (c *StorageGateway) DescribeTapeArchives(input *DescribeTapeArchivesInput) (*DescribeTapeArchivesOutput, error)

DescribeTapeArchives API operation for AWS Storage Gateway.

Returns a description of specified virtual tapes in the virtual tape shelf (VTS). This operation is only supported in the tape gateway type.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeTapeArchives for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeArchives

Example (Shared00)

To describe virtual tapes in the VTS Returns a description of specified virtual tapes in the virtual tape shelf (VTS).

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeTapeArchivesInput{
    Limit:  aws.Int64(123),
    Marker: aws.String("1"),
    TapeARNs: []*string{
        aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/AM08A1AD"),
        aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/AMZN01A2A4"),
    },
}

result, err := svc.DescribeTapeArchives(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeTapeArchivesPages

func (c *StorageGateway) DescribeTapeArchivesPages(input *DescribeTapeArchivesInput, fn func(*DescribeTapeArchivesOutput, bool) bool) error

DescribeTapeArchivesPages iterates over the pages of a DescribeTapeArchives operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeTapeArchives method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeTapeArchives operation.
pageNum := 0
err := client.DescribeTapeArchivesPages(params,
    func(page *DescribeTapeArchivesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*StorageGateway) DescribeTapeArchivesPagesWithContext

func (c *StorageGateway) DescribeTapeArchivesPagesWithContext(ctx aws.Context, input *DescribeTapeArchivesInput, fn func(*DescribeTapeArchivesOutput, bool) bool, opts ...request.Option) error

DescribeTapeArchivesPagesWithContext same as DescribeTapeArchivesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeTapeArchivesRequest

func (c *StorageGateway) DescribeTapeArchivesRequest(input *DescribeTapeArchivesInput) (req *request.Request, output *DescribeTapeArchivesOutput)

DescribeTapeArchivesRequest generates a "aws/request.Request" representing the client's request for the DescribeTapeArchives operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTapeArchives for more information on using the DescribeTapeArchives API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTapeArchivesRequest method.
req, resp := client.DescribeTapeArchivesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeArchives

func (*StorageGateway) DescribeTapeArchivesWithContext

func (c *StorageGateway) DescribeTapeArchivesWithContext(ctx aws.Context, input *DescribeTapeArchivesInput, opts ...request.Option) (*DescribeTapeArchivesOutput, error)

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

See DescribeTapeArchives for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeTapeRecoveryPoints

func (c *StorageGateway) DescribeTapeRecoveryPoints(input *DescribeTapeRecoveryPointsInput) (*DescribeTapeRecoveryPointsOutput, error)

DescribeTapeRecoveryPoints API operation for AWS Storage Gateway.

Returns a list of virtual tape recovery points that are available for the specified tape gateway.

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. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeTapeRecoveryPoints for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeRecoveryPoints

Example (Shared00)

To describe virtual tape recovery points Returns a list of virtual tape recovery points that are available for the specified gateway-VTL.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeTapeRecoveryPointsInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    Limit:      aws.Int64(1),
    Marker:     aws.String("1"),
}

result, err := svc.DescribeTapeRecoveryPoints(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeTapeRecoveryPointsPages

func (c *StorageGateway) DescribeTapeRecoveryPointsPages(input *DescribeTapeRecoveryPointsInput, fn func(*DescribeTapeRecoveryPointsOutput, bool) bool) error

DescribeTapeRecoveryPointsPages iterates over the pages of a DescribeTapeRecoveryPoints operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeTapeRecoveryPoints method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeTapeRecoveryPoints operation.
pageNum := 0
err := client.DescribeTapeRecoveryPointsPages(params,
    func(page *DescribeTapeRecoveryPointsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*StorageGateway) DescribeTapeRecoveryPointsPagesWithContext

func (c *StorageGateway) DescribeTapeRecoveryPointsPagesWithContext(ctx aws.Context, input *DescribeTapeRecoveryPointsInput, fn func(*DescribeTapeRecoveryPointsOutput, bool) bool, opts ...request.Option) error

DescribeTapeRecoveryPointsPagesWithContext same as DescribeTapeRecoveryPointsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeTapeRecoveryPointsRequest

func (c *StorageGateway) DescribeTapeRecoveryPointsRequest(input *DescribeTapeRecoveryPointsInput) (req *request.Request, output *DescribeTapeRecoveryPointsOutput)

DescribeTapeRecoveryPointsRequest generates a "aws/request.Request" representing the client's request for the DescribeTapeRecoveryPoints operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTapeRecoveryPoints for more information on using the DescribeTapeRecoveryPoints API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTapeRecoveryPointsRequest method.
req, resp := client.DescribeTapeRecoveryPointsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapeRecoveryPoints

func (*StorageGateway) DescribeTapeRecoveryPointsWithContext

func (c *StorageGateway) DescribeTapeRecoveryPointsWithContext(ctx aws.Context, input *DescribeTapeRecoveryPointsInput, opts ...request.Option) (*DescribeTapeRecoveryPointsOutput, error)

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

See DescribeTapeRecoveryPoints for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeTapes

func (c *StorageGateway) DescribeTapes(input *DescribeTapesInput) (*DescribeTapesOutput, error)

DescribeTapes API operation for AWS Storage Gateway.

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. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeTapes for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapes

Example (Shared00)

To describe virtual tape(s) associated with gateway 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.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeTapesInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    Limit:      aws.Int64(2),
    Marker:     aws.String("1"),
    TapeARNs: []*string{
        aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/TEST04A2A1"),
        aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/TEST05A2A0"),
    },
}

result, err := svc.DescribeTapes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeTapesPages

func (c *StorageGateway) DescribeTapesPages(input *DescribeTapesInput, fn func(*DescribeTapesOutput, bool) bool) error

DescribeTapesPages iterates over the pages of a DescribeTapes operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeTapes method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeTapes operation.
pageNum := 0
err := client.DescribeTapesPages(params,
    func(page *DescribeTapesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*StorageGateway) DescribeTapesPagesWithContext

func (c *StorageGateway) DescribeTapesPagesWithContext(ctx aws.Context, input *DescribeTapesInput, fn func(*DescribeTapesOutput, bool) bool, opts ...request.Option) error

DescribeTapesPagesWithContext same as DescribeTapesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeTapesRequest

func (c *StorageGateway) DescribeTapesRequest(input *DescribeTapesInput) (req *request.Request, output *DescribeTapesOutput)

DescribeTapesRequest generates a "aws/request.Request" representing the client's request for the DescribeTapes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeTapes for more information on using the DescribeTapes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeTapesRequest method.
req, resp := client.DescribeTapesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeTapes

func (*StorageGateway) DescribeTapesWithContext

func (c *StorageGateway) DescribeTapesWithContext(ctx aws.Context, input *DescribeTapesInput, opts ...request.Option) (*DescribeTapesOutput, error)

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

See DescribeTapes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeUploadBuffer

func (c *StorageGateway) DescribeUploadBuffer(input *DescribeUploadBufferInput) (*DescribeUploadBufferOutput, error)

DescribeUploadBuffer API operation for AWS Storage Gateway.

Returns information about the upload buffer of a gateway. This operation is supported for the stored volume, cached volume and tape gateway types.

The response includes disk IDs that are configured as upload buffer space, and it includes the amount of upload buffer space allocated and used.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeUploadBuffer for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeUploadBuffer

Example (Shared00)

To describe upload buffer of gateway Returns information about the upload buffer of a gateway including disk IDs and the amount of upload buffer space allocated/used.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeUploadBufferInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeUploadBuffer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

Example (Shared01)

To describe upload buffer of a gateway Returns information about the upload buffer of a gateway including disk IDs and the amount of upload buffer space allocated and used.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeUploadBufferInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeUploadBuffer(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeUploadBufferRequest

func (c *StorageGateway) DescribeUploadBufferRequest(input *DescribeUploadBufferInput) (req *request.Request, output *DescribeUploadBufferOutput)

DescribeUploadBufferRequest generates a "aws/request.Request" representing the client's request for the DescribeUploadBuffer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeUploadBuffer for more information on using the DescribeUploadBuffer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeUploadBufferRequest method.
req, resp := client.DescribeUploadBufferRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeUploadBuffer

func (*StorageGateway) DescribeUploadBufferWithContext

func (c *StorageGateway) DescribeUploadBufferWithContext(ctx aws.Context, input *DescribeUploadBufferInput, opts ...request.Option) (*DescribeUploadBufferOutput, error)

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

See DescribeUploadBuffer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeVTLDevices

func (c *StorageGateway) DescribeVTLDevices(input *DescribeVTLDevicesInput) (*DescribeVTLDevicesOutput, error)

DescribeVTLDevices API operation for AWS Storage Gateway.

Returns a description of virtual tape library (VTL) devices for the specified tape gateway. In the response, AWS Storage Gateway returns VTL device information.

This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeVTLDevices for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeVTLDevices

Example (Shared00)

To describe virtual tape library (VTL) devices of a single gateway Returns a description of virtual tape library (VTL) devices for the specified gateway.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeVTLDevicesInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    Limit:      aws.Int64(123),
    Marker:     aws.String("1"),
}

result, err := svc.DescribeVTLDevices(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeVTLDevicesPages

func (c *StorageGateway) DescribeVTLDevicesPages(input *DescribeVTLDevicesInput, fn func(*DescribeVTLDevicesOutput, bool) bool) error

DescribeVTLDevicesPages iterates over the pages of a DescribeVTLDevices operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See DescribeVTLDevices method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a DescribeVTLDevices operation.
pageNum := 0
err := client.DescribeVTLDevicesPages(params,
    func(page *DescribeVTLDevicesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*StorageGateway) DescribeVTLDevicesPagesWithContext

func (c *StorageGateway) DescribeVTLDevicesPagesWithContext(ctx aws.Context, input *DescribeVTLDevicesInput, fn func(*DescribeVTLDevicesOutput, bool) bool, opts ...request.Option) error

DescribeVTLDevicesPagesWithContext same as DescribeVTLDevicesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeVTLDevicesRequest

func (c *StorageGateway) DescribeVTLDevicesRequest(input *DescribeVTLDevicesInput) (req *request.Request, output *DescribeVTLDevicesOutput)

DescribeVTLDevicesRequest generates a "aws/request.Request" representing the client's request for the DescribeVTLDevices operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeVTLDevices for more information on using the DescribeVTLDevices API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeVTLDevicesRequest method.
req, resp := client.DescribeVTLDevicesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeVTLDevices

func (*StorageGateway) DescribeVTLDevicesWithContext

func (c *StorageGateway) DescribeVTLDevicesWithContext(ctx aws.Context, input *DescribeVTLDevicesInput, opts ...request.Option) (*DescribeVTLDevicesOutput, error)

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

See DescribeVTLDevices for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DescribeWorkingStorage

func (c *StorageGateway) DescribeWorkingStorage(input *DescribeWorkingStorageInput) (*DescribeWorkingStorageOutput, error)

DescribeWorkingStorage API operation for AWS Storage Gateway.

Returns information about the working storage of a gateway. This operation is only supported in the stored volumes gateway type. 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DescribeWorkingStorage for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeWorkingStorage

Example (Shared00)

To describe the working storage of a gateway [Depreciated] This operation is supported only for the gateway-stored volume architecture. This operation is deprecated in cached-volumes API version (20120630). Use DescribeUploadBuffer instead.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DescribeWorkingStorageInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DescribeWorkingStorage(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DescribeWorkingStorageRequest

func (c *StorageGateway) DescribeWorkingStorageRequest(input *DescribeWorkingStorageInput) (req *request.Request, output *DescribeWorkingStorageOutput)

DescribeWorkingStorageRequest generates a "aws/request.Request" representing the client's request for the DescribeWorkingStorage operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DescribeWorkingStorage for more information on using the DescribeWorkingStorage API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DescribeWorkingStorageRequest method.
req, resp := client.DescribeWorkingStorageRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DescribeWorkingStorage

func (*StorageGateway) DescribeWorkingStorageWithContext

func (c *StorageGateway) DescribeWorkingStorageWithContext(ctx aws.Context, input *DescribeWorkingStorageInput, opts ...request.Option) (*DescribeWorkingStorageOutput, error)

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

See DescribeWorkingStorage for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) DisableGateway

func (c *StorageGateway) DisableGateway(input *DisableGatewayInput) (*DisableGatewayOutput, error)

DisableGateway API operation for AWS Storage Gateway.

Disables a tape 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 tape gateway that is not reachable or not functioning. This operation is only supported in the tape gateway type.

Once a gateway is disabled it cannot be enabled.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation DisableGateway for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DisableGateway

Example (Shared00)

To disable a gateway when it is no longer functioning Disables a gateway when the gateway is no longer functioning. Use this operation for a gateway-VTL that is not reachable or not functioning.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.DisableGatewayInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.DisableGateway(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) DisableGatewayRequest

func (c *StorageGateway) DisableGatewayRequest(input *DisableGatewayInput) (req *request.Request, output *DisableGatewayOutput)

DisableGatewayRequest generates a "aws/request.Request" representing the client's request for the DisableGateway operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DisableGateway for more information on using the DisableGateway API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DisableGatewayRequest method.
req, resp := client.DisableGatewayRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/DisableGateway

func (*StorageGateway) DisableGatewayWithContext

func (c *StorageGateway) DisableGatewayWithContext(ctx aws.Context, input *DisableGatewayInput, opts ...request.Option) (*DisableGatewayOutput, error)

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

See DisableGateway for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) JoinDomain

func (c *StorageGateway) JoinDomain(input *JoinDomainInput) (*JoinDomainOutput, error)

JoinDomain API operation for AWS Storage Gateway.

Adds a file gateway to an Active Directory domain. This operation is only supported for file gateways that support the SMB file protocol.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation JoinDomain for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/JoinDomain

func (*StorageGateway) JoinDomainRequest

func (c *StorageGateway) JoinDomainRequest(input *JoinDomainInput) (req *request.Request, output *JoinDomainOutput)

JoinDomainRequest generates a "aws/request.Request" representing the client's request for the JoinDomain operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See JoinDomain for more information on using the JoinDomain API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the JoinDomainRequest method.
req, resp := client.JoinDomainRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/JoinDomain

func (*StorageGateway) JoinDomainWithContext

func (c *StorageGateway) JoinDomainWithContext(ctx aws.Context, input *JoinDomainInput, opts ...request.Option) (*JoinDomainOutput, error)

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

See JoinDomain for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListFileShares

func (c *StorageGateway) ListFileShares(input *ListFileSharesInput) (*ListFileSharesOutput, error)

ListFileShares API operation for AWS Storage Gateway.

Gets a list of the file shares for a specific file gateway, or the list of file shares that belong to the calling user account. This operation is only supported for file gateways.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListFileShares for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListFileShares

func (*StorageGateway) ListFileSharesRequest

func (c *StorageGateway) ListFileSharesRequest(input *ListFileSharesInput) (req *request.Request, output *ListFileSharesOutput)

ListFileSharesRequest generates a "aws/request.Request" representing the client's request for the ListFileShares operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListFileShares for more information on using the ListFileShares API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListFileSharesRequest method.
req, resp := client.ListFileSharesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListFileShares

func (*StorageGateway) ListFileSharesWithContext

func (c *StorageGateway) ListFileSharesWithContext(ctx aws.Context, input *ListFileSharesInput, opts ...request.Option) (*ListFileSharesOutput, error)

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

See ListFileShares for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListGateways

func (c *StorageGateway) ListGateways(input *ListGatewaysInput) (*ListGatewaysOutput, error)

ListGateways API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListGateways for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListGateways

Example (Shared00)

To lists region specific gateways per AWS account Lists gateways owned by an AWS account in a specified region as requested. Results are sorted by gateway ARN up to a maximum of 100 gateways.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ListGatewaysInput{
    Limit:  aws.Int64(2),
    Marker: aws.String("1"),
}

result, err := svc.ListGateways(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ListGatewaysPages

func (c *StorageGateway) ListGatewaysPages(input *ListGatewaysInput, fn func(*ListGatewaysOutput, bool) bool) error

ListGatewaysPages iterates over the pages of a ListGateways operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListGateways method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListGateways operation.
pageNum := 0
err := client.ListGatewaysPages(params,
    func(page *ListGatewaysOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*StorageGateway) ListGatewaysPagesWithContext

func (c *StorageGateway) ListGatewaysPagesWithContext(ctx aws.Context, input *ListGatewaysInput, fn func(*ListGatewaysOutput, bool) bool, opts ...request.Option) error

ListGatewaysPagesWithContext same as ListGatewaysPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListGatewaysRequest

func (c *StorageGateway) ListGatewaysRequest(input *ListGatewaysInput) (req *request.Request, output *ListGatewaysOutput)

ListGatewaysRequest generates a "aws/request.Request" representing the client's request for the ListGateways operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListGateways for more information on using the ListGateways API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListGatewaysRequest method.
req, resp := client.ListGatewaysRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListGateways

func (*StorageGateway) ListGatewaysWithContext

func (c *StorageGateway) ListGatewaysWithContext(ctx aws.Context, input *ListGatewaysInput, opts ...request.Option) (*ListGatewaysOutput, error)

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

See ListGateways for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListLocalDisks

func (c *StorageGateway) ListLocalDisks(input *ListLocalDisksInput) (*ListLocalDisksOutput, error)

ListLocalDisks API operation for AWS Storage Gateway.

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).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListLocalDisks for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListLocalDisks

Example (Shared00)

To list the gateway's local disks 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.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ListLocalDisksInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.ListLocalDisks(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ListLocalDisksRequest

func (c *StorageGateway) ListLocalDisksRequest(input *ListLocalDisksInput) (req *request.Request, output *ListLocalDisksOutput)

ListLocalDisksRequest generates a "aws/request.Request" representing the client's request for the ListLocalDisks operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListLocalDisks for more information on using the ListLocalDisks API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListLocalDisksRequest method.
req, resp := client.ListLocalDisksRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListLocalDisks

func (*StorageGateway) ListLocalDisksWithContext

func (c *StorageGateway) ListLocalDisksWithContext(ctx aws.Context, input *ListLocalDisksInput, opts ...request.Option) (*ListLocalDisksOutput, error)

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

See ListLocalDisks for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListTagsForResource

func (c *StorageGateway) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS Storage Gateway.

Lists the tags that have been added to the specified resource. This operation is only supported in the cached volume, stored volume and tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListTagsForResource for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTagsForResource

Example (Shared00)

To list tags that have been added to a resource Lists the tags that have been added to the specified resource.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ListTagsForResourceInput{
    Limit:       aws.Int64(1),
    Marker:      aws.String("1"),
    ResourceARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"),
}

result, err := svc.ListTagsForResource(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ListTagsForResourceRequest

func (c *StorageGateway) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method.
req, resp := client.ListTagsForResourceRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTagsForResource

func (*StorageGateway) ListTagsForResourceWithContext

func (c *StorageGateway) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

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

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListTapes

func (c *StorageGateway) ListTapes(input *ListTapesInput) (*ListTapesOutput, error)

ListTapes API operation for AWS Storage Gateway.

Lists virtual tapes in your virtual tape library (VTL) and your virtual tape shelf (VTS). You specify the tapes to list by specifying one or more tape Amazon Resource Names (ARNs). If you don't specify a tape ARN, the operation lists all virtual tapes in both your VTL and VTS.

This operation supports pagination. By default, the operation returns a maximum of up to 100 tapes. You can optionally specify the Limit parameter in the body to limit the number of tapes in the response. If the number of tapes returned in the response is truncated, the response includes a Marker element that you can use in your subsequent request to retrieve the next set of tapes. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListTapes for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTapes

func (*StorageGateway) ListTapesRequest

func (c *StorageGateway) ListTapesRequest(input *ListTapesInput) (req *request.Request, output *ListTapesOutput)

ListTapesRequest generates a "aws/request.Request" representing the client's request for the ListTapes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTapes for more information on using the ListTapes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTapesRequest method.
req, resp := client.ListTapesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListTapes

func (*StorageGateway) ListTapesWithContext

func (c *StorageGateway) ListTapesWithContext(ctx aws.Context, input *ListTapesInput, opts ...request.Option) (*ListTapesOutput, error)

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

See ListTapes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListVolumeInitiators

func (c *StorageGateway) ListVolumeInitiators(input *ListVolumeInitiatorsInput) (*ListVolumeInitiatorsOutput, error)

ListVolumeInitiators API operation for AWS Storage Gateway.

Lists iSCSI initiators that are connected to a volume. You can use this operation to determine whether a volume is being used or not. This operation is only supported in the cached volume and stored volume gateway types.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListVolumeInitiators for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeInitiators

func (*StorageGateway) ListVolumeInitiatorsRequest

func (c *StorageGateway) ListVolumeInitiatorsRequest(input *ListVolumeInitiatorsInput) (req *request.Request, output *ListVolumeInitiatorsOutput)

ListVolumeInitiatorsRequest generates a "aws/request.Request" representing the client's request for the ListVolumeInitiators operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListVolumeInitiators for more information on using the ListVolumeInitiators API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListVolumeInitiatorsRequest method.
req, resp := client.ListVolumeInitiatorsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeInitiators

func (*StorageGateway) ListVolumeInitiatorsWithContext

func (c *StorageGateway) ListVolumeInitiatorsWithContext(ctx aws.Context, input *ListVolumeInitiatorsInput, opts ...request.Option) (*ListVolumeInitiatorsOutput, error)

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

See ListVolumeInitiators for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListVolumeRecoveryPoints

func (c *StorageGateway) ListVolumeRecoveryPoints(input *ListVolumeRecoveryPointsInput) (*ListVolumeRecoveryPointsOutput, error)

ListVolumeRecoveryPoints API operation for AWS Storage Gateway.

Lists the recovery points for a specified gateway. This operation is only supported in the cached volume gateway type.

Each cache 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 or clone a new cached volume from a source volume. To create a snapshot from a volume recovery point use the CreateSnapshotFromVolumeRecoveryPoint operation.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListVolumeRecoveryPoints for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeRecoveryPoints

Example (Shared00)

To list recovery points for a gateway Lists the recovery points for a specified gateway in which all data of the volume is consistent and can be used to create a snapshot.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ListVolumeRecoveryPointsInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.ListVolumeRecoveryPoints(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ListVolumeRecoveryPointsRequest

func (c *StorageGateway) ListVolumeRecoveryPointsRequest(input *ListVolumeRecoveryPointsInput) (req *request.Request, output *ListVolumeRecoveryPointsOutput)

ListVolumeRecoveryPointsRequest generates a "aws/request.Request" representing the client's request for the ListVolumeRecoveryPoints operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListVolumeRecoveryPoints for more information on using the ListVolumeRecoveryPoints API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListVolumeRecoveryPointsRequest method.
req, resp := client.ListVolumeRecoveryPointsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumeRecoveryPoints

func (*StorageGateway) ListVolumeRecoveryPointsWithContext

func (c *StorageGateway) ListVolumeRecoveryPointsWithContext(ctx aws.Context, input *ListVolumeRecoveryPointsInput, opts ...request.Option) (*ListVolumeRecoveryPointsOutput, error)

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

See ListVolumeRecoveryPoints for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListVolumes

func (c *StorageGateway) ListVolumes(input *ListVolumesInput) (*ListVolumesOutput, error)

ListVolumes API operation for AWS Storage Gateway.

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 or the DescribeCachediSCSIVolumes 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. This operation is only supported in the cached volume and stored volume gateway types.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ListVolumes for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumes

Example (Shared00)

To list the iSCSI stored volumes of a gateway Lists the iSCSI stored volumes of a gateway. Results are sorted by volume ARN up to a maximum of 100 volumes.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ListVolumesInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    Limit:      aws.Int64(2),
    Marker:     aws.String("1"),
}

result, err := svc.ListVolumes(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ListVolumesPages

func (c *StorageGateway) ListVolumesPages(input *ListVolumesInput, fn func(*ListVolumesOutput, bool) bool) error

ListVolumesPages iterates over the pages of a ListVolumes operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListVolumes method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListVolumes operation.
pageNum := 0
err := client.ListVolumesPages(params,
    func(page *ListVolumesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*StorageGateway) ListVolumesPagesWithContext

func (c *StorageGateway) ListVolumesPagesWithContext(ctx aws.Context, input *ListVolumesInput, fn func(*ListVolumesOutput, bool) bool, opts ...request.Option) error

ListVolumesPagesWithContext same as ListVolumesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ListVolumesRequest

func (c *StorageGateway) ListVolumesRequest(input *ListVolumesInput) (req *request.Request, output *ListVolumesOutput)

ListVolumesRequest generates a "aws/request.Request" representing the client's request for the ListVolumes operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListVolumes for more information on using the ListVolumes API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListVolumesRequest method.
req, resp := client.ListVolumesRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ListVolumes

func (*StorageGateway) ListVolumesWithContext

func (c *StorageGateway) ListVolumesWithContext(ctx aws.Context, input *ListVolumesInput, opts ...request.Option) (*ListVolumesOutput, error)

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

See ListVolumes for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) NotifyWhenUploaded

func (c *StorageGateway) NotifyWhenUploaded(input *NotifyWhenUploadedInput) (*NotifyWhenUploadedOutput, error)

NotifyWhenUploaded API operation for AWS Storage Gateway.

Sends you notification through CloudWatch Events when all files written to your NFS file share have been uploaded to Amazon S3.

AWS Storage Gateway can send a notification through Amazon CloudWatch Events when all files written to your file share up to that point in time have been uploaded to Amazon S3. These files include files written to the NFS file share up to the time that you make a request for notification. When the upload is done, Storage Gateway sends you notification through an Amazon CloudWatch Event. You can configure CloudWatch Events to send the notification through event targets such as Amazon SNS or AWS Lambda function. This operation is only supported for file gateways.

For more information, see Getting File Upload Notification in the Storage Gateway User Guide (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-upload-notification).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation NotifyWhenUploaded for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/NotifyWhenUploaded

func (*StorageGateway) NotifyWhenUploadedRequest

func (c *StorageGateway) NotifyWhenUploadedRequest(input *NotifyWhenUploadedInput) (req *request.Request, output *NotifyWhenUploadedOutput)

NotifyWhenUploadedRequest generates a "aws/request.Request" representing the client's request for the NotifyWhenUploaded operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See NotifyWhenUploaded for more information on using the NotifyWhenUploaded API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the NotifyWhenUploadedRequest method.
req, resp := client.NotifyWhenUploadedRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/NotifyWhenUploaded

func (*StorageGateway) NotifyWhenUploadedWithContext

func (c *StorageGateway) NotifyWhenUploadedWithContext(ctx aws.Context, input *NotifyWhenUploadedInput, opts ...request.Option) (*NotifyWhenUploadedOutput, error)

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

See NotifyWhenUploaded for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) RefreshCache

func (c *StorageGateway) RefreshCache(input *RefreshCacheInput) (*RefreshCacheOutput, error)

RefreshCache API operation for AWS Storage Gateway.

Refreshes the cache for the specified file share. This operation finds objects in the Amazon S3 bucket that were added, removed or replaced since the gateway last listed the bucket's contents and cached the results. This operation is only supported in the file gateway type. You can subscribe to be notified through an Amazon CloudWatch event when your RefreshCache operation completes. For more information, see Getting Notified About File Operations (https://docs.aws.amazon.com/storagegateway/latest/userguide/monitoring-file-gateway.html#get-notification).

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation RefreshCache for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RefreshCache

func (*StorageGateway) RefreshCacheRequest

func (c *StorageGateway) RefreshCacheRequest(input *RefreshCacheInput) (req *request.Request, output *RefreshCacheOutput)

RefreshCacheRequest generates a "aws/request.Request" representing the client's request for the RefreshCache operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RefreshCache for more information on using the RefreshCache API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RefreshCacheRequest method.
req, resp := client.RefreshCacheRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RefreshCache

func (*StorageGateway) RefreshCacheWithContext

func (c *StorageGateway) RefreshCacheWithContext(ctx aws.Context, input *RefreshCacheInput, opts ...request.Option) (*RefreshCacheOutput, error)

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

See RefreshCache for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) RemoveTagsFromResource

func (c *StorageGateway) RemoveTagsFromResource(input *RemoveTagsFromResourceInput) (*RemoveTagsFromResourceOutput, error)

RemoveTagsFromResource API operation for AWS Storage Gateway.

Removes one or more tags from the specified resource. This operation is only supported in the cached volume, stored volume and tape gateway types.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation RemoveTagsFromResource for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResource

Example (Shared00)

To remove tags from a resource Lists the iSCSI stored volumes of a gateway. Removes one or more tags from the specified resource.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.RemoveTagsFromResourceInput{
    ResourceARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B"),
    TagKeys: []*string{
        aws.String("Dev Gatgeway Region"),
        aws.String("East Coast"),
    },
}

result, err := svc.RemoveTagsFromResource(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) RemoveTagsFromResourceRequest

func (c *StorageGateway) RemoveTagsFromResourceRequest(input *RemoveTagsFromResourceInput) (req *request.Request, output *RemoveTagsFromResourceOutput)

RemoveTagsFromResourceRequest generates a "aws/request.Request" representing the client's request for the RemoveTagsFromResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RemoveTagsFromResource for more information on using the RemoveTagsFromResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RemoveTagsFromResourceRequest method.
req, resp := client.RemoveTagsFromResourceRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RemoveTagsFromResource

func (*StorageGateway) RemoveTagsFromResourceWithContext

func (c *StorageGateway) RemoveTagsFromResourceWithContext(ctx aws.Context, input *RemoveTagsFromResourceInput, opts ...request.Option) (*RemoveTagsFromResourceOutput, error)

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

See RemoveTagsFromResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ResetCache

func (c *StorageGateway) ResetCache(input *ResetCacheInput) (*ResetCacheOutput, error)

ResetCache API operation for AWS Storage Gateway.

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. This operation is only supported in the cached volume and tape types.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ResetCache for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ResetCache

Example (Shared00)

To reset cache disks in error status Resets all cache disks that have encountered a error and makes the disks available for reconfiguration as cache storage.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ResetCacheInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-13B4567C"),
}

result, err := svc.ResetCache(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ResetCacheRequest

func (c *StorageGateway) ResetCacheRequest(input *ResetCacheInput) (req *request.Request, output *ResetCacheOutput)

ResetCacheRequest generates a "aws/request.Request" representing the client's request for the ResetCache operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ResetCache for more information on using the ResetCache API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ResetCacheRequest method.
req, resp := client.ResetCacheRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ResetCache

func (*StorageGateway) ResetCacheWithContext

func (c *StorageGateway) ResetCacheWithContext(ctx aws.Context, input *ResetCacheInput, opts ...request.Option) (*ResetCacheOutput, error)

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

See ResetCache for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) RetrieveTapeArchive

func (c *StorageGateway) RetrieveTapeArchive(input *RetrieveTapeArchiveInput) (*RetrieveTapeArchiveOutput, error)

RetrieveTapeArchive API operation for AWS Storage Gateway.

Retrieves an archived virtual tape from the virtual tape shelf (VTS) to a tape gateway. 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, that is, archive. This operation is only supported in the tape gateway type.

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. This operation is only supported in the tape gateway type.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation RetrieveTapeArchive for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeArchive

Example (Shared00)

To retrieve an archived tape from the VTS 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.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.RetrieveTapeArchiveInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    TapeARN:    aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/TEST0AA2AF"),
}

result, err := svc.RetrieveTapeArchive(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) RetrieveTapeArchiveRequest

func (c *StorageGateway) RetrieveTapeArchiveRequest(input *RetrieveTapeArchiveInput) (req *request.Request, output *RetrieveTapeArchiveOutput)

RetrieveTapeArchiveRequest generates a "aws/request.Request" representing the client's request for the RetrieveTapeArchive operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RetrieveTapeArchive for more information on using the RetrieveTapeArchive API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RetrieveTapeArchiveRequest method.
req, resp := client.RetrieveTapeArchiveRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeArchive

func (*StorageGateway) RetrieveTapeArchiveWithContext

func (c *StorageGateway) RetrieveTapeArchiveWithContext(ctx aws.Context, input *RetrieveTapeArchiveInput, opts ...request.Option) (*RetrieveTapeArchiveOutput, error)

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

See RetrieveTapeArchive for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) RetrieveTapeRecoveryPoint

func (c *StorageGateway) RetrieveTapeRecoveryPoint(input *RetrieveTapeRecoveryPointInput) (*RetrieveTapeRecoveryPointOutput, error)

RetrieveTapeRecoveryPoint API operation for AWS Storage Gateway.

Retrieves the recovery point for the specified virtual tape. This operation is only supported in the tape gateway type.

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 tape gateway. There is no charge for retrieving recovery points.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation RetrieveTapeRecoveryPoint for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeRecoveryPoint

Example (Shared00)

To retrieve the recovery point of a virtual tape Retrieves the recovery point for the specified virtual tape.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.RetrieveTapeRecoveryPointInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    TapeARN:    aws.String("arn:aws:storagegateway:us-east-1:999999999999:tape/TEST0AA2AF"),
}

result, err := svc.RetrieveTapeRecoveryPoint(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) RetrieveTapeRecoveryPointRequest

func (c *StorageGateway) RetrieveTapeRecoveryPointRequest(input *RetrieveTapeRecoveryPointInput) (req *request.Request, output *RetrieveTapeRecoveryPointOutput)

RetrieveTapeRecoveryPointRequest generates a "aws/request.Request" representing the client's request for the RetrieveTapeRecoveryPoint operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See RetrieveTapeRecoveryPoint for more information on using the RetrieveTapeRecoveryPoint API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the RetrieveTapeRecoveryPointRequest method.
req, resp := client.RetrieveTapeRecoveryPointRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/RetrieveTapeRecoveryPoint

func (*StorageGateway) RetrieveTapeRecoveryPointWithContext

func (c *StorageGateway) RetrieveTapeRecoveryPointWithContext(ctx aws.Context, input *RetrieveTapeRecoveryPointInput, opts ...request.Option) (*RetrieveTapeRecoveryPointOutput, error)

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

See RetrieveTapeRecoveryPoint for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) SetLocalConsolePassword

func (c *StorageGateway) SetLocalConsolePassword(input *SetLocalConsolePasswordInput) (*SetLocalConsolePasswordOutput, error)

SetLocalConsolePassword API operation for AWS Storage Gateway.

Sets the password for your VM local console. When you log in to the local console for the first time, you log in to the VM with the default credentials. We recommend that you set a new password. You don't need to know the default password to set a new password.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation SetLocalConsolePassword for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePassword

Example (Shared00)

To set a password for your VM Sets the password for your VM local console.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.SetLocalConsolePasswordInput{
    GatewayARN:           aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
    LocalConsolePassword: aws.String("PassWordMustBeAtLeast6Chars."),
}

result, err := svc.SetLocalConsolePassword(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) SetLocalConsolePasswordRequest

func (c *StorageGateway) SetLocalConsolePasswordRequest(input *SetLocalConsolePasswordInput) (req *request.Request, output *SetLocalConsolePasswordOutput)

SetLocalConsolePasswordRequest generates a "aws/request.Request" representing the client's request for the SetLocalConsolePassword operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SetLocalConsolePassword for more information on using the SetLocalConsolePassword API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the SetLocalConsolePasswordRequest method.
req, resp := client.SetLocalConsolePasswordRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePassword

func (*StorageGateway) SetLocalConsolePasswordWithContext

func (c *StorageGateway) SetLocalConsolePasswordWithContext(ctx aws.Context, input *SetLocalConsolePasswordInput, opts ...request.Option) (*SetLocalConsolePasswordOutput, error)

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

See SetLocalConsolePassword for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) SetSMBGuestPassword

func (c *StorageGateway) SetSMBGuestPassword(input *SetSMBGuestPasswordInput) (*SetSMBGuestPasswordOutput, error)

SetSMBGuestPassword API operation for AWS Storage Gateway.

Sets the password for the guest user smbguest. The smbguest user is the user when the authentication method for the file share is set to GuestAccess.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation SetSMBGuestPassword for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetSMBGuestPassword

func (*StorageGateway) SetSMBGuestPasswordRequest

func (c *StorageGateway) SetSMBGuestPasswordRequest(input *SetSMBGuestPasswordInput) (req *request.Request, output *SetSMBGuestPasswordOutput)

SetSMBGuestPasswordRequest generates a "aws/request.Request" representing the client's request for the SetSMBGuestPassword operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SetSMBGuestPassword for more information on using the SetSMBGuestPassword API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the SetSMBGuestPasswordRequest method.
req, resp := client.SetSMBGuestPasswordRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetSMBGuestPassword

func (*StorageGateway) SetSMBGuestPasswordWithContext

func (c *StorageGateway) SetSMBGuestPasswordWithContext(ctx aws.Context, input *SetSMBGuestPasswordInput, opts ...request.Option) (*SetSMBGuestPasswordOutput, error)

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

See SetSMBGuestPassword for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) ShutdownGateway

func (c *StorageGateway) ShutdownGateway(input *ShutdownGatewayInput) (*ShutdownGatewayOutput, error)

ShutdownGateway API operation for AWS Storage Gateway.

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 gateway's virtual machine (VM) and not the host 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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation ShutdownGateway for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ShutdownGateway

Example (Shared00)

To shut down a gateway service This operation shuts down the gateway service component running in the storage gateway's virtual machine (VM) and not the VM.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.ShutdownGatewayInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
}

result, err := svc.ShutdownGateway(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) ShutdownGatewayRequest

func (c *StorageGateway) ShutdownGatewayRequest(input *ShutdownGatewayInput) (req *request.Request, output *ShutdownGatewayOutput)

ShutdownGatewayRequest generates a "aws/request.Request" representing the client's request for the ShutdownGateway operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ShutdownGateway for more information on using the ShutdownGateway API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ShutdownGatewayRequest method.
req, resp := client.ShutdownGatewayRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/ShutdownGateway

func (*StorageGateway) ShutdownGatewayWithContext

func (c *StorageGateway) ShutdownGatewayWithContext(ctx aws.Context, input *ShutdownGatewayInput, opts ...request.Option) (*ShutdownGatewayOutput, error)

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

See ShutdownGateway for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) StartGateway

func (c *StorageGateway) StartGateway(input *StartGatewayInput) (*StartGatewayOutput, error)

StartGateway API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation StartGateway for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StartGateway

Example (Shared00)

To start a gateway service Starts a gateway service that was previously shut down.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.StartGatewayInput{
    GatewayARN: aws.String("arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B"),
}

result, err := svc.StartGateway(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) StartGatewayRequest

func (c *StorageGateway) StartGatewayRequest(input *StartGatewayInput) (req *request.Request, output *StartGatewayOutput)

StartGatewayRequest generates a "aws/request.Request" representing the client's request for the StartGateway operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartGateway for more information on using the StartGateway API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartGatewayRequest method.
req, resp := client.StartGatewayRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/StartGateway

func (*StorageGateway) StartGatewayWithContext

func (c *StorageGateway) StartGatewayWithContext(ctx aws.Context, input *StartGatewayInput, opts ...request.Option) (*StartGatewayOutput, error)

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

See StartGateway for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) UpdateBandwidthRateLimit

func (c *StorageGateway) UpdateBandwidthRateLimit(input *UpdateBandwidthRateLimitInput) (*UpdateBandwidthRateLimitOutput, error)

UpdateBandwidthRateLimit API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation UpdateBandwidthRateLimit for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimit

Example (Shared00)

To update the bandwidth rate limits of a gateway Updates the bandwidth rate limits of a gateway. Both the upload and download bandwidth rate limit can be set, or either one of the two. If a new limit is not set, the existing rate limit remains.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.UpdateBandwidthRateLimitInput{
    AverageDownloadRateLimitInBitsPerSec: aws.Int64(102400),
    AverageUploadRateLimitInBitsPerSec:   aws.Int64(51200),
    GatewayARN:                           aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
}

result, err := svc.UpdateBandwidthRateLimit(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) UpdateBandwidthRateLimitRequest

func (c *StorageGateway) UpdateBandwidthRateLimitRequest(input *UpdateBandwidthRateLimitInput) (req *request.Request, output *UpdateBandwidthRateLimitOutput)

UpdateBandwidthRateLimitRequest generates a "aws/request.Request" representing the client's request for the UpdateBandwidthRateLimit operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateBandwidthRateLimit for more information on using the UpdateBandwidthRateLimit API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateBandwidthRateLimitRequest method.
req, resp := client.UpdateBandwidthRateLimitRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateBandwidthRateLimit

func (*StorageGateway) UpdateBandwidthRateLimitWithContext

func (c *StorageGateway) UpdateBandwidthRateLimitWithContext(ctx aws.Context, input *UpdateBandwidthRateLimitInput, opts ...request.Option) (*UpdateBandwidthRateLimitOutput, error)

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

See UpdateBandwidthRateLimit for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) UpdateChapCredentials

func (c *StorageGateway) UpdateChapCredentials(input *UpdateChapCredentialsInput) (*UpdateChapCredentialsOutput, error)

UpdateChapCredentials API operation for AWS Storage Gateway.

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.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation UpdateChapCredentials for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateChapCredentials

Example (Shared00)

To update CHAP credentials for an iSCSI target Updates the Challenge-Handshake Authentication Protocol (CHAP) credentials for a specified iSCSI target.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.UpdateChapCredentialsInput{
    InitiatorName:                 aws.String("iqn.1991-05.com.microsoft:computername.domain.example.com"),
    SecretToAuthenticateInitiator: aws.String("111111111111"),
    SecretToAuthenticateTarget:    aws.String("222222222222"),
    TargetARN:                     aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B/target/iqn.1997-05.com.amazon:myvolume"),
}

result, err := svc.UpdateChapCredentials(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) UpdateChapCredentialsRequest

func (c *StorageGateway) UpdateChapCredentialsRequest(input *UpdateChapCredentialsInput) (req *request.Request, output *UpdateChapCredentialsOutput)

UpdateChapCredentialsRequest generates a "aws/request.Request" representing the client's request for the UpdateChapCredentials operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateChapCredentials for more information on using the UpdateChapCredentials API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateChapCredentialsRequest method.
req, resp := client.UpdateChapCredentialsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateChapCredentials

func (*StorageGateway) UpdateChapCredentialsWithContext

func (c *StorageGateway) UpdateChapCredentialsWithContext(ctx aws.Context, input *UpdateChapCredentialsInput, opts ...request.Option) (*UpdateChapCredentialsOutput, error)

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

See UpdateChapCredentials for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*StorageGateway) UpdateGatewayInformation

func (c *StorageGateway) UpdateGatewayInformation(input *UpdateGatewayInformationInput) (*UpdateGatewayInformationOutput, error)

UpdateGatewayInformation API operation for AWS Storage Gateway.

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.

For Gateways activated after September 2, 2015, the gateway's ARN contains the gateway ID rather than the gateway name. However, changing the name of the gateway has no effect on the gateway's ARN.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS Storage Gateway's API operation UpdateGatewayInformation for usage and error information.

Returned Error Codes:

* ErrCodeInvalidGatewayRequestException "InvalidGatewayRequestException"
An exception occurred because an invalid gateway request was issued to the
service. For more information, see the error and message fields.

* ErrCodeInternalServerError "InternalServerError"
An internal server error has occurred during the request. For more information,
see the error and message fields.

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewayInformation

Example (Shared00)

To update a gateway's metadata Updates a gateway's metadata, which includes the gateway's name and time zone.

Code:

svc := storagegateway.New(session.New())
input := &storagegateway.UpdateGatewayInformationInput{
    GatewayARN:      aws.String("arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B"),
    GatewayName:     aws.String("MyGateway2"),
    GatewayTimezone: aws.String("GMT-12:00"),
}

result, err := svc.UpdateGatewayInformation(input)
if err != nil {
    if aerr, ok := err.(awserr.Error); ok {
        switch aerr.Code() {
        case storagegateway.ErrCodeInvalidGatewayRequestException:
            fmt.Println(storagegateway.ErrCodeInvalidGatewayRequestException, aerr.Error())
        case storagegateway.ErrCodeInternalServerError:
            fmt.Println(storagegateway.ErrCodeInternalServerError, aerr.Error())
        default:
            fmt.Println(aerr.Error())
        }
    } else {
        // Print the error, cast err to awserr.Error to get the Code and
        // Message from an error.
        fmt.Println(err.Error())
    }
    return
}

fmt.Println(result)

func (*StorageGateway) UpdateGatewayInformationRequest

func (c *StorageGateway) UpdateGatewayInformationRequest(input *UpdateGatewayInformationInput) (req *request.Request, output *UpdateGatewayInformationOutput)

UpdateGatewayInformationRequest generates a "aws/request.Request" representing the client's request for the UpdateGatewayInformation operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateGatewayInformation for more information on using the UpdateGatewayInformation API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateGatewayInformationRequest method.
req, resp := client.UpdateGatewayInformationRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/UpdateGatewayInformation

func (*StorageGateway) UpdateGatewayInformationWithContext