migrationhubrefactorspaces.d.ts 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760
  1. import {Request} from '../lib/request';
  2. import {Response} from '../lib/response';
  3. import {AWSError} from '../lib/error';
  4. import {Service} from '../lib/service';
  5. import {ServiceConfigurationOptions} from '../lib/service';
  6. import {ConfigBase as Config} from '../lib/config-base';
  7. interface Blob {}
  8. declare class MigrationHubRefactorSpaces extends Service {
  9. /**
  10. * Constructs a service object. This object has one method for each API operation.
  11. */
  12. constructor(options?: MigrationHubRefactorSpaces.Types.ClientConfiguration)
  13. config: Config & MigrationHubRefactorSpaces.Types.ClientConfiguration;
  14. /**
  15. * Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the applications created inside the environment, regardless of the account that creates the application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your account. In environments created with a CreateEnvironment:NetworkFabricType of NONE you need to configure VPC to VPC connectivity between your service VPC and the application proxy VPC to route traffic through the application proxy to a service with a private URL endpoint. For more information, see Create an application in the Refactor Spaces User Guide.
  16. */
  17. createApplication(params: MigrationHubRefactorSpaces.Types.CreateApplicationRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateApplicationResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateApplicationResponse, AWSError>;
  18. /**
  19. * Creates an Amazon Web Services Migration Hub Refactor Spaces application. The account that owns the environment also owns the applications created inside the environment, regardless of the account that creates the application. Refactor Spaces provisions an Amazon API Gateway, API Gateway VPC link, and Network Load Balancer for the application proxy inside your account. In environments created with a CreateEnvironment:NetworkFabricType of NONE you need to configure VPC to VPC connectivity between your service VPC and the application proxy VPC to route traffic through the application proxy to a service with a private URL endpoint. For more information, see Create an application in the Refactor Spaces User Guide.
  20. */
  21. createApplication(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateApplicationResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateApplicationResponse, AWSError>;
  22. /**
  23. * Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all Refactor Spaces applications, services, and routes created within the environment. They are referred to as the environment owner. The environment owner has cross-account visibility and control of Refactor Spaces resources that are added to the environment by other accounts that the environment is shared with. When creating an environment with a CreateEnvironment:NetworkFabricType of TRANSIT_GATEWAY, Refactor Spaces provisions a transit gateway to enable services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType is NONE, Refactor Spaces does not create a transit gateway and you must use your network infrastructure to route traffic to services with private URL endpoints.
  24. */
  25. createEnvironment(params: MigrationHubRefactorSpaces.Types.CreateEnvironmentRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateEnvironmentResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateEnvironmentResponse, AWSError>;
  26. /**
  27. * Creates an Amazon Web Services Migration Hub Refactor Spaces environment. The caller owns the environment resource, and all Refactor Spaces applications, services, and routes created within the environment. They are referred to as the environment owner. The environment owner has cross-account visibility and control of Refactor Spaces resources that are added to the environment by other accounts that the environment is shared with. When creating an environment with a CreateEnvironment:NetworkFabricType of TRANSIT_GATEWAY, Refactor Spaces provisions a transit gateway to enable services in VPCs to communicate directly across accounts. If CreateEnvironment:NetworkFabricType is NONE, Refactor Spaces does not create a transit gateway and you must use your network infrastructure to route traffic to services with private URL endpoints.
  28. */
  29. createEnvironment(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateEnvironmentResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateEnvironmentResponse, AWSError>;
  30. /**
  31. * Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner of the service resource is always the environment owner, regardless of which account creates the route. Routes target a service in the application. If an application does not have any routes, then the first route must be created as a DEFAULT RouteType. When created, the default route defaults to an active state so state is not a required input. However, like all other state values the state of the default route can be updated after creation, but only when all other routes are also inactive. Conversely, no route can be active without the default route also being active. When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic to the target service as follows: URL Endpoints If the service has a URL endpoint, and the endpoint resolves to a private IP address, Refactor Spaces routes traffic using the API Gateway VPC link. If a service endpoint resolves to a public IP address, Refactor Spaces routes traffic over the public internet. Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed certificates are supported. Private Certificate Authorities (CAs) are permitted only if the CA's domain is also publicly resolvable. Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are set in CreateService:UrlEndpoint when you create a service. The DNS names resolve when the DNS time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60 seconds. This periodic DNS resolution ensures that the route configuration remains up-to-date. One-time health check A one-time health check is performed on the service when either the route is updated from inactive to active, or when it is created with an active state. If the health check fails, the route transitions the route state to FAILED, an error code of SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE is provided, and no traffic is sent to the service. For private URLs, a target group is created on the Network Load Balancer and the load balancer target group runs default target health checks. By default, the health check is run against the service endpoint URL. Optionally, the health check can be performed against a different protocol, port, and/or path using the CreateService:UrlEndpoint parameter. All other health check settings for the load balancer use the default values described in the Health checks for your target groups in the Elastic Load Balancing guide. The health check is considered successful if at least one target within the target group transitions to a healthy state. Lambda function endpoints If the service has an Lambda function endpoint, then Refactor Spaces configures the Lambda function's resource policy to allow the application's API Gateway to invoke the function. The Lambda function state is checked. If the function is not active, the function configuration is updated so that Lambda resources are provisioned. If the Lambda state is Failed, then the route creation fails. For more information, see the GetFunctionConfiguration's State response parameter in the Lambda Developer Guide. A check is performed to determine that a Lambda function with the specified ARN exists. If it does not exist, the health check fails. For public URLs, a connection is opened to the public endpoint. If the URL is not reachable, the health check fails. Environments without a network bridge When you create environments without a network bridge (CreateEnvironment:NetworkFabricType is NONE) and you use your own networking infrastructure, you need to configure VPC to VPC connectivity between your network and the application proxy VPC. Route creation from the application proxy to service endpoints will fail if your network is not configured to connect to the application proxy VPC. For more information, see Create a route in the Refactor Spaces User Guide.
  32. */
  33. createRoute(params: MigrationHubRefactorSpaces.Types.CreateRouteRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateRouteResponse, AWSError>;
  34. /**
  35. * Creates an Amazon Web Services Migration Hub Refactor Spaces route. The account owner of the service resource is always the environment owner, regardless of which account creates the route. Routes target a service in the application. If an application does not have any routes, then the first route must be created as a DEFAULT RouteType. When created, the default route defaults to an active state so state is not a required input. However, like all other state values the state of the default route can be updated after creation, but only when all other routes are also inactive. Conversely, no route can be active without the default route also being active. When you create a route, Refactor Spaces configures the Amazon API Gateway to send traffic to the target service as follows: URL Endpoints If the service has a URL endpoint, and the endpoint resolves to a private IP address, Refactor Spaces routes traffic using the API Gateway VPC link. If a service endpoint resolves to a public IP address, Refactor Spaces routes traffic over the public internet. Services can have HTTP or HTTPS URL endpoints. For HTTPS URLs, publicly-signed certificates are supported. Private Certificate Authorities (CAs) are permitted only if the CA's domain is also publicly resolvable. Refactor Spaces automatically resolves the public Domain Name System (DNS) names that are set in CreateService:UrlEndpoint when you create a service. The DNS names resolve when the DNS time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60 seconds. This periodic DNS resolution ensures that the route configuration remains up-to-date. One-time health check A one-time health check is performed on the service when either the route is updated from inactive to active, or when it is created with an active state. If the health check fails, the route transitions the route state to FAILED, an error code of SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE is provided, and no traffic is sent to the service. For private URLs, a target group is created on the Network Load Balancer and the load balancer target group runs default target health checks. By default, the health check is run against the service endpoint URL. Optionally, the health check can be performed against a different protocol, port, and/or path using the CreateService:UrlEndpoint parameter. All other health check settings for the load balancer use the default values described in the Health checks for your target groups in the Elastic Load Balancing guide. The health check is considered successful if at least one target within the target group transitions to a healthy state. Lambda function endpoints If the service has an Lambda function endpoint, then Refactor Spaces configures the Lambda function's resource policy to allow the application's API Gateway to invoke the function. The Lambda function state is checked. If the function is not active, the function configuration is updated so that Lambda resources are provisioned. If the Lambda state is Failed, then the route creation fails. For more information, see the GetFunctionConfiguration's State response parameter in the Lambda Developer Guide. A check is performed to determine that a Lambda function with the specified ARN exists. If it does not exist, the health check fails. For public URLs, a connection is opened to the public endpoint. If the URL is not reachable, the health check fails. Environments without a network bridge When you create environments without a network bridge (CreateEnvironment:NetworkFabricType is NONE) and you use your own networking infrastructure, you need to configure VPC to VPC connectivity between your network and the application proxy VPC. Route creation from the application proxy to service endpoints will fail if your network is not configured to connect to the application proxy VPC. For more information, see Create a route in the Refactor Spaces User Guide.
  36. */
  37. createRoute(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateRouteResponse, AWSError>;
  38. /**
  39. * 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.
  40. */
  41. createService(params: MigrationHubRefactorSpaces.Types.CreateServiceRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateServiceResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateServiceResponse, AWSError>;
  42. /**
  43. * 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.
  44. */
  45. createService(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.CreateServiceResponse) => void): Request<MigrationHubRefactorSpaces.Types.CreateServiceResponse, AWSError>;
  46. /**
  47. * Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.
  48. */
  49. deleteApplication(params: MigrationHubRefactorSpaces.Types.DeleteApplicationRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteApplicationResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteApplicationResponse, AWSError>;
  50. /**
  51. * Deletes an Amazon Web Services Migration Hub Refactor Spaces application. Before you can delete an application, you must first delete any services or routes within the application.
  52. */
  53. deleteApplication(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteApplicationResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteApplicationResponse, AWSError>;
  54. /**
  55. * Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.
  56. */
  57. deleteEnvironment(params: MigrationHubRefactorSpaces.Types.DeleteEnvironmentRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteEnvironmentResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteEnvironmentResponse, AWSError>;
  58. /**
  59. * Deletes an Amazon Web Services Migration Hub Refactor Spaces environment. Before you can delete an environment, you must first delete any applications and services within the environment.
  60. */
  61. deleteEnvironment(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteEnvironmentResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteEnvironmentResponse, AWSError>;
  62. /**
  63. * Deletes the resource policy set for the environment.
  64. */
  65. deleteResourcePolicy(params: MigrationHubRefactorSpaces.Types.DeleteResourcePolicyRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteResourcePolicyResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteResourcePolicyResponse, AWSError>;
  66. /**
  67. * Deletes the resource policy set for the environment.
  68. */
  69. deleteResourcePolicy(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteResourcePolicyResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteResourcePolicyResponse, AWSError>;
  70. /**
  71. * Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
  72. */
  73. deleteRoute(params: MigrationHubRefactorSpaces.Types.DeleteRouteRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteRouteResponse, AWSError>;
  74. /**
  75. * Deletes an Amazon Web Services Migration Hub Refactor Spaces route.
  76. */
  77. deleteRoute(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteRouteResponse, AWSError>;
  78. /**
  79. * Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
  80. */
  81. deleteService(params: MigrationHubRefactorSpaces.Types.DeleteServiceRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteServiceResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteServiceResponse, AWSError>;
  82. /**
  83. * Deletes an Amazon Web Services Migration Hub Refactor Spaces service.
  84. */
  85. deleteService(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.DeleteServiceResponse) => void): Request<MigrationHubRefactorSpaces.Types.DeleteServiceResponse, AWSError>;
  86. /**
  87. * Gets an Amazon Web Services Migration Hub Refactor Spaces application.
  88. */
  89. getApplication(params: MigrationHubRefactorSpaces.Types.GetApplicationRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetApplicationResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetApplicationResponse, AWSError>;
  90. /**
  91. * Gets an Amazon Web Services Migration Hub Refactor Spaces application.
  92. */
  93. getApplication(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetApplicationResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetApplicationResponse, AWSError>;
  94. /**
  95. * Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
  96. */
  97. getEnvironment(params: MigrationHubRefactorSpaces.Types.GetEnvironmentRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetEnvironmentResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetEnvironmentResponse, AWSError>;
  98. /**
  99. * Gets an Amazon Web Services Migration Hub Refactor Spaces environment.
  100. */
  101. getEnvironment(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetEnvironmentResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetEnvironmentResponse, AWSError>;
  102. /**
  103. * Gets the resource-based permission policy that is set for the given environment.
  104. */
  105. getResourcePolicy(params: MigrationHubRefactorSpaces.Types.GetResourcePolicyRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetResourcePolicyResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetResourcePolicyResponse, AWSError>;
  106. /**
  107. * Gets the resource-based permission policy that is set for the given environment.
  108. */
  109. getResourcePolicy(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetResourcePolicyResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetResourcePolicyResponse, AWSError>;
  110. /**
  111. * Gets an Amazon Web Services Migration Hub Refactor Spaces route.
  112. */
  113. getRoute(params: MigrationHubRefactorSpaces.Types.GetRouteRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetRouteResponse, AWSError>;
  114. /**
  115. * Gets an Amazon Web Services Migration Hub Refactor Spaces route.
  116. */
  117. getRoute(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetRouteResponse, AWSError>;
  118. /**
  119. * Gets an Amazon Web Services Migration Hub Refactor Spaces service.
  120. */
  121. getService(params: MigrationHubRefactorSpaces.Types.GetServiceRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetServiceResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetServiceResponse, AWSError>;
  122. /**
  123. * Gets an Amazon Web Services Migration Hub Refactor Spaces service.
  124. */
  125. getService(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.GetServiceResponse) => void): Request<MigrationHubRefactorSpaces.Types.GetServiceResponse, AWSError>;
  126. /**
  127. * Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
  128. */
  129. listApplications(params: MigrationHubRefactorSpaces.Types.ListApplicationsRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListApplicationsResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListApplicationsResponse, AWSError>;
  130. /**
  131. * Lists all the Amazon Web Services Migration Hub Refactor Spaces applications within an environment.
  132. */
  133. listApplications(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListApplicationsResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListApplicationsResponse, AWSError>;
  134. /**
  135. * Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
  136. */
  137. listEnvironmentVpcs(params: MigrationHubRefactorSpaces.Types.ListEnvironmentVpcsRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListEnvironmentVpcsResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListEnvironmentVpcsResponse, AWSError>;
  138. /**
  139. * Lists all Amazon Web Services Migration Hub Refactor Spaces service virtual private clouds (VPCs) that are part of the environment.
  140. */
  141. listEnvironmentVpcs(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListEnvironmentVpcsResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListEnvironmentVpcsResponse, AWSError>;
  142. /**
  143. * Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.
  144. */
  145. listEnvironments(params: MigrationHubRefactorSpaces.Types.ListEnvironmentsRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListEnvironmentsResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListEnvironmentsResponse, AWSError>;
  146. /**
  147. * Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.
  148. */
  149. listEnvironments(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListEnvironmentsResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListEnvironmentsResponse, AWSError>;
  150. /**
  151. * Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
  152. */
  153. listRoutes(params: MigrationHubRefactorSpaces.Types.ListRoutesRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListRoutesResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListRoutesResponse, AWSError>;
  154. /**
  155. * Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.
  156. */
  157. listRoutes(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListRoutesResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListRoutesResponse, AWSError>;
  158. /**
  159. * Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
  160. */
  161. listServices(params: MigrationHubRefactorSpaces.Types.ListServicesRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListServicesResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListServicesResponse, AWSError>;
  162. /**
  163. * Lists all the Amazon Web Services Migration Hub Refactor Spaces services within an application.
  164. */
  165. listServices(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListServicesResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListServicesResponse, AWSError>;
  166. /**
  167. * Lists the tags of a resource. The caller account must be the same as the resource’s OwnerAccountId. Listing tags in other accounts is not supported.
  168. */
  169. listTagsForResource(params: MigrationHubRefactorSpaces.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListTagsForResourceResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListTagsForResourceResponse, AWSError>;
  170. /**
  171. * Lists the tags of a resource. The caller account must be the same as the resource’s OwnerAccountId. Listing tags in other accounts is not supported.
  172. */
  173. listTagsForResource(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.ListTagsForResourceResponse) => void): Request<MigrationHubRefactorSpaces.Types.ListTagsForResourceResponse, AWSError>;
  174. /**
  175. * Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment. The policy must contain the same actions and condition statements as the arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment permission in Resource Access Manager. The policy must not contain new lines or blank lines.
  176. */
  177. putResourcePolicy(params: MigrationHubRefactorSpaces.Types.PutResourcePolicyRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.PutResourcePolicyResponse) => void): Request<MigrationHubRefactorSpaces.Types.PutResourcePolicyResponse, AWSError>;
  178. /**
  179. * Attaches a resource-based permission policy to the Amazon Web Services Migration Hub Refactor Spaces environment. The policy must contain the same actions and condition statements as the arn:aws:ram::aws:permission/AWSRAMDefaultPermissionRefactorSpacesEnvironment permission in Resource Access Manager. The policy must not contain new lines or blank lines.
  180. */
  181. putResourcePolicy(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.PutResourcePolicyResponse) => void): Request<MigrationHubRefactorSpaces.Types.PutResourcePolicyResponse, AWSError>;
  182. /**
  183. * Removes the tags of a given resource. Tags are metadata which can be used to manage a resource. To tag a resource, the caller account must be the same as the resource’s OwnerAccountId. Tagging resources in other accounts is not supported. Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an environment’s transit gateway.
  184. */
  185. tagResource(params: MigrationHubRefactorSpaces.Types.TagResourceRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.TagResourceResponse) => void): Request<MigrationHubRefactorSpaces.Types.TagResourceResponse, AWSError>;
  186. /**
  187. * Removes the tags of a given resource. Tags are metadata which can be used to manage a resource. To tag a resource, the caller account must be the same as the resource’s OwnerAccountId. Tagging resources in other accounts is not supported. Amazon Web Services Migration Hub Refactor Spaces does not propagate tags to orchestrated resources, such as an environment’s transit gateway.
  188. */
  189. tagResource(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.TagResourceResponse) => void): Request<MigrationHubRefactorSpaces.Types.TagResourceResponse, AWSError>;
  190. /**
  191. * Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource. To untag a resource, the caller account must be the same as the resource’s OwnerAccountId. Untagging resources across accounts is not supported.
  192. */
  193. untagResource(params: MigrationHubRefactorSpaces.Types.UntagResourceRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.UntagResourceResponse) => void): Request<MigrationHubRefactorSpaces.Types.UntagResourceResponse, AWSError>;
  194. /**
  195. * Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource. To untag a resource, the caller account must be the same as the resource’s OwnerAccountId. Untagging resources across accounts is not supported.
  196. */
  197. untagResource(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.UntagResourceResponse) => void): Request<MigrationHubRefactorSpaces.Types.UntagResourceResponse, AWSError>;
  198. /**
  199. * Updates an Amazon Web Services Migration Hub Refactor Spaces route.
  200. */
  201. updateRoute(params: MigrationHubRefactorSpaces.Types.UpdateRouteRequest, callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.UpdateRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.UpdateRouteResponse, AWSError>;
  202. /**
  203. * Updates an Amazon Web Services Migration Hub Refactor Spaces route.
  204. */
  205. updateRoute(callback?: (err: AWSError, data: MigrationHubRefactorSpaces.Types.UpdateRouteResponse) => void): Request<MigrationHubRefactorSpaces.Types.UpdateRouteResponse, AWSError>;
  206. }
  207. declare namespace MigrationHubRefactorSpaces {
  208. export type AccountId = string;
  209. export type AdditionalDetails = {[key: string]: AdditionalDetailsValue};
  210. export type AdditionalDetailsKey = string;
  211. export type AdditionalDetailsValue = string;
  212. export type ApiGatewayEndpointType = "REGIONAL"|"PRIVATE"|string;
  213. export type ApiGatewayId = string;
  214. export interface ApiGatewayProxyConfig {
  215. /**
  216. * The resource ID of the API Gateway for the proxy.
  217. */
  218. ApiGatewayId?: ApiGatewayId;
  219. /**
  220. * The type of API Gateway endpoint created.
  221. */
  222. EndpointType?: ApiGatewayEndpointType;
  223. /**
  224. * The Amazon Resource Name (ARN) of the Network Load Balancer configured by the API Gateway proxy.
  225. */
  226. NlbArn?: NlbArn;
  227. /**
  228. * The name of the Network Load Balancer that is configured by the API Gateway proxy.
  229. */
  230. NlbName?: NlbName;
  231. /**
  232. * The endpoint URL of the API Gateway proxy.
  233. */
  234. ProxyUrl?: Uri;
  235. /**
  236. * The name of the API Gateway stage. The name defaults to prod.
  237. */
  238. StageName?: StageName;
  239. /**
  240. * The VpcLink ID of the API Gateway proxy.
  241. */
  242. VpcLinkId?: VpcLinkId;
  243. }
  244. export interface ApiGatewayProxyInput {
  245. /**
  246. * The type of endpoint to use for the API Gateway proxy. If no value is specified in the request, the value is set to REGIONAL by default. If the value is set to PRIVATE in the request, this creates a private API endpoint that is isolated from the public internet. The private endpoint can only be accessed by using Amazon Virtual Private Cloud (Amazon VPC) interface endpoints for the Amazon API Gateway that has been granted access. For more information about creating a private connection with Refactor Spaces and interface endpoint (Amazon Web Services PrivateLink) availability, see Access Refactor Spaces using an interface endpoint (Amazon Web Services PrivateLink).
  247. */
  248. EndpointType?: ApiGatewayEndpointType;
  249. /**
  250. * The name of the API Gateway stage. The name defaults to prod.
  251. */
  252. StageName?: StageName;
  253. }
  254. export interface ApiGatewayProxySummary {
  255. /**
  256. * The resource ID of the API Gateway for the proxy.
  257. */
  258. ApiGatewayId?: ApiGatewayId;
  259. /**
  260. * The type of API Gateway endpoint created.
  261. */
  262. EndpointType?: ApiGatewayEndpointType;
  263. /**
  264. * The Amazon Resource Name (ARN) of the Network Load Balancer configured by the API Gateway proxy.
  265. */
  266. NlbArn?: NlbArn;
  267. /**
  268. * The name of the Network Load Balancer that is configured by the API Gateway proxy.
  269. */
  270. NlbName?: NlbName;
  271. /**
  272. * The endpoint URL of the API Gateway proxy.
  273. */
  274. ProxyUrl?: Uri;
  275. /**
  276. * The name of the API Gateway stage. The name defaults to prod.
  277. */
  278. StageName?: StageName;
  279. /**
  280. * The VpcLink ID of the API Gateway proxy.
  281. */
  282. VpcLinkId?: VpcLinkId;
  283. }
  284. export type ApplicationId = string;
  285. export type ApplicationName = string;
  286. export type ApplicationState = "CREATING"|"ACTIVE"|"DELETING"|"FAILED"|"UPDATING"|string;
  287. export type ApplicationSummaries = ApplicationSummary[];
  288. export interface ApplicationSummary {
  289. /**
  290. * The endpoint URL of the Amazon API Gateway proxy.
  291. */
  292. ApiGatewayProxy?: ApiGatewayProxySummary;
  293. /**
  294. * The unique identifier of the application.
  295. */
  296. ApplicationId?: ApplicationId;
  297. /**
  298. * The Amazon Resource Name (ARN) of the application.
  299. */
  300. Arn?: ResourceArn;
  301. /**
  302. * The Amazon Web Services account ID of the application creator.
  303. */
  304. CreatedByAccountId?: AccountId;
  305. /**
  306. * A timestamp that indicates when the application is created.
  307. */
  308. CreatedTime?: Timestamp;
  309. /**
  310. * The unique identifier of the environment.
  311. */
  312. EnvironmentId?: EnvironmentId;
  313. /**
  314. * Any error associated with the application resource.
  315. */
  316. Error?: ErrorResponse;
  317. /**
  318. * A timestamp that indicates when the application was last updated.
  319. */
  320. LastUpdatedTime?: Timestamp;
  321. /**
  322. * The name of the application.
  323. */
  324. Name?: ApplicationName;
  325. /**
  326. * The Amazon Web Services account ID of the application owner (which is always the same as the environment owner account ID).
  327. */
  328. OwnerAccountId?: AccountId;
  329. /**
  330. * The proxy type of the proxy created within the application.
  331. */
  332. ProxyType?: ProxyType;
  333. /**
  334. * The current state of the application.
  335. */
  336. State?: ApplicationState;
  337. /**
  338. * The tags assigned to the application.
  339. */
  340. Tags?: TagMap;
  341. /**
  342. * The ID of the virtual private cloud (VPC).
  343. */
  344. VpcId?: VpcId;
  345. }
  346. export type Boolean = boolean;
  347. export type CidrBlock = string;
  348. export type CidrBlocks = CidrBlock[];
  349. export type ClientToken = string;
  350. export interface CreateApplicationRequest {
  351. /**
  352. * A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
  353. */
  354. ApiGatewayProxy?: ApiGatewayProxyInput;
  355. /**
  356. * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
  357. */
  358. ClientToken?: ClientToken;
  359. /**
  360. * The unique identifier of the environment.
  361. */
  362. EnvironmentIdentifier: EnvironmentId;
  363. /**
  364. * The name to use for the application.
  365. */
  366. Name: ApplicationName;
  367. /**
  368. * The proxy type of the proxy created within the application.
  369. */
  370. ProxyType: ProxyType;
  371. /**
  372. * The tags to assign to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  373. */
  374. Tags?: TagMap;
  375. /**
  376. * The ID of the virtual private cloud (VPC).
  377. */
  378. VpcId: VpcId;
  379. }
  380. export interface CreateApplicationResponse {
  381. /**
  382. * A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
  383. */
  384. ApiGatewayProxy?: ApiGatewayProxyInput;
  385. /**
  386. * The unique identifier of the application.
  387. */
  388. ApplicationId?: ApplicationId;
  389. /**
  390. * The Amazon Resource Name (ARN) of the application. The format for this ARN is arn:aws:refactor-spaces:region:account-id:resource-type/resource-id . For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  391. */
  392. Arn?: ResourceArn;
  393. /**
  394. * The Amazon Web Services account ID of application creator.
  395. */
  396. CreatedByAccountId?: AccountId;
  397. /**
  398. * A timestamp that indicates when the application is created.
  399. */
  400. CreatedTime?: Timestamp;
  401. /**
  402. * The ID of the environment in which the application is created.
  403. */
  404. EnvironmentId?: EnvironmentId;
  405. /**
  406. * A timestamp that indicates when the application was last updated.
  407. */
  408. LastUpdatedTime?: Timestamp;
  409. /**
  410. * The name of the application.
  411. */
  412. Name?: ApplicationName;
  413. /**
  414. * The Amazon Web Services account ID of the application owner (which is always the same as the environment owner account ID).
  415. */
  416. OwnerAccountId?: AccountId;
  417. /**
  418. * The proxy type of the proxy created within the application.
  419. */
  420. ProxyType?: ProxyType;
  421. /**
  422. * The current state of the application.
  423. */
  424. State?: ApplicationState;
  425. /**
  426. * The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  427. */
  428. Tags?: TagMap;
  429. /**
  430. * The ID of the Amazon VPC.
  431. */
  432. VpcId?: VpcId;
  433. }
  434. export interface CreateEnvironmentRequest {
  435. /**
  436. * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
  437. */
  438. ClientToken?: ClientToken;
  439. /**
  440. * The description of the environment.
  441. */
  442. Description?: Description;
  443. /**
  444. * The name of the environment.
  445. */
  446. Name: EnvironmentName;
  447. /**
  448. * The network fabric type of the environment.
  449. */
  450. NetworkFabricType: NetworkFabricType;
  451. /**
  452. * The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  453. */
  454. Tags?: TagMap;
  455. }
  456. export interface CreateEnvironmentResponse {
  457. /**
  458. * The Amazon Resource Name (ARN) of the environment.
  459. */
  460. Arn?: ResourceArn;
  461. /**
  462. * A timestamp that indicates when the environment is created.
  463. */
  464. CreatedTime?: Timestamp;
  465. /**
  466. * A description of the environment.
  467. */
  468. Description?: Description;
  469. /**
  470. * The unique identifier of the environment.
  471. */
  472. EnvironmentId?: EnvironmentId;
  473. /**
  474. * A timestamp that indicates when the environment was last updated.
  475. */
  476. LastUpdatedTime?: Timestamp;
  477. /**
  478. * The name of the environment.
  479. */
  480. Name?: EnvironmentName;
  481. /**
  482. * The network fabric type of the environment.
  483. */
  484. NetworkFabricType?: NetworkFabricType;
  485. /**
  486. * The Amazon Web Services account ID of environment owner.
  487. */
  488. OwnerAccountId?: AccountId;
  489. /**
  490. * The current state of the environment.
  491. */
  492. State?: EnvironmentState;
  493. /**
  494. * The tags assigned to the created environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..
  495. */
  496. Tags?: TagMap;
  497. }
  498. export interface CreateRouteRequest {
  499. /**
  500. * The ID of the application within which the route is being created.
  501. */
  502. ApplicationIdentifier: ApplicationId;
  503. /**
  504. * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
  505. */
  506. ClientToken?: ClientToken;
  507. /**
  508. * Configuration for the default route type.
  509. */
  510. DefaultRoute?: DefaultRouteInput;
  511. /**
  512. * The ID of the environment in which the route is created.
  513. */
  514. EnvironmentIdentifier: EnvironmentId;
  515. /**
  516. * The route type of the route. DEFAULT indicates that all traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH indicates a route that is based on a URI path.
  517. */
  518. RouteType: RouteType;
  519. /**
  520. * The ID of the service in which the route is created. Traffic that matches this route is forwarded to this service.
  521. */
  522. ServiceIdentifier: ServiceId;
  523. /**
  524. * The tags to assign to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair..
  525. */
  526. Tags?: TagMap;
  527. /**
  528. * The configuration for the URI path route type.
  529. */
  530. UriPathRoute?: UriPathRouteInput;
  531. }
  532. export interface CreateRouteResponse {
  533. /**
  534. * The ID of the application in which the route is created.
  535. */
  536. ApplicationId?: ApplicationId;
  537. /**
  538. * The Amazon Resource Name (ARN) of the route. The format for this ARN is arn:aws:refactor-spaces:region:account-id:resource-type/resource-id . For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  539. */
  540. Arn?: ResourceArn;
  541. /**
  542. * The Amazon Web Services account ID of the route creator.
  543. */
  544. CreatedByAccountId?: AccountId;
  545. /**
  546. * A timestamp that indicates when the route is created.
  547. */
  548. CreatedTime?: Timestamp;
  549. /**
  550. * A timestamp that indicates when the route was last updated.
  551. */
  552. LastUpdatedTime?: Timestamp;
  553. /**
  554. * The Amazon Web Services account ID of the route owner.
  555. */
  556. OwnerAccountId?: AccountId;
  557. /**
  558. * The unique identifier of the route.
  559. */
  560. RouteId?: RouteId;
  561. /**
  562. * The route type of the route.
  563. */
  564. RouteType?: RouteType;
  565. /**
  566. * The ID of service in which the route is created. Traffic that matches this route is forwarded to this service.
  567. */
  568. ServiceId?: ServiceId;
  569. /**
  570. * The current state of the route. Activation state only allows ACTIVE or INACTIVE as user inputs. FAILED is a route state that is system generated.
  571. */
  572. State?: RouteState;
  573. /**
  574. * The tags assigned to the created route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  575. */
  576. Tags?: TagMap;
  577. /**
  578. * Configuration for the URI path route type.
  579. */
  580. UriPathRoute?: UriPathRouteInput;
  581. }
  582. export interface CreateServiceRequest {
  583. /**
  584. * The ID of the application which the service is created.
  585. */
  586. ApplicationIdentifier: ApplicationId;
  587. /**
  588. * A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
  589. */
  590. ClientToken?: ClientToken;
  591. /**
  592. * The description of the service.
  593. */
  594. Description?: Description;
  595. /**
  596. * The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.
  597. */
  598. EndpointType: ServiceEndpointType;
  599. /**
  600. * The ID of the environment in which the service is created.
  601. */
  602. EnvironmentIdentifier: EnvironmentId;
  603. /**
  604. * The configuration for the Lambda endpoint type.
  605. */
  606. LambdaEndpoint?: LambdaEndpointInput;
  607. /**
  608. * The name of the service.
  609. */
  610. Name: ServiceName;
  611. /**
  612. * 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..
  613. */
  614. Tags?: TagMap;
  615. /**
  616. * The configuration for the URL endpoint type. When creating a route to a service, Refactor Spaces automatically resolves the address in the UrlEndpointInput object URL when the Domain Name System (DNS) time-to-live (TTL) expires, or every 60 seconds for TTLs less than 60 seconds.
  617. */
  618. UrlEndpoint?: UrlEndpointInput;
  619. /**
  620. * The ID of the VPC.
  621. */
  622. VpcId?: VpcId;
  623. }
  624. export interface CreateServiceResponse {
  625. /**
  626. * The ID of the application that the created service belongs to.
  627. */
  628. ApplicationId?: ApplicationId;
  629. /**
  630. * The Amazon Resource Name (ARN) of the service.
  631. */
  632. Arn?: ResourceArn;
  633. /**
  634. * The Amazon Web Services account ID of the service creator.
  635. */
  636. CreatedByAccountId?: AccountId;
  637. /**
  638. * A timestamp that indicates when the service is created.
  639. */
  640. CreatedTime?: Timestamp;
  641. /**
  642. * The description of the created service.
  643. */
  644. Description?: Description;
  645. /**
  646. * The endpoint type of the service.
  647. */
  648. EndpointType?: ServiceEndpointType;
  649. /**
  650. * The unique identifier of the environment.
  651. */
  652. EnvironmentId?: EnvironmentId;
  653. /**
  654. * The configuration for the Lambda endpoint type.
  655. */
  656. LambdaEndpoint?: LambdaEndpointInput;
  657. /**
  658. * A timestamp that indicates when the service was last updated.
  659. */
  660. LastUpdatedTime?: Timestamp;
  661. /**
  662. * The name of the service.
  663. */
  664. Name?: ServiceName;
  665. /**
  666. * The Amazon Web Services account ID of the service owner.
  667. */
  668. OwnerAccountId?: AccountId;
  669. /**
  670. * The unique identifier of the service.
  671. */
  672. ServiceId?: ServiceId;
  673. /**
  674. * The current state of the service.
  675. */
  676. State?: ServiceState;
  677. /**
  678. * 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..
  679. */
  680. Tags?: TagMap;
  681. /**
  682. * The configuration for the URL endpoint type.
  683. */
  684. UrlEndpoint?: UrlEndpointInput;
  685. /**
  686. * The ID of the VPC.
  687. */
  688. VpcId?: VpcId;
  689. }
  690. export interface DefaultRouteInput {
  691. /**
  692. * If set to ACTIVE, traffic is forwarded to this route’s service after the route is created.
  693. */
  694. ActivationState?: RouteActivationState;
  695. }
  696. export interface DeleteApplicationRequest {
  697. /**
  698. * The ID of the application.
  699. */
  700. ApplicationIdentifier: ApplicationId;
  701. /**
  702. * The ID of the environment.
  703. */
  704. EnvironmentIdentifier: EnvironmentId;
  705. }
  706. export interface DeleteApplicationResponse {
  707. /**
  708. * The ID of the application.
  709. */
  710. ApplicationId?: ApplicationId;
  711. /**
  712. * The Amazon Resource Name (ARN) of the application.
  713. */
  714. Arn?: ResourceArn;
  715. /**
  716. * The unique identifier of the application’s environment.
  717. */
  718. EnvironmentId?: EnvironmentId;
  719. /**
  720. * A timestamp that indicates when the environment was last updated.
  721. */
  722. LastUpdatedTime?: Timestamp;
  723. /**
  724. * The name of the application.
  725. */
  726. Name?: ApplicationName;
  727. /**
  728. * The current state of the application.
  729. */
  730. State?: ApplicationState;
  731. }
  732. export interface DeleteEnvironmentRequest {
  733. /**
  734. * The ID of the environment.
  735. */
  736. EnvironmentIdentifier: EnvironmentId;
  737. }
  738. export interface DeleteEnvironmentResponse {
  739. /**
  740. * The Amazon Resource Name (ARN) of the environment.
  741. */
  742. Arn?: ResourceArn;
  743. /**
  744. * The unique identifier of the environment.
  745. */
  746. EnvironmentId?: EnvironmentId;
  747. /**
  748. * A timestamp that indicates when the environment was last updated.
  749. */
  750. LastUpdatedTime?: Timestamp;
  751. /**
  752. * The name of the environment.
  753. */
  754. Name?: EnvironmentName;
  755. /**
  756. * The current state of the environment.
  757. */
  758. State?: EnvironmentState;
  759. }
  760. export interface DeleteResourcePolicyRequest {
  761. /**
  762. * Amazon Resource Name (ARN) of the resource associated with the policy.
  763. */
  764. Identifier: ResourcePolicyIdentifier;
  765. }
  766. export interface DeleteResourcePolicyResponse {
  767. }
  768. export interface DeleteRouteRequest {
  769. /**
  770. * The ID of the application to delete the route from.
  771. */
  772. ApplicationIdentifier: ApplicationId;
  773. /**
  774. * The ID of the environment to delete the route from.
  775. */
  776. EnvironmentIdentifier: EnvironmentId;
  777. /**
  778. * The ID of the route to delete.
  779. */
  780. RouteIdentifier: RouteId;
  781. }
  782. export interface DeleteRouteResponse {
  783. /**
  784. * The ID of the application that the route belongs to.
  785. */
  786. ApplicationId?: ApplicationId;
  787. /**
  788. * The Amazon Resource Name (ARN) of the route.
  789. */
  790. Arn?: ResourceArn;
  791. /**
  792. * A timestamp that indicates when the route was last updated.
  793. */
  794. LastUpdatedTime?: Timestamp;
  795. /**
  796. * The ID of the route to delete.
  797. */
  798. RouteId?: RouteId;
  799. /**
  800. * The ID of the service that the route belongs to.
  801. */
  802. ServiceId?: ServiceId;
  803. /**
  804. * The current state of the route.
  805. */
  806. State?: RouteState;
  807. }
  808. export interface DeleteServiceRequest {
  809. /**
  810. * 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.
  811. */
  812. ApplicationIdentifier: ApplicationId;
  813. /**
  814. * The ID of the environment that the service is in.
  815. */
  816. EnvironmentIdentifier: EnvironmentId;
  817. /**
  818. * The ID of the service to delete.
  819. */
  820. ServiceIdentifier: ServiceId;
  821. }
  822. export interface DeleteServiceResponse {
  823. /**
  824. * The ID of the application that the service is in.
  825. */
  826. ApplicationId?: ApplicationId;
  827. /**
  828. * The Amazon Resource Name (ARN) of the service.
  829. */
  830. Arn?: ResourceArn;
  831. /**
  832. * The unique identifier of the environment.
  833. */
  834. EnvironmentId?: EnvironmentId;
  835. /**
  836. * A timestamp that indicates when the service was last updated.
  837. */
  838. LastUpdatedTime?: Timestamp;
  839. /**
  840. * The name of the service.
  841. */
  842. Name?: ServiceName;
  843. /**
  844. * The unique identifier of the service.
  845. */
  846. ServiceId?: ServiceId;
  847. /**
  848. * The current state of the service.
  849. */
  850. State?: ServiceState;
  851. }
  852. export type Description = string;
  853. export type Ec2TagValue = string;
  854. export type EnvironmentId = string;
  855. export type EnvironmentName = string;
  856. export type EnvironmentState = "CREATING"|"ACTIVE"|"DELETING"|"FAILED"|string;
  857. export type EnvironmentSummaries = EnvironmentSummary[];
  858. export interface EnvironmentSummary {
  859. /**
  860. * The Amazon Resource Name (ARN) of the environment.
  861. */
  862. Arn?: ResourceArn;
  863. /**
  864. * A timestamp that indicates when the environment is created.
  865. */
  866. CreatedTime?: Timestamp;
  867. /**
  868. * A description of the environment.
  869. */
  870. Description?: Description;
  871. /**
  872. * The unique identifier of the environment.
  873. */
  874. EnvironmentId?: EnvironmentId;
  875. /**
  876. * Any error associated with the environment resource.
  877. */
  878. Error?: ErrorResponse;
  879. /**
  880. * A timestamp that indicates when the environment was last updated.
  881. */
  882. LastUpdatedTime?: Timestamp;
  883. /**
  884. * The name of the environment.
  885. */
  886. Name?: EnvironmentName;
  887. /**
  888. * The network fabric type of the environment.
  889. */
  890. NetworkFabricType?: NetworkFabricType;
  891. /**
  892. * The Amazon Web Services account ID of the environment owner.
  893. */
  894. OwnerAccountId?: AccountId;
  895. /**
  896. * The current state of the environment.
  897. */
  898. State?: EnvironmentState;
  899. /**
  900. * The tags assigned to the environment.
  901. */
  902. Tags?: TagMap;
  903. /**
  904. * The ID of the Transit Gateway set up by the environment.
  905. */
  906. TransitGatewayId?: TransitGatewayId;
  907. }
  908. export interface EnvironmentVpc {
  909. /**
  910. * The Amazon Web Services account ID of the virtual private cloud (VPC) owner.
  911. */
  912. AccountId?: AccountId;
  913. /**
  914. * The list of Amazon Virtual Private Cloud (Amazon VPC) CIDR blocks.
  915. */
  916. CidrBlocks?: CidrBlocks;
  917. /**
  918. * A timestamp that indicates when the VPC is first added to the environment.
  919. */
  920. CreatedTime?: Timestamp;
  921. /**
  922. * The unique identifier of the environment.
  923. */
  924. EnvironmentId?: EnvironmentId;
  925. /**
  926. * A timestamp that indicates when the VPC was last updated by the environment.
  927. */
  928. LastUpdatedTime?: Timestamp;
  929. /**
  930. * The ID of the VPC.
  931. */
  932. VpcId?: VpcId;
  933. /**
  934. * The name of the VPC at the time it is added to the environment.
  935. */
  936. VpcName?: Ec2TagValue;
  937. }
  938. export type EnvironmentVpcs = EnvironmentVpc[];
  939. export type ErrorCode = "INVALID_RESOURCE_STATE"|"RESOURCE_LIMIT_EXCEEDED"|"RESOURCE_CREATION_FAILURE"|"RESOURCE_UPDATE_FAILURE"|"SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE"|"RESOURCE_DELETION_FAILURE"|"RESOURCE_RETRIEVAL_FAILURE"|"RESOURCE_IN_USE"|"RESOURCE_NOT_FOUND"|"STATE_TRANSITION_FAILURE"|"REQUEST_LIMIT_EXCEEDED"|"NOT_AUTHORIZED"|string;
  940. export type ErrorMessage = string;
  941. export type ErrorResourceType = "ENVIRONMENT"|"APPLICATION"|"ROUTE"|"SERVICE"|"TRANSIT_GATEWAY"|"TRANSIT_GATEWAY_ATTACHMENT"|"API_GATEWAY"|"NLB"|"TARGET_GROUP"|"LOAD_BALANCER_LISTENER"|"VPC_LINK"|"LAMBDA"|"VPC"|"SUBNET"|"ROUTE_TABLE"|"SECURITY_GROUP"|"VPC_ENDPOINT_SERVICE_CONFIGURATION"|"RESOURCE_SHARE"|"IAM_ROLE"|string;
  942. export interface ErrorResponse {
  943. /**
  944. * The Amazon Web Services account ID of the resource owner.
  945. */
  946. AccountId?: AccountId;
  947. /**
  948. * Additional details about the error.
  949. */
  950. AdditionalDetails?: AdditionalDetails;
  951. /**
  952. * The error code associated with the error.
  953. */
  954. Code?: ErrorCode;
  955. /**
  956. * The message associated with the error.
  957. */
  958. Message?: ErrorMessage;
  959. /**
  960. * The ID of the resource.
  961. */
  962. ResourceIdentifier?: ResourceIdentifier;
  963. /**
  964. * The type of resource.
  965. */
  966. ResourceType?: ErrorResourceType;
  967. }
  968. export interface GetApplicationRequest {
  969. /**
  970. * The ID of the application.
  971. */
  972. ApplicationIdentifier: ApplicationId;
  973. /**
  974. * The ID of the environment.
  975. */
  976. EnvironmentIdentifier: EnvironmentId;
  977. }
  978. export interface GetApplicationResponse {
  979. /**
  980. * The endpoint URL of the API Gateway proxy.
  981. */
  982. ApiGatewayProxy?: ApiGatewayProxyConfig;
  983. /**
  984. * The unique identifier of the application.
  985. */
  986. ApplicationId?: ApplicationId;
  987. /**
  988. * The Amazon Resource Name (ARN) of the application.
  989. */
  990. Arn?: ResourceArn;
  991. /**
  992. * The Amazon Web Services account ID of the application creator.
  993. */
  994. CreatedByAccountId?: AccountId;
  995. /**
  996. * A timestamp that indicates when the application is created.
  997. */
  998. CreatedTime?: Timestamp;
  999. /**
  1000. * The unique identifier of the environment.
  1001. */
  1002. EnvironmentId?: EnvironmentId;
  1003. /**
  1004. * Any error associated with the application resource.
  1005. */
  1006. Error?: ErrorResponse;
  1007. /**
  1008. * A timestamp that indicates when the application was last updated.
  1009. */
  1010. LastUpdatedTime?: Timestamp;
  1011. /**
  1012. * The name of the application.
  1013. */
  1014. Name?: ApplicationName;
  1015. /**
  1016. * The Amazon Web Services account ID of the application owner (which is always the same as the environment owner account ID).
  1017. */
  1018. OwnerAccountId?: AccountId;
  1019. /**
  1020. * The proxy type of the proxy created within the application.
  1021. */
  1022. ProxyType?: ProxyType;
  1023. /**
  1024. * The current state of the application.
  1025. */
  1026. State?: ApplicationState;
  1027. /**
  1028. * The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  1029. */
  1030. Tags?: TagMap;
  1031. /**
  1032. * The ID of the virtual private cloud (VPC).
  1033. */
  1034. VpcId?: VpcId;
  1035. }
  1036. export interface GetEnvironmentRequest {
  1037. /**
  1038. * The ID of the environment.
  1039. */
  1040. EnvironmentIdentifier: EnvironmentId;
  1041. }
  1042. export interface GetEnvironmentResponse {
  1043. /**
  1044. * The Amazon Resource Name (ARN) of the environment.
  1045. */
  1046. Arn?: ResourceArn;
  1047. /**
  1048. * A timestamp that indicates when the environment is created.
  1049. */
  1050. CreatedTime?: Timestamp;
  1051. /**
  1052. * The description of the environment.
  1053. */
  1054. Description?: Description;
  1055. /**
  1056. * The unique identifier of the environment.
  1057. */
  1058. EnvironmentId?: EnvironmentId;
  1059. /**
  1060. * Any error associated with the environment resource.
  1061. */
  1062. Error?: ErrorResponse;
  1063. /**
  1064. * A timestamp that indicates when the environment was last updated.
  1065. */
  1066. LastUpdatedTime?: Timestamp;
  1067. /**
  1068. * The name of the environment.
  1069. */
  1070. Name?: EnvironmentName;
  1071. /**
  1072. * The network fabric type of the environment.
  1073. */
  1074. NetworkFabricType?: NetworkFabricType;
  1075. /**
  1076. * The Amazon Web Services account ID of the environment owner.
  1077. */
  1078. OwnerAccountId?: AccountId;
  1079. /**
  1080. * The current state of the environment.
  1081. */
  1082. State?: EnvironmentState;
  1083. /**
  1084. * The tags to assign to the environment. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  1085. */
  1086. Tags?: TagMap;
  1087. /**
  1088. * The ID of the Transit Gateway set up by the environment, if applicable.
  1089. */
  1090. TransitGatewayId?: TransitGatewayId;
  1091. }
  1092. export interface GetResourcePolicyRequest {
  1093. /**
  1094. * The Amazon Resource Name (ARN) of the resource associated with the policy.
  1095. */
  1096. Identifier: ResourcePolicyIdentifier;
  1097. }
  1098. export interface GetResourcePolicyResponse {
  1099. /**
  1100. * A JSON-formatted string for an Amazon Web Services resource-based policy.
  1101. */
  1102. Policy?: PolicyString;
  1103. }
  1104. export interface GetRouteRequest {
  1105. /**
  1106. * The ID of the application.
  1107. */
  1108. ApplicationIdentifier: ApplicationId;
  1109. /**
  1110. * The ID of the environment.
  1111. */
  1112. EnvironmentIdentifier: EnvironmentId;
  1113. /**
  1114. * The ID of the route.
  1115. */
  1116. RouteIdentifier: RouteId;
  1117. }
  1118. export interface GetRouteResponse {
  1119. /**
  1120. * If set to true, this option appends the source path to the service URL endpoint.
  1121. */
  1122. AppendSourcePath?: Boolean;
  1123. /**
  1124. * The ID of the application that the route belongs to.
  1125. */
  1126. ApplicationId?: ApplicationId;
  1127. /**
  1128. * The Amazon Resource Name (ARN) of the route.
  1129. */
  1130. Arn?: ResourceArn;
  1131. /**
  1132. * The Amazon Web Services account ID of the route creator.
  1133. */
  1134. CreatedByAccountId?: AccountId;
  1135. /**
  1136. * The timestamp of when the route is created.
  1137. */
  1138. CreatedTime?: Timestamp;
  1139. /**
  1140. * Unique identifier of the environment.
  1141. */
  1142. EnvironmentId?: EnvironmentId;
  1143. /**
  1144. * Any error associated with the route resource.
  1145. */
  1146. Error?: ErrorResponse;
  1147. /**
  1148. * Indicates whether to match all subpaths of the given source path. If this value is false, requests must match the source path exactly before they are forwarded to this route's service.
  1149. */
  1150. IncludeChildPaths?: Boolean;
  1151. /**
  1152. * A timestamp that indicates when the route was last updated.
  1153. */
  1154. LastUpdatedTime?: Timestamp;
  1155. /**
  1156. * A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
  1157. */
  1158. Methods?: HttpMethods;
  1159. /**
  1160. * The Amazon Web Services account ID of the route owner.
  1161. */
  1162. OwnerAccountId?: AccountId;
  1163. /**
  1164. * A mapping of Amazon API Gateway path resources to resource IDs.
  1165. */
  1166. PathResourceToId?: PathResourceToId;
  1167. /**
  1168. * The unique identifier of the route. DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH: A route that is based on a URI path.
  1169. */
  1170. RouteId?: RouteId;
  1171. /**
  1172. * The type of route.
  1173. */
  1174. RouteType?: RouteType;
  1175. /**
  1176. * The unique identifier of the service.
  1177. */
  1178. ServiceId?: ServiceId;
  1179. /**
  1180. * This is the path that Refactor Spaces uses to match traffic. Paths must start with / and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.
  1181. */
  1182. SourcePath?: UriPath;
  1183. /**
  1184. * The current state of the route.
  1185. */
  1186. State?: RouteState;
  1187. /**
  1188. * The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.
  1189. */
  1190. Tags?: TagMap;
  1191. }
  1192. export interface GetServiceRequest {
  1193. /**
  1194. * The ID of the application.
  1195. */
  1196. ApplicationIdentifier: ApplicationId;
  1197. /**
  1198. * The ID of the environment.
  1199. */
  1200. EnvironmentIdentifier: EnvironmentId;
  1201. /**
  1202. * The ID of the service.
  1203. */
  1204. ServiceIdentifier: ServiceId;
  1205. }
  1206. export interface GetServiceResponse {
  1207. /**
  1208. * The ID of the application.
  1209. */
  1210. ApplicationId?: ApplicationId;
  1211. /**
  1212. * The Amazon Resource Name (ARN) of the service.
  1213. */
  1214. Arn?: ResourceArn;
  1215. /**
  1216. * The Amazon Web Services account ID of the service creator.
  1217. */
  1218. CreatedByAccountId?: AccountId;
  1219. /**
  1220. * The timestamp of when the service is created.
  1221. */
  1222. CreatedTime?: Timestamp;
  1223. /**
  1224. * The description of the service.
  1225. */
  1226. Description?: Description;
  1227. /**
  1228. * The endpoint type of the service.
  1229. */
  1230. EndpointType?: ServiceEndpointType;
  1231. /**
  1232. * The unique identifier of the environment.
  1233. */
  1234. EnvironmentId?: EnvironmentId;
  1235. /**
  1236. * Any error associated with the service resource.
  1237. */
  1238. Error?: ErrorResponse;
  1239. /**
  1240. * The configuration for the Lambda endpoint type. The Arn is the Amazon Resource Name (ARN) of the Lambda function associated with this service.
  1241. */
  1242. LambdaEndpoint?: LambdaEndpointConfig;
  1243. /**
  1244. * A timestamp that indicates when the service was last updated.
  1245. */
  1246. LastUpdatedTime?: Timestamp;
  1247. /**
  1248. * The name of the service.
  1249. */
  1250. Name?: ServiceName;
  1251. /**
  1252. * The Amazon Web Services account ID of the service owner.
  1253. */
  1254. OwnerAccountId?: AccountId;
  1255. /**
  1256. * The unique identifier of the service.
  1257. */
  1258. ServiceId?: ServiceId;
  1259. /**
  1260. * The current state of the service.
  1261. */
  1262. State?: ServiceState;
  1263. /**
  1264. * 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.
  1265. */
  1266. Tags?: TagMap;
  1267. /**
  1268. * The configuration for the URL endpoint type. The Url isthe URL of the endpoint type. The HealthUrl is the health check URL of the endpoint type.
  1269. */
  1270. UrlEndpoint?: UrlEndpointConfig;
  1271. /**
  1272. * The ID of the virtual private cloud (VPC).
  1273. */
  1274. VpcId?: VpcId;
  1275. }
  1276. export type HttpMethod = "DELETE"|"GET"|"HEAD"|"OPTIONS"|"PATCH"|"POST"|"PUT"|string;
  1277. export type HttpMethods = HttpMethod[];
  1278. export type LambdaArn = string;
  1279. export interface LambdaEndpointConfig {
  1280. /**
  1281. * The Amazon Resource Name (ARN) of the Lambda endpoint.
  1282. */
  1283. Arn?: LambdaArn;
  1284. }
  1285. export interface LambdaEndpointInput {
  1286. /**
  1287. * The Amazon Resource Name (ARN) of the Lambda function or alias.
  1288. */
  1289. Arn: LambdaArn;
  1290. }
  1291. export interface LambdaEndpointSummary {
  1292. /**
  1293. * The Amazon Resource Name (ARN) of the Lambda endpoint.
  1294. */
  1295. Arn?: LambdaArn;
  1296. }
  1297. export interface ListApplicationsRequest {
  1298. /**
  1299. * The ID of the environment.
  1300. */
  1301. EnvironmentIdentifier: EnvironmentId;
  1302. /**
  1303. * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
  1304. */
  1305. MaxResults?: MaxResults;
  1306. /**
  1307. * The token for the next page of results.
  1308. */
  1309. NextToken?: NextToken;
  1310. }
  1311. export interface ListApplicationsResponse {
  1312. /**
  1313. * The list of ApplicationSummary objects.
  1314. */
  1315. ApplicationSummaryList?: ApplicationSummaries;
  1316. /**
  1317. * The token for the next page of results.
  1318. */
  1319. NextToken?: NextToken;
  1320. }
  1321. export interface ListEnvironmentVpcsRequest {
  1322. /**
  1323. * The ID of the environment.
  1324. */
  1325. EnvironmentIdentifier: EnvironmentId;
  1326. /**
  1327. * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
  1328. */
  1329. MaxResults?: MaxResults;
  1330. /**
  1331. * The token for the next page of results.
  1332. */
  1333. NextToken?: NextToken;
  1334. }
  1335. export interface ListEnvironmentVpcsResponse {
  1336. /**
  1337. * The list of EnvironmentVpc objects.
  1338. */
  1339. EnvironmentVpcList?: EnvironmentVpcs;
  1340. /**
  1341. * The token for the next page of results.
  1342. */
  1343. NextToken?: NextToken;
  1344. }
  1345. export interface ListEnvironmentsRequest {
  1346. /**
  1347. * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
  1348. */
  1349. MaxResults?: MaxResults;
  1350. /**
  1351. * The token for the next page of results.
  1352. */
  1353. NextToken?: NextToken;
  1354. }
  1355. export interface ListEnvironmentsResponse {
  1356. /**
  1357. * The list of EnvironmentSummary objects.
  1358. */
  1359. EnvironmentSummaryList?: EnvironmentSummaries;
  1360. /**
  1361. * The token for the next page of results.
  1362. */
  1363. NextToken?: NextToken;
  1364. }
  1365. export interface ListRoutesRequest {
  1366. /**
  1367. * The ID of the application.
  1368. */
  1369. ApplicationIdentifier: ApplicationId;
  1370. /**
  1371. * The ID of the environment.
  1372. */
  1373. EnvironmentIdentifier: EnvironmentId;
  1374. /**
  1375. * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
  1376. */
  1377. MaxResults?: MaxResults;
  1378. /**
  1379. * The token for the next page of results.
  1380. */
  1381. NextToken?: NextToken;
  1382. }
  1383. export interface ListRoutesResponse {
  1384. /**
  1385. * The token for the next page of results.
  1386. */
  1387. NextToken?: NextToken;
  1388. /**
  1389. * The list of RouteSummary objects.
  1390. */
  1391. RouteSummaryList?: RouteSummaries;
  1392. }
  1393. export interface ListServicesRequest {
  1394. /**
  1395. * The ID of the application.
  1396. */
  1397. ApplicationIdentifier: ApplicationId;
  1398. /**
  1399. * The ID of the environment.
  1400. */
  1401. EnvironmentIdentifier: EnvironmentId;
  1402. /**
  1403. * The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.
  1404. */
  1405. MaxResults?: MaxResults;
  1406. /**
  1407. * The token for the next page of results.
  1408. */
  1409. NextToken?: NextToken;
  1410. }
  1411. export interface ListServicesResponse {
  1412. /**
  1413. * The token for the next page of results.
  1414. */
  1415. NextToken?: NextToken;
  1416. /**
  1417. * The list of ServiceSummary objects.
  1418. */
  1419. ServiceSummaryList?: ServiceSummaries;
  1420. }
  1421. export interface ListTagsForResourceRequest {
  1422. /**
  1423. * The Amazon Resource Name (ARN) of the resource.
  1424. */
  1425. ResourceArn: String;
  1426. }
  1427. export interface ListTagsForResourceResponse {
  1428. /**
  1429. * The list of tags assigned to the resource.
  1430. */
  1431. Tags?: TagMap;
  1432. }
  1433. export type MaxResults = number;
  1434. export type NetworkFabricType = "TRANSIT_GATEWAY"|"NONE"|string;
  1435. export type NextToken = string;
  1436. export type NlbArn = string;
  1437. export type NlbName = string;
  1438. export type PathResourceToId = {[key: string]: PathResourceToIdValue};
  1439. export type PathResourceToIdKey = string;
  1440. export type PathResourceToIdValue = string;
  1441. export type PolicyString = string;
  1442. export type ProxyType = "API_GATEWAY"|string;
  1443. export interface PutResourcePolicyRequest {
  1444. /**
  1445. * A JSON-formatted string for an Amazon Web Services resource-based policy.
  1446. */
  1447. Policy: PolicyString;
  1448. /**
  1449. * The Amazon Resource Name (ARN) of the resource to which the policy is being attached.
  1450. */
  1451. ResourceArn: ResourceArn;
  1452. }
  1453. export interface PutResourcePolicyResponse {
  1454. }
  1455. export type ResourceArn = string;
  1456. export type ResourceIdentifier = string;
  1457. export type ResourcePolicyIdentifier = string;
  1458. export type RouteActivationState = "ACTIVE"|"INACTIVE"|string;
  1459. export type RouteId = string;
  1460. export type RouteState = "CREATING"|"ACTIVE"|"DELETING"|"FAILED"|"UPDATING"|"INACTIVE"|string;
  1461. export type RouteSummaries = RouteSummary[];
  1462. export interface RouteSummary {
  1463. /**
  1464. * If set to true, this option appends the source path to the service URL endpoint.
  1465. */
  1466. AppendSourcePath?: Boolean;
  1467. /**
  1468. * The unique identifier of the application.
  1469. */
  1470. ApplicationId?: ApplicationId;
  1471. /**
  1472. * The Amazon Resource Name (ARN) of the route.
  1473. */
  1474. Arn?: ResourceArn;
  1475. /**
  1476. * The Amazon Web Services account ID of the route creator.
  1477. */
  1478. CreatedByAccountId?: AccountId;
  1479. /**
  1480. * A timestamp that indicates when the route is created.
  1481. */
  1482. CreatedTime?: Timestamp;
  1483. /**
  1484. * The unique identifier of the environment.
  1485. */
  1486. EnvironmentId?: EnvironmentId;
  1487. /**
  1488. * Any error associated with the route resource.
  1489. */
  1490. Error?: ErrorResponse;
  1491. /**
  1492. * Indicates whether to match all subpaths of the given source path. If this value is false, requests must match the source path exactly before they are forwarded to this route's service.
  1493. */
  1494. IncludeChildPaths?: Boolean;
  1495. /**
  1496. * A timestamp that indicates when the route was last updated.
  1497. */
  1498. LastUpdatedTime?: Timestamp;
  1499. /**
  1500. * A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
  1501. */
  1502. Methods?: HttpMethods;
  1503. /**
  1504. * The Amazon Web Services account ID of the route owner.
  1505. */
  1506. OwnerAccountId?: AccountId;
  1507. /**
  1508. * A mapping of Amazon API Gateway path resources to resource IDs.
  1509. */
  1510. PathResourceToId?: PathResourceToId;
  1511. /**
  1512. * The unique identifier of the route.
  1513. */
  1514. RouteId?: RouteId;
  1515. /**
  1516. * The route type of the route.
  1517. */
  1518. RouteType?: RouteType;
  1519. /**
  1520. * The unique identifier of the service.
  1521. */
  1522. ServiceId?: ServiceId;
  1523. /**
  1524. * This is the path that Refactor Spaces uses to match traffic. Paths must start with / and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.
  1525. */
  1526. SourcePath?: UriPath;
  1527. /**
  1528. * The current state of the route.
  1529. */
  1530. State?: RouteState;
  1531. /**
  1532. * The tags assigned to the route.
  1533. */
  1534. Tags?: TagMap;
  1535. }
  1536. export type RouteType = "DEFAULT"|"URI_PATH"|string;
  1537. export type ServiceEndpointType = "LAMBDA"|"URL"|string;
  1538. export type ServiceId = string;
  1539. export type ServiceName = string;
  1540. export type ServiceState = "CREATING"|"ACTIVE"|"DELETING"|"FAILED"|string;
  1541. export type ServiceSummaries = ServiceSummary[];
  1542. export interface ServiceSummary {
  1543. /**
  1544. * The unique identifier of the application.
  1545. */
  1546. ApplicationId?: ApplicationId;
  1547. /**
  1548. * The Amazon Resource Name (ARN) of the service.
  1549. */
  1550. Arn?: ResourceArn;
  1551. /**
  1552. * The Amazon Web Services account ID of the service creator.
  1553. */
  1554. CreatedByAccountId?: AccountId;
  1555. /**
  1556. * A timestamp that indicates when the service is created.
  1557. */
  1558. CreatedTime?: Timestamp;
  1559. /**
  1560. * A description of the service.
  1561. */
  1562. Description?: Description;
  1563. /**
  1564. * The endpoint type of the service.
  1565. */
  1566. EndpointType?: ServiceEndpointType;
  1567. /**
  1568. * The unique identifier of the environment.
  1569. */
  1570. EnvironmentId?: EnvironmentId;
  1571. /**
  1572. * Any error associated with the service resource.
  1573. */
  1574. Error?: ErrorResponse;
  1575. /**
  1576. * A summary of the configuration for the Lambda endpoint type.
  1577. */
  1578. LambdaEndpoint?: LambdaEndpointSummary;
  1579. /**
  1580. * A timestamp that indicates when the service was last updated.
  1581. */
  1582. LastUpdatedTime?: Timestamp;
  1583. /**
  1584. * The name of the service.
  1585. */
  1586. Name?: ServiceName;
  1587. /**
  1588. * The Amazon Web Services account ID of the service owner.
  1589. */
  1590. OwnerAccountId?: AccountId;
  1591. /**
  1592. * The unique identifier of the service.
  1593. */
  1594. ServiceId?: ServiceId;
  1595. /**
  1596. * The current state of the service.
  1597. */
  1598. State?: ServiceState;
  1599. /**
  1600. * The tags assigned to the service.
  1601. */
  1602. Tags?: TagMap;
  1603. /**
  1604. * The summary of the configuration for the URL endpoint type.
  1605. */
  1606. UrlEndpoint?: UrlEndpointSummary;
  1607. /**
  1608. * The ID of the virtual private cloud (VPC).
  1609. */
  1610. VpcId?: VpcId;
  1611. }
  1612. export type StageName = string;
  1613. export type String = string;
  1614. export type TagKeys = String[];
  1615. export type TagMap = {[key: string]: TagMapValueString};
  1616. export type TagMapKeyString = string;
  1617. export type TagMapValueString = string;
  1618. export interface TagResourceRequest {
  1619. /**
  1620. * The Amazon Resource Name (ARN) of the resource.
  1621. */
  1622. ResourceArn: String;
  1623. /**
  1624. * The new or modified tags for the resource.
  1625. */
  1626. Tags: TagMap;
  1627. }
  1628. export interface TagResourceResponse {
  1629. }
  1630. export type Timestamp = Date;
  1631. export type TransitGatewayId = string;
  1632. export interface UntagResourceRequest {
  1633. /**
  1634. * The Amazon Resource Name (ARN) of the resource.
  1635. */
  1636. ResourceArn: String;
  1637. /**
  1638. * The list of keys of the tags to be removed from the resource.
  1639. */
  1640. TagKeys: TagKeys;
  1641. }
  1642. export interface UntagResourceResponse {
  1643. }
  1644. export interface UpdateRouteRequest {
  1645. /**
  1646. * If set to ACTIVE, traffic is forwarded to this route’s service after the route is updated.
  1647. */
  1648. ActivationState: RouteActivationState;
  1649. /**
  1650. * The ID of the application within which the route is being updated.
  1651. */
  1652. ApplicationIdentifier: ApplicationId;
  1653. /**
  1654. * The ID of the environment in which the route is being updated.
  1655. */
  1656. EnvironmentIdentifier: EnvironmentId;
  1657. /**
  1658. * The unique identifier of the route to update.
  1659. */
  1660. RouteIdentifier: RouteId;
  1661. }
  1662. export interface UpdateRouteResponse {
  1663. /**
  1664. * The ID of the application in which the route is being updated.
  1665. */
  1666. ApplicationId?: ApplicationId;
  1667. /**
  1668. * The Amazon Resource Name (ARN) of the route. The format for this ARN is arn:aws:refactor-spaces:region:account-id:resource-type/resource-id . For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
  1669. */
  1670. Arn?: ResourceArn;
  1671. /**
  1672. * A timestamp that indicates when the route was last updated.
  1673. */
  1674. LastUpdatedTime?: Timestamp;
  1675. /**
  1676. * The unique identifier of the route.
  1677. */
  1678. RouteId?: RouteId;
  1679. /**
  1680. * The ID of service in which the route was created. Traffic that matches this route is forwarded to this service.
  1681. */
  1682. ServiceId?: ServiceId;
  1683. /**
  1684. * The current state of the route.
  1685. */
  1686. State?: RouteState;
  1687. }
  1688. export type Uri = string;
  1689. export type UriPath = string;
  1690. export interface UriPathRouteInput {
  1691. /**
  1692. * If set to ACTIVE, traffic is forwarded to this route’s service after the route is created.
  1693. */
  1694. ActivationState: RouteActivationState;
  1695. /**
  1696. * If set to true, this option appends the source path to the service URL endpoint.
  1697. */
  1698. AppendSourcePath?: Boolean;
  1699. /**
  1700. * Indicates whether to match all subpaths of the given source path. If this value is false, requests must match the source path exactly before they are forwarded to this route's service.
  1701. */
  1702. IncludeChildPaths?: Boolean;
  1703. /**
  1704. * A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.
  1705. */
  1706. Methods?: HttpMethods;
  1707. /**
  1708. * This is the path that Refactor Spaces uses to match traffic. Paths must start with / and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'.
  1709. */
  1710. SourcePath: UriPath;
  1711. }
  1712. export interface UrlEndpointConfig {
  1713. /**
  1714. * The health check URL of the URL endpoint type.
  1715. */
  1716. HealthUrl?: Uri;
  1717. /**
  1718. * The HTTP URL endpoint.
  1719. */
  1720. Url?: Uri;
  1721. }
  1722. export interface UrlEndpointInput {
  1723. /**
  1724. * 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.
  1725. */
  1726. HealthUrl?: Uri;
  1727. /**
  1728. * 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.
  1729. */
  1730. Url: Uri;
  1731. }
  1732. export interface UrlEndpointSummary {
  1733. /**
  1734. * 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.
  1735. */
  1736. HealthUrl?: Uri;
  1737. /**
  1738. * 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.
  1739. */
  1740. Url?: Uri;
  1741. }
  1742. export type VpcId = string;
  1743. export type VpcLinkId = string;
  1744. /**
  1745. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1746. */
  1747. export type apiVersion = "2021-10-26"|"latest"|string;
  1748. export interface ClientApiVersions {
  1749. /**
  1750. * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
  1751. */
  1752. apiVersion?: apiVersion;
  1753. }
  1754. export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
  1755. /**
  1756. * Contains interfaces for use with the MigrationHubRefactorSpaces client.
  1757. */
  1758. export import Types = MigrationHubRefactorSpaces;
  1759. }
  1760. export = MigrationHubRefactorSpaces;