-
Notifications
You must be signed in to change notification settings - Fork 17
/
FileSystemAttributes.go
33 lines (30 loc) · 1.13 KB
/
FileSystemAttributes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package awsefs
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
)
// Properties that describe an existing EFS file system.
//
// Example:
// import iam "github.com/aws/aws-cdk-go/awscdk"
//
//
// importedFileSystem := efs.FileSystem_FromFileSystemAttributes(this, jsii.String("existingFS"), &FileSystemAttributes{
// FileSystemId: jsii.String("fs-12345678"),
// // You can also use fileSystemArn instead of fileSystemId.
// SecurityGroup: ec2.SecurityGroup_FromSecurityGroupId(this, jsii.String("SG"), jsii.String("sg-123456789"), &SecurityGroupImportOptions{
// AllowAllOutbound: jsii.Boolean(false),
// }),
// })
//
type FileSystemAttributes struct {
// The security group of the file system.
SecurityGroup awsec2.ISecurityGroup `field:"required" json:"securityGroup" yaml:"securityGroup"`
// The File System's Arn.
// Default: - determined based on fileSystemId.
//
FileSystemArn *string `field:"optional" json:"fileSystemArn" yaml:"fileSystemArn"`
// The File System's ID.
// Default: - determined based on fileSystemArn.
//
FileSystemId *string `field:"optional" json:"fileSystemId" yaml:"fileSystemId"`
}