Skip to content

Commit

Permalink
feat(client-ec2): SDK and documentation updates for Amazon Elastic Bl…
Browse files Browse the repository at this point in the history
…ock Store APIs
  • Loading branch information
awstools committed Jul 27, 2023
1 parent 1fb75df commit 340ee0b
Show file tree
Hide file tree
Showing 17 changed files with 401 additions and 150 deletions.
1 change: 1 addition & 0 deletions clients/client-ec2/src/commands/CreateSnapshotCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export interface CreateSnapshotCommandOutput extends Snapshot, __MetadataBearer
* // ],
* // StorageTier: "archive" || "standard",
* // RestoreExpiryTime: new Date("TIMESTAMP"),
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // };
*
* ```
Expand Down
1 change: 1 addition & 0 deletions clients/client-ec2/src/commands/CreateSnapshotsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export interface CreateSnapshotsCommandOutput extends CreateSnapshotsResult, __M
* // OwnerId: "STRING_VALUE",
* // SnapshotId: "STRING_VALUE",
* // OutpostArn: "STRING_VALUE",
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // },
* // ],
* // };
Expand Down
1 change: 1 addition & 0 deletions clients/client-ec2/src/commands/CreateVolumeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export interface CreateVolumeCommandOutput extends Volume, __MetadataBearer {}
* // FastRestored: true || false,
* // MultiAttachEnabled: true || false,
* // Throughput: Number("int"),
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export interface DescribeSnapshotsCommandOutput extends DescribeSnapshotsResult,
* // ],
* // StorageTier: "archive" || "standard",
* // RestoreExpiryTime: new Date("TIMESTAMP"),
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
1 change: 1 addition & 0 deletions clients/client-ec2/src/commands/DescribeVolumesCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export interface DescribeVolumesCommandOutput extends DescribeVolumesResult, __M
* // FastRestored: true || false,
* // MultiAttachEnabled: true || false,
* // Throughput: Number("int"),
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface GetEbsEncryptionByDefaultCommandOutput extends GetEbsEncryption
* const response = await client.send(command);
* // { // GetEbsEncryptionByDefaultResult
* // EbsEncryptionByDefault: true || false,
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export interface RestoreSnapshotFromRecycleBinCommandOutput
* // State: "pending" || "completed" || "error" || "recoverable" || "recovering",
* // VolumeId: "STRING_VALUE",
* // VolumeSize: Number("int"),
* // SseType: "sse-ebs" || "sse-kms" || "none",
* // };
*
* ```
Expand Down
46 changes: 30 additions & 16 deletions clients/client-ec2/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,21 @@ export interface CreateSnapshotRequest {
DryRun?: boolean;
}

/**
* @public
* @enum
*/
export const SSEType = {
none: "none",
sse_ebs: "sse-ebs",
sse_kms: "sse-kms",
} as const;

/**
* @public
*/
export type SSEType = (typeof SSEType)[keyof typeof SSEType];

/**
* @public
* @enum
Expand Down Expand Up @@ -953,6 +968,11 @@ export interface Snapshot {
* time when a temporarily restored snapshot will be automatically re-archived.</p>
*/
RestoreExpiryTime?: Date;

/**
* <p>Reserved for future use.</p>
*/
SseType?: SSEType | string;
}

/**
Expand Down Expand Up @@ -1111,6 +1131,11 @@ export interface SnapshotInfo {
* <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
*/
OutpostArn?: string;

/**
* <p>Reserved for future use.</p>
*/
SseType?: SSEType | string;
}

/**
Expand Down Expand Up @@ -4432,6 +4457,11 @@ export interface Volume {
* <p>The throughput that the volume supports, in MiB/s.</p>
*/
Throughput?: number;

/**
* <p>Reserved for future use.</p>
*/
SseType?: SSEType | string;
}

/**
Expand Down Expand Up @@ -7704,22 +7734,6 @@ export interface DeleteQueuedReservedInstancesError {
Message?: string;
}

/**
* @public
* <p>Describes a Reserved Instance whose queued purchase was not deleted.</p>
*/
export interface FailedQueuedPurchaseDeletion {
/**
* <p>The error.</p>
*/
Error?: DeleteQueuedReservedInstancesError;

/**
* <p>The ID of the Reserved Instance.</p>
*/
ReservedInstancesId?: string;
}

