# Google BigQuery Connection V1 Client - Class AwsAccessRole (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.5.5 1.4.1 1.3.1 1.2.2 1.1.0 1.0.3 Reference documentation and code samples for the Google BigQuery Connection V1 Client class AwsAccessRole.

Authentication method for Amazon Web Services (AWS) that uses Google owned
Google service account to assume into customer's AWS IAM Role.

Generated from protobuf message `google.cloud.bigquery.connection.v1.AwsAccessRole`

## Namespace

Google \\ Cloud \\ BigQuery \\ Connection \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ iam_role_id` | `string` The user's AWS IAM Role that trusts the Google-owned AWS IAM user Connection. |
| `↳ identity` | `string` A unique Google-owned and Google-generated identity for the Connection. This identity will be used to access the user's AWS IAM Role. |

### getIamRoleId

The user's AWS IAM Role that trusts the Google-owned AWS IAM user
Connection.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setIamRoleId

The user's AWS IAM Role that trusts the Google-owned AWS IAM user
Connection.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getIdentity

A unique Google-owned and Google-generated identity for the Connection.

This identity will be used to access the user's AWS IAM Role.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setIdentity

A unique Google-owned and Google-generated identity for the Connection.

This identity will be used to access the user's AWS IAM Role.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |