Skip to content

Commit 4f00d79

Browse files
author
awstools
committed
feat(client-opensearch): This release adds support for enabling or disabling a data source configured as part of Zero-ETL integration with Amazon S3, by setting its status.
1 parent 23a0082 commit 4f00d79

File tree

6 files changed

+74
-2
lines changed

6 files changed

+74
-2
lines changed

clients/client-opensearch/src/commands/GetDataSourceCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met
4848
* // },
4949
* // Name: "STRING_VALUE",
5050
* // Description: "STRING_VALUE",
51+
* // Status: "ACTIVE" || "DISABLED",
5152
* // };
5253
*
5354
* ```

clients/client-opensearch/src/commands/ListDataSourcesCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
5151
* // },
5252
* // Name: "STRING_VALUE",
5353
* // Description: "STRING_VALUE",
54+
* // Status: "ACTIVE" || "DISABLED",
5455
* // },
5556
* // ],
5657
* // };

clients/client-opensearch/src/commands/UpdateDataSourceCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
4444
* },
4545
* },
4646
* Description: "STRING_VALUE",
47+
* Status: "ACTIVE" || "DISABLED",
4748
* };
4849
* const command = new UpdateDataSourceCommand(input);
4950
* const response = await client.send(command);

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

+33-1
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ export interface DomainStatus {
24872487
Endpoints?: Record<string, string>;
24882488

24892489
/**
2490-
* <p>The DualStack Hosted Zone Id for the domain. </p>
2490+
* <p>The dual stack hosted zone ID for the domain. </p>
24912491
* @public
24922492
*/
24932493
DomainEndpointV2HostedZoneId?: string;
@@ -5632,6 +5632,20 @@ export interface GetDataSourceRequest {
56325632
Name: string | undefined;
56335633
}
56345634

5635+
/**
5636+
* @public
5637+
* @enum
5638+
*/
5639+
export const DataSourceStatus = {
5640+
ACTIVE: "ACTIVE",
5641+
DISABLED: "DISABLED",
5642+
} as const;
5643+
5644+
/**
5645+
* @public
5646+
*/
5647+
export type DataSourceStatus = (typeof DataSourceStatus)[keyof typeof DataSourceStatus];
5648+
56355649
/**
56365650
* <p>The result of a <code>GetDataSource</code> operation.</p>
56375651
* @public
@@ -5654,6 +5668,12 @@ export interface GetDataSourceResponse {
56545668
* @public
56555669
*/
56565670
Description?: string;
5671+
5672+
/**
5673+
* <p>The status of the data source response.</p>
5674+
* @public
5675+
*/
5676+
Status?: DataSourceStatus;
56575677
}
56585678

56595679
/**
@@ -6084,6 +6104,12 @@ export interface DataSourceDetails {
60846104
* @public
60856105
*/
60866106
Description?: string;
6107+
6108+
/**
6109+
* <p>The status of the data source.</p>
6110+
* @public
6111+
*/
6112+
Status?: DataSourceStatus;
60876113
}
60886114

60896115
/**
@@ -7033,6 +7059,12 @@ export interface UpdateDataSourceRequest {
70337059
* @public
70347060
*/
70357061
Description?: string;
7062+
7063+
/**
7064+
* <p>The status of the data source update request.</p>
7065+
* @public
7066+
*/
7067+
Status?: DataSourceStatus;
70367068
}
70377069

70387070
/**

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

+2
Original file line numberDiff line numberDiff line change
@@ -1465,6 +1465,7 @@ export const se_UpdateDataSourceCommand = async (
14651465
take(input, {
14661466
DataSourceType: (_) => _json(_),
14671467
Description: [],
1468+
Status: [],
14681469
})
14691470
);
14701471
b.m("PUT").h(headers).b(body);
@@ -2367,6 +2368,7 @@ export const de_GetDataSourceCommand = async (
23672368
DataSourceType: (_) => _json(__expectUnion(_)),
23682369
Description: __expectString,
23692370
Name: __expectString,
2371+
Status: __expectString,
23702372
});
23712373
Object.assign(contents, doc);
23722374
return contents;

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

+36-1
Original file line numberDiff line numberDiff line change
@@ -3669,6 +3669,12 @@
36693669
"traits": {
36703670
"smithy.api#documentation": "<p>A description of the data source.</p>"
36713671
}
3672+
},
3673+
"Status": {
3674+
"target": "com.amazonaws.opensearch#DataSourceStatus",
3675+
"traits": {
3676+
"smithy.api#documentation": "<p>The status of the data source.</p>"
3677+
}
36723678
}
36733679
},
36743680
"traits": {
@@ -3691,6 +3697,23 @@
36913697
"smithy.api#pattern": "^[a-z][a-z0-9_]+$"
36923698
}
36933699
},
3700+
"com.amazonaws.opensearch#DataSourceStatus": {
3701+
"type": "enum",
3702+
"members": {
3703+
"ACTIVE": {
3704+
"target": "smithy.api#Unit",
3705+
"traits": {
3706+
"smithy.api#enumValue": "ACTIVE"
3707+
}
3708+
},
3709+
"DISABLED": {
3710+
"target": "smithy.api#Unit",
3711+
"traits": {
3712+
"smithy.api#enumValue": "DISABLED"
3713+
}
3714+
}
3715+
}
3716+
},
36943717
"com.amazonaws.opensearch#DataSourceType": {
36953718
"type": "union",
36963719
"members": {
@@ -6210,7 +6233,7 @@
62106233
"DomainEndpointV2HostedZoneId": {
62116234
"target": "com.amazonaws.opensearch#HostedZoneId",
62126235
"traits": {
6213-
"smithy.api#documentation": "<p>The DualStack Hosted Zone Id for the domain. </p>"
6236+
"smithy.api#documentation": "<p>The dual stack hosted zone ID for the domain. </p>"
62146237
}
62156238
},
62166239
"Processing": {
@@ -6856,6 +6879,12 @@
68566879
"traits": {
68576880
"smithy.api#documentation": "<p>A description of the data source.</p>"
68586881
}
6882+
},
6883+
"Status": {
6884+
"target": "com.amazonaws.opensearch#DataSourceStatus",
6885+
"traits": {
6886+
"smithy.api#documentation": "<p>The status of the data source response.</p>"
6887+
}
68596888
}
68606889
},
68616890
"traits": {
@@ -11915,6 +11944,12 @@
1191511944
"traits": {
1191611945
"smithy.api#documentation": "<p>A new description of the data source.</p>"
1191711946
}
11947+
},
11948+
"Status": {
11949+
"target": "com.amazonaws.opensearch#DataSourceStatus",
11950+
"traits": {
11951+
"smithy.api#documentation": "<p>The status of the data source update request.</p>"
11952+
}
1191811953
}
1191911954
},
1192011955
"traits": {

0 commit comments

Comments
 (0)