AppMonetization / Client / update_app

update_app

AppMonetization.Client.update_app(**kwargs)

Updates an existing app. This operation is idempotent.

See also: AWS API Documentation

Request Syntax

response = client.update_app(
    appId='string',
    name='string',
    description='string',
    identifier='string',
    scope='sandbox'|'live',
    costTracking={
        'roleArn': 'string'
    }
)
Parameters:
  • appId (string) –

    [REQUIRED]

    The ID of the app to update. You can identify the app by either its ID or its Amazon Resource Name (ARN). If you provide both, they must refer to the same app.

  • name (string) – A human-readable display name for the app.

  • description (string) – The new description. An empty string clears it; omitting the member keeps the current one.

  • identifier (string) – The Amazon Resource Name (ARN) of the app. You can identify the app by either its ID or its ARN. If you provide both, they must refer to the same app. A sandbox ARN names the app’s sandbox; if you also send scope, the two must name the same environment.

  • scope (string) – The environment to act on: live or sandbox. Optional. You can name the environment with this member, with a sandbox resource ARN, or both; if you send both they must name the same environment, or the request is rejected.

  • costTracking (dict) –

    Optional cost-tracking configuration: the IAM role AWS App Monetization uses to track this app’s AWS costs. Passing a role also requires permission for iam:PassRole on it. You can send it with or without a new name or description.

    • roleArn (string) – [REQUIRED]

      The ARN of an IAM role that AWS App Monetization assumes in your account to create and manage the AWS Data Exports export for this app. The role must be in your account and partition, and its name (after any path) must start with AppMonetizationCostTracking. You need iam:PassRole on it. Its trust policy must allow appmonetization.amazonaws.com to assume it, with conditions that pin aws:SourceAccount to your account ID and aws:SourceArn to your account’s apps (arn:aws:appmonetization:::apps/*). The setup runs in the background after the call returns, and cost data starts arriving within 24-48 hours. Calling UpdateApp with a role again re-runs the setup. A CreateApp retry with the same clientToken must carry the same role: a different role, or a role added or dropped, fails with IdempotencyConflictException.

Return type:

dict

Returns:

Response Syntax

{
    'app': {
        'appId': 'string',
        'name': 'string',
        'description': 'string',
        'status': 'ACTIVE'|'DELETED',
        'createdAt': datetime(2015, 1, 1),
        'arn': 'string'
    }
}

Response Structure

  • (dict) –

    Output for UpdateApp.

    • app (dict) –

      The updated app.

      • appId (string) –

        The service-assigned identifier for the app.

      • name (string) –

        A human-readable display name for the app.

      • description (string) –

        A longer description of what the app does.

      • status (string) –

        The lifecycle status of the app.

      • createdAt (datetime) –

        The time the app was created.

      • arn (string) –

        The resource ARN of this app.

Exceptions