> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Typescript: CosBackendAssumeRole

> CDKTN Core API Reference for CosBackendAssumeRole in Typescript.

## Initializer <a name="Initializer" id="cdktn.CosBackendAssumeRole.Initializer" />

```typescript theme={null}
import { CosBackendAssumeRole } from 'cdktn'

const cosBackendAssumeRole: CosBackendAssumeRole = { ... }
```

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                                        | **Type**            | **Description**                                                         |
| ----------------------------------------------------------------------------------------------- | ------------------- | ----------------------------------------------------------------------- |
| <code><a href="#cdktn.CosBackendAssumeRole.property.roleArn">roleArn</a></code>                 | <code>string</code> | (Required) The ARN of the role to assume.                               |
| <code><a href="#cdktn.CosBackendAssumeRole.property.sessionDuration">sessionDuration</a></code> | <code>number</code> | (Required) The duration of the session when making the AssumeRole call. |
| <code><a href="#cdktn.CosBackendAssumeRole.property.sessionName">sessionName</a></code>         | <code>string</code> | (Required) The session name to use when making the AssumeRole call.     |
| <code><a href="#cdktn.CosBackendAssumeRole.property.policy">policy</a></code>                   | <code>any</code>    | (Optional) A more restrictive policy when making the AssumeRole call.   |

***

### `roleArn`<sup>Required</sup> <a name="roleArn" id="cdktn.CosBackendAssumeRole.property.roleArn" />

```typescript theme={null}
public readonly roleArn: string;
```

* *Type:* string

(Required) The ARN of the role to assume.

It can be sourced from the TENCENTCLOUD\_ASSUME\_ROLE\_ARN.

***

### `sessionDuration`<sup>Required</sup> <a name="sessionDuration" id="cdktn.CosBackendAssumeRole.property.sessionDuration" />

```typescript theme={null}
public readonly sessionDuration: number;
```

* *Type:* number

(Required) The duration of the session when making the AssumeRole call.

Its value ranges from 0 to 43200(seconds), and default is 7200 seconds.
It can be sourced from the TENCENTCLOUD\_ASSUME\_ROLE\_SESSION\_DURATION.

***

### `sessionName`<sup>Required</sup> <a name="sessionName" id="cdktn.CosBackendAssumeRole.property.sessionName" />

```typescript theme={null}
public readonly sessionName: string;
```

* *Type:* string

(Required) The session name to use when making the AssumeRole call.

It can be sourced from the TENCENTCLOUD\_ASSUME\_ROLE\_SESSION\_NAME.

***

### `policy`<sup>Optional</sup> <a name="policy" id="cdktn.CosBackendAssumeRole.property.policy" />

```typescript theme={null}
public readonly policy: any;
```

* *Type:* any

(Optional) A more restrictive policy when making the AssumeRole call.

Its content must not contains principal elements.
Please refer to [policies syntax logic](https://www.tencentcloud.com/document/product/598/10603).

***
