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 component. A component is an infrastructure extension for a service instance.
For more information about components, see Proton components in the Proton User Guide.
Synopsis
- data CreateComponent = CreateComponent' {
- description :: Maybe (Sensitive Text)
- environmentName :: Maybe Text
- serviceInstanceName :: Maybe Text
- serviceName :: Maybe Text
- serviceSpec :: Maybe (Sensitive Text)
- tags :: Maybe [Tag]
- manifest :: Sensitive Text
- name :: Text
- templateFile :: Sensitive Text
- newCreateComponent :: Text -> Text -> Text -> CreateComponent
- createComponent_description :: Lens' CreateComponent (Maybe Text)
- createComponent_environmentName :: Lens' CreateComponent (Maybe Text)
- createComponent_serviceInstanceName :: Lens' CreateComponent (Maybe Text)
- createComponent_serviceName :: Lens' CreateComponent (Maybe Text)
- createComponent_serviceSpec :: Lens' CreateComponent (Maybe Text)
- createComponent_tags :: Lens' CreateComponent (Maybe [Tag])
- createComponent_manifest :: Lens' CreateComponent Text
- createComponent_name :: Lens' CreateComponent Text
- createComponent_templateFile :: Lens' CreateComponent Text
- data CreateComponentResponse = CreateComponentResponse' {
- httpStatus :: Int
- component :: Component
- newCreateComponentResponse :: Int -> Component -> CreateComponentResponse
- createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int
- createComponentResponse_component :: Lens' CreateComponentResponse Component
Creating a Request
data CreateComponent Source #
See: newCreateComponent
smart constructor.
CreateComponent' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CreateComponent |
Create a value of CreateComponent
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:
CreateComponent
, createComponent_description
- An optional customer-provided description of the component.
CreateComponent
, createComponent_environmentName
- The name of the Proton environment that you want to associate this
component with. You must specify this when you don't specify
serviceInstanceName
and serviceName
.
CreateComponent
, createComponent_serviceInstanceName
- The name of the service instance that you want to attach this component
to. If you don't specify this, the component isn't attached to any
service instance. Specify both serviceInstanceName
and serviceName
or neither of them.
CreateComponent
, createComponent_serviceName
- The name of the service that serviceInstanceName
is associated with.
If you don't specify this, the component isn't attached to any service
instance. Specify both serviceInstanceName
and serviceName
or
neither of them.
CreateComponent
, createComponent_serviceSpec
- The service spec that you want the component to use to access service
inputs. Set this only when you attach the component to a service
instance.
$sel:tags:CreateComponent'
, createComponent_tags
- An optional list of metadata items that you can associate with the
Proton component. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
$sel:manifest:CreateComponent'
, createComponent_manifest
- A path to a manifest file that lists the Infrastructure as Code (IaC)
file, template language, and rendering engine for infrastructure that a
custom component provisions.
CreateComponent
, createComponent_name
- The customer-provided name of the component.
$sel:templateFile:CreateComponent'
, createComponent_templateFile
- A path to the Infrastructure as Code (IaC) file describing
infrastructure that a custom component provisions.
Components support a single IaC file, even if you use Terraform as your template language.
Request Lenses
createComponent_description :: Lens' CreateComponent (Maybe Text) Source #
An optional customer-provided description of the component.
createComponent_environmentName :: Lens' CreateComponent (Maybe Text) Source #
The name of the Proton environment that you want to associate this
component with. You must specify this when you don't specify
serviceInstanceName
and serviceName
.
createComponent_serviceInstanceName :: Lens' CreateComponent (Maybe Text) Source #
The name of the service instance that you want to attach this component
to. If you don't specify this, the component isn't attached to any
service instance. Specify both serviceInstanceName
and serviceName
or neither of them.
createComponent_serviceName :: Lens' CreateComponent (Maybe Text) Source #
The name of the service that serviceInstanceName
is associated with.
If you don't specify this, the component isn't attached to any service
instance. Specify both serviceInstanceName
and serviceName
or
neither of them.
createComponent_serviceSpec :: Lens' CreateComponent (Maybe Text) Source #
The service spec that you want the component to use to access service inputs. Set this only when you attach the component to a service instance.
createComponent_tags :: Lens' CreateComponent (Maybe [Tag]) Source #
An optional list of metadata items that you can associate with the Proton component. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
createComponent_manifest :: Lens' CreateComponent Text Source #
A path to a manifest file that lists the Infrastructure as Code (IaC) file, template language, and rendering engine for infrastructure that a custom component provisions.
createComponent_name :: Lens' CreateComponent Text Source #
The customer-provided name of the component.
createComponent_templateFile :: Lens' CreateComponent Text Source #
A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.
Components support a single IaC file, even if you use Terraform as your template language.
Destructuring the Response
data CreateComponentResponse Source #
See: newCreateComponentResponse
smart constructor.
CreateComponentResponse' | |
|
Instances
newCreateComponentResponse Source #
:: Int | |
-> Component | |
-> CreateComponentResponse |
Create a value of CreateComponentResponse
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:CreateComponentResponse'
, createComponentResponse_httpStatus
- The response's http status code.
$sel:component:CreateComponentResponse'
, createComponentResponse_component
- The detailed data of the created component.
Response Lenses
createComponentResponse_httpStatus :: Lens' CreateComponentResponse Int Source #
The response's http status code.
createComponentResponse_component :: Lens' CreateComponentResponse Component Source #
The detailed data of the created component.