Beispiel #1
0
        public void StorageGatewayCreateCachediSCSIVolume()
        {
            #region to-create-a-cached-iscsi-volume-1471296661787

            var client   = new AmazonStorageGatewayClient();
            var response = client.CreateCachediSCSIVolume(new CreateCachediSCSIVolumeRequest
            {
                ClientToken        = "cachedvol112233",
                GatewayARN         = "arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-12A3456B",
                NetworkInterfaceId = "10.1.1.1",
                SnapshotId         = "snap-f47b7b94",
                TargetName         = "my-volume",
                VolumeSizeInBytes  = 536870912000
            });

            string targetARN = response.TargetARN;
            string volumeARN = response.VolumeARN;

            #endregion
        }