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.CreateComponent

Description

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

Creating a Request

data CreateComponent Source #

See: newCreateComponent smart constructor.

Constructors

CreateComponent' 

Fields

  • description :: Maybe (Sensitive Text)

    An optional customer-provided description of the component.

  • environmentName :: Maybe Text

    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.

  • serviceInstanceName :: Maybe Text

    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.

  • serviceName :: Maybe Text

    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.

  • serviceSpec :: Maybe (Sensitive Text)

    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.

  • tags :: Maybe [Tag]

    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.

  • manifest :: Sensitive Text

    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.

  • name :: Text

    The customer-provided name of the component.

  • templateFile :: Sensitive Text

    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.

Instances

Instances details
ToJSON CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

ToHeaders CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

ToPath CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

ToQuery CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

AWSRequest CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

Associated Types

type AWSResponse CreateComponent #

Generic CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

Associated Types

type Rep CreateComponent :: Type -> Type #

Show CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

NFData CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

Methods

rnf :: CreateComponent -> () #

Eq CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

Hashable CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

type AWSResponse CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

type Rep CreateComponent Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

newCreateComponent Source #

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.

Constructors

CreateComponentResponse' 

Fields

Instances

Instances details
Generic CreateComponentResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

Associated Types

type Rep CreateComponentResponse :: Type -> Type #

Show CreateComponentResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

NFData CreateComponentResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

Methods

rnf :: CreateComponentResponse -> () #

Eq CreateComponentResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

type Rep CreateComponentResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateComponent

type Rep CreateComponentResponse = D1 ('MetaData "CreateComponentResponse" "Amazonka.Proton.CreateComponent" "amazonka-proton-2.0-LlJ92rKPVfGGXHsLqGeI74" 'False) (C1 ('MetaCons "CreateComponentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "component") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Component)))

newCreateComponentResponse Source #

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