Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Create an App Runner service. After the service is created, the action also automatically starts a deployment.
This is an asynchronous operation. On a successful call, you can use the
returned OperationId
and the
ListOperations
call to track the operation's progress.
Synopsis
- data CreateService = CreateService' {}
- newCreateService :: Text -> SourceConfiguration -> CreateService
- createService_autoScalingConfigurationArn :: Lens' CreateService (Maybe Text)
- createService_encryptionConfiguration :: Lens' CreateService (Maybe EncryptionConfiguration)
- createService_healthCheckConfiguration :: Lens' CreateService (Maybe HealthCheckConfiguration)
- createService_tags :: Lens' CreateService (Maybe [Tag])
- createService_instanceConfiguration :: Lens' CreateService (Maybe InstanceConfiguration)
- createService_serviceName :: Lens' CreateService Text
- createService_sourceConfiguration :: Lens' CreateService SourceConfiguration
- data CreateServiceResponse = CreateServiceResponse' {
- httpStatus :: Int
- service :: Service
- operationId :: Text
- newCreateServiceResponse :: Int -> Service -> Text -> CreateServiceResponse
- createServiceResponse_httpStatus :: Lens' CreateServiceResponse Int
- createServiceResponse_service :: Lens' CreateServiceResponse Service
- createServiceResponse_operationId :: Lens' CreateServiceResponse Text
Creating a Request
data CreateService Source #
See: newCreateService
smart constructor.
CreateService' | |
|
Instances
:: Text | |
-> SourceConfiguration | |
-> 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:autoScalingConfigurationArn:CreateService'
, createService_autoScalingConfigurationArn
- The Amazon Resource Name (ARN) of an App Runner automatic scaling
configuration resource that you want to associate with your service. If
not provided, App Runner associates the latest revision of a default
auto scaling configuration.
$sel:encryptionConfiguration:CreateService'
, createService_encryptionConfiguration
- An optional custom encryption key that App Runner uses to encrypt the
copy of your source repository that it maintains and your service logs.
By default, App Runner uses an Amazon Web Services managed CMK.
$sel:healthCheckConfiguration:CreateService'
, createService_healthCheckConfiguration
- The settings for the health check that App Runner performs to monitor
the health of your service.
$sel:tags:CreateService'
, createService_tags
- An optional list of metadata items that you can associate with your
service resource. A tag is a key-value pair.
$sel:instanceConfiguration:CreateService'
, createService_instanceConfiguration
- The runtime configuration of instances (scaling units) of the App Runner
service.
$sel:serviceName:CreateService'
, createService_serviceName
- A name for the new service. It must be unique across all the running App
Runner services in your Amazon Web Services account in the Amazon Web
Services Region.
$sel:sourceConfiguration:CreateService'
, createService_sourceConfiguration
- The source to deploy to the App Runner service. It can be a code or an
image repository.
Request Lenses
createService_autoScalingConfigurationArn :: Lens' CreateService (Maybe Text) Source #
The Amazon Resource Name (ARN) of an App Runner automatic scaling configuration resource that you want to associate with your service. If not provided, App Runner associates the latest revision of a default auto scaling configuration.
createService_encryptionConfiguration :: Lens' CreateService (Maybe EncryptionConfiguration) Source #
An optional custom encryption key that App Runner uses to encrypt the copy of your source repository that it maintains and your service logs. By default, App Runner uses an Amazon Web Services managed CMK.
createService_healthCheckConfiguration :: Lens' CreateService (Maybe HealthCheckConfiguration) Source #
The settings for the health check that App Runner performs to monitor the health of your service.
createService_tags :: Lens' CreateService (Maybe [Tag]) Source #
An optional list of metadata items that you can associate with your service resource. A tag is a key-value pair.
createService_instanceConfiguration :: Lens' CreateService (Maybe InstanceConfiguration) Source #
The runtime configuration of instances (scaling units) of the App Runner service.
createService_serviceName :: Lens' CreateService Text Source #
A name for the new service. It must be unique across all the running App Runner services in your Amazon Web Services account in the Amazon Web Services Region.
createService_sourceConfiguration :: Lens' CreateService SourceConfiguration Source #
The source to deploy to the App Runner service. It can be a code or an image repository.
Destructuring the Response
data CreateServiceResponse Source #
See: newCreateServiceResponse
smart constructor.
CreateServiceResponse' | |
|
Instances
newCreateServiceResponse Source #
:: Int | |
-> Service | |
-> Text | |
-> CreateServiceResponse |
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:
$sel:httpStatus:CreateServiceResponse'
, createServiceResponse_httpStatus
- The response's http status code.
$sel:service:CreateServiceResponse'
, createServiceResponse_service
- A description of the App Runner service that's created by this request.
$sel:operationId:CreateServiceResponse'
, createServiceResponse_operationId
- The unique ID of the asynchronous operation that this request started.
You can use it combined with the
ListOperations
call to track the operation's progress.
Response Lenses
createServiceResponse_httpStatus :: Lens' CreateServiceResponse Int Source #
The response's http status code.
createServiceResponse_service :: Lens' CreateServiceResponse Service Source #
A description of the App Runner service that's created by this request.
createServiceResponse_operationId :: Lens' CreateServiceResponse Text Source #
The unique ID of the asynchronous operation that this request started. You can use it combined with the ListOperations call to track the operation's progress.