-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OAS] Amazon Bedrock connector (#168662)
- Loading branch information
Showing
11 changed files
with
239 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
x-pack/plugins/actions/docs/openapi/components/schemas/config_properties_bedrock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
title: Connector request properties for an Amazon Bedrock connector | ||
description: Defines properties for connectors when type is `.bedrock`. | ||
type: object | ||
required: | ||
- apiUrl | ||
properties: | ||
apiUrl: | ||
type: string | ||
description: The Amazon Bedrock request URL. | ||
defaultModel: | ||
type: string | ||
description: > | ||
The generative artificial intelligence model for Amazon Bedrock to use. | ||
Current support is for the Anthropic Claude models. | ||
default: anthropic.claude-v2 |
31 changes: 31 additions & 0 deletions
31
...lugins/actions/docs/openapi/components/schemas/connector_response_properties_bedrock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
title: Connector response properties for an Amazon Bedrock connector | ||
type: object | ||
required: | ||
- config | ||
- connector_type_id | ||
- id | ||
- is_deprecated | ||
- is_preconfigured | ||
- name | ||
properties: | ||
config: | ||
$ref: 'config_properties_bedrock.yaml' | ||
connector_type_id: | ||
type: string | ||
description: The type of connector. | ||
enum: | ||
- .bedrock | ||
id: | ||
type: string | ||
description: The identifier for the connector. | ||
is_deprecated: | ||
$ref: 'is_deprecated.yaml' | ||
is_missing_secrets: | ||
$ref: 'is_missing_secrets.yaml' | ||
is_preconfigured: | ||
$ref: 'is_preconfigured.yaml' | ||
is_system_action: | ||
$ref: 'is_system_action.yaml' | ||
name: | ||
type: string | ||
description: The display name for the connector. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
x-pack/plugins/actions/docs/openapi/components/schemas/create_connector_request_bedrock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
title: Create Amazon Bedrock connector request | ||
description: The Amazon Bedrock connector uses axios to send a POST request to Amazon Bedrock. | ||
type: object | ||
required: | ||
- config | ||
- connector_type_id | ||
- name | ||
- secrets | ||
properties: | ||
config: | ||
$ref: 'config_properties_bedrock.yaml' | ||
connector_type_id: | ||
type: string | ||
description: The type of connector. | ||
enum: | ||
- .bedrock | ||
example: .bedrock | ||
name: | ||
type: string | ||
description: The display name for the connector. | ||
example: my-connector | ||
secrets: | ||
$ref: 'secrets_properties_bedrock.yaml' |
13 changes: 13 additions & 0 deletions
13
x-pack/plugins/actions/docs/openapi/components/schemas/secrets_properties_bedrock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Connector secrets properties for an Amazon Bedrock connector | ||
description: Defines secrets for connectors when type is `.bedrock`. | ||
type: object | ||
required: | ||
- accessKey | ||
- secret | ||
properties: | ||
accessKey: | ||
type: string | ||
description: The AWS access key for authentication. | ||
secret: | ||
type: string | ||
description: The AWS secret for authentication. |
13 changes: 13 additions & 0 deletions
13
x-pack/plugins/actions/docs/openapi/components/schemas/update_connector_request_bedrock.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Update Amazon Bedrock connector request | ||
type: object | ||
required: | ||
- config | ||
- name | ||
properties: | ||
config: | ||
$ref: 'config_properties_bedrock.yaml' | ||
name: | ||
type: string | ||
description: The display name for the connector. | ||
secrets: | ||
$ref: 'secrets_properties_bedrock.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters