@aws-sdk/client-snowball 3.287.0 → 3.289.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,6 +31,17 @@ export interface CancelClusterCommandOutput extends CancelClusterResult, __Metad
31
31
  * @see {@link CancelClusterCommandOutput} for command's `response` shape.
32
32
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
33
33
  *
34
+ * @example To cancel a cluster job
35
+ * ```javascript
36
+ * // This operation cancels a cluster job. You can only cancel a cluster job while it's in the AwaitingQuorum status.
37
+ * const input = {
38
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000"
39
+ * };
40
+ * const command = new CancelClusterCommand(input);
41
+ * await client.send(command);
42
+ * // example id: to-cancel-a-cluster-job-1482533760554
43
+ * ```
44
+ *
34
45
  */
35
46
  export declare class CancelClusterCommand extends $Command<CancelClusterCommandInput, CancelClusterCommandOutput, SnowballClientResolvedConfig> {
36
47
  readonly input: CancelClusterCommandInput;
@@ -32,6 +32,17 @@ export interface CancelJobCommandOutput extends CancelJobResult, __MetadataBeare
32
32
  * @see {@link CancelJobCommandOutput} for command's `response` shape.
33
33
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
34
34
  *
35
+ * @example To cancel a job for a Snowball device
36
+ * ```javascript
37
+ * // This operation cancels a job. You can only cancel a job before its JobState value changes to PreparingAppliance.
38
+ * const input = {
39
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000"
40
+ * };
41
+ * const command = new CancelJobCommand(input);
42
+ * await client.send(command);
43
+ * // example id: to-cancel-a-job-for-a-snowball-device-1482534699477
44
+ * ```
45
+ *
35
46
  */
36
47
  export declare class CancelJobCommand extends $Command<CancelJobCommandInput, CancelJobCommandOutput, SnowballClientResolvedConfig> {
37
48
  readonly input: CancelJobCommandInput;
@@ -32,6 +32,31 @@ export interface CreateAddressCommandOutput extends CreateAddressResult, __Metad
32
32
  * @see {@link CreateAddressCommandOutput} for command's `response` shape.
33
33
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
34
34
  *
35
+ * @example To create an address for a job
36
+ * ```javascript
37
+ * // This operation creates an address for a job. Addresses are validated at the time of creation. The address you provide must be located within the serviceable area of your region. If the address is invalid or unsupported, then an exception is thrown.
38
+ * const input = {
39
+ * "Address": {
40
+ * "City": "Seattle",
41
+ * "Company": "My Company's Name",
42
+ * "Country": "USA",
43
+ * "Name": "My Name",
44
+ * "PhoneNumber": "425-555-5555",
45
+ * "PostalCode": "98101",
46
+ * "StateOrProvince": "WA",
47
+ * "Street1": "123 Main Street"
48
+ * }
49
+ * };
50
+ * const command = new CreateAddressCommand(input);
51
+ * const response = await client.send(command);
52
+ * /* response ==
53
+ * {
54
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b"
55
+ * }
56
+ * *\/
57
+ * // example id: to-create-an-address-for-a-job-1482535416294
58
+ * ```
59
+ *
35
60
  */
36
61
  export declare class CreateAddressCommand extends $Command<CreateAddressCommandInput, CreateAddressCommandOutput, SnowballClientResolvedConfig> {
37
62
  readonly input: CreateAddressCommandInput;
@@ -30,6 +30,40 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
30
30
  * @see {@link CreateClusterCommandOutput} for command's `response` shape.
31
31
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
32
32
  *
33
+ * @example To create a cluster
34
+ * ```javascript
35
+ * // Creates an empty cluster. Each cluster supports five nodes. You use the CreateJob action separately to create the jobs for each of these nodes. The cluster does not ship until these five node jobs have been created.
36
+ * const input = {
37
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
38
+ * "Description": "MyCluster",
39
+ * "JobType": "LOCAL_USE",
40
+ * "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
41
+ * "Notification": {
42
+ * "JobStatesToNotify": [],
43
+ * "NotifyAll": false
44
+ * },
45
+ * "Resources": {
46
+ * "S3Resources": [
47
+ * {
48
+ * "BucketArn": "arn:aws:s3:::MyBucket",
49
+ * "KeyRange": {}
50
+ * }
51
+ * ]
52
+ * },
53
+ * "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role",
54
+ * "ShippingOption": "SECOND_DAY",
55
+ * "SnowballType": "EDGE"
56
+ * };
57
+ * const command = new CreateClusterCommand(input);
58
+ * const response = await client.send(command);
59
+ * /* response ==
60
+ * {
61
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000"
62
+ * }
63
+ * *\/
64
+ * // example id: to-create-a-cluster-1482864724077
65
+ * ```
66
+ *
33
67
  */
34
68
  export declare class CreateClusterCommand extends $Command<CreateClusterCommandInput, CreateClusterCommandOutput, SnowballClientResolvedConfig> {
35
69
  readonly input: CreateClusterCommandInput;
@@ -156,6 +156,41 @@ export interface CreateJobCommandOutput extends CreateJobResult, __MetadataBeare
156
156
  * @see {@link CreateJobCommandOutput} for command's `response` shape.
157
157
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
158
158
  *
159
+ * @example To create a job
160
+ * ```javascript
161
+ * // Creates a job to import or export data between Amazon S3 and your on-premises data center. Your AWS account must have the right trust policies and permissions in place to create a job for Snowball. If you're creating a job for a node in a cluster, you only need to provide the clusterId value; the other job attributes are inherited from the cluster.
162
+ * const input = {
163
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
164
+ * "Description": "My Job",
165
+ * "JobType": "IMPORT",
166
+ * "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
167
+ * "Notification": {
168
+ * "JobStatesToNotify": [],
169
+ * "NotifyAll": false
170
+ * },
171
+ * "Resources": {
172
+ * "S3Resources": [
173
+ * {
174
+ * "BucketArn": "arn:aws:s3:::MyBucket",
175
+ * "KeyRange": {}
176
+ * }
177
+ * ]
178
+ * },
179
+ * "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role",
180
+ * "ShippingOption": "SECOND_DAY",
181
+ * "SnowballCapacityPreference": "T80",
182
+ * "SnowballType": "STANDARD"
183
+ * };
184
+ * const command = new CreateJobCommand(input);
185
+ * const response = await client.send(command);
186
+ * /* response ==
187
+ * {
188
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000"
189
+ * }
190
+ * *\/
191
+ * // example id: to-create-a-job-1482864834886
192
+ * ```
193
+ *
159
194
  */
160
195
  export declare class CreateJobCommand extends $Command<CreateJobCommandInput, CreateJobCommandOutput, SnowballClientResolvedConfig> {
161
196
  readonly input: CreateJobCommandInput;
@@ -30,6 +30,32 @@ export interface DescribeAddressCommandOutput extends DescribeAddressResult, __M
30
30
  * @see {@link DescribeAddressCommandOutput} for command's `response` shape.
31
31
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
32
32
  *
33
+ * @example To describe an address for a job
34
+ * ```javascript
35
+ * // This operation describes an address for a job.
36
+ * const input = {
37
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b"
38
+ * };
39
+ * const command = new DescribeAddressCommand(input);
40
+ * const response = await client.send(command);
41
+ * /* response ==
42
+ * {
43
+ * "Address": {
44
+ * "AddressId": "ADID5643ec50-3eec-4eb3-9be6-9374c10eb51b",
45
+ * "City": "Seattle",
46
+ * "Company": "My Company",
47
+ * "Country": "US",
48
+ * "Name": "My Name",
49
+ * "PhoneNumber": "425-555-5555",
50
+ * "PostalCode": "98101",
51
+ * "StateOrProvince": "WA",
52
+ * "Street1": "123 Main Street"
53
+ * }
54
+ * }
55
+ * *\/
56
+ * // example id: to-describe-an-address-for-a-job-1482538608745
57
+ * ```
58
+ *
33
59
  */
34
60
  export declare class DescribeAddressCommand extends $Command<DescribeAddressCommandInput, DescribeAddressCommandOutput, SnowballClientResolvedConfig> {
35
61
  readonly input: DescribeAddressCommandInput;
@@ -31,6 +31,32 @@ export interface DescribeAddressesCommandOutput extends DescribeAddressesResult,
31
31
  * @see {@link DescribeAddressesCommandOutput} for command's `response` shape.
32
32
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
33
33
  *
34
+ * @example To describe all the addresses you've created for AWS Snowball
35
+ * ```javascript
36
+ * // This operation describes all the addresses that you've created for AWS Snowball. Calling this API in one of the US regions will return addresses from the list of all addresses associated with this account in all US regions.
37
+ * const input = {};
38
+ * const command = new DescribeAddressesCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "Addresses": [
43
+ * {
44
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
45
+ * "City": "Seattle",
46
+ * "Company": "My Company",
47
+ * "Country": "US",
48
+ * "Name": "My Name",
49
+ * "PhoneNumber": "425-555-5555",
50
+ * "PostalCode": "98101",
51
+ * "StateOrProvince": "WA",
52
+ * "Street1": "123 Main Street"
53
+ * }
54
+ * ]
55
+ * }
56
+ * *\/
57
+ * // example id: to-describe-all-the-addresses-youve-created-for-aws-snowball-1482538936603
58
+ * ```
59
+ *
34
60
  */
35
61
  export declare class DescribeAddressesCommand extends $Command<DescribeAddressesCommandInput, DescribeAddressesCommandOutput, SnowballClientResolvedConfig> {
36
62
  readonly input: DescribeAddressesCommandInput;
@@ -30,6 +30,44 @@ export interface DescribeClusterCommandOutput extends DescribeClusterResult, __M
30
30
  * @see {@link DescribeClusterCommandOutput} for command's `response` shape.
31
31
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
32
32
  *
33
+ * @example To describe a cluster
34
+ * ```javascript
35
+ * // Returns information about a specific cluster including shipping information, cluster status, and other important metadata.
36
+ * const input = {
37
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000"
38
+ * };
39
+ * const command = new DescribeClusterCommand(input);
40
+ * const response = await client.send(command);
41
+ * /* response ==
42
+ * {
43
+ * "ClusterMetadata": {
44
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
45
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000",
46
+ * "ClusterState": "Pending",
47
+ * "CreationDate": "1480475517.0",
48
+ * "Description": "MyCluster",
49
+ * "JobType": "LOCAL_USE",
50
+ * "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
51
+ * "Notification": {
52
+ * "JobStatesToNotify": [],
53
+ * "NotifyAll": false
54
+ * },
55
+ * "Resources": {
56
+ * "S3Resources": [
57
+ * {
58
+ * "BucketArn": "arn:aws:s3:::MyBucket",
59
+ * "KeyRange": {}
60
+ * }
61
+ * ]
62
+ * },
63
+ * "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role",
64
+ * "ShippingOption": "SECOND_DAY"
65
+ * }
66
+ * }
67
+ * *\/
68
+ * // example id: to-describe-a-cluster-1482864218396
69
+ * ```
70
+ *
33
71
  */
34
72
  export declare class DescribeClusterCommand extends $Command<DescribeClusterCommandInput, DescribeClusterCommandOutput, SnowballClientResolvedConfig> {
35
73
  readonly input: DescribeClusterCommandInput;
@@ -30,6 +30,48 @@ export interface DescribeJobCommandOutput extends DescribeJobResult, __MetadataB
30
30
  * @see {@link DescribeJobCommandOutput} for command's `response` shape.
31
31
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
32
32
  *
33
+ * @example To describe a job you've created for AWS Snowball
34
+ * ```javascript
35
+ * // This operation describes a job you've created for AWS Snowball.
36
+ * const input = {
37
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000"
38
+ * };
39
+ * const command = new DescribeJobCommand(input);
40
+ * const response = await client.send(command);
41
+ * /* response ==
42
+ * {
43
+ * "JobMetadata": {
44
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
45
+ * "CreationDate": "1475626164",
46
+ * "Description": "My Job",
47
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000",
48
+ * "JobState": "New",
49
+ * "JobType": "IMPORT",
50
+ * "KmsKeyARN": "arn:aws:kms:us-east-1:123456789012:key/abcd1234-12ab-34cd-56ef-123456123456",
51
+ * "Notification": {
52
+ * "JobStatesToNotify": [],
53
+ * "NotifyAll": false
54
+ * },
55
+ * "Resources": {
56
+ * "S3Resources": [
57
+ * {
58
+ * "BucketArn": "arn:aws:s3:::MyBucket",
59
+ * "KeyRange": {}
60
+ * }
61
+ * ]
62
+ * },
63
+ * "RoleARN": "arn:aws:iam::123456789012:role/snowball-import-S3-role",
64
+ * "ShippingDetails": {
65
+ * "ShippingOption": "SECOND_DAY"
66
+ * },
67
+ * "SnowballCapacityPreference": "T80",
68
+ * "SnowballType": "STANDARD"
69
+ * }
70
+ * }
71
+ * *\/
72
+ * // example id: to-describe-a-job-youve-created-for-aws-snowball-1482539500180
73
+ * ```
74
+ *
33
75
  */
34
76
  export declare class DescribeJobCommand extends $Command<DescribeJobCommandInput, DescribeJobCommandOutput, SnowballClientResolvedConfig> {
35
77
  readonly input: DescribeJobCommandInput;
@@ -44,6 +44,28 @@ export interface GetJobManifestCommandOutput extends GetJobManifestResult, __Met
44
44
  * @see {@link GetJobManifestCommandOutput} for command's `response` shape.
45
45
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
46
46
  *
47
+ * @example To get the manifest for a job you've created for AWS Snowball
48
+ * ```javascript
49
+ * // Returns a link to an Amazon S3 presigned URL for the manifest file associated with the specified JobId value. You can access the manifest file for up to 60 minutes after this request has been made. To access the manifest file after 60 minutes have passed, you'll have to make another call to the GetJobManifest action.
50
+ * //
51
+ * // The manifest is an encrypted file that you can download after your job enters the WithCustomer status. The manifest is decrypted by using the UnlockCode code value, when you pass both values to the Snowball through the Snowball client when the client is started for the first time.
52
+ * //
53
+ * // As a best practice, we recommend that you don't save a copy of an UnlockCode value in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
54
+ * //
55
+ * // The credentials of a given job, including its manifest file and unlock code, expire 90 days after the job is created.
56
+ * const input = {
57
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000"
58
+ * };
59
+ * const command = new GetJobManifestCommand(input);
60
+ * const response = await client.send(command);
61
+ * /* response ==
62
+ * {
63
+ * "ManifestURI": "https://awsie-frosty-manifests-prod.s3.amazonaws.com/JID123e4567-e89b-12d3-a456-426655440000_manifest.bin?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20161224T005115Z&X-Amz-SignedHeaders=..."
64
+ * }
65
+ * *\/
66
+ * // example id: to-get-the-manifest-for-a-job-youve-created-for-aws-snowball-1482540389246
67
+ * ```
68
+ *
47
69
  */
48
70
  export declare class GetJobManifestCommand extends $Command<GetJobManifestCommandInput, GetJobManifestCommandOutput, SnowballClientResolvedConfig> {
49
71
  readonly input: GetJobManifestCommandInput;
@@ -41,6 +41,26 @@ export interface GetJobUnlockCodeCommandOutput extends GetJobUnlockCodeResult, _
41
41
  * @see {@link GetJobUnlockCodeCommandOutput} for command's `response` shape.
42
42
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
43
43
  *
44
+ * @example To get the unlock code for a job you've created for AWS Snowball
45
+ * ```javascript
46
+ * // Returns the UnlockCode code value for the specified job. A particular UnlockCode value can be accessed for up to 90 days after the associated job has been created.
47
+ * //
48
+ * // The UnlockCode value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snowball through the Snowball client when the client is started for the first time.
49
+ * //
50
+ * // As a best practice, we recommend that you don't save a copy of the UnlockCode in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snowball associated with that job.
51
+ * const input = {
52
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000"
53
+ * };
54
+ * const command = new GetJobUnlockCodeCommand(input);
55
+ * const response = await client.send(command);
56
+ * /* response ==
57
+ * {
58
+ * "UnlockCode": "12345-abcde-56789-fghij-01234"
59
+ * }
60
+ * *\/
61
+ * // example id: to-get-the-unlock-code-for-a-job-youve-created-for-aws-snowball-1482541987286
62
+ * ```
63
+ *
44
64
  */
45
65
  export declare class GetJobUnlockCodeCommand extends $Command<GetJobUnlockCodeCommandInput, GetJobUnlockCodeCommandOutput, SnowballClientResolvedConfig> {
46
66
  readonly input: GetJobUnlockCodeCommandInput;
@@ -32,6 +32,23 @@ export interface GetSnowballUsageCommandOutput extends GetSnowballUsageResult, _
32
32
  * @see {@link GetSnowballUsageCommandOutput} for command's `response` shape.
33
33
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
34
34
  *
35
+ * @example To see your Snowball service limit and the number of Snowballs you have in use
36
+ * ```javascript
37
+ * // Returns information about the Snowball service limit for your account, and also the number of Snowballs your account has in use.
38
+ * //
39
+ * // The default service limit for the number of Snowballs that you can have at one time is 1. If you want to increase your service limit, contact AWS Support.
40
+ * const input = {};
41
+ * const command = new GetSnowballUsageCommand(input);
42
+ * const response = await client.send(command);
43
+ * /* response ==
44
+ * {
45
+ * "SnowballLimit": 1,
46
+ * "SnowballsInUse": 0
47
+ * }
48
+ * *\/
49
+ * // example id: to-see-your-snowball-service-limit-and-the-number-of-snowballs-you-have-in-use-1482863394588
50
+ * ```
51
+ *
35
52
  */
36
53
  export declare class GetSnowballUsageCommand extends $Command<GetSnowballUsageCommandInput, GetSnowballUsageCommandOutput, SnowballClientResolvedConfig> {
37
54
  readonly input: GetSnowballUsageCommandInput;
@@ -31,6 +31,68 @@ export interface ListClusterJobsCommandOutput extends ListClusterJobsResult, __M
31
31
  * @see {@link ListClusterJobsCommandOutput} for command's `response` shape.
32
32
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
33
33
  *
34
+ * @example To get a list of jobs in a cluster that you've created for AWS Snowball
35
+ * ```javascript
36
+ * // Returns an array of JobListEntry objects of the specified length. Each JobListEntry object is for a job in the specified cluster and contains a job's state, a job's ID, and other information.
37
+ * const input = {
38
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000"
39
+ * };
40
+ * const command = new ListClusterJobsCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "JobListEntries": [
45
+ * {
46
+ * "CreationDate": "1480475524.0",
47
+ * "Description": "MyClustrer-node-001",
48
+ * "IsMaster": false,
49
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000",
50
+ * "JobState": "New",
51
+ * "JobType": "LOCAL_USE",
52
+ * "SnowballType": "EDGE"
53
+ * },
54
+ * {
55
+ * "CreationDate": "1480475525.0",
56
+ * "Description": "MyClustrer-node-002",
57
+ * "IsMaster": false,
58
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440001",
59
+ * "JobState": "New",
60
+ * "JobType": "LOCAL_USE",
61
+ * "SnowballType": "EDGE"
62
+ * },
63
+ * {
64
+ * "CreationDate": "1480475525.0",
65
+ * "Description": "MyClustrer-node-003",
66
+ * "IsMaster": false,
67
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440002",
68
+ * "JobState": "New",
69
+ * "JobType": "LOCAL_USE",
70
+ * "SnowballType": "EDGE"
71
+ * },
72
+ * {
73
+ * "CreationDate": "1480475525.0",
74
+ * "Description": "MyClustrer-node-004",
75
+ * "IsMaster": false,
76
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440003",
77
+ * "JobState": "New",
78
+ * "JobType": "LOCAL_USE",
79
+ * "SnowballType": "EDGE"
80
+ * },
81
+ * {
82
+ * "CreationDate": "1480475525.0",
83
+ * "Description": "MyClustrer-node-005",
84
+ * "IsMaster": false,
85
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440004",
86
+ * "JobState": "New",
87
+ * "JobType": "LOCAL_USE",
88
+ * "SnowballType": "EDGE"
89
+ * }
90
+ * ]
91
+ * }
92
+ * *\/
93
+ * // example id: to-get-a-list-of-jobs-in-a-cluster-that-youve-created-for-aws-snowball-1482863105773
94
+ * ```
95
+ *
34
96
  */
35
97
  export declare class ListClusterJobsCommand extends $Command<ListClusterJobsCommandInput, ListClusterJobsCommandOutput, SnowballClientResolvedConfig> {
36
98
  readonly input: ListClusterJobsCommandInput;
@@ -31,6 +31,27 @@ export interface ListClustersCommandOutput extends ListClustersResult, __Metadat
31
31
  * @see {@link ListClustersCommandOutput} for command's `response` shape.
32
32
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
33
33
  *
34
+ * @example To get a list of clusters that you've created for AWS Snowball
35
+ * ```javascript
36
+ * // Returns an array of ClusterListEntry objects of the specified length. Each ClusterListEntry object contains a cluster's state, a cluster's ID, and other important status information.
37
+ * const input = {};
38
+ * const command = new ListClustersCommand(input);
39
+ * const response = await client.send(command);
40
+ * /* response ==
41
+ * {
42
+ * "ClusterListEntries": [
43
+ * {
44
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000",
45
+ * "ClusterState": "Pending",
46
+ * "CreationDate": "1480475517.0",
47
+ * "Description": "MyCluster"
48
+ * }
49
+ * ]
50
+ * }
51
+ * *\/
52
+ * // example id: to-get-a-list-of-clusters-that-youve-created-for-aws-snowball-1482862223003
53
+ * ```
54
+ *
34
55
  */
35
56
  export declare class ListClustersCommand extends $Command<ListClustersCommandInput, ListClustersCommandOutput, SnowballClientResolvedConfig> {
36
57
  readonly input: ListClustersCommandInput;
@@ -33,6 +33,30 @@ export interface ListJobsCommandOutput extends ListJobsResult, __MetadataBearer
33
33
  * @see {@link ListJobsCommandOutput} for command's `response` shape.
34
34
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
35
35
  *
36
+ * @example To get a list of jobs that you've created for AWS Snowball
37
+ * ```javascript
38
+ * // Returns an array of JobListEntry objects of the specified length. Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs. Calling this API action in one of the US regions will return jobs from the list of all jobs associated with this account in all US regions.
39
+ * const input = {};
40
+ * const command = new ListJobsCommand(input);
41
+ * const response = await client.send(command);
42
+ * /* response ==
43
+ * {
44
+ * "JobListEntries": [
45
+ * {
46
+ * "CreationDate": "1460678186.0",
47
+ * "Description": "MyJob",
48
+ * "IsMaster": false,
49
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000",
50
+ * "JobState": "New",
51
+ * "JobType": "IMPORT",
52
+ * "SnowballType": "STANDARD"
53
+ * }
54
+ * ]
55
+ * }
56
+ * *\/
57
+ * // example id: to-get-a-list-of-jobs-that-youve-created-for-aws-snowball-1482542167627
58
+ * ```
59
+ *
36
60
  */
37
61
  export declare class ListJobsCommand extends $Command<ListJobsCommandInput, ListJobsCommandOutput, SnowballClientResolvedConfig> {
38
62
  readonly input: ListJobsCommandInput;
@@ -32,6 +32,19 @@ export interface UpdateClusterCommandOutput extends UpdateClusterResult, __Metad
32
32
  * @see {@link UpdateClusterCommandOutput} for command's `response` shape.
33
33
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
34
34
  *
35
+ * @example To update a cluster
36
+ * ```javascript
37
+ * // This action allows you to update certain parameters for a cluster. Once the cluster changes to a different state, usually within 60 minutes of it being created, this action is no longer available.
38
+ * const input = {
39
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
40
+ * "ClusterId": "CID123e4567-e89b-12d3-a456-426655440000",
41
+ * "Description": "updated-cluster-name"
42
+ * };
43
+ * const command = new UpdateClusterCommand(input);
44
+ * await client.send(command);
45
+ * // example id: to-update-a-cluster-1482863900595
46
+ * ```
47
+ *
35
48
  */
36
49
  export declare class UpdateClusterCommand extends $Command<UpdateClusterCommandInput, UpdateClusterCommandOutput, SnowballClientResolvedConfig> {
37
50
  readonly input: UpdateClusterCommandInput;
@@ -31,6 +31,21 @@ export interface UpdateJobCommandOutput extends UpdateJobResult, __MetadataBeare
31
31
  * @see {@link UpdateJobCommandOutput} for command's `response` shape.
32
32
  * @see {@link SnowballClientResolvedConfig | config} for SnowballClient's `config` shape.
33
33
  *
34
+ * @example To update a job
35
+ * ```javascript
36
+ * // This action allows you to update certain parameters for a job. Once the job changes to a different job state, usually within 60 minutes of the job being created, this action is no longer available.
37
+ * const input = {
38
+ * "AddressId": "ADID1234ab12-3eec-4eb3-9be6-9374c10eb51b",
39
+ * "Description": "updated-job-name",
40
+ * "JobId": "JID123e4567-e89b-12d3-a456-426655440000",
41
+ * "ShippingOption": "NEXT_DAY",
42
+ * "SnowballCapacityPreference": "T100"
43
+ * };
44
+ * const command = new UpdateJobCommand(input);
45
+ * await client.send(command);
46
+ * // example id: to-update-a-job-1482863556886
47
+ * ```
48
+ *
34
49
  */
35
50
  export declare class UpdateJobCommand extends $Command<UpdateJobCommandInput, UpdateJobCommandOutput, SnowballClientResolvedConfig> {
36
51
  readonly input: UpdateJobCommandInput;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-snowball",
3
3
  "description": "AWS SDK for JavaScript Snowball Client for Node.js, Browser and React Native",
4
- "version": "3.287.0",
4
+ "version": "3.289.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,37 +20,37 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.287.0",
24
- "@aws-sdk/config-resolver": "3.287.0",
25
- "@aws-sdk/credential-provider-node": "3.287.0",
26
- "@aws-sdk/fetch-http-handler": "3.282.0",
27
- "@aws-sdk/hash-node": "3.272.0",
28
- "@aws-sdk/invalid-dependency": "3.272.0",
29
- "@aws-sdk/middleware-content-length": "3.282.0",
30
- "@aws-sdk/middleware-endpoint": "3.282.0",
31
- "@aws-sdk/middleware-host-header": "3.282.0",
32
- "@aws-sdk/middleware-logger": "3.287.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.282.0",
34
- "@aws-sdk/middleware-retry": "3.287.0",
35
- "@aws-sdk/middleware-serde": "3.272.0",
36
- "@aws-sdk/middleware-signing": "3.282.0",
37
- "@aws-sdk/middleware-stack": "3.272.0",
38
- "@aws-sdk/middleware-user-agent": "3.282.0",
39
- "@aws-sdk/node-config-provider": "3.287.0",
40
- "@aws-sdk/node-http-handler": "3.282.0",
41
- "@aws-sdk/protocol-http": "3.282.0",
42
- "@aws-sdk/smithy-client": "3.279.0",
43
- "@aws-sdk/types": "3.272.0",
44
- "@aws-sdk/url-parser": "3.272.0",
23
+ "@aws-sdk/client-sts": "3.289.0",
24
+ "@aws-sdk/config-resolver": "3.289.0",
25
+ "@aws-sdk/credential-provider-node": "3.289.0",
26
+ "@aws-sdk/fetch-http-handler": "3.289.0",
27
+ "@aws-sdk/hash-node": "3.289.0",
28
+ "@aws-sdk/invalid-dependency": "3.289.0",
29
+ "@aws-sdk/middleware-content-length": "3.289.0",
30
+ "@aws-sdk/middleware-endpoint": "3.289.0",
31
+ "@aws-sdk/middleware-host-header": "3.289.0",
32
+ "@aws-sdk/middleware-logger": "3.289.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.289.0",
34
+ "@aws-sdk/middleware-retry": "3.289.0",
35
+ "@aws-sdk/middleware-serde": "3.289.0",
36
+ "@aws-sdk/middleware-signing": "3.289.0",
37
+ "@aws-sdk/middleware-stack": "3.289.0",
38
+ "@aws-sdk/middleware-user-agent": "3.289.0",
39
+ "@aws-sdk/node-config-provider": "3.289.0",
40
+ "@aws-sdk/node-http-handler": "3.289.0",
41
+ "@aws-sdk/protocol-http": "3.289.0",
42
+ "@aws-sdk/smithy-client": "3.289.0",
43
+ "@aws-sdk/types": "3.289.0",
44
+ "@aws-sdk/url-parser": "3.289.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.279.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.287.0",
50
- "@aws-sdk/util-endpoints": "3.272.0",
51
- "@aws-sdk/util-retry": "3.272.0",
52
- "@aws-sdk/util-user-agent-browser": "3.282.0",
53
- "@aws-sdk/util-user-agent-node": "3.287.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.289.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.289.0",
50
+ "@aws-sdk/util-endpoints": "3.289.0",
51
+ "@aws-sdk/util-retry": "3.289.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.289.0",
53
+ "@aws-sdk/util-user-agent-node": "3.289.0",
54
54
  "@aws-sdk/util-utf8": "3.254.0",
55
55
  "tslib": "^2.3.1"
56
56
  },