create_account_subscription
¶
create_account_subscription(
authentication_method: AuthenticationMethodOption,
aws_account_id: AwsAccountId,
account_name: AccountName,
notification_email: String,
*,
config_overrides: Optional[QuickSightClientConfig] = None,
edition: Optional[Edition] = None,
active_directory_name: Optional[String] = None,
realm: Optional[String] = None,
directory_id: Optional[String] = None,
admin_group: Optional[GroupsList] = None,
author_group: Optional[GroupsList] = None,
reader_group: Optional[GroupsList] = None,
admin_pro_group: Optional[GroupsList] = None,
author_pro_group: Optional[GroupsList] = None,
reader_pro_group: Optional[GroupsList] = None,
first_name: Optional[String] = None,
last_name: Optional[String] = None,
email_address: Optional[String] = None,
contact_number: Optional[String] = None,
iam_identity_center_instance_arn: Optional[String] = None,
) -> CreateAccountSubscriptionResponse
Creates an Amazon Quick Sight account, or subscribes to Amazon Quick Sight Q.
The Amazon Web Services Region for the account is derived from what is configured in the CLI or SDK.
Before you use this operation, make sure that you can connect to an existing Amazon Web Services account. If you don't have an Amazon Web Services account, see Sign up for Amazon Web Services in the Amazon Quick Sight User Guide. The person who signs up for Amazon Quick Sight needs to have the correct Identity and Access Management (IAM) permissions. For more information, see IAM Policy Examples for Amazon Quick Sight in the Amazon Quick Sight User Guide.
If your IAM policy includes both the Subscribe and CreateAccountSubscription actions, make sure that both actions are set to Allow. If either action is set to Deny, the Deny action prevails and your API call fails.
You can't pass an existing IAM role to access other Amazon Web Services services using this API operation. To pass your existing IAM role to Amazon Quick Sight, see Passing IAM roles to Amazon Quick Sight in the Amazon Quick Sight User Guide.
You can't set default resource access on the new account from the Amazon Quick Sight API. Instead, add default resource access from the Amazon Quick Sight console. For more information about setting default resource access to Amazon Web Services services, see Setting default resource access to Amazon Web Services services in the Amazon Quick Sight User Guide.
Parameters:
-
edition(Optional[Edition], default:None) –The edition of Amazon Quick Sight that you want your account to have. Currently, you can choose from
ENTERPRISEorENTERPRISE_AND_Q.If you choose
ENTERPRISE_AND_Q, the following parameters are required:-
FirstName -
LastName -
EmailAddress -
ContactNumber
-
-
authentication_method(AuthenticationMethodOption) –The method that you want to use to authenticate your Quick Sight account.
If you choose
ACTIVE_DIRECTORY, provide anActiveDirectoryNameand anAdminGroupassociated with your Active Directory.If you choose
IAM_IDENTITY_CENTER, provide anAdminGroupassociated with your IAM Identity Center account. -
aws_account_id(AwsAccountId) –The Amazon Web Services account ID of the account that you're using to create your Quick Sight account.
-
account_name(AccountName) –The name of your Amazon Quick Sight account. This name is unique over all of Amazon Web Services, and it appears only when users sign in. You can't change
AccountNamevalue after the Amazon Quick Sight account is created. -
notification_email(String) –The email address that you want Quick Sight to send notifications to regarding your Quick Sight account or Quick Sight subscription.
-
active_directory_name(Optional[String], default:None) –The name of your Active Directory. This field is required if
ACTIVE_DIRECTORYis the selected authentication method of the new Quick Sight account. -
realm(Optional[String], default:None) –The realm of the Active Directory that is associated with your Quick Sight account. This field is required if
ACTIVE_DIRECTORYis the selected authentication method of the new Quick Sight account. -
directory_id(Optional[String], default:None) –The ID of the Active Directory that is associated with your Quick Sight account.
-
admin_group(Optional[GroupsList], default:None) –The admin group associated with your Active Directory or IAM Identity Center account. Either this field or the
AdminProGroupfield is required ifACTIVE_DIRECTORYorIAM_IDENTITY_CENTERis the selected authentication method of the new Quick Sight account.For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
author_group(Optional[GroupsList], default:None) –The author group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
reader_group(Optional[GroupsList], default:None) –The reader group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
admin_pro_group(Optional[GroupsList], default:None) –The admin pro group associated with your Active Directory or IAM Identity Center account. Either this field or the
AdminGroupfield is required ifACTIVE_DIRECTORYorIAM_IDENTITY_CENTERis the selected authentication method of the new Quick Sight account.For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
author_pro_group(Optional[GroupsList], default:None) –The author pro group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
reader_pro_group(Optional[GroupsList], default:None) –The reader pro group associated with your Active Directory or IAM Identity Center account.
For more information about using IAM Identity Center in Amazon Quick Sight, see Using IAM Identity Center with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide. For more information about using Active Directory in Amazon Quick Sight, see Using Active Directory with Amazon Quick Sight Enterprise Edition in the Amazon Quick Sight User Guide.
-
first_name(Optional[String], default:None) –The first name of the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
last_name(Optional[String], default:None) –The last name of the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
email_address(Optional[String], default:None) –The email address of the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
contact_number(Optional[String], default:None) –A 10-digit phone number for the author of the Amazon Quick Sight account to use for future communications. This field is required if
ENTERPPRISE_AND_Qis the selected edition of the new Amazon Quick Sight account. -
iam_identity_center_instance_arn(Optional[String], default:None) –The Amazon Resource Name (ARN) for the IAM Identity Center instance.
Raises:
-
AccessDeniedException–You don't have access to this item. The provided credentials couldn't be validated. You might not be authorized to carry out the request. Make sure that your account is authorized to use the Amazon Quick Sight service, that your policies have the correct permissions, and that you are using the correct credentials.
-
ConflictException–Updating or deleting a resource can cause an inconsistent state.
-
InternalFailureException–An internal failure occurred.
-
InvalidParameterValueException–One or more parameters has a value that isn't valid.
-
PreconditionNotMetException–One or more preconditions aren't met.
-
ResourceExistsException–The resource specified already exists.
-
ResourceNotFoundException–One or more resources can't be found.
-
ResourceUnavailableException–This resource is currently unavailable.
-
ThrottlingException–Access is throttled.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_quicksight/_services/quick_sight.py
1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 | |