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

Description

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in the environment account from a management account.

An environment account connection is a secure bi-directional connection between a management account and an environment account that maintains authorization and permissions. For more information, see Environment account connections in the Proton User guide.

Synopsis

Creating a Request

data CreateEnvironmentAccountConnection Source #

Constructors

CreateEnvironmentAccountConnection' 

Fields

  • clientToken :: Maybe Text

    When included, if two identical requests are made with the same client token, Proton returns the environment account connection that the first request created.

  • codebuildRoleArn :: Maybe Text

    The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.

  • componentRoleArn :: Maybe Text

    The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.

    You must specify componentRoleArn to allow directly defined components to be associated with any environments running in this account.

    For more information about components, see Proton components in the Proton User Guide.

  • roleArn :: Maybe Text

    The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. Proton uses this role to provision infrastructure resources in the associated environment account.

  • tags :: Maybe [Tag]

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

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

  • environmentName :: Text

    The name of the Proton environment that's created in the associated management account.

  • managementAccountId :: Text

    The ID of the management account that accepts or rejects the environment account connection. You create and manage the Proton environment in this account. If the management account accepts the environment account connection, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

Instances

Instances details
ToJSON CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

ToHeaders CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

ToPath CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

ToQuery CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

AWSRequest CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Generic CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Associated Types

type Rep CreateEnvironmentAccountConnection :: Type -> Type #

Read CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Show CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

NFData CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Eq CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Hashable CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

type AWSResponse CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

type Rep CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

type Rep CreateEnvironmentAccountConnection = D1 ('MetaData "CreateEnvironmentAccountConnection" "Amazonka.Proton.CreateEnvironmentAccountConnection" "amazonka-proton-2.0-LlJ92rKPVfGGXHsLqGeI74" 'False) (C1 ('MetaCons "CreateEnvironmentAccountConnection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "codebuildRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "componentRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "environmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "managementAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newCreateEnvironmentAccountConnection Source #

Create a value of CreateEnvironmentAccountConnection 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:clientToken:CreateEnvironmentAccountConnection', createEnvironmentAccountConnection_clientToken - When included, if two identical requests are made with the same client token, Proton returns the environment account connection that the first request created.

CreateEnvironmentAccountConnection, createEnvironmentAccountConnection_codebuildRoleArn - The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.

CreateEnvironmentAccountConnection, createEnvironmentAccountConnection_componentRoleArn - The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.

You must specify componentRoleArn to allow directly defined components to be associated with any environments running in this account.

For more information about components, see Proton components in the Proton User Guide.

CreateEnvironmentAccountConnection, createEnvironmentAccountConnection_roleArn - The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. Proton uses this role to provision infrastructure resources in the associated environment account.

$sel:tags:CreateEnvironmentAccountConnection', createEnvironmentAccountConnection_tags - An optional list of metadata items that you can associate with the Proton environment account connection. A tag is a key-value pair.

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

CreateEnvironmentAccountConnection, createEnvironmentAccountConnection_environmentName - The name of the Proton environment that's created in the associated management account.

CreateEnvironmentAccountConnection, createEnvironmentAccountConnection_managementAccountId - The ID of the management account that accepts or rejects the environment account connection. You create and manage the Proton environment in this account. If the management account accepts the environment account connection, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

Request Lenses

createEnvironmentAccountConnection_clientToken :: Lens' CreateEnvironmentAccountConnection (Maybe Text) Source #

When included, if two identical requests are made with the same client token, Proton returns the environment account connection that the first request created.

createEnvironmentAccountConnection_codebuildRoleArn :: Lens' CreateEnvironmentAccountConnection (Maybe Text) Source #

The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.

createEnvironmentAccountConnection_componentRoleArn :: Lens' CreateEnvironmentAccountConnection (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.

You must specify componentRoleArn to allow directly defined components to be associated with any environments running in this account.

For more information about components, see Proton components in the Proton User Guide.

createEnvironmentAccountConnection_roleArn :: Lens' CreateEnvironmentAccountConnection (Maybe Text) Source #

The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. Proton uses this role to provision infrastructure resources in the associated environment account.

createEnvironmentAccountConnection_tags :: Lens' CreateEnvironmentAccountConnection (Maybe [Tag]) Source #

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

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

createEnvironmentAccountConnection_environmentName :: Lens' CreateEnvironmentAccountConnection Text Source #

The name of the Proton environment that's created in the associated management account.

createEnvironmentAccountConnection_managementAccountId :: Lens' CreateEnvironmentAccountConnection Text Source #

The ID of the management account that accepts or rejects the environment account connection. You create and manage the Proton environment in this account. If the management account accepts the environment account connection, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

Destructuring the Response

data CreateEnvironmentAccountConnectionResponse Source #

Constructors

CreateEnvironmentAccountConnectionResponse' 

Fields

Instances

Instances details
Generic CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Read CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Show CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

NFData CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Eq CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

type Rep CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

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

Response Lenses