Amazon Migration Hub Migration Hub Services API
The Migration Hub Services API from Amazon Migration Hub — 2 operation(s) for migration hub services.
The Migration Hub Services API from Amazon Migration Hub — 2 operation(s) for migration hub services.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-migration-hub:amazon-migration-hub-services-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: AWS Migration Hub Services API
version: '2017-05-31'
description: Generated from AWS's published Smithy model for AWS Migration Hub. 4 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://refactor-spaces.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services:
post:
operationId: CreateService
summary: Create Service
description: Creates an Amazon Web Services Migration Hub Refactor Spaces service. The account owner of the service
is always the environment owner, regardless of which account in the environment creates the service. Services have
either a URL endpoint in a virtual private cloud (VPC), or a Lambda function endpoint. If an Amazon Web Services resource
is launched in a service VPC, and you want it to be accessible to all of an environment’s services with VPCs and routes,
apply the RefactorSpacesSecurityGroup to the resource. Alternatively, to add more cross-account constraints, apply
your own security group.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreateServiceResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesAccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'402':
description: ServiceQuotaExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceQuotaExceededException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: EnvironmentIdentifier
in: path
required: true
schema:
type: string
description: The ID of the environment in which the service is created.
- name: ApplicationIdentifier
in: path
required: true
schema:
type: string
description: The ID of the application which the service is created.
requestBody:
content:
application/json:
schema:
type: object
properties:
Name:
type: string
description: The name of the service.
Description:
type: string
description: The description of the service.
VpcId:
type: string
description: The ID of the VPC.
EndpointType:
type: string
description: The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.
UrlEndpoint:
$ref: '#/components/schemas/UrlEndpointInput'
LambdaEndpoint:
$ref: '#/components/schemas/LambdaEndpointInput'
Tags:
type: object
additionalProperties:
type: string
description: The tags to assign to the service. A tag is a label that you assign to an Amazon Web Services
resource. Each tag consists of a key-value pair..
ClientToken:
type: string
description: A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
required:
- Name
- EndpointType
tags:
- Services
get:
operationId: ListServices
summary: List Services
description: Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListServicesResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesAccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'402':
description: ServiceQuotaExceededException
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceQuotaExceededException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: EnvironmentIdentifier
in: path
required: true
schema:
type: string
description: The ID of the environment.
- name: ApplicationIdentifier
in: path
required: true
schema:
type: string
description: The ID of the application.
- name: nextToken
in: query
schema:
type: string
description: The token for the next page of results.
- name: maxResults
in: query
schema:
type: integer
description: The maximum number of results to return with a single call. To retrieve the remaining results, make another
call with the returned nextToken value.
tags:
- Services
/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}:
delete:
operationId: DeleteService
summary: Delete Service
description: Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteServiceResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesAccessDeniedException'
'409':
description: ConflictException
content:
application/json:
schema:
$ref: '#/components/schemas/ConflictException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: EnvironmentIdentifier
in: path
required: true
schema:
type: string
description: The ID of the environment that the service is in.
- name: ApplicationIdentifier
in: path
required: true
schema:
type: string
description: Deletes a Refactor Spaces service. The RefactorSpacesSecurityGroup security group must be removed from
all Amazon Web Services resources in the virtual private cloud (VPC) prior to deleting a service with a URL endpoint
in a VPC.
- name: ServiceIdentifier
in: path
required: true
schema:
type: string
description: The ID of the service to delete.
tags:
- Services
get:
operationId: GetService
summary: Get Service
description: Gets an Amazon Web Services Migration Hub Refactor Spaces service.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetServiceResponse'
'403':
description: AccessDeniedException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesAccessDeniedException'
'500':
description: InternalServerException
content:
application/json:
schema:
$ref: '#/components/schemas/InternalServerException'
'404':
description: ResourceNotFoundException
content:
application/json:
schema:
$ref: '#/components/schemas/ResourceNotFoundException'
'429':
description: ThrottlingException
content:
application/json:
schema:
$ref: '#/components/schemas/RefactorSpacesThrottlingException'
'400':
description: ValidationException
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationException'
parameters:
- name: EnvironmentIdentifier
in: path
required: true
schema:
type: string
description: The ID of the environment.
- name: ApplicationIdentifier
in: path
required: true
schema:
type: string
description: The ID of the application.
- name: ServiceIdentifier
in: path
required: true
schema:
type: string
description: The ID of the service.
tags:
- Services
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: refactor-spaces
schemas:
ConflictException:
type: object
properties:
Message:
type: string
ResourceId:
type: string
description: The ID of the resource.
ResourceType:
type: string
description: The type of resource.
required:
- Message
- ResourceId
- ResourceType
CreateServiceResponse:
type: object
properties:
ServiceId:
type: string
description: The unique identifier of the service.
Name:
type: string
description: The name of the service.
Arn:
type: string
description: The Amazon Resource Name (ARN) of the service.
OwnerAccountId:
type: string
description: The Amazon Web Services account ID of the service owner.
CreatedByAccountId:
type: string
description: The Amazon Web Services account ID of the service creator.
Description:
type: string
description: The description of the created service.
EnvironmentId:
type: string
description: The unique identifier of the environment.
ApplicationId:
type: string
description: The ID of the application that the created service belongs to.
VpcId:
type: string
description: The ID of the VPC.
EndpointType:
type: string
description: The endpoint type of the service.
UrlEndpoint:
$ref: '#/components/schemas/UrlEndpointInput'
LambdaEndpoint:
$ref: '#/components/schemas/LambdaEndpointInput'
State:
type: string
description: The current state of the service.
Tags:
type: object
additionalProperties:
type: string
description: The tags assigned to the created service. A tag is a label that you assign to an Amazon Web Services
resource. Each tag consists of a key-value pair..
LastUpdatedTime:
type: string
format: date-time
description: A timestamp that indicates when the service was last updated.
CreatedTime:
type: string
format: date-time
description: A timestamp that indicates when the service is created.
DeleteServiceResponse:
type: object
properties:
ServiceId:
type: string
description: The unique identifier of the service.
Name:
type: string
description: The name of the service.
Arn:
type: string
description: The Amazon Resource Name (ARN) of the service.
EnvironmentId:
type: string
description: The unique identifier of the environment.
ApplicationId:
type: string
description: The ID of the application that the service is in.
State:
type: string
description: The current state of the service.
LastUpdatedTime:
type: string
format: date-time
description: A timestamp that indicates when the service was last updated.
ErrorResponse:
type: object
properties:
Code:
type: string
description: The error code associated with the error.
Message:
type: string
description: The message associated with the error.
AccountId:
type: string
description: The Amazon Web Services account ID of the resource owner.
ResourceIdentifier:
type: string
description: The ID of the resource.
ResourceType:
type: string
description: The type of resource.
AdditionalDetails:
type: object
additionalProperties:
type: string
description: Additional details about the error.
GetServiceResponse:
type: object
properties:
ServiceId:
type: string
description: The unique identifier of the service.
Name:
type: string
description: The name of the service.
Arn:
type: string
description: The Amazon Resource Name (ARN) of the service.
OwnerAccountId:
type: string
description: The Amazon Web Services account ID of the service owner.
CreatedByAccountId:
type: string
description: The Amazon Web Services account ID of the service creator.
Description:
type: string
description: The description of the service.
EnvironmentId:
type: string
description: The unique identifier of the environment.
ApplicationId:
type: string
description: The ID of the application.
VpcId:
type: string
description: The ID of the virtual private cloud (VPC).
EndpointType:
type: string
description: The endpoint type of the service.
UrlEndpoint:
$ref: '#/components/schemas/UrlEndpointConfig'
LambdaEndpoint:
$ref: '#/components/schemas/LambdaEndpointConfig'
State:
type: string
description: The current state of the service.
Tags:
type: object
additionalProperties:
type: string
description: The tags assigned to the service. A tag is a label that you assign to an Amazon Web Services resource.
Each tag consists of a key-value pair.
Error:
$ref: '#/components/schemas/ErrorResponse'
LastUpdatedTime:
type: string
format: date-time
description: A timestamp that indicates when the service was last updated.
CreatedTime:
type: string
format: date-time
description: The timestamp of when the service is created.
InternalServerException:
type: object
properties:
Message:
type: string
required:
- Message
LambdaEndpointConfig:
type: object
properties:
Arn:
type: string
description: The Amazon Resource Name (ARN) of the Lambda endpoint.
LambdaEndpointInput:
type: object
properties:
Arn:
type: string
description: The Amazon Resource Name (ARN) of the Lambda function or alias.
required:
- Arn
LambdaEndpointSummary:
type: object
properties:
Arn:
type: string
description: The Amazon Resource Name (ARN) of the Lambda endpoint.
ListServicesResponse:
type: object
properties:
ServiceSummaryList:
type: array
items:
$ref: '#/components/schemas/ServiceSummary'
description: The list of ServiceSummary objects.
NextToken:
type: string
description: The token for the next page of results.
RefactorSpacesAccessDeniedException:
type: object
properties:
Message:
type: string
required:
- Message
RefactorSpacesThrottlingException:
type: object
properties:
Message:
type: string
QuotaCode:
type: string
description: Service quota requirement to identify originating quota. Reached throttling quota exception.
ServiceCode:
type: string
description: Service quota requirement to identify originating service. Reached throttling quota exception service
code.
RetryAfterSeconds:
type: integer
description: The number of seconds to wait before retrying.
required:
- Message
ResourceNotFoundException:
type: object
properties:
Message:
type: string
ResourceId:
type: string
description: The ID of the resource.
ResourceType:
type: string
description: The type of resource.
required:
- Message
- ResourceId
- ResourceType
ServiceQuotaExceededException:
type: object
properties:
Message:
type: string
ResourceId:
type: string
description: The ID of the resource.
ResourceType:
type: string
description: The type of resource.
QuotaCode:
type: string
description: Service quota requirement to identify originating quota. Reached throttling quota exception.
ServiceCode:
type: string
description: Service quota requirement to identify originating service. Reached throttling quota exception service
code.
required:
- Message
- ResourceId
- ResourceType
- ServiceCode
ServiceSummary:
type: object
properties:
ServiceId:
type: string
description: The unique identifier of the service.
Name:
type: string
description: The name of the service.
Arn:
type: string
description: The Amazon Resource Name (ARN) of the service.
OwnerAccountId:
type: string
description: The Amazon Web Services account ID of the service owner.
CreatedByAccountId:
type: string
description: The Amazon Web Services account ID of the service creator.
Description:
type: string
description: A description of the service.
EnvironmentId:
type: string
description: The unique identifier of the environment.
ApplicationId:
type: string
description: The unique identifier of the application.
VpcId:
type: string
description: The ID of the virtual private cloud (VPC).
EndpointType:
type: string
description: The endpoint type of the service.
UrlEndpoint:
$ref: '#/components/schemas/UrlEndpointSummary'
LambdaEndpoint:
$ref: '#/components/schemas/LambdaEndpointSummary'
State:
type: string
description: The current state of the service.
Tags:
type: object
additionalProperties:
type: string
description: The tags assigned to the service.
Error:
$ref: '#/components/schemas/ErrorResponse'
LastUpdatedTime:
type: string
format: date-time
description: A timestamp that indicates when the service was last updated.
CreatedTime:
type: string
format: date-time
description: A timestamp that indicates when the service is created.
UrlEndpointConfig:
type: object
properties:
Url:
type: string
description: The HTTP URL endpoint.
HealthUrl:
type: string
description: The health check URL of the URL endpoint type.
UrlEndpointInput:
type: object
properties:
Url:
type: string
description: The URL to route traffic to. The URL must be an rfc3986-formatted URL. If the host is a domain name,
the name must be resolvable over the public internet. If the scheme is https, the top level domain of the host
must be listed in the IANA root zone database.
HealthUrl:
type: string
description: The health check URL of the URL endpoint type. If the URL is a public endpoint, the HealthUrl must
also be a public endpoint. If the URL is a private endpoint inside a virtual private cloud (VPC), the health URL
must also be a private endpoint, and the host must be the same as the URL.
required:
- Url
UrlEndpointSummary:
type: object
properties:
Url:
type: string
description: The URL to route traffic to. The URL must be an rfc3986-formatted URL. If the host is a domain name,
the name must be resolvable over the public internet. If the scheme is https, the top level domain of the host
must be listed in the IANA root zone database.
HealthUrl:
type: string
description: The health check URL of the URL endpoint type. If the URL is a public endpoint, the HealthUrl must
also be a public endpoint. If the URL is a private endpoint inside a virtual private cloud (VPC), the health URL
must also be a private endpoint, and the host must be the same as the URL.
ValidationException:
type: object
properties:
Message:
type: string
required:
- Message
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/migration-hub-refactor-spaces/service/2021-10-26/migration-hub-refactor-spaces-2021-10-26.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)