Skip to content

Commit f88136b

Browse files
author
awstools
committed
feat(client-glue): Add IncludeRoot parameters to GetCatalogs API to return root catalog.
1 parent 25a57cb commit f88136b

File tree

5 files changed

+24
-6
lines changed

5 files changed

+24
-6
lines changed

clients/client-glue/src/commands/GetCatalogsCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export interface GetCatalogsCommandOutput extends GetCatalogsResponse, __Metadat
4040
* NextToken: "STRING_VALUE",
4141
* MaxResults: Number("int"),
4242
* Recursive: true || false,
43+
* IncludeRoot: true || false,
4344
* };
4445
* const command = new GetCatalogsCommand(input);
4546
* const response = await client.send(command);

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8786,7 +8786,9 @@ export interface JobRun {
87868786
/**
87878787
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can
87888788
* consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job.</p>
8789-
* <p>Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.</p>
8789+
* <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
8790+
* <p>When the value is left blank, the timeout is defaulted to 2880 minutes.</p>
8791+
* <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
87908792
* @public
87918793
*/
87928794
Timeout?: number | undefined;

clients/client-glue/src/models/models_1.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6861,10 +6861,17 @@ export interface GetCatalogsRequest {
68616861
MaxResults?: number | undefined;
68626862

68636863
/**
6864-
* <p>When specified as true, iterates through the account and returns all catalog resources (including top-level resources and child resources)</p>
6864+
* <p>Whether to list all catalogs across the catalog hierarchy, starting from the <code>ParentCatalogId</code>. Defaults to <code>false</code> . When <code>true</code>, all catalog objects in the <code>ParentCatalogID</code> hierarchy are enumerated in the response.</p>
68656865
* @public
68666866
*/
68676867
Recursive?: boolean | undefined;
6868+
6869+
/**
6870+
* <p>Whether to list the default catalog in the account and region in the response. Defaults to <code>false</code>. When <code>true</code> and <code>ParentCatalogId = NULL | Amazon Web Services Account ID</code>, all catalogs and the default catalog are enumerated in the response.</p>
6871+
* <p>When the <code>ParentCatalogId</code> is not equal to null, and this attribute is passed as <code>false</code> or <code>true</code>, an <code>InvalidInputException</code> is thrown.</p>
6872+
* @public
6873+
*/
6874+
IncludeRoot?: boolean | undefined;
68686875
}
68696876

68706877
/**

clients/client-glue/src/models/models_3.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,9 @@ export interface StartJobRunRequest {
705705
/**
706706
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can
707707
* consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job. </p>
708-
* <p>Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.</p>
708+
* <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
709+
* <p>When the value is left blank, the timeout is defaulted to 2880 minutes.</p>
710+
* <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>
709711
* @public
710712
*/
711713
Timeout?: number | undefined;

codegen/sdk-codegen/aws-models/glue.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18982,7 +18982,13 @@
1898218982
"target": "com.amazonaws.glue#Boolean",
1898318983
"traits": {
1898418984
"smithy.api#default": false,
18985-
"smithy.api#documentation": "<p>When specified as true, iterates through the account and returns all catalog resources (including top-level resources and child resources)</p>"
18985+
"smithy.api#documentation": "<p>Whether to list all catalogs across the catalog hierarchy, starting from the <code>ParentCatalogId</code>. Defaults to <code>false</code> . When <code>true</code>, all catalog objects in the <code>ParentCatalogID</code> hierarchy are enumerated in the response.</p>"
18986+
}
18987+
},
18988+
"IncludeRoot": {
18989+
"target": "com.amazonaws.glue#NullableBoolean",
18990+
"traits": {
18991+
"smithy.api#documentation": "<p>Whether to list the default catalog in the account and region in the response. Defaults to <code>false</code>. When <code>true</code> and <code>ParentCatalogId = NULL | Amazon Web Services Account ID</code>, all catalogs and the default catalog are enumerated in the response.</p>\n <p>When the <code>ParentCatalogId</code> is not equal to null, and this attribute is passed as <code>false</code> or <code>true</code>, an <code>InvalidInputException</code> is thrown.</p>"
1898618992
}
1898718993
}
1898818994
},
@@ -27414,7 +27420,7 @@
2741427420
"Timeout": {
2741527421
"target": "com.amazonaws.glue#Timeout",
2741627422
"traits": {
27417-
"smithy.api#documentation": "<p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can\n consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job.</p>\n <p>Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.</p>"
27423+
"smithy.api#documentation": "<p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can\n consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job.</p>\n <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>\n <p>When the value is left blank, the timeout is defaulted to 2880 minutes.</p>\n <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>"
2741827424
}
2741927425
},
2742027426
"MaxCapacity": {
@@ -38513,7 +38519,7 @@
3851338519
"Timeout": {
3851438520
"target": "com.amazonaws.glue#Timeout",
3851538521
"traits": {
38516-
"smithy.api#documentation": "<p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can\n consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job. </p>\n <p>Streaming jobs must have timeout values less than 7 days or 10080 minutes. When the value is left blank, the job will be restarted after 7 days based if you have not setup a maintenance window. If you have setup maintenance window, it will be restarted during the maintenance window after 7 days.</p>"
38522+
"smithy.api#documentation": "<p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can\n consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job. </p>\n <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>\n <p>When the value is left blank, the timeout is defaulted to 2880 minutes.</p>\n <p>Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.</p>"
3851738523
}
3851838524
},
3851938525
"MaxCapacity": {

0 commit comments

Comments
 (0)