Class CfnTaskDefinition.AuthorizationConfigProperty
The authorization configuration details for the Amazon EFS file system.
Inheritance
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class AuthorizationConfigProperty : Object, CfnTaskDefinition.IAuthorizationConfigProperty
Syntax (vb)
Public Class AuthorizationConfigProperty
Inherits Object
Implements CfnTaskDefinition.IAuthorizationConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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"
};
Synopsis
Constructors
AuthorizationConfigProperty() |
Properties
AccessPointId | The Amazon EFS access point ID to use. |
Iam | Determines whether to use the Amazon ECS task role defined in a task definition when mounting the Amazon EFS file system. |
Constructors
AuthorizationConfigProperty()
public AuthorizationConfigProperty()
Properties
AccessPointId
The Amazon EFS access point ID to use.
public string AccessPointId { get; set; }
Property Value
System.String
Remarks
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 in the Amazon Elastic File System User Guide .
Iam
Determines whether to use the Amazon ECS task role defined in a task definition when mounting the Amazon EFS file system.
public string Iam { get; set; }
Property Value
System.String
Remarks
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 in the Amazon Elastic Container Service Developer Guide .