# AuthorizationConfigProperty

The authorization configuration details for the Amazon EFS file system.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const authorizationConfigProperty: ecs.CfnTaskDefinition.AuthorizationConfigProperty = {
  accessPointId: 'accessPointId',
  iam: 'iam',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

authorization_config_property = ecs.CfnTaskDefinition.AuthorizationConfigProperty(
    access_point_id="accessPointId",
    iam="iam"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

AuthorizationConfigProperty authorizationConfigProperty = AuthorizationConfigProperty.builder()
        .accessPointId("accessPointId")
        .iam("iam")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var authorizationConfigProperty = new AuthorizationConfigProperty {
    AccessPointId = "accessPointId",
    Iam = "iam"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

authorizationConfigProperty := &AuthorizationConfigProperty{
	AccessPointId: jsii.String("accessPointId"),
	Iam: jsii.String("iam"),
}
```

## Properties

- `accessPointId`: string — The Amazon EFS access point ID to use.

  If an access point is specified, the root directory value specified in the `EFSVolumeConfiguration` must either be omitted or set to `/` which will enforce the path set on the EFS access point. If an access point is used, transit encryption must be on in the `EFSVolumeConfiguration` . For more information, see [Working with Amazon EFS access points](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) in the *Amazon Elastic File System User Guide* .

- `iam`: string — Determines whether to use the Amazon ECS task role defined in a task definition when mounting the Amazon EFS file system.

  If it is turned on, transit encryption must be turned on in the `EFSVolumeConfiguration` . If this parameter is omitted, the default value of `DISABLED` is used. For more information, see [Using Amazon EFS access points](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html#efs-volume-accesspoints) in the *Amazon Elastic Container Service Developer Guide* .
