amazonka-proton-2.0: Amazon Proton 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.Proton.CreateService

Description

Create an Proton service. An Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the Proton User Guide.

Synopsis

Creating a Request

data CreateService Source #

See: newCreateService smart constructor.

Constructors

CreateService' 

Fields

  • branchName :: Maybe Text

    The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.

  • description :: Maybe (Sensitive Text)

    A description of the Proton service.

  • repositoryConnectionArn :: Maybe Text

    The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.

  • repositoryId :: Maybe Text

    The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.

  • tags :: Maybe [Tag]

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

    For more information, see Proton resources and tagging in the Proton User Guide.

  • templateMinorVersion :: Maybe Text

    The minor version of the service template that was used to create the service.

  • name :: Text

    The service name.

  • spec :: Sensitive Text

    A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.

  • templateMajorVersion :: Text

    The major version of the service template that was used to create the service.

  • templateName :: Text

    The name of the service template that's used to create the service.

Instances

Instances details
ToJSON CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

ToHeaders CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

ToPath CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

ToQuery CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

AWSRequest CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

Associated Types

type AWSResponse CreateService #

Generic CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

Associated Types

type Rep CreateService :: Type -> Type #

Show CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

NFData CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

Methods

rnf :: CreateService -> () #

Eq CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

Hashable CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

type AWSResponse CreateService Source # 
Instance details

Defined in Amazonka.Proton.CreateService

type Rep CreateService Source # 
Instance details

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

CreateService, createService_branchName - The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.

CreateService, createService_description - A description of the Proton service.

CreateService, createService_repositoryConnectionArn - The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.

CreateService, createService_repositoryId - The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.

$sel:tags:CreateService', createService_tags - An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.

For more information, see Proton resources and tagging in the Proton User Guide.

CreateService, createService_templateMinorVersion - The minor version of the service template that was used to create the service.

CreateService, createService_name - The service name.

CreateService, createService_spec - A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.

CreateService, createService_templateMajorVersion - The major version of the service template that was used to create the service.

CreateService, createService_templateName - The name of the service template that's used to create the service.

Request Lenses

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

The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.

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

A description of the Proton service.

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

The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.

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

The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.

createService_tags :: Lens' CreateService (Maybe [Tag]) Source #

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

For more information, see Proton resources and tagging in the Proton User Guide.

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

The minor version of the service template that was used to create the service.

createService_spec :: Lens' CreateService Text Source #

A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.

createService_templateMajorVersion :: Lens' CreateService Text Source #

The major version of the service template that was used to create the service.

createService_templateName :: Lens' CreateService Text Source #

The name of the service template that's used to create the service.

Destructuring the Response

data CreateServiceResponse Source #

See: newCreateServiceResponse smart constructor.

Constructors

CreateServiceResponse' 

Fields

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 - The service detail data that's returned by Proton.

Response Lenses

createServiceResponse_service :: Lens' CreateServiceResponse Service Source #

The service detail data that's returned by Proton.