QuickSight / Client / update_data_source

update_data_source#

QuickSight.Client.update_data_source(**kwargs)#

Updates a data source.

See also: AWS API Documentation

Request Syntax

response = client.update_data_source(
    AwsAccountId='string',
    DataSourceId='string',
    Name='string',
    DataSourceParameters={
        'AmazonElasticsearchParameters': {
            'Domain': 'string'
        },
        'AthenaParameters': {
            'WorkGroup': 'string',
            'RoleArn': 'string'
        },
        'AuroraParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'AuroraPostgreSqlParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'AwsIotAnalyticsParameters': {
            'DataSetName': 'string'
        },
        'JiraParameters': {
            'SiteBaseUrl': 'string'
        },
        'MariaDbParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'MySqlParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'OracleParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'PostgreSqlParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'PrestoParameters': {
            'Host': 'string',
            'Port': 123,
            'Catalog': 'string'
        },
        'RdsParameters': {
            'InstanceId': 'string',
            'Database': 'string'
        },
        'RedshiftParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string',
            'ClusterId': 'string'
        },
        'S3Parameters': {
            'ManifestFileLocation': {
                'Bucket': 'string',
                'Key': 'string'
            },
            'RoleArn': 'string'
        },
        'ServiceNowParameters': {
            'SiteBaseUrl': 'string'
        },
        'SnowflakeParameters': {
            'Host': 'string',
            'Database': 'string',
            'Warehouse': 'string'
        },
        'SparkParameters': {
            'Host': 'string',
            'Port': 123
        },
        'SqlServerParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'TeradataParameters': {
            'Host': 'string',
            'Port': 123,
            'Database': 'string'
        },
        'TwitterParameters': {
            'Query': 'string',
            'MaxRows': 123
        },
        'AmazonOpenSearchParameters': {
            'Domain': 'string'
        },
        'ExasolParameters': {
            'Host': 'string',
            'Port': 123
        },
        'DatabricksParameters': {
            'Host': 'string',
            'Port': 123,
            'SqlEndpointPath': 'string'
        }
    },
    Credentials={
        'CredentialPair': {
            'Username': 'string',
            'Password': 'string',
            'AlternateDataSourceParameters': [
                {
                    'AmazonElasticsearchParameters': {
                        'Domain': 'string'
                    },
                    'AthenaParameters': {
                        'WorkGroup': 'string',
                        'RoleArn': 'string'
                    },
                    'AuroraParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'AuroraPostgreSqlParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'AwsIotAnalyticsParameters': {
                        'DataSetName': 'string'
                    },
                    'JiraParameters': {
                        'SiteBaseUrl': 'string'
                    },
                    'MariaDbParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'MySqlParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'OracleParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'PostgreSqlParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'PrestoParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Catalog': 'string'
                    },
                    'RdsParameters': {
                        'InstanceId': 'string',
                        'Database': 'string'
                    },
                    'RedshiftParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string',
                        'ClusterId': 'string'
                    },
                    'S3Parameters': {
                        'ManifestFileLocation': {
                            'Bucket': 'string',
                            'Key': 'string'
                        },
                        'RoleArn': 'string'
                    },
                    'ServiceNowParameters': {
                        'SiteBaseUrl': 'string'
                    },
                    'SnowflakeParameters': {
                        'Host': 'string',
                        'Database': 'string',
                        'Warehouse': 'string'
                    },
                    'SparkParameters': {
                        'Host': 'string',
                        'Port': 123
                    },
                    'SqlServerParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'TeradataParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'Database': 'string'
                    },
                    'TwitterParameters': {
                        'Query': 'string',
                        'MaxRows': 123
                    },
                    'AmazonOpenSearchParameters': {
                        'Domain': 'string'
                    },
                    'ExasolParameters': {
                        'Host': 'string',
                        'Port': 123
                    },
                    'DatabricksParameters': {
                        'Host': 'string',
                        'Port': 123,
                        'SqlEndpointPath': 'string'
                    }
                },
            ]
        },
        'CopySourceArn': 'string',
        'SecretArn': 'string'
    },
    VpcConnectionProperties={
        'VpcConnectionArn': 'string'
    },
    SslProperties={
        'DisableSsl': True|False
    }
)
Parameters:
  • AwsAccountId (string) –

    [REQUIRED]

    The Amazon Web Services account ID.

  • DataSourceId (string) –

    [REQUIRED]

    The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

  • Name (string) –

    [REQUIRED]

    A display name for the data source.

  • DataSourceParameters (dict) –

    The parameters that Amazon QuickSight uses to connect to your underlying source.

    • AmazonElasticsearchParameters (dict) –

      The parameters for OpenSearch.

      • Domain (string) – [REQUIRED]

        The OpenSearch domain.

    • AthenaParameters (dict) –

      The parameters for Amazon Athena.

      • WorkGroup (string) –

        The workgroup that Amazon Athena uses.

      • RoleArn (string) –

        Use the RoleArn structure to override an account-wide role for a specific Athena data source. For example, say an account administrator has turned off all Athena access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow Athena access for the single Athena data source that is specified in the structure, even if the account-wide role forbidding Athena access is still active.

    • AuroraParameters (dict) –

      The parameters for Amazon Aurora MySQL.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • AuroraPostgreSqlParameters (dict) –

      The parameters for Amazon Aurora.

      • Host (string) – [REQUIRED]

        The Amazon Aurora PostgreSQL-Compatible host to connect to.

      • Port (integer) – [REQUIRED]

        The port that Amazon Aurora PostgreSQL is listening on.

      • Database (string) – [REQUIRED]

        The Amazon Aurora PostgreSQL database to connect to.

    • AwsIotAnalyticsParameters (dict) –

      The parameters for IoT Analytics.

      • DataSetName (string) – [REQUIRED]

        Dataset name.

    • JiraParameters (dict) –

      The parameters for Jira.

      • SiteBaseUrl (string) – [REQUIRED]

        The base URL of the Jira site.

    • MariaDbParameters (dict) –

      The parameters for MariaDB.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • MySqlParameters (dict) –

      The parameters for MySQL.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • OracleParameters (dict) –

      The parameters for Oracle.

      • Host (string) – [REQUIRED]

        An Oracle host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • PostgreSqlParameters (dict) –

      The parameters for PostgreSQL.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • PrestoParameters (dict) –

      The parameters for Presto.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Catalog (string) – [REQUIRED]

        Catalog.

    • RdsParameters (dict) –

      The parameters for Amazon RDS.

      • InstanceId (string) – [REQUIRED]

        Instance ID.

      • Database (string) – [REQUIRED]

        Database.

    • RedshiftParameters (dict) –

      The parameters for Amazon Redshift.

      • Host (string) –

        Host. This field can be blank if ClusterId is provided.

      • Port (integer) –

        Port. This field can be blank if the ClusterId is provided.

      • Database (string) – [REQUIRED]

        Database.

      • ClusterId (string) –

        Cluster ID. This field can be blank if the Host and Port are provided.

    • S3Parameters (dict) –

      The parameters for S3.

      • ManifestFileLocation (dict) – [REQUIRED]

        Location of the Amazon S3 manifest file. This is NULL if the manifest file was uploaded into Amazon QuickSight.

        • Bucket (string) – [REQUIRED]

          Amazon S3 bucket.

        • Key (string) – [REQUIRED]

          Amazon S3 key that identifies an object.

      • RoleArn (string) –

        Use the RoleArn structure to override an account-wide role for a specific S3 data source. For example, say an account administrator has turned off all S3 access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow S3 access for the single S3 data source that is specified in the structure, even if the account-wide role forbidding S3 access is still active.

    • ServiceNowParameters (dict) –

      The parameters for ServiceNow.

      • SiteBaseUrl (string) – [REQUIRED]

        URL of the base site.

    • SnowflakeParameters (dict) –

      The parameters for Snowflake.

      • Host (string) – [REQUIRED]

        Host.

      • Database (string) – [REQUIRED]

        Database.

      • Warehouse (string) – [REQUIRED]

        Warehouse.

    • SparkParameters (dict) –

      The parameters for Spark.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

    • SqlServerParameters (dict) –

      The parameters for SQL Server.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • TeradataParameters (dict) –

      The parameters for Teradata.

      • Host (string) – [REQUIRED]

        Host.

      • Port (integer) – [REQUIRED]

        Port.

      • Database (string) – [REQUIRED]

        Database.

    • TwitterParameters (dict) –

      The parameters for Twitter.

      • Query (string) – [REQUIRED]

        Twitter query string.

      • MaxRows (integer) – [REQUIRED]

        Maximum number of rows to query Twitter.

    • AmazonOpenSearchParameters (dict) –

      The parameters for OpenSearch.

      • Domain (string) – [REQUIRED]

        The OpenSearch domain.

    • ExasolParameters (dict) –

      The parameters for Exasol.

      • Host (string) – [REQUIRED]

        The hostname or IP address of the Exasol data source.

      • Port (integer) – [REQUIRED]

        The port for the Exasol data source.

    • DatabricksParameters (dict) –

      The required parameters that are needed to connect to a Databricks data source.

      • Host (string) – [REQUIRED]

        The host name of the Databricks data source.

      • Port (integer) – [REQUIRED]

        The port for the Databricks data source.

      • SqlEndpointPath (string) – [REQUIRED]

        The HTTP path of the Databricks data source.

  • Credentials (dict) –

    The credentials that Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported.

    • CredentialPair (dict) –

      Credential pair. For more information, see CredentialPair .

      • Username (string) – [REQUIRED]

        User name.

      • Password (string) – [REQUIRED]

        Password.

      • AlternateDataSourceParameters (list) –

        A set of alternate data source parameters that you want to share for these credentials. The credentials are applied in tandem with the data source parameters when you copy a data source by using a create or update request. The API operation compares the DataSourceParameters structure that’s in the request with the structures in the AlternateDataSourceParameters allow list. If the structures are an exact match, the request is allowed to use the new data source with the existing credentials. If the AlternateDataSourceParameters list is null, the DataSourceParameters originally used with these Credentials is automatically allowed.

        • (dict) –

          The parameters that Amazon QuickSight uses to connect to your underlying data source. This is a variant type structure. For this structure to be valid, only one of the attributes can be non-null.

          • AmazonElasticsearchParameters (dict) –

            The parameters for OpenSearch.

            • Domain (string) – [REQUIRED]

              The OpenSearch domain.

          • AthenaParameters (dict) –

            The parameters for Amazon Athena.

            • WorkGroup (string) –

              The workgroup that Amazon Athena uses.

            • RoleArn (string) –

              Use the RoleArn structure to override an account-wide role for a specific Athena data source. For example, say an account administrator has turned off all Athena access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow Athena access for the single Athena data source that is specified in the structure, even if the account-wide role forbidding Athena access is still active.

          • AuroraParameters (dict) –

            The parameters for Amazon Aurora MySQL.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • AuroraPostgreSqlParameters (dict) –

            The parameters for Amazon Aurora.

            • Host (string) – [REQUIRED]

              The Amazon Aurora PostgreSQL-Compatible host to connect to.

            • Port (integer) – [REQUIRED]

              The port that Amazon Aurora PostgreSQL is listening on.

            • Database (string) – [REQUIRED]

              The Amazon Aurora PostgreSQL database to connect to.

          • AwsIotAnalyticsParameters (dict) –

            The parameters for IoT Analytics.

            • DataSetName (string) – [REQUIRED]

              Dataset name.

          • JiraParameters (dict) –

            The parameters for Jira.

            • SiteBaseUrl (string) – [REQUIRED]

              The base URL of the Jira site.

          • MariaDbParameters (dict) –

            The parameters for MariaDB.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • MySqlParameters (dict) –

            The parameters for MySQL.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • OracleParameters (dict) –

            The parameters for Oracle.

            • Host (string) – [REQUIRED]

              An Oracle host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • PostgreSqlParameters (dict) –

            The parameters for PostgreSQL.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • PrestoParameters (dict) –

            The parameters for Presto.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Catalog (string) – [REQUIRED]

              Catalog.

          • RdsParameters (dict) –

            The parameters for Amazon RDS.

            • InstanceId (string) – [REQUIRED]

              Instance ID.

            • Database (string) – [REQUIRED]

              Database.

          • RedshiftParameters (dict) –

            The parameters for Amazon Redshift.

            • Host (string) –

              Host. This field can be blank if ClusterId is provided.

            • Port (integer) –

              Port. This field can be blank if the ClusterId is provided.

            • Database (string) – [REQUIRED]

              Database.

            • ClusterId (string) –

              Cluster ID. This field can be blank if the Host and Port are provided.

          • S3Parameters (dict) –

            The parameters for S3.

            • ManifestFileLocation (dict) – [REQUIRED]

              Location of the Amazon S3 manifest file. This is NULL if the manifest file was uploaded into Amazon QuickSight.

              • Bucket (string) – [REQUIRED]

                Amazon S3 bucket.

              • Key (string) – [REQUIRED]

                Amazon S3 key that identifies an object.

            • RoleArn (string) –

              Use the RoleArn structure to override an account-wide role for a specific S3 data source. For example, say an account administrator has turned off all S3 access with an account-wide role. The administrator can then use RoleArn to bypass the account-wide role and allow S3 access for the single S3 data source that is specified in the structure, even if the account-wide role forbidding S3 access is still active.

          • ServiceNowParameters (dict) –

            The parameters for ServiceNow.

            • SiteBaseUrl (string) – [REQUIRED]

              URL of the base site.

          • SnowflakeParameters (dict) –

            The parameters for Snowflake.

            • Host (string) – [REQUIRED]

              Host.

            • Database (string) – [REQUIRED]

              Database.

            • Warehouse (string) – [REQUIRED]

              Warehouse.

          • SparkParameters (dict) –

            The parameters for Spark.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

          • SqlServerParameters (dict) –

            The parameters for SQL Server.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • TeradataParameters (dict) –

            The parameters for Teradata.

            • Host (string) – [REQUIRED]

              Host.

            • Port (integer) – [REQUIRED]

              Port.

            • Database (string) – [REQUIRED]

              Database.

          • TwitterParameters (dict) –

            The parameters for Twitter.

            • Query (string) – [REQUIRED]

              Twitter query string.

            • MaxRows (integer) – [REQUIRED]

              Maximum number of rows to query Twitter.

          • AmazonOpenSearchParameters (dict) –

            The parameters for OpenSearch.

            • Domain (string) – [REQUIRED]

              The OpenSearch domain.

          • ExasolParameters (dict) –

            The parameters for Exasol.

            • Host (string) – [REQUIRED]

              The hostname or IP address of the Exasol data source.

            • Port (integer) – [REQUIRED]

              The port for the Exasol data source.

          • DatabricksParameters (dict) –

            The required parameters that are needed to connect to a Databricks data source.

            • Host (string) – [REQUIRED]

              The host name of the Databricks data source.

            • Port (integer) – [REQUIRED]

              The port for the Databricks data source.

            • SqlEndpointPath (string) – [REQUIRED]

              The HTTP path of the Databricks data source.

    • CopySourceArn (string) –

      The Amazon Resource Name (ARN) of a data source that has the credential pair that you want to use. When CopySourceArn is not null, the credential pair from the data source in the ARN is used as the credentials for the DataSourceCredentials structure.

    • SecretArn (string) –

      The Amazon Resource Name (ARN) of the secret associated with the data source in Amazon Secrets Manager.

  • VpcConnectionProperties (dict) –

    Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source.

    • VpcConnectionArn (string) – [REQUIRED]

      The Amazon Resource Name (ARN) for the VPC connection.

  • SslProperties (dict) –

    Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source.

    • DisableSsl (boolean) –

      A Boolean option to control whether SSL should be disabled.

Return type:

dict

Returns:

Response Syntax

{
    'Arn': 'string',
    'DataSourceId': 'string',
    'UpdateStatus': 'CREATION_IN_PROGRESS'|'CREATION_SUCCESSFUL'|'CREATION_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_SUCCESSFUL'|'UPDATE_FAILED'|'DELETED',
    'RequestId': 'string',
    'Status': 123
}

Response Structure

  • (dict) –

    • Arn (string) –

      The Amazon Resource Name (ARN) of the data source.

    • DataSourceId (string) –

      The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.

    • UpdateStatus (string) –

      The update status of the data source’s last update.

    • RequestId (string) –

      The Amazon Web Services request ID for this operation.

    • Status (integer) –

      The HTTP status of the request.

Exceptions

  • QuickSight.Client.exceptions.AccessDeniedException

  • QuickSight.Client.exceptions.ConflictException

  • QuickSight.Client.exceptions.InvalidParameterValueException

  • QuickSight.Client.exceptions.ThrottlingException

  • QuickSight.Client.exceptions.ResourceNotFoundException

  • QuickSight.Client.exceptions.InternalFailureException