amazonka-migration-hub-refactor-spaces-2.0: Amazon Migration Hub Refactor Spaces SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.MigrationHubReFactorSpaces.CreateService

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.

Synopsis

Creating a Request

data CreateService Source #

See: newCreateService smart constructor.

Constructors

CreateService' 

Fields

Instances

Instances details
ToJSON CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

ToHeaders CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

ToPath CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

ToQuery CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

AWSRequest CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

Associated Types

type AWSResponse CreateService #

Generic CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

Associated Types

type Rep CreateService :: Type -> Type #

Show CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

NFData CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

Methods

rnf :: CreateService -> () #

Eq CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

Hashable CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

type AWSResponse CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

type Rep CreateService Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

newCreateService Source #

Create a value of CreateService with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:clientToken:CreateService', createService_clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

CreateService, createService_description - The description of the service.

CreateService, createService_lambdaEndpoint - The configuration for the Lambda endpoint type.

CreateService, createService_tags - 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..

CreateService, createService_urlEndpoint - 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.

CreateService, createService_vpcId - The ID of the VPC.

$sel:applicationIdentifier:CreateService', createService_applicationIdentifier - The ID of the application which the service is created.

CreateService, createService_endpointType - The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.

$sel:environmentIdentifier:CreateService', createService_environmentIdentifier - The ID of the environment in which the service is created.

CreateService, createService_name - The name of the service.

Request Lenses

createService_clientToken :: Lens' CreateService (Maybe Text) Source #

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

createService_description :: Lens' CreateService (Maybe Text) Source #

The description of the service.

createService_lambdaEndpoint :: Lens' CreateService (Maybe LambdaEndpointInput) Source #

The configuration for the Lambda endpoint type.

createService_tags :: Lens' CreateService (Maybe (HashMap Text Text)) Source #

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..

createService_urlEndpoint :: Lens' CreateService (Maybe UrlEndpointInput) Source #

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.

createService_applicationIdentifier :: Lens' CreateService Text Source #

The ID of the application which the service is created.

createService_endpointType :: Lens' CreateService ServiceEndpointType Source #

The type of endpoint to use for the service. The type can be a URL in a VPC or an Lambda function.

createService_environmentIdentifier :: Lens' CreateService Text Source #

The ID of the environment in which the service is created.

createService_name :: Lens' CreateService Text Source #

The name of the service.

Destructuring the Response

data CreateServiceResponse Source #

See: newCreateServiceResponse smart constructor.

Constructors

CreateServiceResponse' 

Fields

Instances

Instances details
Generic CreateServiceResponse Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

Associated Types

type Rep CreateServiceResponse :: Type -> Type #

Show CreateServiceResponse Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

NFData CreateServiceResponse Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

Methods

rnf :: CreateServiceResponse -> () #

Eq CreateServiceResponse Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

type Rep CreateServiceResponse Source # 
Instance details

Defined in Amazonka.MigrationHubReFactorSpaces.CreateService

type Rep CreateServiceResponse = D1 ('MetaData "CreateServiceResponse" "Amazonka.MigrationHubReFactorSpaces.CreateService" "amazonka-migration-hub-refactor-spaces-2.0-IgAA0SWWxlS8R7imIzpgpS" 'False) (C1 ('MetaCons "CreateServiceResponse'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "createdByAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "createdTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "endpointType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ServiceEndpointType))) :*: (S1 ('MetaSel ('Just "environmentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "lambdaEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaEndpointInput))))) :*: (((S1 ('MetaSel ('Just "lastUpdatedTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "ownerAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "serviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ServiceState)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text))))) :*: (S1 ('MetaSel ('Just "urlEndpoint") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UrlEndpointInput)) :*: (S1 ('MetaSel ('Just "vpcId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))))

newCreateServiceResponse Source #

Create a value of CreateServiceResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

CreateServiceResponse, createServiceResponse_applicationId - The ID of the application that the created service belongs to.

CreateServiceResponse, createServiceResponse_arn - The Amazon Resource Name (ARN) of the service.

CreateServiceResponse, createServiceResponse_createdByAccountId - The Amazon Web Services account ID of the service creator.

CreateServiceResponse, createServiceResponse_createdTime - A timestamp that indicates when the service is created.

CreateService, createServiceResponse_description - The description of the created service.

CreateService, createServiceResponse_endpointType - The endpoint type of the service.

CreateServiceResponse, createServiceResponse_environmentId - The unique identifier of the environment.

CreateService, createServiceResponse_lambdaEndpoint - The configuration for the Lambda endpoint type.

CreateServiceResponse, createServiceResponse_lastUpdatedTime - A timestamp that indicates when the service was last updated.

CreateService, createServiceResponse_name - The name of the service.

CreateServiceResponse, createServiceResponse_ownerAccountId - The Amazon Web Services account ID of the service owner.

CreateServiceResponse, createServiceResponse_serviceId - The unique identifier of the service.

CreateServiceResponse, createServiceResponse_state - The current state of the service.

CreateService, createServiceResponse_tags - 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..

CreateService, createServiceResponse_urlEndpoint - The configuration for the URL endpoint type.

CreateService, createServiceResponse_vpcId - The ID of the VPC.

$sel:httpStatus:CreateServiceResponse', createServiceResponse_httpStatus - The response's http status code.

Response Lenses

createServiceResponse_applicationId :: Lens' CreateServiceResponse (Maybe Text) Source #

The ID of the application that the created service belongs to.

createServiceResponse_arn :: Lens' CreateServiceResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the service.

createServiceResponse_createdByAccountId :: Lens' CreateServiceResponse (Maybe Text) Source #

The Amazon Web Services account ID of the service creator.

createServiceResponse_createdTime :: Lens' CreateServiceResponse (Maybe UTCTime) Source #

A timestamp that indicates when the service is created.

createServiceResponse_description :: Lens' CreateServiceResponse (Maybe Text) Source #

The description of the created service.

createServiceResponse_environmentId :: Lens' CreateServiceResponse (Maybe Text) Source #

The unique identifier of the environment.

createServiceResponse_lastUpdatedTime :: Lens' CreateServiceResponse (Maybe UTCTime) Source #

A timestamp that indicates when the service was last updated.

createServiceResponse_ownerAccountId :: Lens' CreateServiceResponse (Maybe Text) Source #

The Amazon Web Services account ID of the service owner.

createServiceResponse_tags :: Lens' CreateServiceResponse (Maybe (HashMap Text Text)) Source #

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..