libZSservicesZSamazonka-apprunnerZSamazonka-apprunner
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppRunner.CreateService

Description

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

Creating a Request

data CreateService Source #

See: newCreateService smart constructor.

Constructors

CreateService' 

Fields

  • autoScalingConfigurationArn :: Maybe Text

    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.

  • encryptionConfiguration :: Maybe 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.

  • healthCheckConfiguration :: Maybe HealthCheckConfiguration

    The settings for the health check that App Runner performs to monitor the health of your service.

  • tags :: Maybe [Tag]

    An optional list of metadata items that you can associate with your service resource. A tag is a key-value pair.

  • instanceConfiguration :: Maybe InstanceConfiguration

    The runtime configuration of instances (scaling units) of the App Runner service.

  • serviceName :: Text

    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.

  • sourceConfiguration :: SourceConfiguration

    The source to deploy to the App Runner service. It can be a code or an image repository.

Instances

Instances details
Eq CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Show CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Generic CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Associated Types

type Rep CreateService :: Type -> Type #

NFData CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Methods

rnf :: CreateService -> () #

Hashable CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

ToJSON CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

AWSRequest CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Associated Types

type AWSResponse CreateService #

ToHeaders CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

ToPath CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

ToQuery CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

type Rep CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

type Rep CreateService = D1 ('MetaData "CreateService" "Amazonka.AppRunner.CreateService" "libZSservicesZSamazonka-apprunnerZSamazonka-apprunner" 'False) (C1 ('MetaCons "CreateService'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "autoScalingConfigurationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "encryptionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EncryptionConfiguration)) :*: S1 ('MetaSel ('Just "healthCheckConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HealthCheckConfiguration)))) :*: ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "instanceConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceConfiguration))) :*: (S1 ('MetaSel ('Just "serviceName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sourceConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 SourceConfiguration)))))
type AWSResponse CreateService Source # 
Instance details

Defined in Amazonka.AppRunner.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: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.

Constructors

CreateServiceResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • service :: Service

    A description of the App Runner service that's created by this request.

  • operationId :: Text

    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.

Instances

Instances details
Eq CreateServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Show CreateServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Generic CreateServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Associated Types

type Rep CreateServiceResponse :: Type -> Type #

NFData CreateServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

Methods

rnf :: CreateServiceResponse -> () #

type Rep CreateServiceResponse Source # 
Instance details

Defined in Amazonka.AppRunner.CreateService

type Rep CreateServiceResponse = D1 ('MetaData "CreateServiceResponse" "Amazonka.AppRunner.CreateService" "libZSservicesZSamazonka-apprunnerZSamazonka-apprunner" 'False) (C1 ('MetaCons "CreateServiceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "service") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Service) :*: S1 ('MetaSel ('Just "operationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

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:

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