MarketplaceReportingService *************************** Client ====== class MarketplaceReportingService.Client A low-level client representing AWS Marketplace Reporting Service The Amazon Web Services Marketplace "GetBuyerDashboard" API enables you to get a procurement insights dashboard programmatically. The API gets the agreement and cost analysis dashboards with data for all of the Amazon Web Services accounts in your Amazon Web Services Organization. To use the Amazon Web Services Marketplace Reporting API, you must complete the following prerequisites: * Enable all features for your organization. For more information, see Enabling all features for an organization with Organizations, in the *Organizations User Guide*. * Call the service as the Organizations management account or an account registered as a delegated administrator for the procurement insights service. For more information about management accounts, see Tutorial: Creating and configuring an organization and Managing the management account with Organizations, both in the *Organizations User Guide*. For more information about delegated administrators, see Using delegated administrators, in the *Amazon Web Services Marketplace Buyer Guide*. * Create an IAM policy that enables the "aws- marketplace:GetBuyerDashboard" and "organizations:DescribeOrganization" permissions. In addition, the management account requires the "organizations:EnableAWSServiceAccess" and "iam:CreateServiceLinkedRole" permissions to create. For more information about creating the policy, see Policies and permissions in Identity and Access Management, in the *IAM User Guide*. Note: Access can be shared only by registering the desired linked account as a delegated administrator. That requires "organizations:RegisterDelegatedAdministrator" "organizations:ListDelegatedAdministrators" and "organizations:DeregisterDelegatedAdministrator" permissions. * Use the Amazon Web Services Marketplace console to create the "AWSServiceRoleForProcurementInsightsPolicy" service-linked role. The role enables Amazon Web Services Marketplace procurement visibility integration. The management account requires an IAM policy with the "organizations:EnableAWSServiceAccess" and "iam:CreateServiceLinkedRole" permissions to create the service- linked role and enable the service access. For more information, see Granting access to Organizations and Service-linked role to share procurement data in the *Amazon Web Services Marketplace Buyer Guide*. * After creating the service-linked role, you must enable trusted access that grants Amazon Web Services Marketplace permission to access data from your Organizations. For more information, see Granting access to Organizations in the *Amazon Web Services Marketplace Buyer Guide*. import boto3 client = boto3.client('marketplace-reporting') These are the available methods: * can_paginate * close * get_buyer_dashboard * get_paginator * get_waiter MarketplaceReportingService / Client / get_paginator get_paginator ************* MarketplaceReportingService.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. MarketplaceReportingService / Client / get_buyer_dashboard get_buyer_dashboard ******************* MarketplaceReportingService.Client.get_buyer_dashboard(**kwargs) Generates an embedding URL for an Amazon QuickSight dashboard for an anonymous user. Note: This API is available only to Amazon Web Services Organization management accounts or delegated administrators registered for the procurement insights ( "procurement- insights.marketplace.amazonaws.com") feature. The following rules apply to a generated URL: * It contains a temporary bearer token, valid for 5 minutes after it is generated. Once redeemed within that period, it cannot be re-used again. * It has a session lifetime of one hour. The 5-minute validity period runs separately from the session lifetime. See also: AWS API Documentation **Request Syntax** response = client.get_buyer_dashboard( dashboardIdentifier='string', embeddingDomains=[ 'string', ] ) Parameters: * **dashboardIdentifier** (*string*) -- **[REQUIRED]** The ARN of the requested dashboard. * **embeddingDomains** (*list*) -- **[REQUIRED]** Fully qualified domains that you add to the allow list for access to the generated URL that is then embedded. You can list up to two domains or subdomains in each API call. To include all subdomains under a specific domain, use "*". For example, "https://*.amazon.com" includes all subdomains under "https://aws.amazon.com". * *(string) --* Return type: dict Returns: **Response Syntax** { 'embedUrl': 'string', 'dashboardIdentifier': 'string', 'embeddingDomains': [ 'string', ] } **Response Structure** * *(dict) --* * **embedUrl** *(string) --* The dashboard's embedding URL. * **dashboardIdentifier** *(string) --* The ARN of the returned dashboard. * **embeddingDomains** *(list) --* The fully qualified domains specified in the request. The domains enable access to the generated URL that is then embedded. You can list up to two domains or subdomains in each API call. To include all subdomains under a specific domain, use "*". For example, "https://*.amazon.com" includes all subdomains under "https://aws.amazon.com". * *(string) --* **Exceptions** * "MarketplaceReportingService.Client.exceptions.InternalServerExc eption" * "MarketplaceReportingService.Client.exceptions.AccessDeniedExcep tion" * "MarketplaceReportingService.Client.exceptions.BadRequestExcepti on" * "MarketplaceReportingService.Client.exceptions.UnauthorizedExcep tion" MarketplaceReportingService / Client / can_paginate can_paginate ************ MarketplaceReportingService.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. MarketplaceReportingService / Client / get_waiter get_waiter ********** MarketplaceReportingService.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" MarketplaceReportingService / Client / close close ***** MarketplaceReportingService.Client.close() Closes underlying endpoint connections.