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 |
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
- data CreateService = CreateService' {
- branchName :: Maybe Text
- description :: Maybe (Sensitive Text)
- repositoryConnectionArn :: Maybe Text
- repositoryId :: Maybe Text
- tags :: Maybe [Tag]
- templateMinorVersion :: Maybe Text
- name :: Text
- spec :: Sensitive Text
- templateMajorVersion :: Text
- templateName :: Text
- newCreateService :: Text -> Text -> Text -> Text -> CreateService
- createService_branchName :: Lens' CreateService (Maybe Text)
- createService_description :: Lens' CreateService (Maybe Text)
- createService_repositoryConnectionArn :: Lens' CreateService (Maybe Text)
- createService_repositoryId :: Lens' CreateService (Maybe Text)
- createService_tags :: Lens' CreateService (Maybe [Tag])
- createService_templateMinorVersion :: Lens' CreateService (Maybe Text)
- createService_name :: Lens' CreateService Text
- createService_spec :: Lens' CreateService Text
- createService_templateMajorVersion :: Lens' CreateService Text
- createService_templateName :: Lens' CreateService Text
- data CreateServiceResponse = CreateServiceResponse' {
- httpStatus :: Int
- service :: Service
- newCreateServiceResponse :: Int -> Service -> CreateServiceResponse
- createServiceResponse_httpStatus :: Lens' CreateServiceResponse Int
- createServiceResponse_service :: Lens' CreateServiceResponse Service
Creating a Request
data CreateService Source #
See: newCreateService
smart constructor.
CreateService' | |
|
Instances
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_name :: Lens' CreateService Text Source #
The service name.
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.
CreateServiceResponse' | |
|
Instances
newCreateServiceResponse Source #
:: Int | |
-> Service | |
-> 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
- The service detail data that's returned by Proton.
Response Lenses
createServiceResponse_httpStatus :: Lens' CreateServiceResponse Int Source #
The response's http status code.
createServiceResponse_service :: Lens' CreateServiceResponse Service Source #
The service detail data that's returned by Proton.