Skip to content

Commit f1f4163

Browse files
author
awstools
committed
feat(client-backup): AWS Backup - Features: Add VaultType to the output of DescribeRecoveryPoint, ListRecoveryPointByBackupVault API and add ResourceType to the input of ListRestoreJobs API
1 parent 2a70f0c commit f1f4163

File tree

7 files changed

+223
-10
lines changed

7 files changed

+223
-10
lines changed

clients/client-backup/src/commands/DescribeRecoveryPointCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export interface DescribeRecoveryPointCommandOutput extends DescribeRecoveryPoin
8888
* // CompositeMemberIdentifier: "STRING_VALUE",
8989
* // IsParent: true || false,
9090
* // ResourceName: "STRING_VALUE",
91+
* // VaultType: "BACKUP_VAULT" || "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
9192
* // };
9293
*
9394
* ```

clients/client-backup/src/commands/ListRecoveryPointsByBackupVaultCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export interface ListRecoveryPointsByBackupVaultCommandOutput
101101
* // CompositeMemberIdentifier: "STRING_VALUE",
102102
* // IsParent: true || false,
103103
* // ResourceName: "STRING_VALUE",
104+
* // VaultType: "BACKUP_VAULT" || "LOGICALLY_AIR_GAPPED_BACKUP_VAULT",
104105
* // },
105106
* // ],
106107
* // };

clients/client-backup/src/commands/ListRestoreJobsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface ListRestoreJobsCommandOutput extends ListRestoreJobsOutput, __M
4949
* NextToken: "STRING_VALUE",
5050
* MaxResults: Number("int"),
5151
* ByAccountId: "STRING_VALUE",
52+
* ByResourceType: "STRING_VALUE",
5253
* ByCreatedBefore: new Date("TIMESTAMP"),
5354
* ByCreatedAfter: new Date("TIMESTAMP"),
5455
* ByStatus: "PENDING" || "RUNNING" || "COMPLETED" || "ABORTED" || "FAILED",

clients/client-backup/src/commands/UpdateRegionSettingsCommand.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ export interface UpdateRegionSettingsCommandOutput extends __MetadataBearer {}
3737

3838
/**
3939
* @public
40-
* <p>Updates the current service opt-in settings for the Region. If service-opt-in is enabled
41-
* for a service, Backup tries to protect that service's resources in this Region,
42-
* when the resource is included in an on-demand backup or scheduled backup plan. Otherwise,
43-
* Backup does not try to protect that service's resources in this Region. Use
40+
* <p>Updates the current service opt-in settings for the Region.</p>
41+
* <p>Use
4442
* the <code>DescribeRegionSettings</code> API to determine the resource types that are
4543
* supported.</p>
4644
* @example

clients/client-backup/src/models/models_0.ts

Lines changed: 191 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4192,6 +4192,12 @@ export interface DescribeRecoveryPointOutput {
41924192
* belongs to the specified backup.</p>
41934193
*/
41944194
ResourceName?: string;
4195+
4196+
/**
4197+
* @public
4198+
* <p>This is the type of vault in which the described recovery point is stored.</p>
4199+
*/
4200+
VaultType?: VaultType;
41954201
}
41964202

41974203
/**
@@ -5579,6 +5585,10 @@ export interface ListBackupJobsInput {
55795585
* </li>
55805586
* <li>
55815587
* <p>
5588+
* <code>CloudFormation</code> for CloudFormation</p>
5589+
* </li>
5590+
* <li>
5591+
* <p>
55825592
* <code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p>
55835593
* </li>
55845594
* <li>
@@ -5607,10 +5617,18 @@ export interface ListBackupJobsInput {
56075617
* </li>
56085618
* <li>
56095619
* <p>
5620+
* <code>Redshift</code> for Amazon Redshift</p>
5621+
* </li>
5622+
* <li>
5623+
* <p>
56105624
* <code>RDS</code> for Amazon Relational Database Service</p>
56115625
* </li>
56125626
* <li>
56135627
* <p>
5628+
* <code>SAP HANA on Amazon EC2</code> for SAP HANA databases</p>
5629+
* </li>
5630+
* <li>
5631+
* <p>
56145632
* <code>Storage Gateway</code> for Storage Gateway</p>
56155633
* </li>
56165634
* <li>
@@ -5619,6 +5637,10 @@ export interface ListBackupJobsInput {
56195637
* </li>
56205638
* <li>
56215639
* <p>
5640+
* <code>Timestream</code> for Amazon Timestream</p>
5641+
* </li>
5642+
* <li>
5643+
* <p>
56225644
* <code>VirtualMachine</code> for virtual machines</p>
56235645
* </li>
56245646
* </ul>
@@ -6130,6 +6152,10 @@ export interface ListCopyJobsInput {
61306152
* </li>
61316153
* <li>
61326154
* <p>
6155+
* <code>CloudFormation</code> for CloudFormation</p>
6156+
* </li>
6157+
* <li>
6158+
* <p>
61336159
* <code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p>
61346160
* </li>
61356161
* <li>
@@ -6158,10 +6184,18 @@ export interface ListCopyJobsInput {
61586184
* </li>
61596185
* <li>
61606186
* <p>
6187+
* <code>Redshift</code> for Amazon Redshift</p>
6188+
* </li>
6189+
* <li>
6190+
* <p>
61616191
* <code>RDS</code> for Amazon Relational Database Service</p>
61626192
* </li>
61636193
* <li>
61646194
* <p>
6195+
* <code>SAP HANA on Amazon EC2</code> for SAP HANA databases</p>
6196+
* </li>
6197+
* <li>
6198+
* <p>
61656199
* <code>Storage Gateway</code> for Storage Gateway</p>
61666200
* </li>
61676201
* <li>
@@ -6170,6 +6204,10 @@ export interface ListCopyJobsInput {
61706204
* </li>
61716205
* <li>
61726206
* <p>
6207+
* <code>Timestream</code> for Amazon Timestream</p>
6208+
* </li>
6209+
* <li>
6210+
* <p>
61736211
* <code>VirtualMachine</code> for virtual machines</p>
61746212
* </li>
61756213
* </ul>
@@ -6780,7 +6818,73 @@ export interface ListRecoveryPointsByBackupVaultInput {
67806818

67816819
/**
67826820
* @public
6783-
* <p>Returns only recovery points that match the specified resource type.</p>
6821+
* <p>Returns only recovery points that match the specified resource type(s):</p>
6822+
* <ul>
6823+
* <li>
6824+
* <p>
6825+
* <code>Aurora</code> for Amazon Aurora</p>
6826+
* </li>
6827+
* <li>
6828+
* <p>
6829+
* <code>CloudFormation</code> for CloudFormation</p>
6830+
* </li>
6831+
* <li>
6832+
* <p>
6833+
* <code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p>
6834+
* </li>
6835+
* <li>
6836+
* <p>
6837+
* <code>DynamoDB</code> for Amazon DynamoDB</p>
6838+
* </li>
6839+
* <li>
6840+
* <p>
6841+
* <code>EBS</code> for Amazon Elastic Block Store</p>
6842+
* </li>
6843+
* <li>
6844+
* <p>
6845+
* <code>EC2</code> for Amazon Elastic Compute Cloud</p>
6846+
* </li>
6847+
* <li>
6848+
* <p>
6849+
* <code>EFS</code> for Amazon Elastic File System</p>
6850+
* </li>
6851+
* <li>
6852+
* <p>
6853+
* <code>FSx</code> for Amazon FSx</p>
6854+
* </li>
6855+
* <li>
6856+
* <p>
6857+
* <code>Neptune</code> for Amazon Neptune</p>
6858+
* </li>
6859+
* <li>
6860+
* <p>
6861+
* <code>Redshift</code> for Amazon Redshift</p>
6862+
* </li>
6863+
* <li>
6864+
* <p>
6865+
* <code>RDS</code> for Amazon Relational Database Service</p>
6866+
* </li>
6867+
* <li>
6868+
* <p>
6869+
* <code>SAP HANA on Amazon EC2</code> for SAP HANA databases</p>
6870+
* </li>
6871+
* <li>
6872+
* <p>
6873+
* <code>Storage Gateway</code> for Storage Gateway</p>
6874+
* </li>
6875+
* <li>
6876+
* <p>
6877+
* <code>S3</code> for Amazon S3</p>
6878+
* </li>
6879+
* <li>
6880+
* <p>
6881+
* <code>Timestream</code> for Amazon Timestream</p>
6882+
* </li>
6883+
* <li>
6884+
* <p>
6885+
* <code>VirtualMachine</code> for virtual machines</p>
6886+
* </li>
6887+
* </ul>
67846888
*/
67856889
ByResourceType?: string;
67866890

@@ -6987,6 +7091,12 @@ export interface RecoveryPointByBackupVault {
69877091
* belongs to the specified backup.</p>
69887092
*/
69897093
ResourceName?: string;
7094+
7095+
/**
7096+
* @public
7097+
* <p>This is the type of vault in which the described recovery point is stored.</p>
7098+
*/
7099+
VaultType?: VaultType;
69907100
}
69917101

69927102
/**
@@ -7357,6 +7467,79 @@ export interface ListRestoreJobsInput {
73577467
*/
73587468
ByAccountId?: string;
73597469

7470+
/**
7471+
* @public
7472+
* <p>Include this parameter to return only restore jobs for the
7473+
* specified resources:</p>
7474+
* <ul>
7475+
* <li>
7476+
* <p>
7477+
* <code>Aurora</code> for Amazon Aurora</p>
7478+
* </li>
7479+
* <li>
7480+
* <p>
7481+
* <code>CloudFormation</code> for CloudFormation</p>
7482+
* </li>
7483+
* <li>
7484+
* <p>
7485+
* <code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)</p>
7486+
* </li>
7487+
* <li>
7488+
* <p>
7489+
* <code>DynamoDB</code> for Amazon DynamoDB</p>
7490+
* </li>
7491+
* <li>
7492+
* <p>
7493+
* <code>EBS</code> for Amazon Elastic Block Store</p>
7494+
* </li>
7495+
* <li>
7496+
* <p>
7497+
* <code>EC2</code> for Amazon Elastic Compute Cloud</p>
7498+
* </li>
7499+
* <li>
7500+
* <p>
7501+
* <code>EFS</code> for Amazon Elastic File System</p>
7502+
* </li>
7503+
* <li>
7504+
* <p>
7505+
* <code>FSx</code> for Amazon FSx</p>
7506+
* </li>
7507+
* <li>
7508+
* <p>
7509+
* <code>Neptune</code> for Amazon Neptune</p>
7510+
* </li>
7511+
* <li>
7512+
* <p>
7513+
* <code>Redshift</code> for Amazon Redshift</p>
7514+
* </li>
7515+
* <li>
7516+
* <p>
7517+
* <code>RDS</code> for Amazon Relational Database Service</p>
7518+
* </li>
7519+
* <li>
7520+
* <p>
7521+
* <code>SAP HANA on Amazon EC2</code> for SAP HANA databases</p>
7522+
* </li>
7523+
* <li>
7524+
* <p>
7525+
* <code>Storage Gateway</code> for Storage Gateway</p>
7526+
* </li>
7527+
* <li>
7528+
* <p>
7529+
* <code>S3</code> for Amazon S3</p>
7530+
* </li>
7531+
* <li>
7532+
* <p>
7533+
* <code>Timestream</code> for Amazon Timestream</p>
7534+
* </li>
7535+
* <li>
7536+
* <p>
7537+
* <code>VirtualMachine</code> for virtual machines</p>
7538+
* </li>
7539+
* </ul>
7540+
*/
7541+
ByResourceType?: string;
7542+
73607543
/**
73617544
* @public
73627545
* <p>Returns only restore jobs that were created before the specified date.</p>
@@ -8964,6 +9147,13 @@ export interface UpdateRegionSettingsInput {
89649147
/**
89659148
* @public
89669149
* <p>Updates the list of services along with the opt-in preferences for the Region.</p>
9150+
* <p>If resource assignments are only based on tags, then service opt-in settings are applied.
9151+
* If a resource type is explicitly assigned to a backup plan, such as Amazon S3,
9152+
* Amazon EC2, or Amazon RDS, it will be included in the
9153+
* backup even if the opt-in is not enabled for that particular service.
9154+
* If both a resource type and tags are specified in a resource assignment,
9155+
* the resource type specified in the backup plan takes priority over the
9156+
* tag condition. Service opt-in settings are disregarded in this situation.</p>
89679157
*/
89689158
ResourceTypeOptInPreference?: Record<string, boolean>;
89699159

clients/client-backup/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,7 @@ export const se_ListRestoreJobsCommand = async (
25242524
nextToken: [, input.NextToken!],
25252525
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults!.toString()],
25262526
accountId: [, input.ByAccountId!],
2527+
resourceType: [, input.ByResourceType!],
25272528
createdBefore: [
25282529
() => input.ByCreatedBefore !== void 0,
25292530
() => (input.ByCreatedBefore!.toISOString().split(".")[0] + "Z").toString(),
@@ -5043,6 +5044,7 @@ export const de_DescribeRecoveryPointCommand = async (
50435044
Status: __expectString,
50445045
StatusMessage: __expectString,
50455046
StorageClass: __expectString,
5047+
VaultType: __expectString,
50465048
});
50475049
Object.assign(contents, doc);
50485050
return contents;
@@ -9396,6 +9398,7 @@ const de_RecoveryPointByBackupVault = (output: any, context: __SerdeContext): Re
93969398
SourceBackupVaultArn: __expectString,
93979399
Status: __expectString,
93989400
StatusMessage: __expectString,
9401+
VaultType: __expectString,
93999402
}) as any;
94009403
};
94019404

0 commit comments

Comments
 (0)