Add a target using the API
To add a target using the API, make a CreateGatewayTarget request with one of the AgentCore control plane endpoints and define a target configuration that matches the target type.
Note
To add an integration provider template as a gateway target, you must use the AWS Management Console. For more information, see Built-in templates from integration providers as targets.
When you create a gateway target, you specify the following configurations depending on what you set up when you fulfilled the prerequisites:
-
A credential provider configuration – To specify the authorization type and credentials to access the target.
-
A target configuration – To specify the target, tools, and how the gateway communicates with the target.
To learn more about each type of configuration, see the following topics: