Skip to content

Commit f7b019e

Browse files
author
awstools
committed
feat(client-storage-gateway): Adds SoftwareUpdatePreferences to DescribeMaintenanceStartTime and UpdateMaintenanceStartTime, a structure which contains AutomaticUpdatePolicy.
1 parent ae7c3b0 commit f7b019e

File tree

7 files changed

+199
-54
lines changed

7 files changed

+199
-54
lines changed

clients/client-storage-gateway/src/commands/DescribeMaintenanceStartTimeCommand.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ export interface DescribeMaintenanceStartTimeCommandOutput
3333
__MetadataBearer {}
3434

3535
/**
36-
* <p>Returns your gateway's weekly maintenance start time including the day and time of
37-
* the week. Note that values are in terms of the gateway's time zone.</p>
36+
* <p>Returns your gateway's maintenance window schedule information, with values for
37+
* monthly or weekly cadence, specific day and time to begin maintenance, and which types of
38+
* updates to apply. Time values returned are for the gateway's time zone.</p>
3839
* @example
3940
* Use a bare-bones client and the command you need to make an API call.
4041
* ```javascript
@@ -53,6 +54,9 @@ export interface DescribeMaintenanceStartTimeCommandOutput
5354
* // DayOfWeek: Number("int"),
5455
* // DayOfMonth: Number("int"),
5556
* // Timezone: "STRING_VALUE",
57+
* // SoftwareUpdatePreferences: { // SoftwareUpdatePreferences
58+
* // AutomaticUpdatePolicy: "ALL_VERSIONS" || "EMERGENCY_VERSIONS_ONLY",
59+
* // },
5660
* // };
5761
*
5862
* ```

clients/client-storage-gateway/src/commands/UpdateGatewayInformationCommand.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export interface UpdateGatewayInformationCommandInput extends UpdateGatewayInfor
2828
export interface UpdateGatewayInformationCommandOutput extends UpdateGatewayInformationOutput, __MetadataBearer {}
2929

3030
/**
31-
* <p>Updates a gateway's metadata, which includes the gateway's name and time zone.
32-
* To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in
33-
* your request.</p>
31+
* <p>Updates a gateway's metadata, which includes the gateway's name, time zone,
32+
* and metadata cache size. To specify which gateway to update, use the Amazon Resource Name
33+
* (ARN) of the gateway in your request.</p>
3434
* <note>
3535
* <p>For gateways activated after September 2, 2015, the gateway's ARN contains the
3636
* gateway ID rather than the gateway name. However, changing the name of the gateway has

clients/client-storage-gateway/src/commands/UpdateMaintenanceStartTimeCommand.ts

+21-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,22 @@ export interface UpdateMaintenanceStartTimeCommandInput extends UpdateMaintenanc
2828
export interface UpdateMaintenanceStartTimeCommandOutput extends UpdateMaintenanceStartTimeOutput, __MetadataBearer {}
2929

3030
/**
31-
* <p>Updates a gateway's weekly maintenance start time information, including day and
32-
* time of the week. The maintenance time is the time in your gateway's time zone.</p>
31+
* <p>Updates a gateway's maintenance window schedule, with settings for monthly or
32+
* weekly cadence, specific day and time to begin maintenance, and which types of updates to
33+
* apply. Time configuration uses the gateway's time zone. You can pass values for a complete
34+
* maintenance schedule, or update policy, or both. Previous values will persist for whichever
35+
* setting you choose not to modify. If an incomplete or invalid maintenance schedule is
36+
* passed, the entire request will be rejected with an error and no changes will occur.</p>
37+
* <p>A complete maintenance schedule must include values for <i>both</i>
38+
* <code>MinuteOfHour</code> and <code>HourOfDay</code>, and <i>either</i>
39+
* <code>DayOfMonth</code>
40+
* <i>or</i>
41+
* <code>DayOfWeek</code>.</p>
42+
* <note>
43+
* <p>We recommend keeping maintenance updates turned on, except in specific use cases
44+
* where the brief disruptions caused by updating the gateway could critically impact your
45+
* deployment.</p>
46+
* </note>
3347
* @example
3448
* Use a bare-bones client and the command you need to make an API call.
3549
* ```javascript
@@ -38,10 +52,13 @@ export interface UpdateMaintenanceStartTimeCommandOutput extends UpdateMaintenan
3852
* const client = new StorageGatewayClient(config);
3953
* const input = { // UpdateMaintenanceStartTimeInput
4054
* GatewayARN: "STRING_VALUE", // required
41-
* HourOfDay: Number("int"), // required
42-
* MinuteOfHour: Number("int"), // required
55+
* HourOfDay: Number("int"),
56+
* MinuteOfHour: Number("int"),
4357
* DayOfWeek: Number("int"),
4458
* DayOfMonth: Number("int"),
59+
* SoftwareUpdatePreferences: { // SoftwareUpdatePreferences
60+
* AutomaticUpdatePolicy: "ALL_VERSIONS" || "EMERGENCY_VERSIONS_ONLY",
61+
* },
4562
* };
4663
* const command = new UpdateMaintenanceStartTimeCommand(input);
4764
* const response = await client.send(command);

clients/client-storage-gateway/src/commands/UpdateSMBSecurityStrategyCommand.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ export interface UpdateSMBSecurityStrategyCommandInput extends UpdateSMBSecurity
2828
export interface UpdateSMBSecurityStrategyCommandOutput extends UpdateSMBSecurityStrategyOutput, __MetadataBearer {}
2929

3030
/**
31-
* <p>Updates the SMB security strategy on a file gateway. This action is only supported in
32-
* file gateways.</p>
31+
* <p>Updates the SMB security strategy level for an Amazon S3 file gateway. This
32+
* action is only supported for Amazon S3 file gateways.</p>
3333
* <note>
34-
* <p>This API is called Security level in the User Guide.</p>
35-
* <p>A higher security level can affect performance of the gateway.</p>
34+
* <p>For information about configuring this setting using the Amazon Web Services console,
35+
* see <a href="https://docs.aws.amazon.com/filegateway/latest/files3/security-strategy.html">Setting a security level for your gateway</a> in the <i>Amazon S3
36+
* File Gateway User Guide</i>.</p>
37+
* <p>A higher security strategy level can affect performance of the gateway.</p>
3638
* </note>
3739
* @example
3840
* Use a bare-bones client and the command you need to make an API call.

clients/client-storage-gateway/src/models/models_0.ts

+101-25
Original file line numberDiff line numberDiff line change
@@ -791,6 +791,20 @@ export interface AutomaticTapeCreationPolicyInfo {
791791
GatewayARN?: string;
792792
}
793793

794+
/**
795+
* @public
796+
* @enum
797+
*/
798+
export const AutomaticUpdatePolicy = {
799+
ALL_VERSIONS: "ALL_VERSIONS",
800+
EMERGENCY_VERSIONS_ONLY: "EMERGENCY_VERSIONS_ONLY",
801+
} as const;
802+
803+
/**
804+
* @public
805+
*/
806+
export type AutomaticUpdatePolicy = (typeof AutomaticUpdatePolicy)[keyof typeof AutomaticUpdatePolicy];
807+
794808
/**
795809
* @public
796810
* @enum
@@ -3379,11 +3393,33 @@ export interface DescribeMaintenanceStartTimeInput {
33793393
GatewayARN: string | undefined;
33803394
}
33813395

3396+
/**
3397+
* <p>A set of variables indicating the software update preferences for the gateway.</p>
3398+
* @public
3399+
*/
3400+
export interface SoftwareUpdatePreferences {
3401+
/**
3402+
* <p>Indicates the automatic update policy for a gateway.</p>
3403+
* <p>
3404+
* <code>ALL_VERSIONS</code> - Enables regular gateway maintenance updates.</p>
3405+
* <p>
3406+
* <code>EMERGENCY_VERSIONS_ONLY</code> - Disables regular gateway maintenance
3407+
* updates.</p>
3408+
* @public
3409+
*/
3410+
AutomaticUpdatePolicy?: AutomaticUpdatePolicy;
3411+
}
3412+
33823413
/**
33833414
* <p>A JSON object containing the following fields:</p>
33843415
* <ul>
33853416
* <li>
33863417
* <p>
3418+
* <a>DescribeMaintenanceStartTimeOutput$SoftwareUpdatePreferences</a>
3419+
* </p>
3420+
* </li>
3421+
* <li>
3422+
* <p>
33873423
* <a>DescribeMaintenanceStartTimeOutput$DayOfMonth</a>
33883424
* </p>
33893425
* </li>
@@ -3444,8 +3480,8 @@ export interface DescribeMaintenanceStartTimeOutput {
34443480

34453481
/**
34463482
* <p>The day of the month component of the maintenance start time represented as an ordinal
3447-
* number from 1 to 28, where 1 represents the first day of the month and 28 represents the
3448-
* last day of the month.</p>
3483+
* number from 1 to 28, where 1 represents the first day of the month. It is not possible to
3484+
* set the maintenance schedule to start on days 29 through 31.</p>
34493485
* @public
34503486
*/
34513487
DayOfMonth?: number;
@@ -3456,6 +3492,18 @@ export interface DescribeMaintenanceStartTimeOutput {
34563492
* @public
34573493
*/
34583494
Timezone?: string;
3495+
3496+
/**
3497+
* <p>A set of variables indicating the software update preferences for the gateway.</p>
3498+
* <p>Includes <code>AutomaticUpdatePolicy</code> field with the following inputs:</p>
3499+
* <p>
3500+
* <code>ALL_VERSIONS</code> - Enables regular gateway maintenance updates.</p>
3501+
* <p>
3502+
* <code>EMERGENCY_VERSIONS_ONLY</code> - Disables regular gateway maintenance
3503+
* updates.</p>
3504+
* @public
3505+
*/
3506+
SoftwareUpdatePreferences?: SoftwareUpdatePreferences;
34593507
}
34603508

