-
Notifications
You must be signed in to change notification settings - Fork 17
/
IFileSystem.go
204 lines (175 loc) · 4.33 KB
/
IFileSystem.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
package awsefs
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/aws-cdk-go/awscdk/v2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsec2"
"github.com/aws/aws-cdk-go/awscdk/v2/awsefs/internal"
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
"github.com/aws/constructs-go/constructs/v10"
)
// Represents an Amazon EFS file system.
type IFileSystem interface {
awsec2.IConnectable
awsiam.IResourceWithPolicy
// Grant the actions defined in actions to the given grantee on this File System resource.
Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant
// Grant read permissions for this file system to an IAM principal.
GrantRead(grantee awsiam.IGrantable) awsiam.Grant
// Grant read and write permissions for this file system to an IAM principal.
GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant
// As root user, grant read and write permissions for this file system to an IAM principal.
GrantRootAccess(grantee awsiam.IGrantable) awsiam.Grant
// The ARN of the file system.
FileSystemArn() *string
// The ID of the file system, assigned by Amazon EFS.
FileSystemId() *string
// Dependable that can be depended upon to ensure the mount targets of the filesystem are ready.
MountTargetsAvailable() constructs.IDependable
}
// The jsii proxy for IFileSystem
type jsiiProxy_IFileSystem struct {
internal.Type__awsec2IConnectable
internal.Type__awsiamIResourceWithPolicy
}
func (i *jsiiProxy_IFileSystem) Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant {
if err := i.validateGrantParameters(grantee); err != nil {
panic(err)
}
args := []interface{}{grantee}
for _, a := range actions {
args = append(args, a)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grant",
args,
&returns,
)
return returns
}
func (i *jsiiProxy_IFileSystem) GrantRead(grantee awsiam.IGrantable) awsiam.Grant {
if err := i.validateGrantReadParameters(grantee); err != nil {
panic(err)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grantRead",
[]interface{}{grantee},
&returns,
)
return returns
}
func (i *jsiiProxy_IFileSystem) GrantReadWrite(grantee awsiam.IGrantable) awsiam.Grant {
if err := i.validateGrantReadWriteParameters(grantee); err != nil {
panic(err)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grantReadWrite",
[]interface{}{grantee},
&returns,
)
return returns
}
func (i *jsiiProxy_IFileSystem) GrantRootAccess(grantee awsiam.IGrantable) awsiam.Grant {
if err := i.validateGrantRootAccessParameters(grantee); err != nil {
panic(err)
}
var returns awsiam.Grant
_jsii_.Invoke(
i,
"grantRootAccess",
[]interface{}{grantee},
&returns,
)
return returns
}
func (i *jsiiProxy_IFileSystem) AddToResourcePolicy(statement awsiam.PolicyStatement) *awsiam.AddToResourcePolicyResult {
if err := i.validateAddToResourcePolicyParameters(statement); err != nil {
panic(err)
}
var returns *awsiam.AddToResourcePolicyResult
_jsii_.Invoke(
i,
"addToResourcePolicy",
[]interface{}{statement},
&returns,
)
return returns
}
func (i *jsiiProxy_IFileSystem) ApplyRemovalPolicy(policy awscdk.RemovalPolicy) {
if err := i.validateApplyRemovalPolicyParameters(policy); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
i,
"applyRemovalPolicy",
[]interface{}{policy},
)
}
func (j *jsiiProxy_IFileSystem) FileSystemArn() *string {
var returns *string
_jsii_.Get(
j,
"fileSystemArn",
&returns,
)
return returns
}
func (j *jsiiProxy_IFileSystem) FileSystemId() *string {
var returns *string
_jsii_.Get(
j,
"fileSystemId",
&returns,
)
return returns
}
func (j *jsiiProxy_IFileSystem) MountTargetsAvailable() constructs.IDependable {
var returns constructs.IDependable
_jsii_.Get(
j,
"mountTargetsAvailable",
&returns,
)
return returns
}
func (j *jsiiProxy_IFileSystem) Connections() awsec2.Connections {
var returns awsec2.Connections
_jsii_.Get(
j,
"connections",
&returns,
)
return returns
}
func (j *jsiiProxy_IFileSystem) Env() *awscdk.ResourceEnvironment {
var returns *awscdk.ResourceEnvironment
_jsii_.Get(
j,
"env",
&returns,
)
return returns
}
func (j *jsiiProxy_IFileSystem) Node() constructs.Node {
var returns constructs.Node
_jsii_.Get(
j,
"node",
&returns,
)
return returns
}
func (j *jsiiProxy_IFileSystem) Stack() awscdk.Stack {
var returns awscdk.Stack
_jsii_.Get(
j,
"stack",
&returns,
)
return returns
}