Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateServiceCommand

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.

example

Use a bare-bones client and the command you need to make an API call.

import { MigrationHubRefactorSpacesClient, CreateServiceCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
// const { MigrationHubRefactorSpacesClient, CreateServiceCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
const client = new MigrationHubRefactorSpacesClient(config);
const command = new CreateServiceCommand(input);
const response = await client.send(command);
see

CreateServiceCommandInput for command's input shape.

see

CreateServiceCommandOutput for command's response shape.

see

config for MigrationHubRefactorSpacesClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateServiceCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateServiceCommandInput, CreateServiceCommandOutput>