Skip to content

Commit

Permalink
feat(client-opensearch): This release adds support for enabling or di…
Browse files Browse the repository at this point in the history
…sabling a data source configured as part of Zero-ETL integration with Amazon S3, by setting its status.
  • Loading branch information
awstools committed May 22, 2024
1 parent 23a0082 commit 4f00d79
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met
* // },
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Status: "ACTIVE" || "DISABLED",
* // };
*
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface ListDataSourcesCommandOutput extends ListDataSourcesResponse, _
* // },
* // Name: "STRING_VALUE",
* // Description: "STRING_VALUE",
* // Status: "ACTIVE" || "DISABLED",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
* },
* },
* Description: "STRING_VALUE",
* Status: "ACTIVE" || "DISABLED",
* };
* const command = new UpdateDataSourceCommand(input);
* const response = await client.send(command);
Expand Down
34 changes: 33 additions & 1 deletion clients/client-opensearch/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ export interface DomainStatus {
Endpoints?: Record<string, string>;

/**
* <p>The DualStack Hosted Zone Id for the domain. </p>
* <p>The dual stack hosted zone ID for the domain. </p>
* @public
*/
DomainEndpointV2HostedZoneId?: string;
Expand Down Expand Up @@ -5632,6 +5632,20 @@ export interface GetDataSourceRequest {
Name: string | undefined;
}

/**
* @public
* @enum
*/
export const DataSourceStatus = {
ACTIVE: "ACTIVE",
DISABLED: "DISABLED",
} as const;

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

/**
* <p>The result of a <code>GetDataSource</code> operation.</p>
* @public
Expand All @@ -5654,6 +5668,12 @@ export interface GetDataSourceResponse {
* @public
*/
Description?: string;

/**
* <p>The status of the data source response.</p>
* @public
*/
Status?: DataSourceStatus;
}

/**
Expand Down Expand Up @@ -6084,6 +6104,12 @@ export interface DataSourceDetails {
* @public
*/
Description?: string;

/**
* <p>The status of the data source.</p>
* @public
*/
Status?: DataSourceStatus;
}

/**
Expand Down Expand Up @@ -7033,6 +7059,12 @@ export interface UpdateDataSourceRequest {
* @public
*/
Description?: string;

/**
* <p>The status of the data source update request.</p>
* @public
*/
Status?: DataSourceStatus;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions clients/client-opensearch/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,7 @@ export const se_UpdateDataSourceCommand = async (
take(input, {
DataSourceType: (_) => _json(_),
Description: [],
Status: [],
})
);
b.m("PUT").h(headers).b(body);
Expand Down Expand Up @@ -2367,6 +2368,7 @@ export const de_GetDataSourceCommand = async (
DataSourceType: (_) => _json(__expectUnion(_)),
Description: __expectString,
Name: __expectString,
Status: __expectString,
});
Object.assign(contents, doc);
return contents;
Expand Down
37 changes: 36 additions & 1 deletion codegen/sdk-codegen/aws-models/opensearch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3669,6 +3669,12 @@
"traits": {
"smithy.api#documentation": "<p>A description of the data source.</p>"
}
},
"Status": {
"target": "com.amazonaws.opensearch#DataSourceStatus",
"traits": {
"smithy.api#documentation": "<p>The status of the data source.</p>"
}
}
},
"traits": {
Expand All @@ -3691,6 +3697,23 @@
"smithy.api#pattern": "^[a-z][a-z0-9_]+$"
}
},
"com.amazonaws.opensearch#DataSourceStatus": {
"type": "enum",
"members": {
"ACTIVE": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "ACTIVE"
}
},
"DISABLED": {
"target": "smithy.api#Unit",
"traits": {
"smithy.api#enumValue": "DISABLED"
}
}
}
},
"com.amazonaws.opensearch#DataSourceType": {
"type": "union",
"members": {
Expand Down Expand Up @@ -6210,7 +6233,7 @@
"DomainEndpointV2HostedZoneId": {
"target": "com.amazonaws.opensearch#HostedZoneId",
"traits": {
"smithy.api#documentation": "<p>The DualStack Hosted Zone Id for the domain. </p>"
"smithy.api#documentation": "<p>The dual stack hosted zone ID for the domain. </p>"
}
},
"Processing": {
Expand Down Expand Up @@ -6856,6 +6879,12 @@
"traits": {
"smithy.api#documentation": "<p>A description of the data source.</p>"
}
},
"Status": {
"target": "com.amazonaws.opensearch#DataSourceStatus",
"traits": {
"smithy.api#documentation": "<p>The status of the data source response.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -11915,6 +11944,12 @@
"traits": {
"smithy.api#documentation": "<p>A new description of the data source.</p>"
}
},
"Status": {
"target": "com.amazonaws.opensearch#DataSourceStatus",
"traits": {
"smithy.api#documentation": "<p>The status of the data source update request.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 4f00d79

Please sign in to comment.