Class AwsConnector
java.lang.Object
org.opensearch.ml.common.connector.AbstractConnector
org.opensearch.ml.common.connector.HttpConnector
org.opensearch.ml.common.connector.AwsConnector
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject,Connector
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.ml.common.connector.HttpConnector
HttpConnector.HttpConnectorBuilderNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
Fields inherited from class org.opensearch.ml.common.connector.HttpConnector
CREDENTIAL_FIELD, PARAMETERS_FIELD, REGION_FIELD, RESPONSE_FILTER_FIELD, SERVICE_NAME_FIELDFields inherited from class org.opensearch.ml.common.connector.AbstractConnector
access, ACCESS_FIELD, ACCESS_KEY_FIELD, actions, ACTIONS_FIELD, BACKEND_ROLES_FIELD, backendRoles, CLIENT_CONFIG_FIELD, connectorClientConfig, CREATED_TIME_FIELD, createdTime, credential, decryptedCredential, decryptedHeaders, description, DESCRIPTION_FIELD, LAST_UPDATED_TIME_FIELD, lastUpdateTime, name, NAME_FIELD, owner, OWNER_FIELD, parameters, protocol, PROTOCOL_FIELD, SECRET_KEY_FIELD, SESSION_TOKEN_FIELD, version, VERSION_FIELDFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionAwsConnector(String name, String description, String version, String protocol, Map<String, String> parameters, Map<String, String> credential, List<ConnectorAction> actions, List<String> backendRoles, AccessMode accessMode, org.opensearch.commons.authuser.User owner, ConnectorClientConfig connectorClientConfig) AwsConnector(String protocol, org.opensearch.core.xcontent.XContentParser parser) AwsConnector(org.opensearch.core.common.io.stream.StreamInput input) -
Method Summary
Methods inherited from class org.opensearch.ml.common.connector.HttpConnector
builder, createPredictPayload, decrypt, encrypt, fillNullParameters, getPredictHttpMethod, toXContent, update, writeToMethods inherited from class org.opensearch.ml.common.connector.AbstractConnector
createPredictDecryptedHeaders, findPredictAction, getAccess, getActions, getBackendRoles, getConnectorClientConfig, getCreatedTime, getCredential, getDecryptedCredential, getDecryptedHeaders, getDescription, getLastUpdateTime, getName, getOwner, getParameters, getPredictEndpoint, getProtocol, getVersion, parseResponse, removeCredential, setAccess, setBackendRoles, setConnectorClientConfig, setDecryptedCredential, setOwnerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.ml.common.connector.Connector
validateConnectorURL, validatePayloadMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
AwsConnector
public AwsConnector(String name, String description, String version, String protocol, Map<String, String> parameters, Map<String, String> credential, List<ConnectorAction> actions, List<String> backendRoles, AccessMode accessMode, org.opensearch.commons.authuser.User owner, ConnectorClientConfig connectorClientConfig) -
AwsConnector
public AwsConnector(String protocol, org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
AwsConnector
- Throws:
IOException
-
AwsConnector
public AwsConnector()
-
-
Method Details
-
cloneConnector
- Specified by:
cloneConnectorin interfaceConnector- Overrides:
cloneConnectorin classHttpConnector
-
getAccessKey
-
getSecretKey
-
getSessionToken
-
getServiceName
-
getRegion
-
awsConnectorBuilder
-
equals
- Overrides:
equalsin classHttpConnector
-
canEqual
- Overrides:
canEqualin classHttpConnector
-
hashCode
public int hashCode()- Overrides:
hashCodein classHttpConnector
-