Documentation ¶
Index ¶
- func AccessPoint_IsConstruct(x interface{}) *bool
- func AccessPoint_IsResource(construct awscdk.IConstruct) *bool
- func CfnAccessPoint_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAccessPoint_IsCfnElement(x interface{}) *bool
- func CfnAccessPoint_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnAccessPoint_IsConstruct(x interface{}) *bool
- func CfnFileSystem_CFN_RESOURCE_TYPE_NAME() *string
- func CfnFileSystem_IsCfnElement(x interface{}) *bool
- func CfnFileSystem_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnFileSystem_IsConstruct(x interface{}) *bool
- func CfnMountTarget_CFN_RESOURCE_TYPE_NAME() *string
- func CfnMountTarget_IsCfnElement(x interface{}) *bool
- func CfnMountTarget_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnMountTarget_IsConstruct(x interface{}) *bool
- func FileSystem_DEFAULT_PORT() *float64
- func FileSystem_IsConstruct(x interface{}) *bool
- func FileSystem_IsResource(construct awscdk.IConstruct) *bool
- func NewAccessPoint_Override(a AccessPoint, scope constructs.Construct, id *string, props *AccessPointProps)
- func NewCfnAccessPoint_Override(c CfnAccessPoint, scope awscdk.Construct, id *string, ...)
- func NewCfnFileSystem_Override(c CfnFileSystem, scope awscdk.Construct, id *string, props *CfnFileSystemProps)
- func NewCfnMountTarget_Override(c CfnMountTarget, scope awscdk.Construct, id *string, ...)
- func NewFileSystem_Override(f FileSystem, scope constructs.Construct, id *string, props *FileSystemProps)
- type AccessPoint
- type AccessPointAttributes
- type AccessPointOptions
- type AccessPointProps
- type Acl
- type CfnAccessPoint
- type CfnAccessPointProps
- type CfnAccessPoint_AccessPointTagProperty
- type CfnAccessPoint_CreationInfoProperty
- type CfnAccessPoint_PosixUserProperty
- type CfnAccessPoint_RootDirectoryProperty
- type CfnFileSystem
- type CfnFileSystemProps
- type CfnFileSystem_BackupPolicyProperty
- type CfnFileSystem_ElasticFileSystemTagProperty
- type CfnFileSystem_LifecyclePolicyProperty
- type CfnMountTarget
- type CfnMountTargetProps
- type FileSystem
- type FileSystemAttributes
- type FileSystemProps
- type IAccessPoint
- type IFileSystem
- type LifecyclePolicy
- type OutOfInfrequentAccessPolicy
- type PerformanceMode
- type PosixUser
- type ThroughputMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessPoint_IsConstruct ¶
func AccessPoint_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func AccessPoint_IsResource ¶
func AccessPoint_IsResource(construct awscdk.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func CfnAccessPoint_CFN_RESOURCE_TYPE_NAME ¶
func CfnAccessPoint_CFN_RESOURCE_TYPE_NAME() *string
func CfnAccessPoint_IsCfnElement ¶
func CfnAccessPoint_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnAccessPoint_IsCfnResource ¶
func CfnAccessPoint_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnAccessPoint_IsConstruct ¶
func CfnAccessPoint_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnFileSystem_CFN_RESOURCE_TYPE_NAME ¶
func CfnFileSystem_CFN_RESOURCE_TYPE_NAME() *string
func CfnFileSystem_IsCfnElement ¶
func CfnFileSystem_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnFileSystem_IsCfnResource ¶
func CfnFileSystem_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnFileSystem_IsConstruct ¶
func CfnFileSystem_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func CfnMountTarget_CFN_RESOURCE_TYPE_NAME ¶
func CfnMountTarget_CFN_RESOURCE_TYPE_NAME() *string
func CfnMountTarget_IsCfnElement ¶
func CfnMountTarget_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element. Experimental.
func CfnMountTarget_IsCfnResource ¶
func CfnMountTarget_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource. Experimental.
func CfnMountTarget_IsConstruct ¶
func CfnMountTarget_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func FileSystem_DEFAULT_PORT ¶
func FileSystem_DEFAULT_PORT() *float64
func FileSystem_IsConstruct ¶
func FileSystem_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct. Experimental.
func FileSystem_IsResource ¶
func FileSystem_IsResource(construct awscdk.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
func NewAccessPoint_Override ¶
func NewAccessPoint_Override(a AccessPoint, scope constructs.Construct, id *string, props *AccessPointProps)
Experimental.
func NewCfnAccessPoint_Override ¶
func NewCfnAccessPoint_Override(c CfnAccessPoint, scope awscdk.Construct, id *string, props *CfnAccessPointProps)
Create a new `AWS::EFS::AccessPoint`.
func NewCfnFileSystem_Override ¶
func NewCfnFileSystem_Override(c CfnFileSystem, scope awscdk.Construct, id *string, props *CfnFileSystemProps)
Create a new `AWS::EFS::FileSystem`.
func NewCfnMountTarget_Override ¶
func NewCfnMountTarget_Override(c CfnMountTarget, scope awscdk.Construct, id *string, props *CfnMountTargetProps)
Create a new `AWS::EFS::MountTarget`.
func NewFileSystem_Override ¶
func NewFileSystem_Override(f FileSystem, scope constructs.Construct, id *string, props *FileSystemProps)
Constructor for creating a new EFS FileSystem. Experimental.
Types ¶
type AccessPoint ¶
type AccessPoint interface { awscdk.Resource IAccessPoint AccessPointArn() *string AccessPointId() *string Env() *awscdk.ResourceEnvironment FileSystem() IFileSystem Node() awscdk.ConstructNode PhysicalName() *string Stack() awscdk.Stack ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string Prepare() Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string }
Represents the AccessPoint.
TODO: EXAMPLE
Experimental.
func NewAccessPoint ¶
func NewAccessPoint(scope constructs.Construct, id *string, props *AccessPointProps) AccessPoint
Experimental.
type AccessPointAttributes ¶
type AccessPointAttributes struct { // The ARN of the AccessPoint One of this, or {@link accessPointId} is required. // Experimental. AccessPointArn *string `json:"accessPointArn" yaml:"accessPointArn"` // The ID of the AccessPoint One of this, or {@link accessPointArn} is required. // Experimental. AccessPointId *string `json:"accessPointId" yaml:"accessPointId"` // The EFS file system. // Experimental. FileSystem IFileSystem `json:"fileSystem" yaml:"fileSystem"` }
Attributes that can be specified when importing an AccessPoint.
TODO: EXAMPLE
Experimental.
type AccessPointOptions ¶
type AccessPointOptions struct { // Specifies the POSIX IDs and permissions to apply when creating the access point's root directory. // // If the // root directory specified by `path` does not exist, EFS creates the root directory and applies the // permissions specified here. If the specified `path` does not exist, you must specify `createAcl`. // Experimental. CreateAcl *Acl `json:"createAcl" yaml:"createAcl"` // Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. // Experimental. Path *string `json:"path" yaml:"path"` // The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point. // // Specify this to enforce a user identity using an access point. // See: - [Enforcing a User Identity Using an Access Point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) // // Experimental. PosixUser *PosixUser `json:"posixUser" yaml:"posixUser"` }
Options to create an AccessPoint.
TODO: EXAMPLE
Experimental.
type AccessPointProps ¶
type AccessPointProps struct { // Specifies the POSIX IDs and permissions to apply when creating the access point's root directory. // // If the // root directory specified by `path` does not exist, EFS creates the root directory and applies the // permissions specified here. If the specified `path` does not exist, you must specify `createAcl`. // Experimental. CreateAcl *Acl `json:"createAcl" yaml:"createAcl"` // Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. // Experimental. Path *string `json:"path" yaml:"path"` // The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point. // // Specify this to enforce a user identity using an access point. // See: - [Enforcing a User Identity Using an Access Point](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) // // Experimental. PosixUser *PosixUser `json:"posixUser" yaml:"posixUser"` // The efs filesystem. // Experimental. FileSystem IFileSystem `json:"fileSystem" yaml:"fileSystem"` }
Properties for the AccessPoint.
TODO: EXAMPLE
Experimental.
type Acl ¶
type Acl struct { // Specifies the POSIX group ID to apply to the RootDirectory. // // Accepts values from 0 to 2^32 (4294967295). // Experimental. OwnerGid *string `json:"ownerGid" yaml:"ownerGid"` // Specifies the POSIX user ID to apply to the RootDirectory. // // Accepts values from 0 to 2^32 (4294967295). // Experimental. OwnerUid *string `json:"ownerUid" yaml:"ownerUid"` // Specifies the POSIX permissions to apply to the RootDirectory, in the format of an octal number representing the file's mode bits. // Experimental. Permissions *string `json:"permissions" yaml:"permissions"` }
Permissions as POSIX ACL.
TODO: EXAMPLE
Experimental.
type CfnAccessPoint ¶
type CfnAccessPoint interface { awscdk.CfnResource awscdk.IInspectable AccessPointTags() interface{} SetAccessPointTags(val interface{}) AttrAccessPointId() *string AttrArn() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string ClientToken() *string SetClientToken(val *string) CreationStack() *[]*string FileSystemId() *string SetFileSystemId(val *string) LogicalId() *string Node() awscdk.ConstructNode PosixUser() interface{} SetPosixUser(val interface{}) Ref() *string RootDirectory() interface{} SetRootDirectory(val interface{}) Stack() awscdk.Stack UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::EFS::AccessPoint`.
The `AWS::EFS::AccessPoint` resource creates an EFS access point. An access point is an application-specific view into an EFS file system that applies an operating system user and group, and a file system path, to any file system request made through the access point. The operating system user and group override any identity information provided by the NFS client. The file system path is exposed as the access point's root directory. Applications using the access point can only access data in its own directory and below. To learn more, see [Mounting a file system using EFS access points](https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html) .
This operation requires permissions for the `elasticfilesystem:CreateAccessPoint` action.
TODO: EXAMPLE
func NewCfnAccessPoint ¶
func NewCfnAccessPoint(scope awscdk.Construct, id *string, props *CfnAccessPointProps) CfnAccessPoint
Create a new `AWS::EFS::AccessPoint`.
type CfnAccessPointProps ¶
type CfnAccessPointProps struct { // The ID of the EFS file system that the access point applies to. // // Accepts only the ID format for input when specifying a file system, for example `fs-0123456789abcedf2` . FileSystemId *string `json:"fileSystemId" yaml:"fileSystemId"` // An array of key-value pairs to apply to this resource. // // For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) . AccessPointTags interface{} `json:"accessPointTags" yaml:"accessPointTags"` // The opaque string specified in the request to ensure idempotent creation. ClientToken *string `json:"clientToken" yaml:"clientToken"` // The full POSIX identity, including the user ID, group ID, and secondary group IDs on the access point that is used for all file operations by NFS clients using the access point. PosixUser interface{} `json:"posixUser" yaml:"posixUser"` // The directory on the Amazon EFS file system that the access point exposes as the root directory to NFS clients using the access point. RootDirectory interface{} `json:"rootDirectory" yaml:"rootDirectory"` }
Properties for defining a `CfnAccessPoint`.
TODO: EXAMPLE
type CfnAccessPoint_AccessPointTagProperty ¶
type CfnAccessPoint_AccessPointTagProperty struct { // The tag key (String). // // The key can't start with `aws:` . Key *string `json:"key" yaml:"key"` // The value of the tag key. Value *string `json:"value" yaml:"value"` }
A tag is a key-value pair attached to a file system.
Allowed characters in the `Key` and `Value` properties are letters, white space, and numbers that can be represented in UTF-8, and the following characters: `+ - = . _ : /`
TODO: EXAMPLE
type CfnAccessPoint_CreationInfoProperty ¶
type CfnAccessPoint_CreationInfoProperty struct { // Specifies the POSIX group ID to apply to the `RootDirectory` . // // Accepts values from 0 to 2^32 (4294967295). OwnerGid *string `json:"ownerGid" yaml:"ownerGid"` // Specifies the POSIX user ID to apply to the `RootDirectory` . // // Accepts values from 0 to 2^32 (4294967295). OwnerUid *string `json:"ownerUid" yaml:"ownerUid"` // Specifies the POSIX permissions to apply to the `RootDirectory` , in the format of an octal number representing the file's mode bits. Permissions *string `json:"permissions" yaml:"permissions"` }
Required if the `RootDirectory` > `Path` specified does not exist.
Specifies the POSIX IDs and permissions to apply to the access point's `RootDirectory` > `Path` . If the access point root directory does not exist, EFS creates it with these settings when a client connects to the access point. When specifying `CreationInfo` , you must include values for all properties.
Amazon EFS creates a root directory only if you have provided the CreationInfo: OwnUid, OwnGID, and permissions for the directory. If you do not provide this information, Amazon EFS does not create the root directory. If the root directory does not exist, attempts to mount using the access point will fail.
> If you do not provide `CreationInfo` and the specified `RootDirectory` does not exist, attempts to mount the file system using the access point will fail.
TODO: EXAMPLE
type CfnAccessPoint_PosixUserProperty ¶
type CfnAccessPoint_PosixUserProperty struct { // The POSIX group ID used for all file system operations using this access point. Gid *string `json:"gid" yaml:"gid"` // The POSIX user ID used for all file system operations using this access point. Uid *string `json:"uid" yaml:"uid"` // Secondary POSIX group IDs used for all file system operations using this access point. SecondaryGids *[]*string `json:"secondaryGids" yaml:"secondaryGids"` }
The full POSIX identity, including the user ID, group ID, and any secondary group IDs, on the access point that is used for all file system operations performed by NFS clients using the access point.
TODO: EXAMPLE
type CfnAccessPoint_RootDirectoryProperty ¶
type CfnAccessPoint_RootDirectoryProperty struct { // (Optional) Specifies the POSIX IDs and permissions to apply to the access point's `RootDirectory` . // // If the `RootDirectory` > `Path` specified does not exist, EFS creates the root directory using the `CreationInfo` settings when a client connects to an access point. When specifying the `CreationInfo` , you must provide values for all properties. // // > If you do not provide `CreationInfo` and the specified `RootDirectory` > `Path` does not exist, attempts to mount the file system using the access point will fail. CreationInfo interface{} `json:"creationInfo" yaml:"creationInfo"` // Specifies the path on the EFS file system to expose as the root directory to NFS clients using the access point to access the EFS file system. // // A path can have up to four subdirectories. If the specified path does not exist, you are required to provide the `CreationInfo` . Path *string `json:"path" yaml:"path"` }
Specifies the directory on the Amazon EFS file system that the access point provides access to.
The access point exposes the specified file system path as the root directory of your file system to applications using the access point. NFS clients using the access point can only access data in the access point's `RootDirectory` and it's subdirectories.
TODO: EXAMPLE
type CfnFileSystem ¶
type CfnFileSystem interface { awscdk.CfnResource awscdk.IInspectable AttrArn() *string AttrFileSystemId() *string AvailabilityZoneName() *string SetAvailabilityZoneName(val *string) BackupPolicy() interface{} SetBackupPolicy(val interface{}) BypassPolicyLockoutSafetyCheck() interface{} SetBypassPolicyLockoutSafetyCheck(val interface{}) CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string Encrypted() interface{} SetEncrypted(val interface{}) FileSystemPolicy() interface{} SetFileSystemPolicy(val interface{}) KmsKeyId() *string SetKmsKeyId(val *string) LifecyclePolicies() interface{} SetLifecyclePolicies(val interface{}) LogicalId() *string Node() awscdk.ConstructNode PerformanceMode() *string SetPerformanceMode(val *string) ProvisionedThroughputInMibps() *float64 SetProvisionedThroughputInMibps(val *float64) Ref() *string Stack() awscdk.Stack Tags() awscdk.TagManager ThroughputMode() *string SetThroughputMode(val *string) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::EFS::FileSystem`.
The `AWS::EFS::FileSystem` resource creates a new, empty file system in Amazon Elastic File System ( Amazon EFS ). You must create a mount target ( [AWS::EFS::MountTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-mounttarget.html) ) to mount your EFS file system on an Amazon EC2 or other AWS cloud compute resource.
TODO: EXAMPLE
func NewCfnFileSystem ¶
func NewCfnFileSystem(scope awscdk.Construct, id *string, props *CfnFileSystemProps) CfnFileSystem
Create a new `AWS::EFS::FileSystem`.
type CfnFileSystemProps ¶
type CfnFileSystemProps struct { // Used to create a file system that uses One Zone storage classes. // // It specifies the AWS Availability Zone in which to create the file system. Use the format `us-east-1a` to specify the Availability Zone. For more information about One Zone storage classes, see [Using EFS storage classes](https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html) in the *Amazon EFS User Guide* . // // > One Zone storage classes are not available in all Availability Zones in AWS Regions where Amazon EFS is available. AvailabilityZoneName *string `json:"availabilityZoneName" yaml:"availabilityZoneName"` // Use the `BackupPolicy` to turn automatic backups on or off for the file system. BackupPolicy interface{} `json:"backupPolicy" yaml:"backupPolicy"` // (Optional) Use this boolean to use or bypass the `FileSystemPolicy` lockout safety check. // // The policy lockout safety check determines if the `FileSystemPolicy` in the request will lock out the IAM principal making the request, preventing them from making future `PutFileSystemPolicy` requests on the file system. Set `BypassPolicyLockoutSafetyCheck` to `True` only when you intend to prevent the IAM principal that is making the request from making a subsequent `PutFileSystemPolicy` request on the file system. The default value is `False` . BypassPolicyLockoutSafetyCheck interface{} `json:"bypassPolicyLockoutSafetyCheck" yaml:"bypassPolicyLockoutSafetyCheck"` // A Boolean value that, if true, creates an encrypted file system. // // When creating an encrypted file system, you have the option of specifying a KmsKeyId for an existing AWS KMS key . If you don't specify a KMS key , then the default KMS key for Amazon EFS , `/aws/elasticfilesystem` , is used to protect the encrypted file system. Encrypted interface{} `json:"encrypted" yaml:"encrypted"` // The `FileSystemPolicy` for the EFS file system. // // A file system policy is an IAM resource policy used to control NFS access to an EFS file system. For more information, see [Using IAM to control NFS access to Amazon EFS](https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html) in the *Amazon EFS User Guide* . FileSystemPolicy interface{} `json:"fileSystemPolicy" yaml:"fileSystemPolicy"` // Use to create one or more tags associated with the file system. // // Each tag is a user-defined key-value pair. Name your file system on creation by including a `"Key":"Name","Value":"{value}"` key-value pair. Each key must be unique. For more information, see [Tagging AWS resources](https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) in the *AWS General Reference Guide* . FileSystemTags *[]*CfnFileSystem_ElasticFileSystemTagProperty `json:"fileSystemTags" yaml:"fileSystemTags"` // The ID of the AWS KMS key to be used to protect the encrypted file system. // // This parameter is only required if you want to use a nondefault KMS key . If this parameter is not specified, the default KMS key for Amazon EFS is used. This ID can be in one of the following formats: // // - Key ID - A unique identifier of the key, for example `1234abcd-12ab-34cd-56ef-1234567890ab` . // - ARN - An Amazon Resource Name (ARN) for the key, for example `arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab` . // - Key alias - A previously created display name for a key, for example `alias/projectKey1` . // - Key alias ARN - An ARN for a key alias, for example `arn:aws:kms:us-west-2:444455556666:alias/projectKey1` . // // If `KmsKeyId` is specified, the `Encrypted` parameter must be set to true. KmsKeyId *string `json:"kmsKeyId" yaml:"kmsKeyId"` // A list of one LifecyclePolicy that tells EFS lifecycle management when to transition files to the Infrequent Access (IA) storage classes. LifecyclePolicies interface{} `json:"lifecyclePolicies" yaml:"lifecyclePolicies"` // The performance mode of the file system. // // We recommend `generalPurpose` performance mode for most file systems. File systems using the `maxIO` performance mode can scale to higher levels of aggregate throughput and operations per second with a tradeoff of slightly higher latencies for most file operations. The performance mode can't be changed after the file system has been created. // // > The `maxIO` mode is not supported on file systems using One Zone storage classes. PerformanceMode *string `json:"performanceMode" yaml:"performanceMode"` // The throughput, measured in MiB/s, that you want to provision for a file system that you're creating. // // Valid values are 1-1024. Required if `ThroughputMode` is set to `provisioned` . The upper limit for throughput is 1024 MiB/s. To increase this limit, contact AWS Support . For more information, see [Amazon EFS quotas that you can increase](https://docs.aws.amazon.com/efs/latest/ug/limits.html#soft-limits) in the *Amazon EFS User Guide* . ProvisionedThroughputInMibps *float64 `json:"provisionedThroughputInMibps" yaml:"provisionedThroughputInMibps"` // Specifies the throughput mode for the file system, either `bursting` or `provisioned` . // // If you set `ThroughputMode` to `provisioned` , you must also set a value for `ProvisionedThroughputInMibps` . After you create the file system, you can decrease your file system's throughput in Provisioned Throughput mode or change between the throughput modes, as long as it’s been more than 24 hours since the last decrease or throughput mode change. For more information, see [Specifying throughput with provisioned mode](https://docs.aws.amazon.com/efs/latest/ug/performance.html#provisioned-throughput) in the *Amazon EFS User Guide* . // // Default is `bursting` . ThroughputMode *string `json:"throughputMode" yaml:"throughputMode"` }
Properties for defining a `CfnFileSystem`.
TODO: EXAMPLE
type CfnFileSystem_BackupPolicyProperty ¶
type CfnFileSystem_BackupPolicyProperty struct { // Set the backup policy status for the file system. // // - *`ENABLED`* - Turns automatic backups on for the file system. // - *`DISABLED`* - Turns automatic backups off for the file system. Status *string `json:"status" yaml:"status"` }
The backup policy turns automatic backups for the file system on or off.
TODO: EXAMPLE
type CfnFileSystem_ElasticFileSystemTagProperty ¶
type CfnFileSystem_ElasticFileSystemTagProperty struct { // The tag key (String). // // The key can't start with `aws:` . Key *string `json:"key" yaml:"key"` // The value of the tag key. Value *string `json:"value" yaml:"value"` }
A tag is a key-value pair attached to a file system.
Allowed characters in the `Key` and `Value` properties are letters, white space, and numbers that can be represented in UTF-8, and the following characters: `+ - = . _ : /`
TODO: EXAMPLE
type CfnFileSystem_LifecyclePolicyProperty ¶
type CfnFileSystem_LifecyclePolicyProperty struct { // Describes the period of time that a file is not accessed, after which it transitions to IA storage. // // Metadata operations such as listing the contents of a directory don't count as file access events. TransitionToIa *string `json:"transitionToIa" yaml:"transitionToIa"` // Describes when to transition a file from IA storage to primary storage. // // Metadata operations such as listing the contents of a directory don't count as file access events. TransitionToPrimaryStorageClass *string `json:"transitionToPrimaryStorageClass" yaml:"transitionToPrimaryStorageClass"` }
A policy used by EFS lifecycle management to transition files to the Infrequent Access (IA) storage classes.
For more information, see [EFS Lifecycle Management](https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html) in the *Amazon EFS User Guide* .
TODO: EXAMPLE
type CfnMountTarget ¶
type CfnMountTarget interface { awscdk.CfnResource awscdk.IInspectable AttrId() *string AttrIpAddress() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string CreationStack() *[]*string FileSystemId() *string SetFileSystemId(val *string) IpAddress() *string SetIpAddress(val *string) LogicalId() *string Node() awscdk.ConstructNode Ref() *string SecurityGroups() *[]*string SetSecurityGroups(val *[]*string) Stack() awscdk.Stack SubnetId() *string SetSubnetId(val *string) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string OverrideLogicalId(newLogicalId *string) Prepare() RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::EFS::MountTarget`.
The `AWS::EFS::MountTarget` resource is an Amazon EFS resource that creates a mount target for an EFS file system. You can then mount the file system on Amazon EC2 instances or other resources by using the mount target.
TODO: EXAMPLE
func NewCfnMountTarget ¶
func NewCfnMountTarget(scope awscdk.Construct, id *string, props *CfnMountTargetProps) CfnMountTarget
Create a new `AWS::EFS::MountTarget`.
type CfnMountTargetProps ¶
type CfnMountTargetProps struct { // The ID of the file system for which to create the mount target. FileSystemId *string `json:"fileSystemId" yaml:"fileSystemId"` // Up to five VPC security group IDs, of the form `sg-xxxxxxxx` . // // These must be for the same VPC as subnet specified. SecurityGroups *[]*string `json:"securityGroups" yaml:"securityGroups"` // The ID of the subnet to add the mount target in. // // For file systems that use One Zone storage classes, use the subnet that is associated with the file system's Availability Zone. SubnetId *string `json:"subnetId" yaml:"subnetId"` // Valid IPv4 address within the address range of the specified subnet. IpAddress *string `json:"ipAddress" yaml:"ipAddress"` }
Properties for defining a `CfnMountTarget`.
TODO: EXAMPLE
type FileSystem ¶
type FileSystem interface { awscdk.Resource IFileSystem Connections() awsec2.Connections Env() *awscdk.ResourceEnvironment FileSystemArn() *string FileSystemId() *string MountTargetsAvailable() awscdk.IDependable Node() awscdk.ConstructNode PhysicalName() *string Stack() awscdk.Stack AddAccessPoint(id *string, accessPointOptions *AccessPointOptions) AccessPoint ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant OnPrepare() OnSynthesize(session constructs.ISynthesisSession) OnValidate() *[]*string Prepare() Synthesize(session awscdk.ISynthesisSession) ToString() *string Validate() *[]*string }
The Elastic File System implementation of IFileSystem.
It creates a new, empty file system in Amazon Elastic File System (Amazon EFS). It also creates mount target (AWS::EFS::MountTarget) implicitly to mount the EFS file system on an Amazon Elastic Compute Cloud (Amazon EC2) instance or another resource.
TODO: EXAMPLE
See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html
Experimental.
func NewFileSystem ¶
func NewFileSystem(scope constructs.Construct, id *string, props *FileSystemProps) FileSystem
Constructor for creating a new EFS FileSystem. Experimental.
type FileSystemAttributes ¶
type FileSystemAttributes struct { // The security group of the file system. // Experimental. SecurityGroup awsec2.ISecurityGroup `json:"securityGroup" yaml:"securityGroup"` // The File System's Arn. // Experimental. FileSystemArn *string `json:"fileSystemArn" yaml:"fileSystemArn"` // The File System's ID. // Experimental. FileSystemId *string `json:"fileSystemId" yaml:"fileSystemId"` }
Properties that describe an existing EFS file system.
TODO: EXAMPLE
Experimental.
type FileSystemProps ¶
type FileSystemProps struct { // VPC to launch the file system in. // Experimental. Vpc awsec2.IVpc `json:"vpc" yaml:"vpc"` // Whether to enable automatic backups for the file system. // Experimental. EnableAutomaticBackups *bool `json:"enableAutomaticBackups" yaml:"enableAutomaticBackups"` // Defines if the data at rest in the file system is encrypted or not. // Experimental. Encrypted *bool `json:"encrypted" yaml:"encrypted"` // The file system's name. // Experimental. FileSystemName *string `json:"fileSystemName" yaml:"fileSystemName"` // The KMS key used for encryption. // // This is required to encrypt the data at rest if @encrypted is set to true. // Experimental. KmsKey awskms.IKey `json:"kmsKey" yaml:"kmsKey"` // A policy used by EFS lifecycle management to transition files to the Infrequent Access (IA) storage class. // Experimental. LifecyclePolicy LifecyclePolicy `json:"lifecyclePolicy" yaml:"lifecyclePolicy"` // A policy used by EFS lifecycle management to transition files from Infrequent Access (IA) storage class to primary storage class. // Experimental. OutOfInfrequentAccessPolicy OutOfInfrequentAccessPolicy `json:"outOfInfrequentAccessPolicy" yaml:"outOfInfrequentAccessPolicy"` // The performance mode that the file system will operate under. // // An Amazon EFS file system's performance mode can't be changed after the file system has been created. // Updating this property will replace the file system. // Experimental. PerformanceMode PerformanceMode `json:"performanceMode" yaml:"performanceMode"` // Provisioned throughput for the file system. // // This is a required property if the throughput mode is set to PROVISIONED. // Must be at least 1MiB/s. // Experimental. ProvisionedThroughputPerSecond awscdk.Size `json:"provisionedThroughputPerSecond" yaml:"provisionedThroughputPerSecond"` // The removal policy to apply to the file system. // Experimental. RemovalPolicy awscdk.RemovalPolicy `json:"removalPolicy" yaml:"removalPolicy"` // Security Group to assign to this file system. // Experimental. SecurityGroup awsec2.ISecurityGroup `json:"securityGroup" yaml:"securityGroup"` // Enum to mention the throughput mode of the file system. // Experimental. ThroughputMode ThroughputMode `json:"throughputMode" yaml:"throughputMode"` // Which subnets to place the mount target in the VPC. // Experimental. VpcSubnets *awsec2.SubnetSelection `json:"vpcSubnets" yaml:"vpcSubnets"` }
Properties of EFS FileSystem.
TODO: EXAMPLE
Experimental.
type IAccessPoint ¶
type IAccessPoint interface { awscdk.IResource // The ARN of the AccessPoint. // Experimental. AccessPointArn() *string // The ID of the AccessPoint. // Experimental. AccessPointId() *string // The EFS file system. // Experimental. FileSystem() IFileSystem }
Represents an EFS AccessPoint. Experimental.
func AccessPoint_FromAccessPointAttributes ¶
func AccessPoint_FromAccessPointAttributes(scope constructs.Construct, id *string, attrs *AccessPointAttributes) IAccessPoint
Import an existing Access Point by attributes. Experimental.
func AccessPoint_FromAccessPointId ¶
func AccessPoint_FromAccessPointId(scope constructs.Construct, id *string, accessPointId *string) IAccessPoint
Import an existing Access Point by id. Experimental.
type IFileSystem ¶
type IFileSystem interface { awsec2.IConnectable awscdk.IResource // Grant the actions defined in actions to the given grantee on this File System resource. // Experimental. Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant // The ARN of the file system. // Experimental. FileSystemArn() *string // The ID of the file system, assigned by Amazon EFS. // Experimental. FileSystemId() *string // Dependable that can be depended upon to ensure the mount targets of the filesystem are ready. // Experimental. MountTargetsAvailable() awscdk.IDependable }
Represents an Amazon EFS file system. Experimental.
func FileSystem_FromFileSystemAttributes ¶
func FileSystem_FromFileSystemAttributes(scope constructs.Construct, id *string, attrs *FileSystemAttributes) IFileSystem
Import an existing File System from the given properties. Experimental.
type LifecyclePolicy ¶
type LifecyclePolicy string
EFS Lifecycle Policy, if a file is not accessed for given days, it will move to EFS Infrequent Access.
TODO: EXAMPLE
Experimental.
const ( LifecyclePolicy_AFTER_7_DAYS LifecyclePolicy = "AFTER_7_DAYS" LifecyclePolicy_AFTER_14_DAYS LifecyclePolicy = "AFTER_14_DAYS" LifecyclePolicy_AFTER_30_DAYS LifecyclePolicy = "AFTER_30_DAYS" LifecyclePolicy_AFTER_60_DAYS LifecyclePolicy = "AFTER_60_DAYS" LifecyclePolicy_AFTER_90_DAYS LifecyclePolicy = "AFTER_90_DAYS" )
type OutOfInfrequentAccessPolicy ¶
type OutOfInfrequentAccessPolicy string
EFS Out Of Infrequent Access Policy, if a file is accessed given times, it will move back to primary storage class.
TODO: EXAMPLE
Experimental.
const (
OutOfInfrequentAccessPolicy_AFTER_1_ACCESS OutOfInfrequentAccessPolicy = "AFTER_1_ACCESS"
)
type PerformanceMode ¶
type PerformanceMode string
EFS Performance mode.
TODO: EXAMPLE
See: https://docs.aws.amazon.com/efs/latest/ug/performance.html#performancemodes
Experimental.
const ( PerformanceMode_GENERAL_PURPOSE PerformanceMode = "GENERAL_PURPOSE" PerformanceMode_MAX_IO PerformanceMode = "MAX_IO" )
type PosixUser ¶
type PosixUser struct { // The POSIX group ID used for all file system operations using this access point. // Experimental. Gid *string `json:"gid" yaml:"gid"` // The POSIX user ID used for all file system operations using this access point. // Experimental. Uid *string `json:"uid" yaml:"uid"` // Secondary POSIX group IDs used for all file system operations using this access point. // Experimental. SecondaryGids *[]*string `json:"secondaryGids" yaml:"secondaryGids"` }
Represents the PosixUser.
TODO: EXAMPLE
Experimental.
type ThroughputMode ¶
type ThroughputMode string
EFS Throughput mode. See: https://docs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes
Experimental.
const ( ThroughputMode_BURSTING ThroughputMode = "BURSTING" ThroughputMode_PROVISIONED ThroughputMode = "PROVISIONED" )