Class AgenticConnector
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AgenticConnector.Builder,AgenticConnector>
Describes an agentic connector: a Model Context Protocol (MCP) server whose tools the agent on a WorkSpace can use.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionThe activation status of the connector for your account:final StringThe activation status of the connector for your account:The connector tools the agent can use.final StringThe Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the API key, whenAuthTypeisAPI_KEY.args()The arguments passed to a local connector's command.final AgenticConnectorAuthTypeauthType()How the connector authenticates:final StringHow the connector authenticates:The connector tools the agent can't use.static AgenticConnector.Builderbuilder()final Stringcommand()The command that starts a local connector's server.final InstantThe creation time of the connector.final StringThe description of the connector.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the AllowedTools property.final booleanhasArgs()For responses, this returns true if the service returned a value for the Args property.final booleanFor responses, this returns true if the service returned a value for the BlockedTools property.final inthashCode()final Stringid()The identifier of the connector.final Stringname()The name of the connector.The OAuth settings, whenAuthTypeisOAUTH.static Class<? extends AgenticConnector.Builder> Where the connector's server runs:final StringWhere the connector's server runs:Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final InstantThe time when the connector's activation status last changed for your account.final Stringurl()The URL of a hosted connector's server.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
-
name
-
description
The description of the connector.
- Returns:
- The description of the connector.
-
serverType
Where the connector's server runs:
-
HOSTED– The server is accessed through a URL. -
LOCAL– The server runs on the WorkSpace.
If the service returns an enum value that is not available in the current SDK version,
serverTypewill returnAgenticConnectorServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserverTypeAsString().- Returns:
- Where the connector's server runs:
-
HOSTED– The server is accessed through a URL. -
LOCAL– The server runs on the WorkSpace.
-
- See Also:
-
-
serverTypeAsString
Where the connector's server runs:
-
HOSTED– The server is accessed through a URL. -
LOCAL– The server runs on the WorkSpace.
If the service returns an enum value that is not available in the current SDK version,
serverTypewill returnAgenticConnectorServerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserverTypeAsString().- Returns:
- Where the connector's server runs:
-
HOSTED– The server is accessed through a URL. -
LOCAL– The server runs on the WorkSpace.
-
- See Also:
-
-
url
The URL of a hosted connector's server.
- Returns:
- The URL of a hosted connector's server.
-
command
The command that starts a local connector's server.
- Returns:
- The command that starts a local connector's server.
-
hasArgs
public final boolean hasArgs()For responses, this returns true if the service returned a value for the Args property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
args
The arguments passed to a local connector's command.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasArgs()method.- Returns:
- The arguments passed to a local connector's command.
-
authType
How the connector authenticates:
-
OAUTH– The connector uses OAuth. -
API_KEY– The connector uses an API key. -
NONE– The connector doesn't require authentication.
If the service returns an enum value that is not available in the current SDK version,
authTypewill returnAgenticConnectorAuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthTypeAsString().- Returns:
- How the connector authenticates:
-
OAUTH– The connector uses OAuth. -
API_KEY– The connector uses an API key. -
NONE– The connector doesn't require authentication.
-
- See Also:
-
-
authTypeAsString
How the connector authenticates:
-
OAUTH– The connector uses OAuth. -
API_KEY– The connector uses an API key. -
NONE– The connector doesn't require authentication.
If the service returns an enum value that is not available in the current SDK version,
authTypewill returnAgenticConnectorAuthType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthTypeAsString().- Returns:
- How the connector authenticates:
-
OAUTH– The connector uses OAuth. -
API_KEY– The connector uses an API key. -
NONE– The connector doesn't require authentication.
-
- See Also:
-
-
oAuthConfig
The OAuth settings, when
AuthTypeisOAUTH.- Returns:
- The OAuth settings, when
AuthTypeisOAUTH.
-
apiKeySecretArn
The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the API key, when
AuthTypeisAPI_KEY. This field is absent whenAuthTypeisn'tAPI_KEY.- Returns:
- The Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager secret that holds the API key,
when
AuthTypeisAPI_KEY. This field is absent whenAuthTypeisn'tAPI_KEY.
-
hasAllowedTools
public final boolean hasAllowedTools()For responses, this returns true if the service returned a value for the AllowedTools property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
allowedTools
The connector tools the agent can use. If absent, all tools not in
BlockedToolsare allowed.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAllowedTools()method.- Returns:
- The connector tools the agent can use. If absent, all tools not in
BlockedToolsare allowed.
-
hasBlockedTools
public final boolean hasBlockedTools()For responses, this returns true if the service returned a value for the BlockedTools property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
blockedTools
The connector tools the agent can't use.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasBlockedTools()method.- Returns:
- The connector tools the agent can't use.
-
createdAt
The creation time of the connector. You might not see this field for every connector.
- Returns:
- The creation time of the connector. You might not see this field for every connector.
-
updatedAt
The time when the connector's activation status last changed for your account. Your account doesn't see this field for a connector it has never activated.
- Returns:
- The time when the connector's activation status last changed for your account. Your account doesn't see this field for a connector it has never activated.
-
activationStatus
The activation status of the connector for your account:
-
ACTIVATED– You activated the connector. -
DEACTIVATED– You deactivated the connector. -
PENDING– The service is activating the connector. -
PENDING_DELETE– The service is deactivating the connector. -
ACTIVATION_ERROR– The service couldn't activate the connector. -
DEACTIVATION_ERROR– The service couldn't deactivate the connector.
If the service returns an enum value that is not available in the current SDK version,
activationStatuswill returnAgenticConnectorActivationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactivationStatusAsString().- Returns:
- The activation status of the connector for your account:
-
ACTIVATED– You activated the connector. -
DEACTIVATED– You deactivated the connector. -
PENDING– The service is activating the connector. -
PENDING_DELETE– The service is deactivating the connector. -
ACTIVATION_ERROR– The service couldn't activate the connector. -
DEACTIVATION_ERROR– The service couldn't deactivate the connector.
-
- See Also:
-
-
activationStatusAsString
The activation status of the connector for your account:
-
ACTIVATED– You activated the connector. -
DEACTIVATED– You deactivated the connector. -
PENDING– The service is activating the connector. -
PENDING_DELETE– The service is deactivating the connector. -
ACTIVATION_ERROR– The service couldn't activate the connector. -
DEACTIVATION_ERROR– The service couldn't deactivate the connector.
If the service returns an enum value that is not available in the current SDK version,
activationStatuswill returnAgenticConnectorActivationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactivationStatusAsString().- Returns:
- The activation status of the connector for your account:
-
ACTIVATED– You activated the connector. -
DEACTIVATED– You deactivated the connector. -
PENDING– The service is activating the connector. -
PENDING_DELETE– The service is deactivating the connector. -
ACTIVATION_ERROR– The service couldn't activate the connector. -
DEACTIVATION_ERROR– The service couldn't deactivate the connector.
-
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AgenticConnector.Builder,AgenticConnector> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-