/**
* @internal
*/
Expand Down
29 changes: 17 additions & 12 deletions clients/client-ec2/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ import {
TransportProtocol,
} from "./models_1";
import {
FailedQueuedPurchaseDeletion,
DeleteQueuedReservedInstancesError,
FleetStateCode,
SubnetCidrReservation,
TransitGateway,
Expand All @@ -91,6 +91,22 @@ import {
VerifiedAccessGroup,
} from "./models_2";

/**
* @public
* <p>Describes a Reserved Instance whose queued purchase was not deleted.</p>
*/
export interface FailedQueuedPurchaseDeletion {
/**
* <p>The error.</p>
*/
Error?: DeleteQueuedReservedInstancesError;

/**
* <p>The ID of the Reserved Instance.</p>
*/
ReservedInstancesId?: string;
}

/**
* @public
* <p>Describes a Reserved Instance whose queued purchase was successfully deleted.</p>
Expand Down Expand Up @@ -9169,17 +9185,6 @@ export const InstanceLifecycleType = {
*/
export type InstanceLifecycleType = (typeof InstanceLifecycleType)[keyof typeof InstanceLifecycleType];

/**
* @public
* <p>Describes a license configuration.</p>
*/
export interface LicenseConfiguration {
/**
* <p>The Amazon Resource Name (ARN) of the license configuration.</p>
*/
LicenseConfigurationArn?: string;
}

/**
* @internal
*/
Expand Down
28 changes: 11 additions & 17 deletions clients/client-ec2/src/models/models_4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,22 @@ import {
InstanceBlockDeviceMapping,
InstanceBootModeValues,
InstanceLifecycleType,
LicenseConfiguration,
PermissionGroup,
ProductCode,
VirtualizationType,
} from "./models_3";

/**
* @public
* <p>Describes a license configuration.</p>
*/
export interface LicenseConfiguration {
/**
* <p>The Amazon Resource Name (ARN) of the license configuration.</p>
*/
LicenseConfigurationArn?: string;
}

/**
* @public
* @enum
Expand Down Expand Up @@ -11143,22 +11153,6 @@ export const VerifiedAccessLogDeliveryStatusCode = {
export type VerifiedAccessLogDeliveryStatusCode =
(typeof VerifiedAccessLogDeliveryStatusCode)[keyof typeof VerifiedAccessLogDeliveryStatusCode];

/**
* @public
* <p>Describes a log delivery status.</p>
*/
export interface VerifiedAccessLogDeliveryStatus {
/**
* <p>The status code.</p>
*/
Code?: VerifiedAccessLogDeliveryStatusCode | string;

/**
* <p>The status message.</p>
*/
Message?: string;
}

/**
* @internal
*/
Expand Down
50 changes: 23 additions & 27 deletions clients/client-ec2/src/models/models_5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import {
ServiceConfiguration,
ServiceConnectivityType,
ServiceTypeDetail,
SSEType,
State,
SubnetCidrReservation,
TransitGatewayPrefixListReference,
Expand All @@ -77,7 +78,23 @@ import {
StatisticType,
VirtualizationType,
} from "./models_3";
import { AnalysisStatus, ArchitectureType, VerifiedAccessLogDeliveryStatus } from "./models_4";
import { AnalysisStatus, ArchitectureType, VerifiedAccessLogDeliveryStatusCode } from "./models_4";

/**
* @public
* <p>Describes a log delivery status.</p>
*/
export interface VerifiedAccessLogDeliveryStatus {
/**
* <p>The status code.</p>
*/
Code?: VerifiedAccessLogDeliveryStatusCode | string;

/**
* <p>The status message.</p>
*/
Message?: string;
}

/**
* @public
Expand Down Expand Up @@ -4997,6 +5014,11 @@ export interface GetEbsEncryptionByDefaultResult {
* <p>Indicates whether encryption by default is enabled.</p>
*/
EbsEncryptionByDefault?: boolean;

/**
* <p>Reserved for future use.</p>
*/
SseType?: SSEType | string;
}

/**
Expand Down Expand Up @@ -7627,32 +7649,6 @@ export interface ImportClientVpnClientCertificateRevocationListResult {
Return?: boolean;
}

/**
* @public
* <p>Describes the client-specific data.</p>
*/
export interface ClientData {
/**
* <p>A user-defined comment about the disk upload.</p>
*/
Comment?: string;

/**
* <p>The time that the disk upload ends.</p>
*/
UploadEnd?: Date;

/**
* <p>The size of the uploaded disk image, in GiB.</p>
*/
UploadSize?: number;

/**
* <p>The time that the disk upload starts.</p>
*/
UploadStart?: Date;
}

/**
* @internal
*/
Expand Down
Loading

0 comments on commit 340ee0b

Please sign in to comment.