34613509
/**
@@ -4196,26 +4244,26 @@ export interface DescribeSMBSettingsOutput {
41964244
* </li>
41974245
* <li>
41984246
* <p>
4199-
* <code>MandatorySigning</code>: If you use this option, File Gateway only allows
4247+
* <code>MandatorySigning</code>: If you choose this option, File Gateway only allows
42004248
* connections from SMBv2 or SMBv3 clients that have signing turned on. This option
42014249
* works with SMB clients on Microsoft Windows Vista, Windows Server 2008, or later.
42024250
* </p>
42034251
* </li>
42044252
* <li>
42054253
* <p>
4206-
* <code>MandatoryEncryption</code>: If you use this option, File Gateway only allows
4207-
* connections from SMBv3 clients that have encryption turned on. Both 256-bit and
4208-
* 128-bit algorithms are allowed. This option is recommended for environments that
4254+
* <code>MandatoryEncryption</code>: If you choose this option, File Gateway only
4255+
* allows connections from SMBv3 clients that have encryption turned on. Both 256-bit
4256+
* and 128-bit algorithms are allowed. This option is recommended for environments that
42094257
* handle sensitive data. It works with SMB clients on Microsoft Windows 8, Windows
42104258
* Server 2012, or later.</p>
42114259
* </li>
42124260
* <li>
42134261
* <p>
4214-
* <code>EnforceEncryption</code>: If you use this option, File Gateway only allows
4215-
* connections from SMBv3 clients that use 256-bit AES encryption algorithms. 128-bit
4216-
* algorithms are not allowed. This option is recommended for environments that handle
4217-
* sensitive data. It works with SMB clients on Microsoft Windows 8, Windows Server
4218-
* 2012, or later.</p>
4262+
* <code>MandatoryEncryptionNoAes128</code>: If you choose this option, File Gateway
4263+
* only allows connections from SMBv3 clients that use 256-bit AES encryption
4264+
* algorithms. 128-bit algorithms are not allowed. This option is recommended for
4265+
* environments that handle sensitive data. It works with SMB clients on Microsoft
4266+
* Windows 8, Windows Server 2012, or later.</p>
42194267
* </li>
42204268
* </ul>
42214269
* @public
@@ -6953,7 +7001,9 @@ export interface UpdateGatewayInformationInput {
69537001
CloudWatchLogGroupARN?: string;
69547002

69557003
/**
6956-
* <p>Specifies the size of the gateway's metadata cache.</p>
7004+
* <p>Specifies the size of the gateway's metadata cache. This setting impacts gateway
7005+
* performance and hardware recommendations. For more information, see <a href="https://docs.aws.amazon.com/filegateway/latest/files3/performance-multiple-file-shares.html">Performance guidance for gateways with multiple file shares</a>
7006+
* in the <i>Amazon S3 File Gateway User Guide</i>.</p>
69577007
* @public
69587008
*/
69597009
GatewayCapacity?: GatewayCapacity;
@@ -7011,6 +7061,11 @@ export interface UpdateGatewaySoftwareNowOutput {
70117061
* <ul>
70127062
* <li>
70137063
* <p>
7064+
* <a>UpdateMaintenanceStartTimeInput$SoftwareUpdatePreferences</a>
7065+
* </p>
7066+
* </li>
7067+
* <li>
7068+
* <p>
70147069
* <a>UpdateMaintenanceStartTimeInput$DayOfMonth</a>
70157070
* </p>
70167071
* </li>
@@ -7046,30 +7101,42 @@ export interface UpdateMaintenanceStartTimeInput {
70467101
* zone of the gateway.</p>
70477102
* @public
70487103
*/
7049-
HourOfDay: number | undefined;
7104+
HourOfDay?: number;
70507105

70517106
/**
70527107
* <p>The minute component of the maintenance start time represented as
70537108
* <i>mm</i>, where <i>mm</i> is the minute (00 to 59). The
70547109
* minute of the hour is in the time zone of the gateway.</p>
70557110
* @public
70567111
*/
7057-
MinuteOfHour: number | undefined;
7112+
MinuteOfHour?: number;
70587113

70597114
/**
70607115
* <p>The day of the week component of the maintenance start time week represented as an
7061-
* ordinal number from 0 to 6, where 0 represents Sunday and 6 Saturday.</p>
7116+
* ordinal number from 0 to 6, where 0 represents Sunday and 6 represents Saturday.</p>
70627117
* @public
70637118
*/
70647119
DayOfWeek?: number;
70657120

70667121
/**
70677122
* <p>The day of the month component of the maintenance start time represented as an ordinal
7068-
* number from 1 to 28, where 1 represents the first day of the month and 28 represents the
7069-
* last day of the month.</p>
7123+
* number from 1 to 28, where 1 represents the first day of the month. It is not possible to
7124+
* set the maintenance schedule to start on days 29 through 31.</p>
70707125
* @public
70717126
*/
70727127
DayOfMonth?: number;
7128+
7129+
/**
7130+
* <p>A set of variables indicating the software update preferences for the gateway.</p>
7131+
* <p>Includes <code>AutomaticUpdatePolicy</code> field with the following inputs:</p>
7132+
* <p>
7133+
* <code>ALL_VERSIONS</code> - Enables regular gateway maintenance updates.</p>
7134+
* <p>
7135+
* <code>EMERGENCY_VERSIONS_ONLY</code> - Disables regular gateway maintenance
7136+
* updates.</p>
7137+
* @public
7138+
*/
7139+
SoftwareUpdatePreferences?: SoftwareUpdatePreferences;
70737140
}
70747141

70757142
/**
@@ -7547,17 +7614,26 @@ export interface UpdateSMBSecurityStrategyInput {
75477614

75487615
/**
75497616
* <p>Specifies the type of security strategy.</p>
7550-
* <p>ClientSpecified: if you use this option, requests are established based on what is
7551-
* negotiated by the client. This option is recommended when you want to maximize
7552-
* compatibility across different clients in your environment. Supported only in S3 File
7617+
* <p>
7618+
* <code>ClientSpecified</code>: If you choose this option, requests are established based
7619+
* on what is negotiated by the client. This option is recommended when you want to maximize
7620+
* compatibility across different clients in your environment. Supported only for S3 File
75537621
* Gateway.</p>
7554-
* <p>MandatorySigning: if you use this option, file gateway only allows connections from
7555-
* SMBv2 or SMBv3 clients that have signing enabled. This option works with SMB clients on
7556-
* Microsoft Windows Vista, Windows Server 2008 or newer.</p>
7557-
* <p>MandatoryEncryption: if you use this option, file gateway only allows connections from
7558-
* SMBv3 clients that have encryption enabled. This option is highly recommended for
7622+
* <p>
7623+
* <code>MandatorySigning</code>: If you choose this option, File Gateway only allows
7624+
* connections from SMBv2 or SMBv3 clients that have signing enabled. This option works with
7625+
* SMB clients on Microsoft Windows Vista, Windows Server 2008 or newer.</p>
7626+
* <p>
7627+
* <code>MandatoryEncryption</code>: If you choose this option, File Gateway only allows
7628+
* connections from SMBv3 clients that have encryption enabled. This option is recommended for
75597629
* environments that handle sensitive data. This option works with SMB clients on Microsoft
75607630
* Windows 8, Windows Server 2012 or newer.</p>
7631+
* <p>
7632+
* <code>MandatoryEncryptionNoAes128</code>: If you choose this option, File Gateway only
7633+
* allows connections from SMBv3 clients that use 256-bit AES encryption algorithms. 128-bit
7634+
* algorithms are not allowed. This option is recommended for environments that handle
7635+
* sensitive data. It works with SMB clients on Microsoft Windows 8, Windows Server 2012, or
7636+
* later.</p>
75617637
* @public
75627638
*/
75637639
SMBSecurityStrategy: SMBSecurityStrategy | undefined;

clients/client-storage-gateway/src/protocols/Aws_json1_1.ts

+5
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ import {
357357
SetSMBGuestPasswordInput,
358358
ShutdownGatewayInput,
359359
SMBLocalGroups,
360+
SoftwareUpdatePreferences,
360361
StartAvailabilityMonitorTestInput,
361362
StartGatewayInput,
362363
StorediSCSIVolume,
@@ -3607,6 +3608,8 @@ const de_ServiceUnavailableErrorRes = async (
36073608

36083609
// se_SMBLocalGroups omitted.
36093610

3611+
// se_SoftwareUpdatePreferences omitted.
3612+
36103613
// se_StartAvailabilityMonitorTestInput omitted.
36113614

36123615
// se_StartGatewayInput omitted.
@@ -4001,6 +4004,8 @@ const de_ListTapesOutput = (output: any, context: __SerdeContext): ListTapesOutp
40014004

40024005
// de_SMBLocalGroups omitted.
40034006

4007+
// de_SoftwareUpdatePreferences omitted.
4008+
40044009
// de_StartAvailabilityMonitorTestOutput omitted.
40054010

40064011
// de_StartGatewayOutput omitted.

0 commit comments

Comments
 (0)