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 |
Deploy a new environment. An Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services.
You can provision environments using the following methods:
- Amazon Web Services-managed provisioning: Proton makes direct calls to provision your resources.
- Self-managed provisioning: Proton makes pull requests on your repository to provide compiled infrastructure as code (IaC) files that your IaC engine uses to provision resources.
For more information, see Environments and Provisioning methods in the Proton User Guide.
Synopsis
- data CreateEnvironment = CreateEnvironment' {
- codebuildRoleArn :: Maybe Text
- componentRoleArn :: Maybe Text
- description :: Maybe (Sensitive Text)
- environmentAccountConnectionId :: Maybe Text
- protonServiceRoleArn :: Maybe Text
- provisioningRepository :: Maybe RepositoryBranchInput
- tags :: Maybe [Tag]
- templateMinorVersion :: Maybe Text
- name :: Text
- spec :: Sensitive Text
- templateMajorVersion :: Text
- templateName :: Text
- newCreateEnvironment :: Text -> Text -> Text -> Text -> CreateEnvironment
- createEnvironment_codebuildRoleArn :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_componentRoleArn :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_description :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_environmentAccountConnectionId :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_protonServiceRoleArn :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_provisioningRepository :: Lens' CreateEnvironment (Maybe RepositoryBranchInput)
- createEnvironment_tags :: Lens' CreateEnvironment (Maybe [Tag])
- createEnvironment_templateMinorVersion :: Lens' CreateEnvironment (Maybe Text)
- createEnvironment_name :: Lens' CreateEnvironment Text
- createEnvironment_spec :: Lens' CreateEnvironment Text
- createEnvironment_templateMajorVersion :: Lens' CreateEnvironment Text
- createEnvironment_templateName :: Lens' CreateEnvironment Text
- data CreateEnvironmentResponse = CreateEnvironmentResponse' {}
- newCreateEnvironmentResponse :: Int -> Environment -> CreateEnvironmentResponse
- createEnvironmentResponse_httpStatus :: Lens' CreateEnvironmentResponse Int
- createEnvironmentResponse_environment :: Lens' CreateEnvironmentResponse Environment
Creating a Request
data CreateEnvironment Source #
See: newCreateEnvironment
smart constructor.
CreateEnvironment' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateEnvironment |
Create a value of CreateEnvironment
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:
CreateEnvironment
, createEnvironment_codebuildRoleArn
- The Amazon Resource Name (ARN) of the IAM service role that allows
Proton to provision infrastructure using CodeBuild-based provisioning on
your behalf.
To use CodeBuild-based provisioning for the environment or for any
service instance running in the environment, specify either the
environmentAccountConnectionId
or codebuildRoleArn
parameter.
CreateEnvironment
, createEnvironment_componentRoleArn
- The Amazon Resource Name (ARN) of the IAM service role that Proton uses
when provisioning directly defined components in this environment. It
determines the scope of infrastructure that a component can provision.
You must specify componentRoleArn
to allow directly defined components
to be associated with this environment.
For more information about components, see Proton components in the Proton User Guide.
CreateEnvironment
, createEnvironment_description
- A description of the environment that's being created and deployed.
CreateEnvironment
, createEnvironment_environmentAccountConnectionId
- The ID of the environment account connection that you provide if you're
provisioning your environment infrastructure resources to an environment
account. For more information, see
Environment account connections
in the Proton User guide.
To use Amazon Web Services-managed provisioning for the environment,
specify either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and omit the provisioningRepository
parameter.
CreateEnvironment
, createEnvironment_protonServiceRoleArn
- The Amazon Resource Name (ARN) of the Proton service role that allows
Proton to make calls to other services on your behalf.
To use Amazon Web Services-managed provisioning for the environment,
specify either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and omit the provisioningRepository
parameter.
CreateEnvironment
, createEnvironment_provisioningRepository
- The linked repository that you use to host your rendered infrastructure
templates for self-managed provisioning. A linked repository is a
repository that has been registered with Proton. For more information,
see CreateRepository.
To use self-managed provisioning for the environment, specify this
parameter and omit the environmentAccountConnectionId
and
protonServiceRoleArn
parameters.
$sel:tags:CreateEnvironment'
, createEnvironment_tags
- An optional list of metadata items that you can associate with the
Proton environment. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
CreateEnvironment
, createEnvironment_templateMinorVersion
- The minor version of the environment template.
CreateEnvironment
, createEnvironment_name
- The name of the environment.
CreateEnvironment
, createEnvironment_spec
- A YAML formatted string that provides inputs as defined in the
environment template bundle schema file. For more information, see
Environments
in the Proton User Guide.
CreateEnvironment
, createEnvironment_templateMajorVersion
- The major version of the environment template.
CreateEnvironment
, createEnvironment_templateName
- The name of the environment template. For more information, see
Environment Templates
in the Proton User Guide.
Request Lenses
createEnvironment_codebuildRoleArn :: Lens' CreateEnvironment (Maybe Text) Source #
The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
To use CodeBuild-based provisioning for the environment or for any
service instance running in the environment, specify either the
environmentAccountConnectionId
or codebuildRoleArn
parameter.
createEnvironment_componentRoleArn :: Lens' CreateEnvironment (Maybe Text) Source #
The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
You must specify componentRoleArn
to allow directly defined components
to be associated with this environment.
For more information about components, see Proton components in the Proton User Guide.
createEnvironment_description :: Lens' CreateEnvironment (Maybe Text) Source #
A description of the environment that's being created and deployed.
createEnvironment_environmentAccountConnectionId :: Lens' CreateEnvironment (Maybe Text) Source #
The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an environment account. For more information, see Environment account connections in the Proton User guide.
To use Amazon Web Services-managed provisioning for the environment,
specify either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and omit the provisioningRepository
parameter.
createEnvironment_protonServiceRoleArn :: Lens' CreateEnvironment (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
To use Amazon Web Services-managed provisioning for the environment,
specify either the environmentAccountConnectionId
or
protonServiceRoleArn
parameter and omit the provisioningRepository
parameter.
createEnvironment_provisioningRepository :: Lens' CreateEnvironment (Maybe RepositoryBranchInput) Source #
The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
To use self-managed provisioning for the environment, specify this
parameter and omit the environmentAccountConnectionId
and
protonServiceRoleArn
parameters.
createEnvironment_tags :: Lens' CreateEnvironment (Maybe [Tag]) Source #
An optional list of metadata items that you can associate with the Proton environment. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
createEnvironment_templateMinorVersion :: Lens' CreateEnvironment (Maybe Text) Source #
The minor version of the environment template.
createEnvironment_name :: Lens' CreateEnvironment Text Source #
The name of the environment.
createEnvironment_spec :: Lens' CreateEnvironment Text Source #
A YAML formatted string that provides inputs as defined in the environment template bundle schema file. For more information, see Environments in the Proton User Guide.
createEnvironment_templateMajorVersion :: Lens' CreateEnvironment Text Source #
The major version of the environment template.
createEnvironment_templateName :: Lens' CreateEnvironment Text Source #
The name of the environment template. For more information, see Environment Templates in the Proton User Guide.
Destructuring the Response
data CreateEnvironmentResponse Source #
See: newCreateEnvironmentResponse
smart constructor.
CreateEnvironmentResponse' | |
|
Instances
newCreateEnvironmentResponse Source #
Create a value of CreateEnvironmentResponse
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:CreateEnvironmentResponse'
, createEnvironmentResponse_httpStatus
- The response's http status code.
$sel:environment:CreateEnvironmentResponse'
, createEnvironmentResponse_environment
- The environment detail data that's returned by Proton.
Response Lenses
createEnvironmentResponse_httpStatus :: Lens' CreateEnvironmentResponse Int Source #
The response's http status code.
createEnvironmentResponse_environment :: Lens' CreateEnvironmentResponse Environment Source #
The environment detail data that's returned by Proton.