libZSservicesZSamazonka-protonZSamazonka-proton
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 AWS Proton Administrator guide.

Synopsis

Creating a Request

data CreateEnvironmentAccountConnection Source #

Constructors

CreateEnvironmentAccountConnection' 

Fields

  • clientToken :: Maybe Text

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

  • environmentName :: Text

    The name of the AWS 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 an manage the AWS Proton environment in this account. If the management account accepts the environment account connection, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

  • roleArn :: Text

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

Instances

Instances details
Eq CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Read CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Show 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 #

NFData CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

Hashable CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

ToJSON CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

AWSRequest 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

type Rep CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

type Rep CreateEnvironmentAccountConnection = D1 ('MetaData "CreateEnvironmentAccountConnection" "Amazonka.Proton.CreateEnvironmentAccountConnection" "libZSservicesZSamazonka-protonZSamazonka-proton" 'False) (C1 ('MetaCons "CreateEnvironmentAccountConnection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "environmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "managementAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateEnvironmentAccountConnection Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

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 identicial requests are made with the same client token, AWS Proton returns the environment account connection that the first request created.

$sel:environmentName:CreateEnvironmentAccountConnection', createEnvironmentAccountConnection_environmentName - The name of the AWS Proton environment that's created in the associated management account.

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

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

Request Lenses

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

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

createEnvironmentAccountConnection_environmentName :: Lens' CreateEnvironmentAccountConnection Text Source #

The name of the AWS 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 an manage the AWS Proton environment in this account. If the management account accepts the environment account connection, AWS Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

createEnvironmentAccountConnection_roleArn :: Lens' CreateEnvironmentAccountConnection Text Source #

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

Destructuring the Response

data CreateEnvironmentAccountConnectionResponse Source #

Constructors

CreateEnvironmentAccountConnectionResponse' 

Fields

Instances

Instances details
Eq 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

Generic CreateEnvironmentAccountConnectionResponse Source # 
Instance details

Defined in Amazonka.Proton.CreateEnvironmentAccountConnection

NFData 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" "libZSservicesZSamazonka-protonZSamazonka-proton" '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