Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data CreateService = CreateService' {}
- newCreateService :: Text -> ServiceEndpointType -> Text -> Text -> CreateService
- createService_clientToken :: Lens' CreateService (Maybe Text)
- createService_description :: Lens' CreateService (Maybe Text)
- createService_lambdaEndpoint :: Lens' CreateService (Maybe LambdaEndpointInput)
- createService_tags :: Lens' CreateService (Maybe (HashMap Text Text))
- createService_urlEndpoint :: Lens' CreateService (Maybe UrlEndpointInput)
- createService_vpcId :: Lens' CreateService (Maybe Text)
- createService_applicationIdentifier :: Lens' CreateService Text
- createService_endpointType :: Lens' CreateService ServiceEndpointType
- createService_environmentIdentifier :: Lens' CreateService Text
- createService_name :: Lens' CreateService Text
- data CreateServiceResponse = CreateServiceResponse' {
- applicationId :: Maybe Text
- arn :: Maybe Text
- createdByAccountId :: Maybe Text
- createdTime :: Maybe POSIX
- description :: Maybe Text
- endpointType :: Maybe ServiceEndpointType
- environmentId :: Maybe Text
- lambdaEndpoint :: Maybe LambdaEndpointInput
- lastUpdatedTime :: Maybe POSIX
- name :: Maybe Text
- ownerAccountId :: Maybe Text
- serviceId :: Maybe Text
- state :: Maybe ServiceState
- tags :: Maybe (Sensitive (HashMap Text Text))
- urlEndpoint :: Maybe UrlEndpointInput
- vpcId :: Maybe Text
- httpStatus :: Int
- newCreateServiceResponse :: Int -> CreateServiceResponse
- createServiceResponse_applicationId :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_arn :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_createdByAccountId :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_createdTime :: Lens' CreateServiceResponse (Maybe UTCTime)
- createServiceResponse_description :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_endpointType :: Lens' CreateServiceResponse (Maybe ServiceEndpointType)
- createServiceResponse_environmentId :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_lambdaEndpoint :: Lens' CreateServiceResponse (Maybe LambdaEndpointInput)
- createServiceResponse_lastUpdatedTime :: Lens' CreateServiceResponse (Maybe UTCTime)
- createServiceResponse_name :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_ownerAccountId :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_serviceId :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_state :: Lens' CreateServiceResponse (Maybe ServiceState)
- createServiceResponse_tags :: Lens' CreateServiceResponse (Maybe (HashMap Text Text))
- createServiceResponse_urlEndpoint :: Lens' CreateServiceResponse (Maybe UrlEndpointInput)
- createServiceResponse_vpcId :: Lens' CreateServiceResponse (Maybe Text)
- createServiceResponse_httpStatus :: Lens' CreateServiceResponse Int
Creating a Request
data CreateService Source #
See: newCreateService
smart constructor.
CreateService' | |
|
Instances
:: Text | |
-> ServiceEndpointType | |
-> Text | |
-> Text | |
-> CreateService |
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_vpcId :: Lens' CreateService (Maybe Text) Source #
The ID of the VPC.
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.
CreateServiceResponse' | |
|
Instances
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_endpointType :: Lens' CreateServiceResponse (Maybe ServiceEndpointType) Source #
The endpoint type of the service.
createServiceResponse_environmentId :: Lens' CreateServiceResponse (Maybe Text) Source #
The unique identifier of the environment.
createServiceResponse_lambdaEndpoint :: Lens' CreateServiceResponse (Maybe LambdaEndpointInput) Source #
The configuration for the Lambda endpoint type.
createServiceResponse_lastUpdatedTime :: Lens' CreateServiceResponse (Maybe UTCTime) Source #
A timestamp that indicates when the service was last updated.
createServiceResponse_name :: Lens' CreateServiceResponse (Maybe Text) Source #
The name of the service.
createServiceResponse_ownerAccountId :: Lens' CreateServiceResponse (Maybe Text) Source #
The Amazon Web Services account ID of the service owner.
createServiceResponse_serviceId :: Lens' CreateServiceResponse (Maybe Text) Source #
The unique identifier of the service.
createServiceResponse_state :: Lens' CreateServiceResponse (Maybe ServiceState) Source #
The current state of the service.
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..
createServiceResponse_urlEndpoint :: Lens' CreateServiceResponse (Maybe UrlEndpointInput) Source #
The configuration for the URL endpoint type.
createServiceResponse_vpcId :: Lens' CreateServiceResponse (Maybe Text) Source #
The ID of the VPC.
createServiceResponse_httpStatus :: Lens' CreateServiceResponse Int Source #
The response's http status code.