Reputation: 13655
The documentation defines the endpoint
thusly:
endpoint (String) — The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
.
I believe the service name is StepFunctions
and I'm using the region us-east-1
so therefore the url should be:
https://stepfunctions.us-east-1.amazonaws.com
However this appears to not be right, what is the actual endpoint url for this service?
Edit: (answer)
https://states.us-east-1.amazonaws.com
Upvotes: 5
Views: 2284
Reputation: 80629
I don't think you should manually edit the service endpoint, however, the {service}
parameter is actually states
for StepFunctions
service.
The following should be your endpoint property:
Endpoint {
protocol: 'https:',
host: 'states.us-east-1.amazonaws.com',
port: 443,
hostname: 'states.us-east-1.amazonaws.com',
pathname: '/',
path: '/',
href: 'https://states.us-east-1.amazonaws.com/' }
Upvotes: 6