DataZone / Client / create_account_pool
create_account_pool¶
- DataZone.Client.create_account_pool(**kwargs)¶
Creates an account pool.
See also: AWS API Documentation
Request Syntax
response = client.create_account_pool( accountSource={ 'accounts': [ { 'awsAccountId': 'string', 'awsAccountName': 'string', 'supportedRegions': [ 'string', ] }, ], 'customAccountPoolHandler': { 'lambdaExecutionRoleArn': 'string', 'lambdaFunctionArn': 'string' } }, description='string', domainIdentifier='string', name='string', resolutionStrategy='MANUAL' )
- Parameters:
accountSource (dict) –
[REQUIRED]
The source of accounts for the account pool. In the current release, it’s either a static list of accounts provided by the customer or a custom Amazon Web Services Lambda handler.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
accounts
,customAccountPoolHandler
.accounts (list) –
The static list of accounts within an account pool.
(dict) –
The account information within an account pool.
awsAccountId (string) – [REQUIRED]
The account ID.
awsAccountName (string) –
The account name.
supportedRegions (list) – [REQUIRED]
The regions supported for an account within an account pool.
(string) –
customAccountPoolHandler (dict) –
The custom Amazon Web Services Lambda handler within an account pool.
lambdaExecutionRoleArn (string) –
The ARN of the IAM role that enables Amazon SageMaker Unified Studio to invoke the Amazon Web Services Lambda funtion if the account source is the custom account pool handler.
lambdaFunctionArn (string) – [REQUIRED]
The ARN of the Amazon Web Services Lambda function for the custom Amazon Web Services Lambda handler.
description (string) – The description of the account pool.
domainIdentifier (string) –
[REQUIRED]
The ID of the domain where the account pool is created.
name (string) –
[REQUIRED]
The name of the account pool.
resolutionStrategy (string) –
[REQUIRED]
The mechanism used to resolve the account selection from the account pool.
- Return type:
dict
- Returns:
Response Syntax
{ 'accountSource': { 'accounts': [ { 'awsAccountId': 'string', 'awsAccountName': 'string', 'supportedRegions': [ 'string', ] }, ], 'customAccountPoolHandler': { 'lambdaExecutionRoleArn': 'string', 'lambdaFunctionArn': 'string' } }, 'createdAt': datetime(2015, 1, 1), 'createdBy': 'string', 'description': 'string', 'domainId': 'string', 'domainUnitId': 'string', 'id': 'string', 'lastUpdatedAt': datetime(2015, 1, 1), 'name': 'string', 'resolutionStrategy': 'MANUAL', 'updatedBy': 'string' }
Response Structure
(dict) –
accountSource (dict) –
The source of accounts for the account pool. In the current release, it’s either a static list of accounts provided by the customer or a custom Amazon Web Services Lambda handler.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
accounts
,customAccountPoolHandler
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
accounts (list) –
The static list of accounts within an account pool.
(dict) –
The account information within an account pool.
awsAccountId (string) –
The account ID.
awsAccountName (string) –
The account name.
supportedRegions (list) –
The regions supported for an account within an account pool.
(string) –
customAccountPoolHandler (dict) –
The custom Amazon Web Services Lambda handler within an account pool.
lambdaExecutionRoleArn (string) –
The ARN of the IAM role that enables Amazon SageMaker Unified Studio to invoke the Amazon Web Services Lambda funtion if the account source is the custom account pool handler.
lambdaFunctionArn (string) –
The ARN of the Amazon Web Services Lambda function for the custom Amazon Web Services Lambda handler.
createdAt (datetime) –
The timestamp at which the account pool was created.
createdBy (string) –
The user who created the account pool.
description (string) –
The description of the account pool.
domainId (string) –
The ID of the domain where the account pool is created.
domainUnitId (string) –
The ID of the domain where the account pool is created.
id (string) –
The ID of the account pool.
lastUpdatedAt (datetime) –
The timestamp at which the account pool was last updated.
name (string) –
The name of the account pool.
resolutionStrategy (string) –
The mechanism used to resolve the account selection from the account pool.
updatedBy (string) –
The user who last updated the account pool.
Exceptions