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 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531
|
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// Provides a description of an EFS file system access point.
type AccessPointDescription struct {
// The unique Amazon Resource Name (ARN) associated with the access point.
AccessPointArn *string
// The ID of the access point, assigned by Amazon EFS.
AccessPointId *string
// The opaque string specified in the request to ensure idempotent creation.
ClientToken *string
// The ID of the EFS file system that the access point applies to.
FileSystemId *string
// Identifies the lifecycle phase of the access point.
LifeCycleState LifeCycleState
// The name of the access point. This is the value of the Name tag.
Name *string
// Identifies the Amazon Web Services account that owns the access point resource.
OwnerId *string
// 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 *PosixUser
// The directory on the EFS file system that the access point exposes as the root
// directory to NFS clients using the access point.
RootDirectory *RootDirectory
// The tags associated with the access point, presented as an array of Tag objects.
Tags []Tag
noSmithyDocumentSerde
}
// The backup policy for the file system used to create automatic daily backups.
// If status has a value of ENABLED , the file system is being automatically backed
// up. For more information, see Automatic backups (https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#automatic-backups)
// .
type BackupPolicy struct {
// Describes the status of the file system's backup policy.
// - ENABLED – EFS is automatically backing up the file system.
// - ENABLING – EFS is turning on automatic backups for the file system.
// - DISABLED – Automatic back ups are turned off for the file system.
// - DISABLING – EFS is turning off automatic backups for the file system.
//
// This member is required.
Status Status
noSmithyDocumentSerde
}
// 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.
type CreationInfo struct {
// Specifies the POSIX group ID to apply to the RootDirectory . Accepts values from
// 0 to 2^32 (4294967295).
//
// This member is required.
OwnerGid *int64
// Specifies the POSIX user ID to apply to the RootDirectory . Accepts values from
// 0 to 2^32 (4294967295).
//
// This member is required.
OwnerUid *int64
// Specifies the POSIX permissions to apply to the RootDirectory , in the format of
// an octal number representing the file's mode bits.
//
// This member is required.
Permissions *string
noSmithyDocumentSerde
}
// Describes the destination file system in the replication configuration.
type Destination struct {
// The ID of the destination Amazon EFS file system.
//
// This member is required.
FileSystemId *string
// The Amazon Web Services Region in which the destination file system is located.
//
// This member is required.
Region *string
// Describes the status of the destination EFS file system.
// - The Paused state occurs as a result of opting out of the source or
// destination Region after the replication configuration was created. To resume
// replication for the file system, you need to again opt in to the Amazon Web
// Services Region. For more information, see Managing Amazon Web Services
// Regions (https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable)
// in the Amazon Web Services General Reference Guide.
// - The Error state occurs when either the source or the destination file system
// (or both) is in a failed state and is unrecoverable. For more information, see
// Monitoring replication status (https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html)
// in the Amazon EFS User Guide. You must delete the replication configuration, and
// then restore the most recent backup of the failed file system (either the source
// or the destination) to a new file system.
//
// This member is required.
Status ReplicationStatus
// The time when the most recent sync was successfully completed on the
// destination file system. Any changes to data on the source file system that
// occurred before this time have been successfully replicated to the destination
// file system. Any changes that occurred after this time might not be fully
// replicated.
LastReplicatedTimestamp *time.Time
noSmithyDocumentSerde
}
// Describes the new or existing destination file system for the replication
// configuration.
type DestinationToCreate struct {
// To create a file system that uses One Zone storage, specify the name of the
// Availability Zone in which to create the destination file system.
AvailabilityZoneName *string
// The ID of the file system to use for the destination. The file system's
// replication overwrite replication must be disabled. If you do not provide an ID,
// then EFS creates a new file system for the replication destination.
FileSystemId *string
// Specify the Key Management Service (KMS) key that you want to use to encrypt
// the destination file system. If you do not specify a KMS key, Amazon EFS uses
// your default KMS key for Amazon EFS, /aws/elasticfilesystem . This ID can be in
// one of the following formats:
// - Key ID - The unique identifier of the key, for example
// 1234abcd-12ab-34cd-56ef-1234567890ab .
// - ARN - The 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 - The ARN for a key alias, for example
// arn:aws:kms:us-west-2:444455556666:alias/projectKey1 .
KmsKeyId *string
// To create a file system that uses Regional storage, specify the Amazon Web
// Services Region in which to create the destination file system.
Region *string
noSmithyDocumentSerde
}
// A description of the file system.
type FileSystemDescription struct {
// The time that the file system was created, in seconds (since
// 1970-01-01T00:00:00Z).
//
// This member is required.
CreationTime *time.Time
// The opaque string specified in the request.
//
// This member is required.
CreationToken *string
// The ID of the file system, assigned by Amazon EFS.
//
// This member is required.
FileSystemId *string
// The lifecycle phase of the file system.
//
// This member is required.
LifeCycleState LifeCycleState
// The current number of mount targets that the file system has. For more
// information, see CreateMountTarget .
//
// This member is required.
NumberOfMountTargets int32
// The Amazon Web Services account that created the file system.
//
// This member is required.
OwnerId *string
// The Performance mode of the file system.
//
// This member is required.
PerformanceMode PerformanceMode
// The latest known metered size (in bytes) of data stored in the file system, in
// its Value field, and the time at which that size was determined in its Timestamp
// field. The Timestamp value is the integer number of seconds since
// 1970-01-01T00:00:00Z. The SizeInBytes value doesn't represent the size of a
// consistent snapshot of the file system, but it is eventually consistent when
// there are no writes to the file system. That is, SizeInBytes represents actual
// size only if the file system is not modified for a period longer than a couple
// of hours. Otherwise, the value is not the exact size that the file system was at
// any point in time.
//
// This member is required.
SizeInBytes *FileSystemSize
// The tags associated with the file system, presented as an array of Tag objects.
//
// This member is required.
Tags []Tag
// The unique and consistent identifier of the Availability Zone in which the file
// system is located, and is valid only for One Zone file systems. For example,
// use1-az1 is an Availability Zone ID for the us-east-1 Amazon Web Services
// Region, and it has the same location in every Amazon Web Services account.
AvailabilityZoneId *string
// Describes the Amazon Web Services Availability Zone in which the file system is
// located, and is valid only for One Zone file systems. For more information, see
// Using EFS storage classes (https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html)
// in the Amazon EFS User Guide.
AvailabilityZoneName *string
// A Boolean value that, if true, indicates that the file system is encrypted.
Encrypted *bool
// The Amazon Resource Name (ARN) for the EFS file system, in the format
// arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id .
// Example with sample data:
// arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
FileSystemArn *string
// Describes the protection on the file system.
FileSystemProtection *FileSystemProtectionDescription
// The ID of an KMS key used to protect the encrypted file system.
KmsKeyId *string
// You can add tags to a file system, including a Name tag. For more information,
// see CreateFileSystem . If the file system has a Name tag, Amazon EFS returns
// the value in this field.
Name *string
// The amount of provisioned throughput, measured in MiBps, for the file system.
// Valid for file systems using ThroughputMode set to provisioned .
ProvisionedThroughputInMibps *float64
// Displays the file system's throughput mode. For more information, see
// Throughput modes (https://docs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes)
// in the Amazon EFS User Guide.
ThroughputMode ThroughputMode
noSmithyDocumentSerde
}
// Describes the protection on a file system.
type FileSystemProtectionDescription struct {
// The status of the file system's replication overwrite protection.
// - ENABLED – The file system cannot be used as the destination file system in a
// replication configuration. The file system is writeable. Replication overwrite
// protection is ENABLED by default.
// - DISABLED – The file system can be used as the destination file system in a
// replication configuration. The file system is read-only and can only be modified
// by EFS replication.
// - REPLICATING – The file system is being used as the destination file system
// in a replication configuration. The file system is read-only and is only
// modified only by EFS replication.
// If the replication configuration is deleted, the file system's replication
// overwrite protection is re-enabled, the file system becomes writeable.
ReplicationOverwriteProtection ReplicationOverwriteProtection
noSmithyDocumentSerde
}
// The latest known metered size (in bytes) of data stored in the file system, in
// its Value field, and the time at which that size was determined in its Timestamp
// field. The value doesn't represent the size of a consistent snapshot of the file
// system, but it is eventually consistent when there are no writes to the file
// system. That is, the value represents the actual size only if the file system is
// not modified for a period longer than a couple of hours. Otherwise, the value is
// not necessarily the exact size the file system was at any instant in time.
type FileSystemSize struct {
// The latest known metered size (in bytes) of data stored in the file system.
//
// This member is required.
Value int64
// The time at which the size of data, returned in the Value field, was
// determined. The value is the integer number of seconds since
// 1970-01-01T00:00:00Z.
Timestamp *time.Time
// The latest known metered size (in bytes) of data stored in the Archive storage
// class.
ValueInArchive *int64
// The latest known metered size (in bytes) of data stored in the Infrequent
// Access storage class.
ValueInIA *int64
// The latest known metered size (in bytes) of data stored in the Standard storage
// class.
ValueInStandard *int64
noSmithyDocumentSerde
}
// Describes a policy used by Lifecycle management that specifies when to
// transition files into and out of storage classes. For more information, see
// Managing file system storage (https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html)
// . When using the put-lifecycle-configuration CLI command or the
// PutLifecycleConfiguration API action, Amazon EFS requires that each
// LifecyclePolicy object have only a single transition. This means that in a
// request body, LifecyclePolicies must be structured as an array of
// LifecyclePolicy objects, one object for each transition. For more information,
// see the request examples in PutLifecycleConfiguration .
type LifecyclePolicy struct {
// The number of days after files were last accessed in primary storage (the
// Standard storage class) files at which to move them to Archive storage. Metadata
// operations such as listing the contents of a directory don't count as file
// access events.
TransitionToArchive TransitionToArchiveRules
// The number of days after files were last accessed in primary storage (the
// Standard storage class) at which to move them to Infrequent Access (IA) storage.
// Metadata operations such as listing the contents of a directory don't count as
// file access events.
TransitionToIA TransitionToIARules
// Whether to move files back to primary (Standard) storage after they are
// accessed in IA or Archive storage. Metadata operations such as listing the
// contents of a directory don't count as file access events.
TransitionToPrimaryStorageClass TransitionToPrimaryStorageClassRules
noSmithyDocumentSerde
}
// Provides a description of a mount target.
type MountTargetDescription struct {
// The ID of the file system for which the mount target is intended.
//
// This member is required.
FileSystemId *string
// Lifecycle state of the mount target.
//
// This member is required.
LifeCycleState LifeCycleState
// System-assigned mount target ID.
//
// This member is required.
MountTargetId *string
// The ID of the mount target's subnet.
//
// This member is required.
SubnetId *string
// The unique and consistent identifier of the Availability Zone that the mount
// target resides in. For example, use1-az1 is an AZ ID for the us-east-1 Region
// and it has the same location in every Amazon Web Services account.
AvailabilityZoneId *string
// The name of the Availability Zone in which the mount target is located.
// Availability Zones are independently mapped to names for each Amazon Web
// Services account. For example, the Availability Zone us-east-1a for your Amazon
// Web Services account might not be the same location as us-east-1a for another
// Amazon Web Services account.
AvailabilityZoneName *string
// Address at which the file system can be mounted by using the mount target.
IpAddress *string
// The ID of the network interface that Amazon EFS created when it created the
// mount target.
NetworkInterfaceId *string
// Amazon Web Services account ID that owns the resource.
OwnerId *string
// The virtual private cloud (VPC) ID that the mount target is configured in.
VpcId *string
noSmithyDocumentSerde
}
// 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.
type PosixUser struct {
// The POSIX group ID used for all file system operations using this access point.
//
// This member is required.
Gid *int64
// The POSIX user ID used for all file system operations using this access point.
//
// This member is required.
Uid *int64
// Secondary POSIX group IDs used for all file system operations using this access
// point.
SecondaryGids []int64
noSmithyDocumentSerde
}
// Describes the replication configuration for a specific file system.
type ReplicationConfigurationDescription struct {
// Describes when the replication configuration was created.
//
// This member is required.
CreationTime *time.Time
// An array of destination objects. Only one destination object is supported.
//
// This member is required.
Destinations []Destination
// The Amazon Resource Name (ARN) of the original source EFS file system in the
// replication configuration.
//
// This member is required.
OriginalSourceFileSystemArn *string
// The Amazon Resource Name (ARN) of the current source file system in the
// replication configuration.
//
// This member is required.
SourceFileSystemArn *string
// The ID of the source Amazon EFS file system that is being replicated.
//
// This member is required.
SourceFileSystemId *string
// The Amazon Web Services Region in which the source EFS file system is located.
//
// This member is required.
SourceFileSystemRegion *string
noSmithyDocumentSerde
}
// Describes the resource type and its ID preference for the user's Amazon Web
// Services account, in the current Amazon Web Services Region.
type ResourceIdPreference struct {
// Identifies the EFS resource ID preference, either LONG_ID (17 characters) or
// SHORT_ID (8 characters).
ResourceIdType ResourceIdType
// Identifies the Amazon EFS resources to which the ID preference setting applies,
// FILE_SYSTEM and MOUNT_TARGET .
Resources []Resource
noSmithyDocumentSerde
}
// 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.
type RootDirectory 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 *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
noSmithyDocumentSerde
}
// A tag is a key-value pair. Allowed characters are letters, white space, and
// numbers that can be represented in UTF-8, and the following characters: + - = .
// _ : / .
type Tag struct {
// The tag key (String). The key can't start with aws: .
//
// This member is required.
Key *string
// The value of the tag key.
//
// This member is required.
Value *string
noSmithyDocumentSerde
}
type noSmithyDocumentSerde = smithydocument.NoSerde
|