Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateEnvironmentAccountConnection = CreateEnvironmentAccountConnection' {}
- newCreateEnvironmentAccountConnection :: Text -> Text -> Text -> CreateEnvironmentAccountConnection
- createEnvironmentAccountConnection_clientToken :: Lens' CreateEnvironmentAccountConnection (Maybe Text)
- createEnvironmentAccountConnection_environmentName :: Lens' CreateEnvironmentAccountConnection Text
- createEnvironmentAccountConnection_managementAccountId :: Lens' CreateEnvironmentAccountConnection Text
- createEnvironmentAccountConnection_roleArn :: Lens' CreateEnvironmentAccountConnection Text
- data CreateEnvironmentAccountConnectionResponse = CreateEnvironmentAccountConnectionResponse' {}
- newCreateEnvironmentAccountConnectionResponse :: Int -> EnvironmentAccountConnection -> CreateEnvironmentAccountConnectionResponse
- createEnvironmentAccountConnectionResponse_httpStatus :: Lens' CreateEnvironmentAccountConnectionResponse Int
- createEnvironmentAccountConnectionResponse_environmentAccountConnection :: Lens' CreateEnvironmentAccountConnectionResponse EnvironmentAccountConnection
Creating a Request
data CreateEnvironmentAccountConnection Source #
See: newCreateEnvironmentAccountConnection
smart constructor.
CreateEnvironmentAccountConnection' | |
|
Instances
newCreateEnvironmentAccountConnection Source #
:: Text | |
-> Text |
|
-> Text | |
-> CreateEnvironmentAccountConnection |
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 #
See: newCreateEnvironmentAccountConnectionResponse
smart constructor.
CreateEnvironmentAccountConnectionResponse' | |
|
Instances
newCreateEnvironmentAccountConnectionResponse Source #
:: Int | |
-> EnvironmentAccountConnection |
|
-> CreateEnvironmentAccountConnectionResponse |
Create a value of CreateEnvironmentAccountConnectionResponse
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:CreateEnvironmentAccountConnectionResponse'
, createEnvironmentAccountConnectionResponse_httpStatus
- The response's http status code.
$sel:environmentAccountConnection:CreateEnvironmentAccountConnectionResponse'
, createEnvironmentAccountConnectionResponse_environmentAccountConnection
- The environment account connection detail data that's returned by AWS
Proton.
Response Lenses
createEnvironmentAccountConnectionResponse_httpStatus :: Lens' CreateEnvironmentAccountConnectionResponse Int Source #
The response's http status code.
createEnvironmentAccountConnectionResponse_environmentAccountConnection :: Lens' CreateEnvironmentAccountConnectionResponse EnvironmentAccountConnection Source #
The environment account connection detail data that's returned by AWS Proton.