diff --git a/clients/client-opensearch/src/commands/CreateDomainCommand.ts b/clients/client-opensearch/src/commands/CreateDomainCommand.ts index 62ee9c48030c..c500c2ae9088 100644 --- a/clients/client-opensearch/src/commands/CreateDomainCommand.ts +++ b/clients/client-opensearch/src/commands/CreateDomainCommand.ts @@ -165,6 +165,11 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * SoftwareUpdateOptions: { // SoftwareUpdateOptions * AutoSoftwareUpdateEnabled: true || false, * }, + * AIMLOptions: { // AIMLOptionsInput + * NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsInput + * DesiredState: "ENABLED" || "DISABLED", + * }, + * }, * }; * const command = new CreateDomainCommand(input); * const response = await client.send(command); @@ -321,6 +326,12 @@ export interface CreateDomainCommandOutput extends CreateDomainResponse, __Metad * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, * // }, * // }; * diff --git a/clients/client-opensearch/src/commands/DeleteDomainCommand.ts b/clients/client-opensearch/src/commands/DeleteDomainCommand.ts index a4cf9a598dca..9cc928e2c437 100644 --- a/clients/client-opensearch/src/commands/DeleteDomainCommand.ts +++ b/clients/client-opensearch/src/commands/DeleteDomainCommand.ts @@ -194,6 +194,12 @@ export interface DeleteDomainCommandOutput extends DeleteDomainResponse, __Metad * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, * // }, * // }; * diff --git a/clients/client-opensearch/src/commands/DescribeDomainCommand.ts b/clients/client-opensearch/src/commands/DescribeDomainCommand.ts index f30c346d8732..3cf617e81ec4 100644 --- a/clients/client-opensearch/src/commands/DescribeDomainCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDomainCommand.ts @@ -194,6 +194,12 @@ export interface DescribeDomainCommandOutput extends DescribeDomainResponse, __M * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, * // }, * // }; * diff --git a/clients/client-opensearch/src/commands/DescribeDomainConfigCommand.ts b/clients/client-opensearch/src/commands/DescribeDomainConfigCommand.ts index dba5ca728b9a..1f80fa456987 100644 --- a/clients/client-opensearch/src/commands/DescribeDomainConfigCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDomainConfigCommand.ts @@ -267,6 +267,15 @@ export interface DescribeDomainConfigCommandOutput extends DescribeDomainConfigR * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsStatus + * // Options: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, + * // Status: "", + * // }, * // }, * // }; * diff --git a/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts b/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts index 26a356542673..d4ac42f62dfe 100644 --- a/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDomainsCommand.ts @@ -197,6 +197,12 @@ export interface DescribeDomainsCommandOutput extends DescribeDomainsResponse, _ * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, * // }, * // ], * // }; diff --git a/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts b/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts index 3e04666a41c4..633f4c928a65 100644 --- a/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts +++ b/clients/client-opensearch/src/commands/DescribeDryRunProgressCommand.ts @@ -208,6 +208,12 @@ export interface DescribeDryRunProgressCommandOutput extends DescribeDryRunProgr * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, * // }, * // DryRunResults: { // DryRunResults * // DeploymentType: "STRING_VALUE", diff --git a/clients/client-opensearch/src/commands/UpdateDomainConfigCommand.ts b/clients/client-opensearch/src/commands/UpdateDomainConfigCommand.ts index 77e84f5b7b45..6a4c28f77f32 100644 --- a/clients/client-opensearch/src/commands/UpdateDomainConfigCommand.ts +++ b/clients/client-opensearch/src/commands/UpdateDomainConfigCommand.ts @@ -166,6 +166,11 @@ export interface UpdateDomainConfigCommandOutput extends UpdateDomainConfigRespo * SoftwareUpdateOptions: { // SoftwareUpdateOptions * AutoSoftwareUpdateEnabled: true || false, * }, + * AIMLOptions: { // AIMLOptionsInput + * NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsInput + * DesiredState: "ENABLED" || "DISABLED", + * }, + * }, * }; * const command = new UpdateDomainConfigCommand(input); * const response = await client.send(command); @@ -396,6 +401,15 @@ export interface UpdateDomainConfigCommandOutput extends UpdateDomainConfigRespo * // ValueType: "PLAIN_TEXT" || "STRINGIFIED_JSON", * // }, * // ], + * // AIMLOptions: { // AIMLOptionsStatus + * // Options: { // AIMLOptionsOutput + * // NaturalLanguageQueryGenerationOptions: { // NaturalLanguageQueryGenerationOptionsOutput + * // DesiredState: "ENABLED" || "DISABLED", + * // CurrentState: "NOT_ENABLED" || "ENABLE_COMPLETE" || "ENABLE_IN_PROGRESS" || "ENABLE_FAILED" || "DISABLE_COMPLETE" || "DISABLE_IN_PROGRESS" || "DISABLE_FAILED", + * // }, + * // }, + * // Status: "", + * // }, * // }, * // DryRunResults: { // DryRunResults * // DeploymentType: "STRING_VALUE", diff --git a/clients/client-opensearch/src/models/models_0.ts b/clients/client-opensearch/src/models/models_0.ts index beeda49e2853..fb85e0354274 100644 --- a/clients/client-opensearch/src/models/models_0.ts +++ b/clients/client-opensearch/src/models/models_0.ts @@ -989,6 +989,113 @@ export interface AdvancedSecurityOptionsStatus { Status: OptionStatus | undefined; } +/** + * @public + * @enum + */ +export const NaturalLanguageQueryGenerationDesiredState = { + Disabled: "DISABLED", + Enabled: "ENABLED", +} as const; + +/** + * @public + */ +export type NaturalLanguageQueryGenerationDesiredState = + (typeof NaturalLanguageQueryGenerationDesiredState)[keyof typeof NaturalLanguageQueryGenerationDesiredState]; + +/** + *

Container for parameters required to enable the natural language query generation feature.

+ * @public + */ +export interface NaturalLanguageQueryGenerationOptionsInput { + /** + *

The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.

+ * @public + */ + DesiredState?: NaturalLanguageQueryGenerationDesiredState; +} + +/** + *

Container for parameters required to enable all machine learning features.

+ * @public + */ +export interface AIMLOptionsInput { + /** + *

Container for parameters required for natural language query generation on the specified domain.

+ * @public + */ + NaturalLanguageQueryGenerationOptions?: NaturalLanguageQueryGenerationOptionsInput; +} + +/** + * @public + * @enum + */ +export const NaturalLanguageQueryGenerationCurrentState = { + DisableComplete: "DISABLE_COMPLETE", + DisableFailed: "DISABLE_FAILED", + DisableInProgress: "DISABLE_IN_PROGRESS", + EnableComplete: "ENABLE_COMPLETE", + EnableFailed: "ENABLE_FAILED", + EnableInProgress: "ENABLE_IN_PROGRESS", + NotEnabled: "NOT_ENABLED", +} as const; + +/** + * @public + */ +export type NaturalLanguageQueryGenerationCurrentState = + (typeof NaturalLanguageQueryGenerationCurrentState)[keyof typeof NaturalLanguageQueryGenerationCurrentState]; + +/** + *

Container for parameters representing the state of the natural language query generation feature on the specified domain.

+ * @public + */ +export interface NaturalLanguageQueryGenerationOptionsOutput { + /** + *

The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.

+ * @public + */ + DesiredState?: NaturalLanguageQueryGenerationDesiredState; + + /** + *

The current state of the natural language query generation feature, indicating completion, in progress, or failure.

+ * @public + */ + CurrentState?: NaturalLanguageQueryGenerationCurrentState; +} + +/** + *

Container for parameters representing the state of machine learning features on the specified domain.

+ * @public + */ +export interface AIMLOptionsOutput { + /** + *

Container for parameters required for natural language query generation on the specified domain.

+ * @public + */ + NaturalLanguageQueryGenerationOptions?: NaturalLanguageQueryGenerationOptionsOutput; +} + +/** + *

The status of machine learning options on the specified domain.

+ * @public + */ +export interface AIMLOptionsStatus { + /** + *

Machine learning options on the specified domain.

+ * @public + */ + Options?: AIMLOptionsOutput; + + /** + *

Provides the current status of an entity.

+ * @public + */ + Status?: OptionStatus; +} + /** *

Container for the request parameters to the AssociatePackage operation.

* @public @@ -2252,6 +2359,12 @@ export interface CreateDomainRequest { * @public */ SoftwareUpdateOptions?: SoftwareUpdateOptions; + + /** + *

Options for all machine learning features for the specified domain.

+ * @public + */ + AIMLOptions?: AIMLOptionsInput; } /** @@ -2709,6 +2822,12 @@ export interface DomainStatus { * @public */ ModifyingProperties?: ModifyingProperties[]; + + /** + *

Container for parameters required to enable all machine learning features.

+ * @public + */ + AIMLOptions?: AIMLOptionsOutput; } /** @@ -4314,6 +4433,12 @@ export interface DomainConfig { * @public */ ModifyingProperties?: ModifyingProperties[]; + + /** + *

Container for parameters required to enable all machine learning features.

+ * @public + */ + AIMLOptions?: AIMLOptionsStatus; } /** @@ -7330,6 +7455,12 @@ export interface UpdateDomainConfigRequest { * @public */ SoftwareUpdateOptions?: SoftwareUpdateOptions; + + /** + *

Options for all machine learning features for the specified domain.

+ * @public + */ + AIMLOptions?: AIMLOptionsInput; } /** diff --git a/clients/client-opensearch/src/protocols/Aws_restJson1.ts b/clients/client-opensearch/src/protocols/Aws_restJson1.ts index 69bd7247f872..248d689f87af 100644 --- a/clients/client-opensearch/src/protocols/Aws_restJson1.ts +++ b/clients/client-opensearch/src/protocols/Aws_restJson1.ts @@ -207,6 +207,8 @@ import { AdvancedSecurityOptions, AdvancedSecurityOptionsInput, AdvancedSecurityOptionsStatus, + AIMLOptionsInput, + AIMLOptionsStatus, AutoTune, AutoTuneDetails, AutoTuneMaintenanceSchedule, @@ -254,6 +256,7 @@ import { LogPublishingOptionsStatus, LogType, MasterUserOptions, + NaturalLanguageQueryGenerationOptionsInput, NodeToNodeEncryptionOptions, NodeToNodeEncryptionOptionsStatus, OffPeakWindow, @@ -454,6 +457,7 @@ export const se_CreateDomainCommand = async ( let body: any; body = JSON.stringify( take(input, { + AIMLOptions: (_) => _json(_), AccessPolicies: [], AdvancedOptions: (_) => _json(_), AdvancedSecurityOptions: (_) => _json(_), @@ -1489,6 +1493,7 @@ export const se_UpdateDomainConfigCommand = async ( let body: any; body = JSON.stringify( take(input, { + AIMLOptions: (_) => _json(_), AccessPolicies: [], AdvancedOptions: (_) => _json(_), AdvancedSecurityOptions: (_) => _json(_), @@ -3295,6 +3300,8 @@ const de_ValidationExceptionRes = async (parsedOutput: any, context: __SerdeCont // se_AdvancedSecurityOptionsInput omitted. +// se_AIMLOptionsInput omitted. + /** * serializeAws_restJson1AutoTuneMaintenanceSchedule */ @@ -3384,6 +3391,8 @@ const se_AutoTuneOptionsInput = (input: AutoTuneOptionsInput, context: __SerdeCo // se_MasterUserOptions omitted. +// se_NaturalLanguageQueryGenerationOptionsInput omitted. + // se_NodeToNodeEncryptionOptions omitted. // se_OffPeakWindow omitted. @@ -3468,6 +3477,18 @@ const de_AdvancedSecurityOptionsStatus = (output: any, context: __SerdeContext): }) as any; }; +// de_AIMLOptionsOutput omitted. + +/** + * deserializeAws_restJson1AIMLOptionsStatus + */ +const de_AIMLOptionsStatus = (output: any, context: __SerdeContext): AIMLOptionsStatus => { + return take(output, { + Options: _json, + Status: (_: any) => de_OptionStatus(_, context), + }) as any; +}; + // de_AuthorizedPrincipal omitted. // de_AuthorizedPrincipalList omitted. @@ -3677,6 +3698,7 @@ const de_CognitoOptionsStatus = (output: any, context: __SerdeContext): CognitoO */ const de_DomainConfig = (output: any, context: __SerdeContext): DomainConfig => { return take(output, { + AIMLOptions: (_: any) => de_AIMLOptionsStatus(_, context), AccessPolicies: (_: any) => de_AccessPoliciesStatus(_, context), AdvancedOptions: (_: any) => de_AdvancedOptionsStatus(_, context), AdvancedSecurityOptions: (_: any) => de_AdvancedSecurityOptionsStatus(_, context), @@ -3783,6 +3805,7 @@ const de_DomainPackageDetailsList = (output: any, context: __SerdeContext): Doma */ const de_DomainStatus = (output: any, context: __SerdeContext): DomainStatus => { return take(output, { + AIMLOptions: _json, ARN: __expectString, AccessPolicies: __expectString, AdvancedOptions: _json, @@ -3924,6 +3947,8 @@ const de_LogPublishingOptionsStatus = (output: any, context: __SerdeContext): Lo // de_ModifyingPropertiesList omitted. +// de_NaturalLanguageQueryGenerationOptionsOutput omitted. + // de_NodeToNodeEncryptionOptions omitted. /** diff --git a/codegen/sdk-codegen/aws-models/opensearch.json b/codegen/sdk-codegen/aws-models/opensearch.json index 62328b9033ca..1c78832dfc6b 100644 --- a/codegen/sdk-codegen/aws-models/opensearch.json +++ b/codegen/sdk-codegen/aws-models/opensearch.json @@ -29,6 +29,51 @@ ] }, "shapes": { + "com.amazonaws.opensearch#AIMLOptionsInput": { + "type": "structure", + "members": { + "NaturalLanguageQueryGenerationOptions": { + "target": "com.amazonaws.opensearch#NaturalLanguageQueryGenerationOptionsInput", + "traits": { + "smithy.api#documentation": "

Container for parameters required for natural language query generation on the specified domain.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Container for parameters required to enable all machine learning features.

" + } + }, + "com.amazonaws.opensearch#AIMLOptionsOutput": { + "type": "structure", + "members": { + "NaturalLanguageQueryGenerationOptions": { + "target": "com.amazonaws.opensearch#NaturalLanguageQueryGenerationOptionsOutput", + "traits": { + "smithy.api#documentation": "

Container for parameters required for natural language query generation on the specified domain.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Container for parameters representing the state of machine learning features on the specified domain.

" + } + }, + "com.amazonaws.opensearch#AIMLOptionsStatus": { + "type": "structure", + "members": { + "Options": { + "target": "com.amazonaws.opensearch#AIMLOptionsOutput", + "traits": { + "smithy.api#documentation": "

Machine learning options on the specified domain.

" + } + }, + "Status": { + "target": "com.amazonaws.opensearch#OptionStatus" + } + }, + "traits": { + "smithy.api#documentation": "

The status of machine learning options on the specified domain.

" + } + }, "com.amazonaws.opensearch#ARN": { "type": "string", "traits": { @@ -3318,6 +3363,12 @@ "traits": { "smithy.api#documentation": "

Software update options for the domain.

" } + }, + "AIMLOptions": { + "target": "com.amazonaws.opensearch#AIMLOptionsInput", + "traits": { + "smithy.api#documentation": "

Options for all machine learning features for the specified domain.

" + } } }, "traits": { @@ -5710,6 +5761,12 @@ "traits": { "smithy.api#documentation": "

Information about the domain properties that are currently being modified.

" } + }, + "AIMLOptions": { + "target": "com.amazonaws.opensearch#AIMLOptionsStatus", + "traits": { + "smithy.api#documentation": "

Container for parameters required to enable all machine learning features.

" + } } }, "traits": { @@ -6386,6 +6443,12 @@ "traits": { "smithy.api#documentation": "

Information about the domain properties that are currently being modified.

" } + }, + "AIMLOptions": { + "target": "com.amazonaws.opensearch#AIMLOptionsOutput", + "traits": { + "smithy.api#documentation": "

Container for parameters required to enable all machine learning features.

" + } } }, "traits": { @@ -9036,6 +9099,104 @@ "target": "com.amazonaws.opensearch#ModifyingProperties" } }, + "com.amazonaws.opensearch#NaturalLanguageQueryGenerationCurrentState": { + "type": "enum", + "members": { + "NotEnabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NOT_ENABLED" + } + }, + "EnableComplete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLE_COMPLETE" + } + }, + "EnableInProgress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLE_IN_PROGRESS" + } + }, + "EnableFailed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLE_FAILED" + } + }, + "DisableComplete": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLE_COMPLETE" + } + }, + "DisableInProgress": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLE_IN_PROGRESS" + } + }, + "DisableFailed": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLE_FAILED" + } + } + } + }, + "com.amazonaws.opensearch#NaturalLanguageQueryGenerationDesiredState": { + "type": "enum", + "members": { + "Enabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED" + } + }, + "Disabled": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.opensearch#NaturalLanguageQueryGenerationOptionsInput": { + "type": "structure", + "members": { + "DesiredState": { + "target": "com.amazonaws.opensearch#NaturalLanguageQueryGenerationDesiredState", + "traits": { + "smithy.api#documentation": "

The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Container for parameters required to enable the natural language query generation feature.

" + } + }, + "com.amazonaws.opensearch#NaturalLanguageQueryGenerationOptionsOutput": { + "type": "structure", + "members": { + "DesiredState": { + "target": "com.amazonaws.opensearch#NaturalLanguageQueryGenerationDesiredState", + "traits": { + "smithy.api#documentation": "

The desired state of the natural language query generation feature. Valid values are ENABLED and DISABLED.

" + } + }, + "CurrentState": { + "target": "com.amazonaws.opensearch#NaturalLanguageQueryGenerationCurrentState", + "traits": { + "smithy.api#documentation": "

The current state of the natural language query generation feature, indicating completion, in progress, or failure.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Container for parameters representing the state of the natural language query generation feature on the specified domain.

" + } + }, "com.amazonaws.opensearch#NextToken": { "type": "string", "traits": { @@ -12221,6 +12382,12 @@ "traits": { "smithy.api#documentation": "

Service software update options for the domain.

" } + }, + "AIMLOptions": { + "target": "com.amazonaws.opensearch#AIMLOptionsInput", + "traits": { + "smithy.api#documentation": "

Options for all machine learning features for the specified domain.

" + } } }, "traits": {