Skip to content

Commit

Permalink
feat(client-glue): Add IncludeRoot parameters to GetCatalogs API to r…
Browse files Browse the repository at this point in the history
…eturn root catalog.
  • Loading branch information
awstools committed Dec 23, 2024
1 parent 25a57cb commit f88136b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions clients/client-glue/src/commands/GetCatalogsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface GetCatalogsCommandOutput extends GetCatalogsResponse, __Metadat
* NextToken: "STRING_VALUE",
* MaxResults: Number("int"),
* Recursive: true || false,
* IncludeRoot: true || false,
* };
* const command = new GetCatalogsCommand(input);
* const response = await client.send(command);
Expand Down
4 changes: 3 additions & 1 deletion clients/client-glue/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8786,7 +8786,9 @@ export interface JobRun {
/**
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can
* consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job.</p>
* <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>
* <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
* <p>When the value is left blank, the timeout is defaulted to 2880 minutes.</p>
* <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>
* @public
*/
Timeout?: number | undefined;
Expand Down
9 changes: 8 additions & 1 deletion clients/client-glue/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6861,10 +6861,17 @@ export interface GetCatalogsRequest {
MaxResults?: number | undefined;

/**
* <p>When specified as true, iterates through the account and returns all catalog resources (including top-level resources and child resources)</p>
* <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>
* @public
*/
Recursive?: boolean | undefined;

/**
* <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>
* <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>
* @public
*/
IncludeRoot?: boolean | undefined;
}

/**
Expand Down
4 changes: 3 additions & 1 deletion clients/client-glue/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,9 @@ export interface StartJobRunRequest {
/**
* <p>The <code>JobRun</code> timeout in minutes. This is the maximum time that a job run can
* consume resources before it is terminated and enters <code>TIMEOUT</code> status. This value overrides the timeout value set in the parent job. </p>
* <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>
* <p>Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.</p>
* <p>When the value is left blank, the timeout is defaulted to 2880 minutes.</p>
* <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>
* @public
*/
Timeout?: number | undefined;
Expand Down
12 changes: 9 additions & 3 deletions codegen/sdk-codegen/aws-models/glue.json
Original file line number Diff line number Diff line change
Expand Up @@ -18982,7 +18982,13 @@
"target": "com.amazonaws.glue#Boolean",
"traits": {
"smithy.api#default": false,
"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>"
"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>"
}
},
"IncludeRoot": {
"target": "com.amazonaws.glue#NullableBoolean",
"traits": {
"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>"
}
}
},
Expand Down Expand Up @@ -27414,7 +27420,7 @@
"Timeout": {
"target": "com.amazonaws.glue#Timeout",
"traits": {
"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>"
"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>"
}
},
"MaxCapacity": {
Expand Down Expand Up @@ -38513,7 +38519,7 @@
"Timeout": {
"target": "com.amazonaws.glue#Timeout",
"traits": {
"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>"
"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>"
}
},
"MaxCapacity": {
Expand Down

0 comments on commit f88136b

Please sign in to comment.