> ## 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.

# Go: S3BackendAssumeRoleWithWebIdentityConfig

> CDKTN Core API Reference for S3BackendAssumeRoleWithWebIdentityConfig in Go.

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

```go theme={null}
import "github.com/open-constructs/cdk-terrain-go/cdktn"

&cdktn.S3BackendAssumeRoleWithWebIdentityConfig {
	Duration: *string,
	Policy: *string,
	PolicyArns: *[]*string,
	RoleArn: *string,
	SessionName: *string,
	WebIdentityToken: *string,
	WebIdentityTokenFile: *string,
}
```

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

| **Name**                                                                                                                      | **Type**                   | **Description**                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------- | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.duration">Duration</a></code>                         | <code>\*string</code>      | (Optional) The duration individual credentials will be valid.                                                                             |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.policy">Policy</a></code>                             | <code>\*string</code>      | (Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.                                     |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.policyArns">PolicyArns</a></code>                     | <code>\*\[]\*string</code> | (Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed. |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.roleArn">RoleArn</a></code>                           | <code>\*string</code>      | (Required) Amazon Resource Name (ARN) of the IAM Role to assume.                                                                          |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.sessionName">SessionName</a></code>                   | <code>\*string</code>      | (Optional) Session name to use when assuming the role.                                                                                    |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.webIdentityToken">WebIdentityToken</a></code>         | <code>\*string</code>      | (Optional) The value of a web identity token from an OpenID Connect (OIDC) or OAuth provider.                                             |
| <code><a href="#cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.webIdentityTokenFile">WebIdentityTokenFile</a></code> | <code>\*string</code>      | (Optional) File containing a web identity token from an OpenID Connect (OIDC) or OAuth provider.                                          |

***

### `Duration`<sup>Optional</sup> <a name="Duration" id="cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.duration" />

```go theme={null}
Duration *string
```

* *Type:* \*string

(Optional) The duration individual credentials will be valid.

Credentials are automatically renewed up to the maximum defined by the AWS account.
Specified using the format \< hours >h\< minutes >m\< seconds >s with any unit being optional.
For example, an hour and a half can be specified as 1h30m or 90m.
Must be between 15 minutes (15m) and 12 hours (12h).

***

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

```go theme={null}
Policy *string
```

* *Type:* \*string

(Optional) IAM Policy JSON describing further restricting permissions for the IAM Role being assumed.

***

### `PolicyArns`<sup>Optional</sup> <a name="PolicyArns" id="cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.policyArns" />

```go theme={null}
PolicyArns *[]*string
```

* *Type:* \*\[]\*string

(Optional) Set of Amazon Resource Names (ARNs) of IAM Policies describing further restricting permissions for the IAM Role being assumed.

***

### `RoleArn`<sup>Optional</sup> <a name="RoleArn" id="cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.roleArn" />

```go theme={null}
RoleArn *string
```

* *Type:* \*string

(Required) Amazon Resource Name (ARN) of the IAM Role to assume.

Can also be set with the AWS\_ROLE\_ARN environment variable.

***

### `SessionName`<sup>Optional</sup> <a name="SessionName" id="cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.sessionName" />

```go theme={null}
SessionName *string
```

* *Type:* \*string

(Optional) Session name to use when assuming the role.

Can also be set with the AWS\_ROLE\_SESSION\_NAME environment variable.

***

### `WebIdentityToken`<sup>Optional</sup> <a name="WebIdentityToken" id="cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.webIdentityToken" />

```go theme={null}
WebIdentityToken *string
```

* *Type:* \*string

(Optional) The value of a web identity token from an OpenID Connect (OIDC) or OAuth provider.

One of web\_identity\_token or web\_identity\_token\_file is required.

***

### `WebIdentityTokenFile`<sup>Optional</sup> <a name="WebIdentityTokenFile" id="cdktn.S3BackendAssumeRoleWithWebIdentityConfig.property.webIdentityTokenFile" />

```go theme={null}
WebIdentityTokenFile *string
```

* *Type:* \*string

(Optional) File containing a web identity token from an OpenID Connect (OIDC) or OAuth provider.

One of web\_identity\_token\_file or web\_identity\_token is required.
Can also be set with the AWS\_WEB\_IDENTITY\_TOKEN\_FILE environment variable.

***
