[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google BigQuery Connection V1 Client - Class AwsCrossAccountRole (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-bigquery-connection/latest/V1.AwsCrossAccountRole)\n- [2.0.4](/php/docs/reference/cloud-bigquery-connection/2.0.4/V1.AwsCrossAccountRole)\n- [1.5.5](/php/docs/reference/cloud-bigquery-connection/1.5.5/V1.AwsCrossAccountRole)\n- [1.4.1](/php/docs/reference/cloud-bigquery-connection/1.4.1/V1.AwsCrossAccountRole)\n- [1.3.1](/php/docs/reference/cloud-bigquery-connection/1.3.1/V1.AwsCrossAccountRole)\n- [1.2.2](/php/docs/reference/cloud-bigquery-connection/1.2.2/V1.AwsCrossAccountRole)\n- [1.1.0](/php/docs/reference/cloud-bigquery-connection/1.1.0/V1.AwsCrossAccountRole)\n- [1.0.3](/php/docs/reference/cloud-bigquery-connection/1.0.3/V1.AwsCrossAccountRole) \nReference documentation and code samples for the Google BigQuery Connection V1 Client class AwsCrossAccountRole.\n\nAuthentication method for Amazon Web Services (AWS) that uses Google owned\nAWS IAM user's access key to assume into customer's AWS IAM Role.\n\nGenerated from protobuf message `google.cloud.bigquery.connection.v1.AwsCrossAccountRole`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BigQuery \\\\ Connection \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getIamRoleId\n\nThe user's AWS IAM Role that trusts the Google-owned AWS IAM user\nConnection.\n\n### setIamRoleId\n\nThe user's AWS IAM Role that trusts the Google-owned AWS IAM user\nConnection.\n\n### getIamUserId\n\nOutput only. Google-owned AWS IAM User for a Connection.\n\n### setIamUserId\n\nOutput only. Google-owned AWS IAM User for a Connection.\n\n### getExternalId\n\nOutput only. A Google-generated id for representing Connection's identity\nin AWS. External Id is also used for preventing the Confused Deputy\nProblem. See\n\u003chttps://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html\u003e\n\n### setExternalId\n\nOutput only. A Google-generated id for representing Connection's identity\nin AWS. External Id is also used for preventing the Confused Deputy\nProblem. See\n\u003chttps://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html\u003e"]]