mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 15:47:14 +01:00
** verify vendor updates for dependent packages.
This commit is contained in:
3
go.mod
3
go.mod
@@ -40,7 +40,9 @@ require (
|
||||
github.com/aws/aws-sdk-go v1.55.5
|
||||
github.com/aws/aws-sdk-go-v2 v1.36.5
|
||||
github.com/aws/aws-sdk-go-v2/config v1.29.14
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.67
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.159.0
|
||||
github.com/aws/aws-sdk-go-v2/service/efs v1.36.2
|
||||
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.29.6
|
||||
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.43.11
|
||||
github.com/aws/aws-sdk-go-v2/service/iam v1.42.0
|
||||
@@ -174,7 +176,6 @@ require (
|
||||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
||||
github.com/asaskevich/govalidator/v11 v11.0.2-0.20250122183457-e11347878e23 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.67 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.30 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.36 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.36 // indirect
|
||||
|
||||
2
go.sum
2
go.sum
@@ -179,6 +179,8 @@ github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34 h1:ZNTqv4nIdE/DiBfUUfXcLZ/Spcu
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.34/go.mod h1:zf7Vcd1ViW7cPqYWEHLHJkS50X0JS2IKz9Cgaj6ugrs=
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.159.0 h1:DmmVmiLPlcntOcjWMRwDPMNx/wi2kAVrf2ZmSN5gkAg=
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.159.0/go.mod h1:xejKuuRDjz6z5OqyeLsz01MlOqqW7CqpAB4PabNvpu8=
|
||||
github.com/aws/aws-sdk-go-v2/service/efs v1.36.2 h1:u559lskjn8+5WRnLU+Aq0VCZLjgw+JXYHiwSfOpweBw=
|
||||
github.com/aws/aws-sdk-go-v2/service/efs v1.36.2/go.mod h1:e6UrCp+V52p83QPNWC05I2N3vkg15XTfbQ0n4IvYDYQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.29.6 h1:9grU/+HRwLXJV8XUjEPThJj/H+0oHkeNBFpSSfZekeg=
|
||||
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.29.6/go.mod h1:N4fs285CsnBHlAkzBpQapefR/noggTyF09fWs72EzB4=
|
||||
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.43.11 h1:lhPF/4q7oWvPaP5KxRJ3vfVQlwVFtzcbxhzOWkEdtf4=
|
||||
|
||||
656
vendor/github.com/aws/aws-sdk-go-v2/service/efs/CHANGELOG.md
generated
vendored
Normal file
656
vendor/github.com/aws/aws-sdk-go-v2/service/efs/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,656 @@
|
||||
# v1.36.2 (2025-06-17)
|
||||
|
||||
* **Dependency Update**: Update to smithy-go v1.22.4.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.36.1 (2025-06-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.36.0 (2025-06-09)
|
||||
|
||||
* **Feature**: Added support for Internet Protocol Version 6 (IPv6) on EFS Service APIs and mount targets.
|
||||
|
||||
# v1.35.4 (2025-06-06)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.35.3 (2025-04-10)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.35.2 (2025-04-03)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.35.1 (2025-03-04.2)
|
||||
|
||||
* **Bug Fix**: Add assurance test for operation order.
|
||||
|
||||
# v1.35.0 (2025-02-27)
|
||||
|
||||
* **Feature**: Track credential providers via User-Agent Feature ids
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.12 (2025-02-18)
|
||||
|
||||
* **Bug Fix**: Bump go version to 1.22
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.11 (2025-02-05)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.10 (2025-02-04)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.34.9 (2025-01-31)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.8 (2025-01-30)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.7 (2025-01-24)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
* **Dependency Update**: Upgrade to smithy-go v1.22.2.
|
||||
|
||||
# v1.34.6 (2025-01-21)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.34.5 (2025-01-17)
|
||||
|
||||
* **Bug Fix**: Fix bug where credentials weren't refreshed during retry loop.
|
||||
|
||||
# v1.34.4 (2025-01-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.3 (2025-01-09)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.2 (2024-12-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.1 (2024-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.0 (2024-11-19)
|
||||
|
||||
* **Feature**: Add support for the new parameters in EFS replication APIs
|
||||
|
||||
# v1.33.6 (2024-11-18)
|
||||
|
||||
* **Dependency Update**: Update to smithy-go v1.22.1.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.33.5 (2024-11-07)
|
||||
|
||||
* **Bug Fix**: Adds case-insensitive handling of error message fields in service responses
|
||||
|
||||
# v1.33.4 (2024-11-06)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.33.3 (2024-10-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.33.2 (2024-10-08)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.33.1 (2024-10-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.33.0 (2024-10-04)
|
||||
|
||||
* **Feature**: Add support for HTTP client metrics.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.32.4 (2024-10-03)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.32.3 (2024-09-27)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.32.2 (2024-09-25)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.32.1 (2024-09-23)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.32.0 (2024-09-20)
|
||||
|
||||
* **Feature**: Add tracing and metrics support to service clients.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.31.8 (2024-09-17)
|
||||
|
||||
* **Bug Fix**: **BREAKFIX**: Only generate AccountIDEndpointMode config for services that use it. This is a compiler break, but removes no actual functionality, as no services currently use the account ID in endpoint resolution.
|
||||
|
||||
# v1.31.7 (2024-09-16)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.31.6 (2024-09-04)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.31.5 (2024-09-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.31.4 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.31.3 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.31.2 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.31.1 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.31.0 (2024-06-26)
|
||||
|
||||
* **Feature**: Support list-of-string endpoint parameter.
|
||||
|
||||
# v1.30.1 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.30.0 (2024-06-18)
|
||||
|
||||
* **Feature**: Track usage of various AWS SDK features in user-agent string.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.29.0 (2024-06-17)
|
||||
|
||||
* **Feature**: Add v2 smoke tests and smithy smokeTests trait for SDK testing.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.10 (2024-06-07)
|
||||
|
||||
* **Bug Fix**: Add clock skew correction on all service clients
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.9 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.8 (2024-05-23)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.28.7 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.6 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.5 (2024-05-08)
|
||||
|
||||
* **Bug Fix**: GoDoc improvement
|
||||
|
||||
# v1.28.4 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.3 (2024-03-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.2 (2024-03-07)
|
||||
|
||||
* **Bug Fix**: Remove dependency on go-cmp.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.1 (2024-02-23)
|
||||
|
||||
* **Bug Fix**: Move all common, SDK-side middleware stack ops into the service client module to prevent cross-module compatibility issues in the future.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.28.0 (2024-02-22)
|
||||
|
||||
* **Feature**: Add middleware stack snapshot tests.
|
||||
|
||||
# v1.27.3 (2024-02-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.2 (2024-02-20)
|
||||
|
||||
* **Bug Fix**: When sourcing values for a service's `EndpointParameters`, the lack of a configured region (i.e. `options.Region == ""`) will now translate to a `nil` value for `EndpointParameters.Region` instead of a pointer to the empty string `""`. This will result in a much more explicit error when calling an operation instead of an obscure hostname lookup failure.
|
||||
|
||||
# v1.27.1 (2024-02-16)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.27.0 (2024-02-13)
|
||||
|
||||
* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.6 (2024-01-04)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.5 (2023-12-08)
|
||||
|
||||
* **Bug Fix**: Reinstate presence of default Retryer in functional options, but still respect max attempts set therein.
|
||||
|
||||
# v1.26.4 (2023-12-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.3 (2023-12-06)
|
||||
|
||||
* **Bug Fix**: Restore pre-refactor auth behavior where all operations could technically be performed anonymously.
|
||||
|
||||
# v1.26.2 (2023-12-01)
|
||||
|
||||
* **Bug Fix**: Correct wrapping of errors in authentication workflow.
|
||||
* **Bug Fix**: Correctly recognize cache-wrapped instances of AnonymousCredentials at client construction.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.1 (2023-11-30)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.26.0 (2023-11-29)
|
||||
|
||||
* **Feature**: Expose Options() accessor on service clients.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.25.2 (2023-11-28.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.25.1 (2023-11-28)
|
||||
|
||||
* **Bug Fix**: Respect setting RetryMaxAttempts in functional options at client construction.
|
||||
|
||||
# v1.25.0 (2023-11-27.2)
|
||||
|
||||
* **Feature**: Adding support for EFS Replication to existing file system.
|
||||
|
||||
# v1.24.0 (2023-11-27)
|
||||
|
||||
* **Feature**: Adding support for EFS Archive lifecycle configuration.
|
||||
|
||||
# v1.23.3 (2023-11-20)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.23.2 (2023-11-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.23.1 (2023-11-09)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.23.0 (2023-11-01)
|
||||
|
||||
* **Feature**: Adds support for configured endpoints via environment variables and the AWS shared configuration file.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.22.0 (2023-10-31)
|
||||
|
||||
* **Feature**: **BREAKING CHANGE**: Bump minimum go version to 1.19 per the revised [go version support policy](https://aws.amazon.com/blogs/developer/aws-sdk-for-go-aligns-with-go-release-policy-on-supported-runtimes/).
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.9 (2023-10-12)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.8 (2023-10-06)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.7 (2023-09-22)
|
||||
|
||||
* **Documentation**: Documentation updates for Elastic File System
|
||||
|
||||
# v1.21.6 (2023-08-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.5 (2023-08-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.4 (2023-08-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.3 (2023-08-08)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.21.2 (2023-08-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.21.1 (2023-08-01)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.21.0 (2023-07-31)
|
||||
|
||||
* **Feature**: Adds support for smithy-modeled endpoint resolution. A new rules-based endpoint resolution will be added to the SDK which will supercede and deprecate existing endpoint resolution. Specifically, EndpointResolver will be deprecated while BaseEndpoint and EndpointResolverV2 will take its place. For more information, please see the Endpoints section in our Developer Guide.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.20.5 (2023-07-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.20.4 (2023-07-13)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.20.3 (2023-06-15)
|
||||
|
||||
* **Documentation**: Documentation updates for EFS.
|
||||
|
||||
# v1.20.2 (2023-06-13)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.20.1 (2023-05-04)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.20.0 (2023-04-28)
|
||||
|
||||
* **Feature**: This release adds PAUSED and PAUSING state as a returned value for DescribeReplicationConfigurations response.
|
||||
|
||||
# v1.19.13 (2023-04-24)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.12 (2023-04-13)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.19.11 (2023-04-10)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.19.10 (2023-04-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.9 (2023-03-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.8 (2023-03-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.7 (2023-02-22)
|
||||
|
||||
* **Bug Fix**: Prevent nil pointer dereference when retrieving error codes.
|
||||
|
||||
# v1.19.6 (2023-02-20)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.5 (2023-02-17)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.19.4 (2023-02-15)
|
||||
|
||||
* **Announcement**: When receiving an error response in restJson-based services, an incorrect error type may have been returned based on the content of the response. This has been fixed via PR #2012 tracked in issue #1910.
|
||||
* **Bug Fix**: Correct error type parsing for restJson services.
|
||||
* **Documentation**: Documentation update for EFS to support IAM best practices.
|
||||
|
||||
# v1.19.3 (2023-02-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.19.2 (2023-01-20)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.19.1 (2023-01-18)
|
||||
|
||||
* **Documentation**: Documentation updates for EFS access points limit increase
|
||||
|
||||
# v1.19.0 (2023-01-05)
|
||||
|
||||
* **Feature**: Add `ErrorCodeOverride` field to all error structs (aws/smithy-go#401).
|
||||
|
||||
# v1.18.3 (2022-12-16)
|
||||
|
||||
* **Documentation**: General documentation updates for EFS.
|
||||
|
||||
# v1.18.2 (2022-12-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.18.1 (2022-12-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.18.0 (2022-11-28)
|
||||
|
||||
* **Feature**: This release adds elastic as a new ThroughputMode value for EFS file systems and adds AFTER_1_DAY as a value for TransitionToIARules.
|
||||
|
||||
# v1.17.19 (2022-11-10)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.17.18 (2022-10-24)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.17 (2022-10-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.16 (2022-10-19)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.17.15 (2022-09-20)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.14 (2022-09-14)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.13 (2022-09-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.12 (2022-08-31)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.11 (2022-08-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.10 (2022-08-11)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.9 (2022-08-09)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.8 (2022-08-08)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.7 (2022-08-01)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.6 (2022-07-05)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.5 (2022-06-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.4 (2022-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.3 (2022-05-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.2 (2022-05-05)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.17.1 (2022-04-25)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.0 (2022-04-12)
|
||||
|
||||
* **Feature**: Amazon EFS adds support for a ThrottlingException when using the CreateAccessPoint API if the account is nearing the AccessPoint limit(120).
|
||||
|
||||
# v1.16.3 (2022-03-30)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.2 (2022-03-24)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.1 (2022-03-23)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.0 (2022-03-08)
|
||||
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.15.0 (2022-02-24)
|
||||
|
||||
* **Feature**: API client updated
|
||||
* **Feature**: Adds RetryMaxAttempts and RetryMod to API client Options. This allows the API clients' default Retryer to be configured from the shared configuration files or environment variables. Adding a new Retry mode of `Adaptive`. `Adaptive` retry mode is an experimental mode, adding client rate limiting when throttles reponses are received from an API. See [retry.AdaptiveMode](https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/aws/retry#AdaptiveMode) for more details, and configuration options.
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.14.0 (2022-01-28)
|
||||
|
||||
* **Feature**: Updated to latest API model.
|
||||
|
||||
# v1.13.0 (2022-01-14)
|
||||
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.12.0 (2022-01-07)
|
||||
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.11.0 (2021-12-21)
|
||||
|
||||
* **Feature**: API Paginators now support specifying the initial starting token, and support stopping on empty string tokens.
|
||||
|
||||
# v1.10.2 (2021-12-02)
|
||||
|
||||
* **Bug Fix**: Fixes a bug that prevented aws.EndpointResolverWithOptions from being used by the service client. ([#1514](https://github.com/aws/aws-sdk-go-v2/pull/1514))
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.10.1 (2021-11-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.10.0 (2021-11-06)
|
||||
|
||||
* **Feature**: The SDK now supports configuration of FIPS and DualStack endpoints using environment variables, shared configuration, or programmatically.
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.9.0 (2021-10-21)
|
||||
|
||||
* **Feature**: API client updated
|
||||
* **Feature**: Updated to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.8.0 (2021-10-11)
|
||||
|
||||
* **Feature**: API client updated
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.7.1 (2021-09-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.7.0 (2021-09-02)
|
||||
|
||||
* **Feature**: API client updated
|
||||
|
||||
# v1.6.0 (2021-08-27)
|
||||
|
||||
* **Feature**: Updated API model to latest revision.
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.5.3 (2021-08-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.5.2 (2021-08-04)
|
||||
|
||||
* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.5.1 (2021-07-15)
|
||||
|
||||
* **Dependency Update**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.5.0 (2021-06-25)
|
||||
|
||||
* **Feature**: Updated `github.com/aws/smithy-go` to latest version
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.4.0 (2021-05-25)
|
||||
|
||||
* **Feature**: API client updated
|
||||
|
||||
# v1.3.1 (2021-05-20)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.0 (2021-05-14)
|
||||
|
||||
* **Feature**: Constant has been added to modules to enable runtime version inspection for reporting.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
202
vendor/github.com/aws/aws-sdk-go-v2/service/efs/LICENSE.txt
generated
vendored
Normal file
202
vendor/github.com/aws/aws-sdk-go-v2/service/efs/LICENSE.txt
generated
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
960
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_client.go
generated
vendored
Normal file
960
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_client.go
generated
vendored
Normal file
@@ -0,0 +1,960 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
cryptorand "crypto/rand"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/defaults"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/retry"
|
||||
"github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
|
||||
internalauth "github.com/aws/aws-sdk-go-v2/internal/auth"
|
||||
internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy"
|
||||
internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
|
||||
internalmiddleware "github.com/aws/aws-sdk-go-v2/internal/middleware"
|
||||
smithy "github.com/aws/smithy-go"
|
||||
smithyauth "github.com/aws/smithy-go/auth"
|
||||
smithydocument "github.com/aws/smithy-go/document"
|
||||
"github.com/aws/smithy-go/logging"
|
||||
"github.com/aws/smithy-go/metrics"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyrand "github.com/aws/smithy-go/rand"
|
||||
"github.com/aws/smithy-go/tracing"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"net"
|
||||
"net/http"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
|
||||
const ServiceID = "EFS"
|
||||
const ServiceAPIVersion = "2015-02-01"
|
||||
|
||||
type operationMetrics struct {
|
||||
Duration metrics.Float64Histogram
|
||||
SerializeDuration metrics.Float64Histogram
|
||||
ResolveIdentityDuration metrics.Float64Histogram
|
||||
ResolveEndpointDuration metrics.Float64Histogram
|
||||
SignRequestDuration metrics.Float64Histogram
|
||||
DeserializeDuration metrics.Float64Histogram
|
||||
}
|
||||
|
||||
func (m *operationMetrics) histogramFor(name string) metrics.Float64Histogram {
|
||||
switch name {
|
||||
case "client.call.duration":
|
||||
return m.Duration
|
||||
case "client.call.serialization_duration":
|
||||
return m.SerializeDuration
|
||||
case "client.call.resolve_identity_duration":
|
||||
return m.ResolveIdentityDuration
|
||||
case "client.call.resolve_endpoint_duration":
|
||||
return m.ResolveEndpointDuration
|
||||
case "client.call.signing_duration":
|
||||
return m.SignRequestDuration
|
||||
case "client.call.deserialization_duration":
|
||||
return m.DeserializeDuration
|
||||
default:
|
||||
panic("unrecognized operation metric")
|
||||
}
|
||||
}
|
||||
|
||||
func timeOperationMetric[T any](
|
||||
ctx context.Context, metric string, fn func() (T, error),
|
||||
opts ...metrics.RecordMetricOption,
|
||||
) (T, error) {
|
||||
instr := getOperationMetrics(ctx).histogramFor(metric)
|
||||
opts = append([]metrics.RecordMetricOption{withOperationMetadata(ctx)}, opts...)
|
||||
|
||||
start := time.Now()
|
||||
v, err := fn()
|
||||
end := time.Now()
|
||||
|
||||
elapsed := end.Sub(start)
|
||||
instr.Record(ctx, float64(elapsed)/1e9, opts...)
|
||||
return v, err
|
||||
}
|
||||
|
||||
func startMetricTimer(ctx context.Context, metric string, opts ...metrics.RecordMetricOption) func() {
|
||||
instr := getOperationMetrics(ctx).histogramFor(metric)
|
||||
opts = append([]metrics.RecordMetricOption{withOperationMetadata(ctx)}, opts...)
|
||||
|
||||
var ended bool
|
||||
start := time.Now()
|
||||
return func() {
|
||||
if ended {
|
||||
return
|
||||
}
|
||||
ended = true
|
||||
|
||||
end := time.Now()
|
||||
|
||||
elapsed := end.Sub(start)
|
||||
instr.Record(ctx, float64(elapsed)/1e9, opts...)
|
||||
}
|
||||
}
|
||||
|
||||
func withOperationMetadata(ctx context.Context) metrics.RecordMetricOption {
|
||||
return func(o *metrics.RecordMetricOptions) {
|
||||
o.Properties.Set("rpc.service", middleware.GetServiceID(ctx))
|
||||
o.Properties.Set("rpc.method", middleware.GetOperationName(ctx))
|
||||
}
|
||||
}
|
||||
|
||||
type operationMetricsKey struct{}
|
||||
|
||||
func withOperationMetrics(parent context.Context, mp metrics.MeterProvider) (context.Context, error) {
|
||||
meter := mp.Meter("github.com/aws/aws-sdk-go-v2/service/efs")
|
||||
om := &operationMetrics{}
|
||||
|
||||
var err error
|
||||
|
||||
om.Duration, err = operationMetricTimer(meter, "client.call.duration",
|
||||
"Overall call duration (including retries and time to send or receive request and response body)")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
om.SerializeDuration, err = operationMetricTimer(meter, "client.call.serialization_duration",
|
||||
"The time it takes to serialize a message body")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
om.ResolveIdentityDuration, err = operationMetricTimer(meter, "client.call.auth.resolve_identity_duration",
|
||||
"The time taken to acquire an identity (AWS credentials, bearer token, etc) from an Identity Provider")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
om.ResolveEndpointDuration, err = operationMetricTimer(meter, "client.call.resolve_endpoint_duration",
|
||||
"The time it takes to resolve an endpoint (endpoint resolver, not DNS) for the request")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
om.SignRequestDuration, err = operationMetricTimer(meter, "client.call.auth.signing_duration",
|
||||
"The time it takes to sign a request")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
om.DeserializeDuration, err = operationMetricTimer(meter, "client.call.deserialization_duration",
|
||||
"The time it takes to deserialize a message body")
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return context.WithValue(parent, operationMetricsKey{}, om), nil
|
||||
}
|
||||
|
||||
func operationMetricTimer(m metrics.Meter, name, desc string) (metrics.Float64Histogram, error) {
|
||||
return m.Float64Histogram(name, func(o *metrics.InstrumentOptions) {
|
||||
o.UnitLabel = "s"
|
||||
o.Description = desc
|
||||
})
|
||||
}
|
||||
|
||||
func getOperationMetrics(ctx context.Context) *operationMetrics {
|
||||
return ctx.Value(operationMetricsKey{}).(*operationMetrics)
|
||||
}
|
||||
|
||||
func operationTracer(p tracing.TracerProvider) tracing.Tracer {
|
||||
return p.Tracer("github.com/aws/aws-sdk-go-v2/service/efs")
|
||||
}
|
||||
|
||||
// Client provides the API client to make operations call for Amazon Elastic File
|
||||
// System.
|
||||
type Client struct {
|
||||
options Options
|
||||
|
||||
// Difference between the time reported by the server and the client
|
||||
timeOffset *atomic.Int64
|
||||
}
|
||||
|
||||
// New returns an initialized Client based on the functional options. Provide
|
||||
// additional functional options to further configure the behavior of the client,
|
||||
// such as changing the client's endpoint or adding custom middleware behavior.
|
||||
func New(options Options, optFns ...func(*Options)) *Client {
|
||||
options = options.Copy()
|
||||
|
||||
resolveDefaultLogger(&options)
|
||||
|
||||
setResolvedDefaultsMode(&options)
|
||||
|
||||
resolveRetryer(&options)
|
||||
|
||||
resolveHTTPClient(&options)
|
||||
|
||||
resolveHTTPSignerV4(&options)
|
||||
|
||||
resolveIdempotencyTokenProvider(&options)
|
||||
|
||||
resolveEndpointResolverV2(&options)
|
||||
|
||||
resolveTracerProvider(&options)
|
||||
|
||||
resolveMeterProvider(&options)
|
||||
|
||||
resolveAuthSchemeResolver(&options)
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
finalizeRetryMaxAttempts(&options)
|
||||
|
||||
ignoreAnonymousAuth(&options)
|
||||
|
||||
wrapWithAnonymousAuth(&options)
|
||||
|
||||
resolveAuthSchemes(&options)
|
||||
|
||||
client := &Client{
|
||||
options: options,
|
||||
}
|
||||
|
||||
initializeTimeOffsetResolver(client)
|
||||
|
||||
return client
|
||||
}
|
||||
|
||||
// Options returns a copy of the client configuration.
|
||||
//
|
||||
// Callers SHOULD NOT perform mutations on any inner structures within client
|
||||
// config. Config overrides should instead be made on a per-operation basis through
|
||||
// functional options.
|
||||
func (c *Client) Options() Options {
|
||||
return c.options.Copy()
|
||||
}
|
||||
|
||||
func (c *Client) invokeOperation(
|
||||
ctx context.Context, opID string, params interface{}, optFns []func(*Options), stackFns ...func(*middleware.Stack, Options) error,
|
||||
) (
|
||||
result interface{}, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
ctx = middleware.ClearStackValues(ctx)
|
||||
ctx = middleware.WithServiceID(ctx, ServiceID)
|
||||
ctx = middleware.WithOperationName(ctx, opID)
|
||||
|
||||
stack := middleware.NewStack(opID, smithyhttp.NewStackRequest)
|
||||
options := c.options.Copy()
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
finalizeOperationRetryMaxAttempts(&options, *c)
|
||||
|
||||
finalizeClientEndpointResolverOptions(&options)
|
||||
|
||||
for _, fn := range stackFns {
|
||||
if err := fn(stack, options); err != nil {
|
||||
return nil, metadata, err
|
||||
}
|
||||
}
|
||||
|
||||
for _, fn := range options.APIOptions {
|
||||
if err := fn(stack); err != nil {
|
||||
return nil, metadata, err
|
||||
}
|
||||
}
|
||||
|
||||
ctx, err = withOperationMetrics(ctx, options.MeterProvider)
|
||||
if err != nil {
|
||||
return nil, metadata, err
|
||||
}
|
||||
|
||||
tracer := operationTracer(options.TracerProvider)
|
||||
spanName := fmt.Sprintf("%s.%s", ServiceID, opID)
|
||||
|
||||
ctx = tracing.WithOperationTracer(ctx, tracer)
|
||||
|
||||
ctx, span := tracer.StartSpan(ctx, spanName, func(o *tracing.SpanOptions) {
|
||||
o.Kind = tracing.SpanKindClient
|
||||
o.Properties.Set("rpc.system", "aws-api")
|
||||
o.Properties.Set("rpc.method", opID)
|
||||
o.Properties.Set("rpc.service", ServiceID)
|
||||
})
|
||||
endTimer := startMetricTimer(ctx, "client.call.duration")
|
||||
defer endTimer()
|
||||
defer span.End()
|
||||
|
||||
handler := smithyhttp.NewClientHandlerWithOptions(options.HTTPClient, func(o *smithyhttp.ClientHandler) {
|
||||
o.Meter = options.MeterProvider.Meter("github.com/aws/aws-sdk-go-v2/service/efs")
|
||||
})
|
||||
decorated := middleware.DecorateHandler(handler, stack)
|
||||
result, metadata, err = decorated.Handle(ctx, params)
|
||||
if err != nil {
|
||||
span.SetProperty("exception.type", fmt.Sprintf("%T", err))
|
||||
span.SetProperty("exception.message", err.Error())
|
||||
|
||||
var aerr smithy.APIError
|
||||
if errors.As(err, &aerr) {
|
||||
span.SetProperty("api.error_code", aerr.ErrorCode())
|
||||
span.SetProperty("api.error_message", aerr.ErrorMessage())
|
||||
span.SetProperty("api.error_fault", aerr.ErrorFault().String())
|
||||
}
|
||||
|
||||
err = &smithy.OperationError{
|
||||
ServiceID: ServiceID,
|
||||
OperationName: opID,
|
||||
Err: err,
|
||||
}
|
||||
}
|
||||
|
||||
span.SetProperty("error", err != nil)
|
||||
if err == nil {
|
||||
span.SetStatus(tracing.SpanStatusOK)
|
||||
} else {
|
||||
span.SetStatus(tracing.SpanStatusError)
|
||||
}
|
||||
|
||||
return result, metadata, err
|
||||
}
|
||||
|
||||
type operationInputKey struct{}
|
||||
|
||||
func setOperationInput(ctx context.Context, input interface{}) context.Context {
|
||||
return middleware.WithStackValue(ctx, operationInputKey{}, input)
|
||||
}
|
||||
|
||||
func getOperationInput(ctx context.Context) interface{} {
|
||||
return middleware.GetStackValue(ctx, operationInputKey{})
|
||||
}
|
||||
|
||||
type setOperationInputMiddleware struct {
|
||||
}
|
||||
|
||||
func (*setOperationInputMiddleware) ID() string {
|
||||
return "setOperationInput"
|
||||
}
|
||||
|
||||
func (m *setOperationInputMiddleware) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
||||
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
ctx = setOperationInput(ctx, in.Parameters)
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
func addProtocolFinalizerMiddlewares(stack *middleware.Stack, options Options, operation string) error {
|
||||
if err := stack.Finalize.Add(&resolveAuthSchemeMiddleware{operation: operation, options: options}, middleware.Before); err != nil {
|
||||
return fmt.Errorf("add ResolveAuthScheme: %w", err)
|
||||
}
|
||||
if err := stack.Finalize.Insert(&getIdentityMiddleware{options: options}, "ResolveAuthScheme", middleware.After); err != nil {
|
||||
return fmt.Errorf("add GetIdentity: %v", err)
|
||||
}
|
||||
if err := stack.Finalize.Insert(&resolveEndpointV2Middleware{options: options}, "GetIdentity", middleware.After); err != nil {
|
||||
return fmt.Errorf("add ResolveEndpointV2: %v", err)
|
||||
}
|
||||
if err := stack.Finalize.Insert(&signRequestMiddleware{options: options}, "ResolveEndpointV2", middleware.After); err != nil {
|
||||
return fmt.Errorf("add Signing: %w", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
func resolveAuthSchemeResolver(options *Options) {
|
||||
if options.AuthSchemeResolver == nil {
|
||||
options.AuthSchemeResolver = &defaultAuthSchemeResolver{}
|
||||
}
|
||||
}
|
||||
|
||||
func resolveAuthSchemes(options *Options) {
|
||||
if options.AuthSchemes == nil {
|
||||
options.AuthSchemes = []smithyhttp.AuthScheme{
|
||||
internalauth.NewHTTPAuthScheme("aws.auth#sigv4", &internalauthsmithy.V4SignerAdapter{
|
||||
Signer: options.HTTPSignerV4,
|
||||
Logger: options.Logger,
|
||||
LogSigning: options.ClientLogMode.IsSigning(),
|
||||
}),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
type noSmithyDocumentSerde = smithydocument.NoSerde
|
||||
|
||||
type legacyEndpointContextSetter struct {
|
||||
LegacyResolver EndpointResolver
|
||||
}
|
||||
|
||||
func (*legacyEndpointContextSetter) ID() string {
|
||||
return "legacyEndpointContextSetter"
|
||||
}
|
||||
|
||||
func (m *legacyEndpointContextSetter) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
if m.LegacyResolver != nil {
|
||||
ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, true)
|
||||
}
|
||||
|
||||
return next.HandleInitialize(ctx, in)
|
||||
|
||||
}
|
||||
func addlegacyEndpointContextSetter(stack *middleware.Stack, o Options) error {
|
||||
return stack.Initialize.Add(&legacyEndpointContextSetter{
|
||||
LegacyResolver: o.EndpointResolver,
|
||||
}, middleware.Before)
|
||||
}
|
||||
|
||||
func resolveDefaultLogger(o *Options) {
|
||||
if o.Logger != nil {
|
||||
return
|
||||
}
|
||||
o.Logger = logging.Nop{}
|
||||
}
|
||||
|
||||
func addSetLoggerMiddleware(stack *middleware.Stack, o Options) error {
|
||||
return middleware.AddSetLoggerMiddleware(stack, o.Logger)
|
||||
}
|
||||
|
||||
func setResolvedDefaultsMode(o *Options) {
|
||||
if len(o.resolvedDefaultsMode) > 0 {
|
||||
return
|
||||
}
|
||||
|
||||
var mode aws.DefaultsMode
|
||||
mode.SetFromString(string(o.DefaultsMode))
|
||||
|
||||
if mode == aws.DefaultsModeAuto {
|
||||
mode = defaults.ResolveDefaultsModeAuto(o.Region, o.RuntimeEnvironment)
|
||||
}
|
||||
|
||||
o.resolvedDefaultsMode = mode
|
||||
}
|
||||
|
||||
// NewFromConfig returns a new client from the provided config.
|
||||
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
|
||||
opts := Options{
|
||||
Region: cfg.Region,
|
||||
DefaultsMode: cfg.DefaultsMode,
|
||||
RuntimeEnvironment: cfg.RuntimeEnvironment,
|
||||
HTTPClient: cfg.HTTPClient,
|
||||
Credentials: cfg.Credentials,
|
||||
APIOptions: cfg.APIOptions,
|
||||
Logger: cfg.Logger,
|
||||
ClientLogMode: cfg.ClientLogMode,
|
||||
AppID: cfg.AppID,
|
||||
}
|
||||
resolveAWSRetryerProvider(cfg, &opts)
|
||||
resolveAWSRetryMaxAttempts(cfg, &opts)
|
||||
resolveAWSRetryMode(cfg, &opts)
|
||||
resolveAWSEndpointResolver(cfg, &opts)
|
||||
resolveUseDualStackEndpoint(cfg, &opts)
|
||||
resolveUseFIPSEndpoint(cfg, &opts)
|
||||
resolveBaseEndpoint(cfg, &opts)
|
||||
return New(opts, optFns...)
|
||||
}
|
||||
|
||||
func resolveHTTPClient(o *Options) {
|
||||
var buildable *awshttp.BuildableClient
|
||||
|
||||
if o.HTTPClient != nil {
|
||||
var ok bool
|
||||
buildable, ok = o.HTTPClient.(*awshttp.BuildableClient)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
buildable = awshttp.NewBuildableClient()
|
||||
}
|
||||
|
||||
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
|
||||
if err == nil {
|
||||
buildable = buildable.WithDialerOptions(func(dialer *net.Dialer) {
|
||||
if dialerTimeout, ok := modeConfig.GetConnectTimeout(); ok {
|
||||
dialer.Timeout = dialerTimeout
|
||||
}
|
||||
})
|
||||
|
||||
buildable = buildable.WithTransportOptions(func(transport *http.Transport) {
|
||||
if tlsHandshakeTimeout, ok := modeConfig.GetTLSNegotiationTimeout(); ok {
|
||||
transport.TLSHandshakeTimeout = tlsHandshakeTimeout
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
o.HTTPClient = buildable
|
||||
}
|
||||
|
||||
func resolveRetryer(o *Options) {
|
||||
if o.Retryer != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if len(o.RetryMode) == 0 {
|
||||
modeConfig, err := defaults.GetModeConfiguration(o.resolvedDefaultsMode)
|
||||
if err == nil {
|
||||
o.RetryMode = modeConfig.RetryMode
|
||||
}
|
||||
}
|
||||
if len(o.RetryMode) == 0 {
|
||||
o.RetryMode = aws.RetryModeStandard
|
||||
}
|
||||
|
||||
var standardOptions []func(*retry.StandardOptions)
|
||||
if v := o.RetryMaxAttempts; v != 0 {
|
||||
standardOptions = append(standardOptions, func(so *retry.StandardOptions) {
|
||||
so.MaxAttempts = v
|
||||
})
|
||||
}
|
||||
|
||||
switch o.RetryMode {
|
||||
case aws.RetryModeAdaptive:
|
||||
var adaptiveOptions []func(*retry.AdaptiveModeOptions)
|
||||
if len(standardOptions) != 0 {
|
||||
adaptiveOptions = append(adaptiveOptions, func(ao *retry.AdaptiveModeOptions) {
|
||||
ao.StandardOptions = append(ao.StandardOptions, standardOptions...)
|
||||
})
|
||||
}
|
||||
o.Retryer = retry.NewAdaptiveMode(adaptiveOptions...)
|
||||
|
||||
default:
|
||||
o.Retryer = retry.NewStandard(standardOptions...)
|
||||
}
|
||||
}
|
||||
|
||||
func resolveAWSRetryerProvider(cfg aws.Config, o *Options) {
|
||||
if cfg.Retryer == nil {
|
||||
return
|
||||
}
|
||||
o.Retryer = cfg.Retryer()
|
||||
}
|
||||
|
||||
func resolveAWSRetryMode(cfg aws.Config, o *Options) {
|
||||
if len(cfg.RetryMode) == 0 {
|
||||
return
|
||||
}
|
||||
o.RetryMode = cfg.RetryMode
|
||||
}
|
||||
func resolveAWSRetryMaxAttempts(cfg aws.Config, o *Options) {
|
||||
if cfg.RetryMaxAttempts == 0 {
|
||||
return
|
||||
}
|
||||
o.RetryMaxAttempts = cfg.RetryMaxAttempts
|
||||
}
|
||||
|
||||
func finalizeRetryMaxAttempts(o *Options) {
|
||||
if o.RetryMaxAttempts == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
|
||||
}
|
||||
|
||||
func finalizeOperationRetryMaxAttempts(o *Options, client Client) {
|
||||
if v := o.RetryMaxAttempts; v == 0 || v == client.options.RetryMaxAttempts {
|
||||
return
|
||||
}
|
||||
|
||||
o.Retryer = retry.AddWithMaxAttempts(o.Retryer, o.RetryMaxAttempts)
|
||||
}
|
||||
|
||||
func resolveAWSEndpointResolver(cfg aws.Config, o *Options) {
|
||||
if cfg.EndpointResolver == nil && cfg.EndpointResolverWithOptions == nil {
|
||||
return
|
||||
}
|
||||
o.EndpointResolver = withEndpointResolver(cfg.EndpointResolver, cfg.EndpointResolverWithOptions)
|
||||
}
|
||||
|
||||
func addClientUserAgent(stack *middleware.Stack, options Options) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ua.AddSDKAgentKeyValue(awsmiddleware.APIMetadata, "efs", goModuleVersion)
|
||||
if len(options.AppID) > 0 {
|
||||
ua.AddSDKAgentKey(awsmiddleware.ApplicationIdentifier, options.AppID)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func getOrAddRequestUserAgent(stack *middleware.Stack) (*awsmiddleware.RequestUserAgent, error) {
|
||||
id := (*awsmiddleware.RequestUserAgent)(nil).ID()
|
||||
mw, ok := stack.Build.Get(id)
|
||||
if !ok {
|
||||
mw = awsmiddleware.NewRequestUserAgent()
|
||||
if err := stack.Build.Add(mw, middleware.After); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
ua, ok := mw.(*awsmiddleware.RequestUserAgent)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("%T for %s middleware did not match expected type", mw, id)
|
||||
}
|
||||
|
||||
return ua, nil
|
||||
}
|
||||
|
||||
type HTTPSignerV4 interface {
|
||||
SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
|
||||
}
|
||||
|
||||
func resolveHTTPSignerV4(o *Options) {
|
||||
if o.HTTPSignerV4 != nil {
|
||||
return
|
||||
}
|
||||
o.HTTPSignerV4 = newDefaultV4Signer(*o)
|
||||
}
|
||||
|
||||
func newDefaultV4Signer(o Options) *v4.Signer {
|
||||
return v4.NewSigner(func(so *v4.SignerOptions) {
|
||||
so.Logger = o.Logger
|
||||
so.LogSigning = o.ClientLogMode.IsSigning()
|
||||
})
|
||||
}
|
||||
|
||||
func addClientRequestID(stack *middleware.Stack) error {
|
||||
return stack.Build.Add(&awsmiddleware.ClientRequestID{}, middleware.After)
|
||||
}
|
||||
|
||||
func addComputeContentLength(stack *middleware.Stack) error {
|
||||
return stack.Build.Add(&smithyhttp.ComputeContentLength{}, middleware.After)
|
||||
}
|
||||
|
||||
func addRawResponseToMetadata(stack *middleware.Stack) error {
|
||||
return stack.Deserialize.Add(&awsmiddleware.AddRawResponse{}, middleware.Before)
|
||||
}
|
||||
|
||||
func addRecordResponseTiming(stack *middleware.Stack) error {
|
||||
return stack.Deserialize.Add(&awsmiddleware.RecordResponseTiming{}, middleware.After)
|
||||
}
|
||||
|
||||
func addSpanRetryLoop(stack *middleware.Stack, options Options) error {
|
||||
return stack.Finalize.Insert(&spanRetryLoop{options: options}, "Retry", middleware.Before)
|
||||
}
|
||||
|
||||
type spanRetryLoop struct {
|
||||
options Options
|
||||
}
|
||||
|
||||
func (*spanRetryLoop) ID() string {
|
||||
return "spanRetryLoop"
|
||||
}
|
||||
|
||||
func (m *spanRetryLoop) HandleFinalize(
|
||||
ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler,
|
||||
) (
|
||||
middleware.FinalizeOutput, middleware.Metadata, error,
|
||||
) {
|
||||
tracer := operationTracer(m.options.TracerProvider)
|
||||
ctx, span := tracer.StartSpan(ctx, "RetryLoop")
|
||||
defer span.End()
|
||||
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
func addStreamingEventsPayload(stack *middleware.Stack) error {
|
||||
return stack.Finalize.Add(&v4.StreamingEventsPayload{}, middleware.Before)
|
||||
}
|
||||
|
||||
func addUnsignedPayload(stack *middleware.Stack) error {
|
||||
return stack.Finalize.Insert(&v4.UnsignedPayload{}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func addComputePayloadSHA256(stack *middleware.Stack) error {
|
||||
return stack.Finalize.Insert(&v4.ComputePayloadSHA256{}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func addContentSHA256Header(stack *middleware.Stack) error {
|
||||
return stack.Finalize.Insert(&v4.ContentSHA256Header{}, (*v4.ComputePayloadSHA256)(nil).ID(), middleware.After)
|
||||
}
|
||||
|
||||
func addIsWaiterUserAgent(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureWaiter)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func addIsPaginatorUserAgent(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeaturePaginator)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func resolveIdempotencyTokenProvider(o *Options) {
|
||||
if o.IdempotencyTokenProvider != nil {
|
||||
return
|
||||
}
|
||||
o.IdempotencyTokenProvider = smithyrand.NewUUIDIdempotencyToken(cryptorand.Reader)
|
||||
}
|
||||
|
||||
func addRetry(stack *middleware.Stack, o Options) error {
|
||||
attempt := retry.NewAttemptMiddleware(o.Retryer, smithyhttp.RequestCloner, func(m *retry.Attempt) {
|
||||
m.LogAttempts = o.ClientLogMode.IsRetries()
|
||||
m.OperationMeter = o.MeterProvider.Meter("github.com/aws/aws-sdk-go-v2/service/efs")
|
||||
})
|
||||
if err := stack.Finalize.Insert(attempt, "ResolveAuthScheme", middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := stack.Finalize.Insert(&retry.MetricsHeader{}, attempt.ID(), middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// resolves dual-stack endpoint configuration
|
||||
func resolveUseDualStackEndpoint(cfg aws.Config, o *Options) error {
|
||||
if len(cfg.ConfigSources) == 0 {
|
||||
return nil
|
||||
}
|
||||
value, found, err := internalConfig.ResolveUseDualStackEndpoint(context.Background(), cfg.ConfigSources)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if found {
|
||||
o.EndpointOptions.UseDualStackEndpoint = value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// resolves FIPS endpoint configuration
|
||||
func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error {
|
||||
if len(cfg.ConfigSources) == 0 {
|
||||
return nil
|
||||
}
|
||||
value, found, err := internalConfig.ResolveUseFIPSEndpoint(context.Background(), cfg.ConfigSources)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if found {
|
||||
o.EndpointOptions.UseFIPSEndpoint = value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func resolveAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) *string {
|
||||
if mode == aws.AccountIDEndpointModeDisabled {
|
||||
return nil
|
||||
}
|
||||
|
||||
if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); ok && ca.Credentials.AccountID != "" {
|
||||
return aws.String(ca.Credentials.AccountID)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func addTimeOffsetBuild(stack *middleware.Stack, c *Client) error {
|
||||
mw := internalmiddleware.AddTimeOffsetMiddleware{Offset: c.timeOffset}
|
||||
if err := stack.Build.Add(&mw, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
return stack.Deserialize.Insert(&mw, "RecordResponseTiming", middleware.Before)
|
||||
}
|
||||
func initializeTimeOffsetResolver(c *Client) {
|
||||
c.timeOffset = new(atomic.Int64)
|
||||
}
|
||||
|
||||
func addUserAgentRetryMode(stack *middleware.Stack, options Options) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
switch options.Retryer.(type) {
|
||||
case *retry.Standard:
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeStandard)
|
||||
case *retry.AdaptiveMode:
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeAdaptive)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type setCredentialSourceMiddleware struct {
|
||||
ua *awsmiddleware.RequestUserAgent
|
||||
options Options
|
||||
}
|
||||
|
||||
func (m setCredentialSourceMiddleware) ID() string { return "SetCredentialSourceMiddleware" }
|
||||
|
||||
func (m setCredentialSourceMiddleware) HandleBuild(ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler) (
|
||||
out middleware.BuildOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
asProviderSource, ok := m.options.Credentials.(aws.CredentialProviderSource)
|
||||
if !ok {
|
||||
return next.HandleBuild(ctx, in)
|
||||
}
|
||||
providerSources := asProviderSource.ProviderSources()
|
||||
for _, source := range providerSources {
|
||||
m.ua.AddCredentialsSource(source)
|
||||
}
|
||||
return next.HandleBuild(ctx, in)
|
||||
}
|
||||
|
||||
func addCredentialSource(stack *middleware.Stack, options Options) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
mw := setCredentialSourceMiddleware{ua: ua, options: options}
|
||||
return stack.Build.Insert(&mw, "UserAgent", middleware.Before)
|
||||
}
|
||||
|
||||
func resolveTracerProvider(options *Options) {
|
||||
if options.TracerProvider == nil {
|
||||
options.TracerProvider = &tracing.NopTracerProvider{}
|
||||
}
|
||||
}
|
||||
|
||||
func resolveMeterProvider(options *Options) {
|
||||
if options.MeterProvider == nil {
|
||||
options.MeterProvider = metrics.NopMeterProvider{}
|
||||
}
|
||||
}
|
||||
|
||||
// IdempotencyTokenProvider interface for providing idempotency token
|
||||
type IdempotencyTokenProvider interface {
|
||||
GetIdempotencyToken() (string, error)
|
||||
}
|
||||
|
||||
func addRecursionDetection(stack *middleware.Stack) error {
|
||||
return stack.Build.Add(&awsmiddleware.RecursionDetection{}, middleware.After)
|
||||
}
|
||||
|
||||
func addRequestIDRetrieverMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Deserialize.Insert(&awsmiddleware.RequestIDRetriever{}, "OperationDeserializer", middleware.Before)
|
||||
|
||||
}
|
||||
|
||||
func addResponseErrorMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Deserialize.Insert(&awshttp.ResponseErrorWrapper{}, "RequestIDRetriever", middleware.Before)
|
||||
|
||||
}
|
||||
|
||||
func addRequestResponseLogging(stack *middleware.Stack, o Options) error {
|
||||
return stack.Deserialize.Add(&smithyhttp.RequestResponseLogger{
|
||||
LogRequest: o.ClientLogMode.IsRequest(),
|
||||
LogRequestWithBody: o.ClientLogMode.IsRequestWithBody(),
|
||||
LogResponse: o.ClientLogMode.IsResponse(),
|
||||
LogResponseWithBody: o.ClientLogMode.IsResponseWithBody(),
|
||||
}, middleware.After)
|
||||
}
|
||||
|
||||
type disableHTTPSMiddleware struct {
|
||||
DisableHTTPS bool
|
||||
}
|
||||
|
||||
func (*disableHTTPSMiddleware) ID() string {
|
||||
return "disableHTTPS"
|
||||
}
|
||||
|
||||
func (m *disableHTTPSMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
req, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
|
||||
}
|
||||
|
||||
if m.DisableHTTPS && !smithyhttp.GetHostnameImmutable(ctx) {
|
||||
req.URL.Scheme = "http"
|
||||
}
|
||||
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
func addDisableHTTPSMiddleware(stack *middleware.Stack, o Options) error {
|
||||
return stack.Finalize.Insert(&disableHTTPSMiddleware{
|
||||
DisableHTTPS: o.EndpointOptions.DisableHTTPS,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
type spanInitializeStart struct {
|
||||
}
|
||||
|
||||
func (*spanInitializeStart) ID() string {
|
||||
return "spanInitializeStart"
|
||||
}
|
||||
|
||||
func (m *spanInitializeStart) HandleInitialize(
|
||||
ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
|
||||
) (
|
||||
middleware.InitializeOutput, middleware.Metadata, error,
|
||||
) {
|
||||
ctx, _ = tracing.StartSpan(ctx, "Initialize")
|
||||
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
type spanInitializeEnd struct {
|
||||
}
|
||||
|
||||
func (*spanInitializeEnd) ID() string {
|
||||
return "spanInitializeEnd"
|
||||
}
|
||||
|
||||
func (m *spanInitializeEnd) HandleInitialize(
|
||||
ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler,
|
||||
) (
|
||||
middleware.InitializeOutput, middleware.Metadata, error,
|
||||
) {
|
||||
ctx, span := tracing.PopSpan(ctx)
|
||||
span.End()
|
||||
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
type spanBuildRequestStart struct {
|
||||
}
|
||||
|
||||
func (*spanBuildRequestStart) ID() string {
|
||||
return "spanBuildRequestStart"
|
||||
}
|
||||
|
||||
func (m *spanBuildRequestStart) HandleSerialize(
|
||||
ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler,
|
||||
) (
|
||||
middleware.SerializeOutput, middleware.Metadata, error,
|
||||
) {
|
||||
ctx, _ = tracing.StartSpan(ctx, "BuildRequest")
|
||||
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
type spanBuildRequestEnd struct {
|
||||
}
|
||||
|
||||
func (*spanBuildRequestEnd) ID() string {
|
||||
return "spanBuildRequestEnd"
|
||||
}
|
||||
|
||||
func (m *spanBuildRequestEnd) HandleBuild(
|
||||
ctx context.Context, in middleware.BuildInput, next middleware.BuildHandler,
|
||||
) (
|
||||
middleware.BuildOutput, middleware.Metadata, error,
|
||||
) {
|
||||
ctx, span := tracing.PopSpan(ctx)
|
||||
span.End()
|
||||
|
||||
return next.HandleBuild(ctx, in)
|
||||
}
|
||||
|
||||
func addSpanInitializeStart(stack *middleware.Stack) error {
|
||||
return stack.Initialize.Add(&spanInitializeStart{}, middleware.Before)
|
||||
}
|
||||
|
||||
func addSpanInitializeEnd(stack *middleware.Stack) error {
|
||||
return stack.Initialize.Add(&spanInitializeEnd{}, middleware.After)
|
||||
}
|
||||
|
||||
func addSpanBuildRequestStart(stack *middleware.Stack) error {
|
||||
return stack.Serialize.Add(&spanBuildRequestStart{}, middleware.Before)
|
||||
}
|
||||
|
||||
func addSpanBuildRequestEnd(stack *middleware.Stack) error {
|
||||
return stack.Build.Add(&spanBuildRequestEnd{}, middleware.After)
|
||||
}
|
||||
283
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateAccessPoint.go
generated
vendored
Normal file
283
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateAccessPoint.go
generated
vendored
Normal file
@@ -0,0 +1,283 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// 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 the
|
||||
// application's own directory and any subdirectories. A file system can have a
|
||||
// maximum of 10,000 access points unless you request an increase. To learn more,
|
||||
// see [Mounting a file system using EFS access points].
|
||||
//
|
||||
// If multiple requests to create access points on the same file system are sent
|
||||
// in quick succession, and the file system is near the limit of access points, you
|
||||
// may experience a throttling response for these requests. This is to ensure that
|
||||
// the file system does not exceed the stated access point limit.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:CreateAccessPoint
|
||||
// action.
|
||||
//
|
||||
// Access points can be tagged on creation. If tags are specified in the creation
|
||||
// action, IAM performs additional authorization on the
|
||||
// elasticfilesystem:TagResource action to verify if users have permissions to
|
||||
// create tags. Therefore, you must grant explicit permissions to use the
|
||||
// elasticfilesystem:TagResource action. For more information, see [Granting permissions to tag resources during creation].
|
||||
//
|
||||
// [Mounting a file system using EFS access points]: https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html
|
||||
// [Granting permissions to tag resources during creation]: https://docs.aws.amazon.com/efs/latest/ug/using-tags-efs.html#supported-iam-actions-tagging.html
|
||||
func (c *Client) CreateAccessPoint(ctx context.Context, params *CreateAccessPointInput, optFns ...func(*Options)) (*CreateAccessPointOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateAccessPointInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateAccessPoint", params, optFns, c.addOperationCreateAccessPointMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateAccessPointOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateAccessPointInput struct {
|
||||
|
||||
// A string of up to 64 ASCII characters that Amazon EFS uses to ensure idempotent
|
||||
// creation.
|
||||
//
|
||||
// This member is required.
|
||||
ClientToken *string
|
||||
|
||||
// The ID of the EFS file system that the access point provides access to.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// The operating system user and group applied to all file system requests made
|
||||
// using the access point.
|
||||
PosixUser *types.PosixUser
|
||||
|
||||
// Specifies the directory on the EFS file system that the access point exposes as
|
||||
// the root directory of your file system to NFS clients using the access point.
|
||||
// The clients using the access point can only access the root directory and below.
|
||||
// If the RootDirectory > Path specified does not exist, Amazon EFS creates it and
|
||||
// applies the CreationInfo settings when a client connects to an access point.
|
||||
// When specifying a RootDirectory , you must provide the Path , and the
|
||||
// CreationInfo .
|
||||
//
|
||||
// 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.
|
||||
RootDirectory *types.RootDirectory
|
||||
|
||||
// Creates tags associated with the access point. Each tag is a key-value pair,
|
||||
// each key must be unique. For more information, see [Tagging Amazon Web Services resources]in the Amazon Web Services
|
||||
// General Reference Guide.
|
||||
//
|
||||
// [Tagging Amazon Web Services resources]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
|
||||
Tags []types.Tag
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Provides a description of an EFS file system access point.
|
||||
type CreateAccessPointOutput 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 types.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 *types.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 *types.RootDirectory
|
||||
|
||||
// The tags associated with the access point, presented as an array of Tag objects.
|
||||
Tags []types.Tag
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateAccessPointMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateAccessPoint{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateAccessPoint{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateAccessPoint"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addIdempotencyToken_opCreateAccessPointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateAccessPointValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateAccessPoint(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type idempotencyToken_initializeOpCreateAccessPoint struct {
|
||||
tokenProvider IdempotencyTokenProvider
|
||||
}
|
||||
|
||||
func (*idempotencyToken_initializeOpCreateAccessPoint) ID() string {
|
||||
return "OperationIdempotencyTokenAutoFill"
|
||||
}
|
||||
|
||||
func (m *idempotencyToken_initializeOpCreateAccessPoint) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
if m.tokenProvider == nil {
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
input, ok := in.Parameters.(*CreateAccessPointInput)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateAccessPointInput ")
|
||||
}
|
||||
|
||||
if input.ClientToken == nil {
|
||||
t, err := m.tokenProvider.GetIdempotencyToken()
|
||||
if err != nil {
|
||||
return out, metadata, err
|
||||
}
|
||||
input.ClientToken = &t
|
||||
}
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
func addIdempotencyToken_opCreateAccessPointMiddleware(stack *middleware.Stack, cfg Options) error {
|
||||
return stack.Initialize.Add(&idempotencyToken_initializeOpCreateAccessPoint{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateAccessPoint(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "CreateAccessPoint",
|
||||
}
|
||||
}
|
||||
453
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateFileSystem.go
generated
vendored
Normal file
453
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateFileSystem.go
generated
vendored
Normal file
@@ -0,0 +1,453 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Creates a new, empty file system. The operation requires a creation token in
|
||||
// the request that Amazon EFS uses to ensure idempotent creation (calling the
|
||||
// operation with same creation token has no effect). If a file system does not
|
||||
// currently exist that is owned by the caller's Amazon Web Services account with
|
||||
// the specified creation token, this operation does the following:
|
||||
//
|
||||
// - Creates a new, empty file system. The file system will have an Amazon EFS
|
||||
// assigned ID, and an initial lifecycle state creating .
|
||||
//
|
||||
// - Returns with the description of the created file system.
|
||||
//
|
||||
// Otherwise, this operation returns a FileSystemAlreadyExists error with the ID
|
||||
// of the existing file system.
|
||||
//
|
||||
// For basic use cases, you can use a randomly generated UUID for the creation
|
||||
// token.
|
||||
//
|
||||
// The idempotent operation allows you to retry a CreateFileSystem call without
|
||||
// risk of creating an extra file system. This can happen when an initial call
|
||||
// fails in a way that leaves it uncertain whether or not a file system was
|
||||
// actually created. An example might be that a transport level timeout occurred or
|
||||
// your connection was reset. As long as you use the same creation token, if the
|
||||
// initial call had succeeded in creating a file system, the client can learn of
|
||||
// its existence from the FileSystemAlreadyExists error.
|
||||
//
|
||||
// For more information, see [Creating a file system] in the Amazon EFS User Guide.
|
||||
//
|
||||
// The CreateFileSystem call returns while the file system's lifecycle state is
|
||||
// still creating . You can check the file system creation status by calling the DescribeFileSystems
|
||||
// operation, which among other things returns the file system state.
|
||||
//
|
||||
// This operation accepts an optional PerformanceMode parameter that you choose
|
||||
// for your file system. We recommend generalPurpose PerformanceMode for all file
|
||||
// systems. The maxIO mode is a previous generation performance type that is
|
||||
// designed for highly parallelized workloads that can tolerate higher latencies
|
||||
// than the generalPurpose mode. MaxIO mode is not supported for One Zone file
|
||||
// systems or file systems that use Elastic throughput.
|
||||
//
|
||||
// The PerformanceMode can't be changed after the file system has been created.
|
||||
// For more information, see [Amazon EFS performance modes].
|
||||
//
|
||||
// You can set the throughput mode for the file system using the ThroughputMode
|
||||
// parameter.
|
||||
//
|
||||
// After the file system is fully created, Amazon EFS sets its lifecycle state to
|
||||
// available , at which point you can create one or more mount targets for the file
|
||||
// system in your VPC. For more information, see CreateMountTarget. You mount your Amazon EFS file
|
||||
// system on an EC2 instances in your VPC by using the mount target. For more
|
||||
// information, see [Amazon EFS: How it Works].
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:CreateFileSystem
|
||||
// action.
|
||||
//
|
||||
// File systems can be tagged on creation. If tags are specified in the creation
|
||||
// action, IAM performs additional authorization on the
|
||||
// elasticfilesystem:TagResource action to verify if users have permissions to
|
||||
// create tags. Therefore, you must grant explicit permissions to use the
|
||||
// elasticfilesystem:TagResource action. For more information, see [Granting permissions to tag resources during creation].
|
||||
//
|
||||
// [Creating a file system]: https://docs.aws.amazon.com/efs/latest/ug/creating-using-create-fs.html#creating-using-create-fs-part1
|
||||
// [Amazon EFS: How it Works]: https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html
|
||||
// [Amazon EFS performance modes]: https://docs.aws.amazon.com/efs/latest/ug/performance.html#performancemodes.html
|
||||
// [Granting permissions to tag resources during creation]: https://docs.aws.amazon.com/efs/latest/ug/using-tags-efs.html#supported-iam-actions-tagging.html
|
||||
func (c *Client) CreateFileSystem(ctx context.Context, params *CreateFileSystemInput, optFns ...func(*Options)) (*CreateFileSystemOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateFileSystemInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateFileSystem", params, optFns, c.addOperationCreateFileSystemMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateFileSystemOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateFileSystemInput struct {
|
||||
|
||||
// A string of up to 64 ASCII characters. Amazon EFS uses this to ensure
|
||||
// idempotent creation.
|
||||
//
|
||||
// This member is required.
|
||||
CreationToken *string
|
||||
|
||||
// For One Zone file systems, specify the Amazon Web Services 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 file systems, see [EFS file system types]in the
|
||||
// Amazon EFS User Guide.
|
||||
//
|
||||
// One Zone file systems are not available in all Availability Zones in Amazon Web
|
||||
// Services Regions where Amazon EFS is available.
|
||||
//
|
||||
// [EFS file system types]: https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html#file-system-type
|
||||
AvailabilityZoneName *string
|
||||
|
||||
// Specifies whether automatic backups are enabled on the file system that you are
|
||||
// creating. Set the value to true to enable automatic backups. If you are
|
||||
// creating a One Zone file system, automatic backups are enabled by default. For
|
||||
// more information, see [Automatic backups]in the Amazon EFS User Guide.
|
||||
//
|
||||
// Default is false . However, if you specify an AvailabilityZoneName , the default
|
||||
// is true .
|
||||
//
|
||||
// Backup is not available in all Amazon Web Services Regions where Amazon EFS is
|
||||
// available.
|
||||
//
|
||||
// [Automatic backups]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#automatic-backups
|
||||
Backup *bool
|
||||
|
||||
// A Boolean value that, if true, creates an encrypted file system. When creating
|
||||
// an encrypted file system, you have the option of specifying an existing Key
|
||||
// Management Service key (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 *bool
|
||||
|
||||
// The ID of the KMS key that you want to use to protect the encrypted file
|
||||
// system. This parameter is required only if you want to use a non-default KMS
|
||||
// key. If this parameter is not specified, the default KMS key for Amazon EFS is
|
||||
// used. You can specify a KMS key ID using 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 you use KmsKeyId , you must set the CreateFileSystemRequest$Encrypted parameter to true.
|
||||
//
|
||||
// EFS accepts only symmetric KMS keys. You cannot use asymmetric KMS keys with
|
||||
// Amazon EFS file systems.
|
||||
KmsKeyId *string
|
||||
|
||||
// The performance mode of the file system. We recommend generalPurpose
|
||||
// performance mode for all 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 One Zone file systems.
|
||||
//
|
||||
// Due to the higher per-operation latencies with Max I/O, we recommend using
|
||||
// General Purpose performance mode for all file systems.
|
||||
//
|
||||
// Default is generalPurpose .
|
||||
PerformanceMode types.PerformanceMode
|
||||
|
||||
// The throughput, measured in mebibytes per second (MiBps), that you want to
|
||||
// provision for a file system that you're creating. Required if ThroughputMode is
|
||||
// set to provisioned . Valid values are 1-3414 MiBps, with the upper limit
|
||||
// depending on Region. To increase this limit, contact Amazon Web ServicesSupport.
|
||||
// For more information, see [Amazon EFS quotas that you can increase]in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Amazon EFS quotas that you can increase]: https://docs.aws.amazon.com/efs/latest/ug/limits.html#soft-limits
|
||||
ProvisionedThroughputInMibps *float64
|
||||
|
||||
// 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 Amazon Web Services resources]in the Amazon Web Services General Reference Guide.
|
||||
//
|
||||
// [Tagging Amazon Web Services resources]: https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
|
||||
Tags []types.Tag
|
||||
|
||||
// Specifies the throughput mode for the file system. The mode can be bursting ,
|
||||
// provisioned , or elastic . 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 Provisioned throughput or change
|
||||
// between the throughput modes, with certain time restrictions. For more
|
||||
// information, see [Specifying throughput with provisioned mode]in the Amazon EFS User Guide.
|
||||
//
|
||||
// Default is bursting .
|
||||
//
|
||||
// [Specifying throughput with provisioned mode]: https://docs.aws.amazon.com/efs/latest/ug/performance.html#provisioned-throughput
|
||||
ThroughputMode types.ThroughputMode
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// A description of the file system.
|
||||
type CreateFileSystemOutput 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 types.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 types.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 *types.FileSystemSize
|
||||
|
||||
// The tags associated with the file system, presented as an array of Tag objects.
|
||||
//
|
||||
// This member is required.
|
||||
Tags []types.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]
|
||||
// in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Using EFS storage classes]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html
|
||||
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 *types.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] in the
|
||||
// Amazon EFS User Guide.
|
||||
//
|
||||
// [Throughput modes]: https://docs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes
|
||||
ThroughputMode types.ThroughputMode
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateFileSystemMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateFileSystem{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateFileSystem{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateFileSystem"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addIdempotencyToken_opCreateFileSystemMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateFileSystemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateFileSystem(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type idempotencyToken_initializeOpCreateFileSystem struct {
|
||||
tokenProvider IdempotencyTokenProvider
|
||||
}
|
||||
|
||||
func (*idempotencyToken_initializeOpCreateFileSystem) ID() string {
|
||||
return "OperationIdempotencyTokenAutoFill"
|
||||
}
|
||||
|
||||
func (m *idempotencyToken_initializeOpCreateFileSystem) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
if m.tokenProvider == nil {
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
input, ok := in.Parameters.(*CreateFileSystemInput)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateFileSystemInput ")
|
||||
}
|
||||
|
||||
if input.CreationToken == nil {
|
||||
t, err := m.tokenProvider.GetIdempotencyToken()
|
||||
if err != nil {
|
||||
return out, metadata, err
|
||||
}
|
||||
input.CreationToken = &t
|
||||
}
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
func addIdempotencyToken_opCreateFileSystemMiddleware(stack *middleware.Stack, cfg Options) error {
|
||||
return stack.Initialize.Add(&idempotencyToken_initializeOpCreateFileSystem{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateFileSystem(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "CreateFileSystem",
|
||||
}
|
||||
}
|
||||
347
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateMountTarget.go
generated
vendored
Normal file
347
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateMountTarget.go
generated
vendored
Normal file
@@ -0,0 +1,347 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Creates a mount target for a file system. You can then mount the file system on
|
||||
// EC2 instances by using the mount target.
|
||||
//
|
||||
// You can create one mount target in each Availability Zone in your VPC. All EC2
|
||||
// instances in a VPC within a given Availability Zone share a single mount target
|
||||
// for a given file system. If you have multiple subnets in an Availability Zone,
|
||||
// you create a mount target in one of the subnets. EC2 instances do not need to be
|
||||
// in the same subnet as the mount target in order to access their file system.
|
||||
//
|
||||
// You can create only one mount target for a One Zone file system. You must
|
||||
// create that mount target in the same Availability Zone in which the file system
|
||||
// is located. Use the AvailabilityZoneName and AvailabiltyZoneId properties in
|
||||
// the DescribeFileSystemsresponse object to get this information. Use the subnetId associated with
|
||||
// the file system's Availability Zone when creating the mount target.
|
||||
//
|
||||
// For more information, see [Amazon EFS: How it Works].
|
||||
//
|
||||
// To create a mount target for a file system, the file system's lifecycle state
|
||||
// must be available . For more information, see DescribeFileSystems.
|
||||
//
|
||||
// In the request, provide the following:
|
||||
//
|
||||
// - The file system ID for which you are creating the mount target.
|
||||
//
|
||||
// - A subnet ID, which determines the following:
|
||||
//
|
||||
// - The VPC in which Amazon EFS creates the mount target
|
||||
//
|
||||
// - The Availability Zone in which Amazon EFS creates the mount target
|
||||
//
|
||||
// - The IP address range from which Amazon EFS selects the IP address of the
|
||||
// mount target (if you don't specify an IP address in the request)
|
||||
//
|
||||
// After creating the mount target, Amazon EFS returns a response that includes, a
|
||||
// MountTargetId and an IpAddress . You use this IP address when mounting the file
|
||||
// system in an EC2 instance. You can also use the mount target's DNS name when
|
||||
// mounting the file system. The EC2 instance on which you mount the file system by
|
||||
// using the mount target can resolve the mount target's DNS name to its IP
|
||||
// address. For more information, see [How it Works: Implementation Overview].
|
||||
//
|
||||
// Note that you can create mount targets for a file system in only one VPC, and
|
||||
// there can be only one mount target per Availability Zone. That is, if the file
|
||||
// system already has one or more mount targets created for it, the subnet
|
||||
// specified in the request to add another mount target must meet the following
|
||||
// requirements:
|
||||
//
|
||||
// - Must belong to the same VPC as the subnets of the existing mount targets
|
||||
//
|
||||
// - Must not be in the same Availability Zone as any of the subnets of the
|
||||
// existing mount targets
|
||||
//
|
||||
// If the request satisfies the requirements, Amazon EFS does the following:
|
||||
//
|
||||
// - Creates a new mount target in the specified subnet.
|
||||
//
|
||||
// - Also creates a new network interface in the subnet as follows:
|
||||
//
|
||||
// - If the request provides an IpAddress , Amazon EFS assigns that IP address to
|
||||
// the network interface. Otherwise, Amazon EFS assigns a free address in the
|
||||
// subnet (in the same way that the Amazon EC2 CreateNetworkInterface call does
|
||||
// when a request does not specify a primary private IP address).
|
||||
//
|
||||
// - If the request provides SecurityGroups , this network interface is
|
||||
// associated with those security groups. Otherwise, it belongs to the default
|
||||
// security group for the subnet's VPC.
|
||||
//
|
||||
// - Assigns the description Mount target fsmt-id for file system fs-id where
|
||||
// fsmt-id is the mount target ID, and fs-id is the FileSystemId .
|
||||
//
|
||||
// - Sets the requesterManaged property of the network interface to true , and
|
||||
// the requesterId value to EFS .
|
||||
//
|
||||
// Each Amazon EFS mount target has one corresponding requester-managed EC2
|
||||
//
|
||||
// network interface. After the network interface is created, Amazon EFS sets the
|
||||
// NetworkInterfaceId field in the mount target's description to the network
|
||||
// interface ID, and the IpAddress field to its address. If network interface
|
||||
// creation fails, the entire CreateMountTarget operation fails.
|
||||
//
|
||||
// The CreateMountTarget call returns only after creating the network interface,
|
||||
// but while the mount target state is still creating , you can check the mount
|
||||
// target creation status by calling the DescribeMountTargetsoperation, which among other things
|
||||
// returns the mount target state.
|
||||
//
|
||||
// We recommend that you create a mount target in each of the Availability Zones.
|
||||
// There are cost considerations for using a file system in an Availability Zone
|
||||
// through a mount target created in another Availability Zone. For more
|
||||
// information, see [Amazon EFS pricing]. In addition, by always using a mount target local to the
|
||||
// instance's Availability Zone, you eliminate a partial failure scenario. If the
|
||||
// Availability Zone in which your mount target is created goes down, then you
|
||||
// can't access your file system through that mount target.
|
||||
//
|
||||
// This operation requires permissions for the following action on the file system:
|
||||
//
|
||||
// - elasticfilesystem:CreateMountTarget
|
||||
//
|
||||
// This operation also requires permissions for the following Amazon EC2 actions:
|
||||
//
|
||||
// - ec2:DescribeSubnets
|
||||
//
|
||||
// - ec2:DescribeNetworkInterfaces
|
||||
//
|
||||
// - ec2:CreateNetworkInterface
|
||||
//
|
||||
// [Amazon EFS: How it Works]: https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html
|
||||
// [Amazon EFS pricing]: http://aws.amazon.com/efs/pricing/
|
||||
// [How it Works: Implementation Overview]: https://docs.aws.amazon.com/efs/latest/ug/how-it-works.html#how-it-works-implementation
|
||||
func (c *Client) CreateMountTarget(ctx context.Context, params *CreateMountTargetInput, optFns ...func(*Options)) (*CreateMountTargetOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateMountTargetInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateMountTarget", params, optFns, c.addOperationCreateMountTargetMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateMountTargetOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateMountTargetInput struct {
|
||||
|
||||
// The ID of the file system for which to create the mount target.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// The ID of the subnet to add the mount target in. For One Zone file systems, use
|
||||
// the subnet that is associated with the file system's Availability Zone.
|
||||
//
|
||||
// This member is required.
|
||||
SubnetId *string
|
||||
|
||||
// If the IP address type for the mount target is IPv4, then specify the IPv4
|
||||
// address within the address range of the specified subnet.
|
||||
IpAddress *string
|
||||
|
||||
// Specify the type of IP address of the mount target you are creating. Options
|
||||
// are IPv4, dual stack, or IPv6. If you don’t specify an IpAddressType, then IPv4
|
||||
// is used.
|
||||
//
|
||||
// - IPV4_ONLY – Create mount target with IPv4 only subnet or dual-stack subnet.
|
||||
//
|
||||
// - DUAL_STACK – Create mount target with dual-stack subnet.
|
||||
//
|
||||
// - IPV6_ONLY – Create mount target with IPv6 only subnet.
|
||||
//
|
||||
// Creating IPv6 mount target only ENI in dual-stack subnet is not supported.
|
||||
IpAddressType types.IpAddressType
|
||||
|
||||
// If the IP address type for the mount target is IPv6, then specify the IPv6
|
||||
// address within the address range of the specified subnet.
|
||||
Ipv6Address *string
|
||||
|
||||
// VPC security group IDs, of the form sg-xxxxxxxx . These must be for the same VPC
|
||||
// as the subnet specified. The maximum number of security groups depends on
|
||||
// account quota. For more information, see [Amazon VPC Quotas]in the Amazon VPC User Guide (see the
|
||||
// Security Groups table).
|
||||
//
|
||||
// [Amazon VPC Quotas]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
|
||||
SecurityGroups []string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Provides a description of a mount target.
|
||||
type CreateMountTargetOutput 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 types.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 IPv6 address for the mount target.
|
||||
Ipv6Address *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
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateMountTargetMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateMountTarget{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateMountTarget{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateMountTarget"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateMountTargetValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateMountTarget(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateMountTarget(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "CreateMountTarget",
|
||||
}
|
||||
}
|
||||
226
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateReplicationConfiguration.go
generated
vendored
Normal file
226
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateReplicationConfiguration.go
generated
vendored
Normal file
@@ -0,0 +1,226 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Creates a replication configuration to either a new or existing EFS file system.
|
||||
// For more information, see [Amazon EFS replication]in the Amazon EFS User Guide. The replication
|
||||
// configuration specifies the following:
|
||||
//
|
||||
// - Source file system – The EFS file system that you want to replicate.
|
||||
//
|
||||
// - Destination file system – The destination file system to which the source
|
||||
// file system is replicated. There can only be one destination file system in a
|
||||
// replication configuration.
|
||||
//
|
||||
// A file system can be part of only one replication configuration.
|
||||
//
|
||||
// The destination parameters for the replication configuration depend on whether
|
||||
//
|
||||
// you are replicating to a new file system or to an existing file system, and if
|
||||
// you are replicating across Amazon Web Services accounts. See DestinationToCreatefor more
|
||||
// information.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:CreateReplicationConfiguration action. Additionally, other
|
||||
// permissions are required depending on how you are replicating file systems. For
|
||||
// more information, see [Required permissions for replication]in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Required permissions for replication]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication.html#efs-replication-permissions
|
||||
// [Amazon EFS replication]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication.html
|
||||
func (c *Client) CreateReplicationConfiguration(ctx context.Context, params *CreateReplicationConfigurationInput, optFns ...func(*Options)) (*CreateReplicationConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateReplicationConfigurationInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateReplicationConfiguration", params, optFns, c.addOperationCreateReplicationConfigurationMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateReplicationConfigurationOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateReplicationConfigurationInput struct {
|
||||
|
||||
// An array of destination configuration objects. Only one destination
|
||||
// configuration object is supported.
|
||||
//
|
||||
// This member is required.
|
||||
Destinations []types.DestinationToCreate
|
||||
|
||||
// Specifies the Amazon EFS file system that you want to replicate. This file
|
||||
// system cannot already be a source or destination file system in another
|
||||
// replication configuration.
|
||||
//
|
||||
// This member is required.
|
||||
SourceFileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Describes the replication configuration for a specific file system.
|
||||
type CreateReplicationConfigurationOutput 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 []types.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
|
||||
|
||||
// ID of the Amazon Web Services account in which the source file system resides.
|
||||
SourceFileSystemOwnerId *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateReplicationConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateReplicationConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateReplicationConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateReplicationConfiguration"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateReplicationConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateReplicationConfiguration(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateReplicationConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "CreateReplicationConfiguration",
|
||||
}
|
||||
}
|
||||
173
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateTags.go
generated
vendored
Normal file
173
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_CreateTags.go
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// DEPRECATED - CreateTags is deprecated and not maintained. To create tags for
|
||||
// EFS resources, use the API action.
|
||||
//
|
||||
// Creates or overwrites tags associated with a file system. Each tag is a
|
||||
// key-value pair. If a tag key specified in the request already exists on the file
|
||||
// system, this operation overwrites its value with the value provided in the
|
||||
// request. If you add the Name tag to your file system, Amazon EFS returns it in
|
||||
// the response to the DescribeFileSystemsoperation.
|
||||
//
|
||||
// This operation requires permission for the elasticfilesystem:CreateTags action.
|
||||
//
|
||||
// Deprecated: Use TagResource.
|
||||
func (c *Client) CreateTags(ctx context.Context, params *CreateTagsInput, optFns ...func(*Options)) (*CreateTagsOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateTagsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateTags", params, optFns, c.addOperationCreateTagsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateTagsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateTagsInput struct {
|
||||
|
||||
// The ID of the file system whose tags you want to modify (String). This
|
||||
// operation modifies the tags only, not the file system.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// An array of Tag objects to add. Each Tag object is a key-value pair.
|
||||
//
|
||||
// This member is required.
|
||||
Tags []types.Tag
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type CreateTagsOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateTagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpCreateTags{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpCreateTags{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateTags"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateTagsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateTags(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateTags(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "CreateTags",
|
||||
}
|
||||
}
|
||||
161
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteAccessPoint.go
generated
vendored
Normal file
161
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteAccessPoint.go
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes the specified access point. After deletion is complete, new clients can
|
||||
// no longer connect to the access points. Clients connected to the access point at
|
||||
// the time of deletion will continue to function until they terminate their
|
||||
// connection.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:DeleteAccessPoint
|
||||
// action.
|
||||
func (c *Client) DeleteAccessPoint(ctx context.Context, params *DeleteAccessPointInput, optFns ...func(*Options)) (*DeleteAccessPointOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteAccessPointInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DeleteAccessPoint", params, optFns, c.addOperationDeleteAccessPointMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DeleteAccessPointOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DeleteAccessPointInput struct {
|
||||
|
||||
// The ID of the access point that you want to delete.
|
||||
//
|
||||
// This member is required.
|
||||
AccessPointId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DeleteAccessPointOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDeleteAccessPointMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteAccessPoint{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteAccessPoint{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteAccessPoint"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteAccessPointValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteAccessPoint(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDeleteAccessPoint(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DeleteAccessPoint",
|
||||
}
|
||||
}
|
||||
176
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteFileSystem.go
generated
vendored
Normal file
176
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteFileSystem.go
generated
vendored
Normal file
@@ -0,0 +1,176 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes a file system, permanently severing access to its contents. Upon
|
||||
// return, the file system no longer exists and you can't access any contents of
|
||||
// the deleted file system.
|
||||
//
|
||||
// You need to manually delete mount targets attached to a file system before you
|
||||
// can delete an EFS file system. This step is performed for you when you use the
|
||||
// Amazon Web Services console to delete a file system.
|
||||
//
|
||||
// You cannot delete a file system that is part of an EFS replication
|
||||
// configuration. You need to delete the replication configuration first.
|
||||
//
|
||||
// You can't delete a file system that is in use. That is, if the file system has
|
||||
// any mount targets, you must first delete them. For more information, see DescribeMountTargetsand DeleteMountTarget.
|
||||
//
|
||||
// The DeleteFileSystem call returns while the file system state is still deleting
|
||||
// . You can check the file system deletion status by calling the DescribeFileSystemsoperation, which
|
||||
// returns a list of file systems in your account. If you pass file system ID or
|
||||
// creation token for the deleted file system, the DescribeFileSystemsreturns a 404 FileSystemNotFound
|
||||
// error.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:DeleteFileSystem
|
||||
// action.
|
||||
func (c *Client) DeleteFileSystem(ctx context.Context, params *DeleteFileSystemInput, optFns ...func(*Options)) (*DeleteFileSystemOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteFileSystemInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DeleteFileSystem", params, optFns, c.addOperationDeleteFileSystemMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DeleteFileSystemOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DeleteFileSystemInput struct {
|
||||
|
||||
// The ID of the file system you want to delete.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DeleteFileSystemOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDeleteFileSystemMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteFileSystem{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteFileSystem{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteFileSystem"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteFileSystemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteFileSystem(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDeleteFileSystem(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DeleteFileSystem",
|
||||
}
|
||||
}
|
||||
162
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteFileSystemPolicy.go
generated
vendored
Normal file
162
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteFileSystemPolicy.go
generated
vendored
Normal file
@@ -0,0 +1,162 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes the FileSystemPolicy for the specified file system. The default
|
||||
// FileSystemPolicy goes into effect once the existing policy is deleted. For more
|
||||
// information about the default file system policy, see [Using Resource-based Policies with EFS].
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DeleteFileSystemPolicy action.
|
||||
//
|
||||
// [Using Resource-based Policies with EFS]: https://docs.aws.amazon.com/efs/latest/ug/res-based-policies-efs.html
|
||||
func (c *Client) DeleteFileSystemPolicy(ctx context.Context, params *DeleteFileSystemPolicyInput, optFns ...func(*Options)) (*DeleteFileSystemPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteFileSystemPolicyInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DeleteFileSystemPolicy", params, optFns, c.addOperationDeleteFileSystemPolicyMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DeleteFileSystemPolicyOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DeleteFileSystemPolicyInput struct {
|
||||
|
||||
// Specifies the EFS file system for which to delete the FileSystemPolicy .
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DeleteFileSystemPolicyOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDeleteFileSystemPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteFileSystemPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteFileSystemPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteFileSystemPolicy"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteFileSystemPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteFileSystemPolicy(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDeleteFileSystemPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DeleteFileSystemPolicy",
|
||||
}
|
||||
}
|
||||
177
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteMountTarget.go
generated
vendored
Normal file
177
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteMountTarget.go
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes the specified mount target.
|
||||
//
|
||||
// This operation forcibly breaks any mounts of the file system by using the mount
|
||||
// target that is being deleted, which might disrupt instances or applications
|
||||
// using those mounts. To avoid applications getting cut off abruptly, you might
|
||||
// consider unmounting any mounts of the mount target, if feasible. The operation
|
||||
// also deletes the associated network interface. Uncommitted writes might be lost,
|
||||
// but breaking a mount target using this operation does not corrupt the file
|
||||
// system itself. The file system you created remains. You can mount an EC2
|
||||
// instance in your VPC by using another mount target.
|
||||
//
|
||||
// This operation requires permissions for the following action on the file system:
|
||||
//
|
||||
// - elasticfilesystem:DeleteMountTarget
|
||||
//
|
||||
// The DeleteMountTarget call returns while the mount target state is still
|
||||
// deleting . You can check the mount target deletion by calling the DescribeMountTargets operation,
|
||||
// which returns a list of mount target descriptions for the given file system.
|
||||
//
|
||||
// The operation also requires permissions for the following Amazon EC2 action on
|
||||
// the mount target's network interface:
|
||||
//
|
||||
// - ec2:DeleteNetworkInterface
|
||||
func (c *Client) DeleteMountTarget(ctx context.Context, params *DeleteMountTargetInput, optFns ...func(*Options)) (*DeleteMountTargetOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteMountTargetInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DeleteMountTarget", params, optFns, c.addOperationDeleteMountTargetMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DeleteMountTargetOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DeleteMountTargetInput struct {
|
||||
|
||||
// The ID of the mount target to delete (String).
|
||||
//
|
||||
// This member is required.
|
||||
MountTargetId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DeleteMountTargetOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDeleteMountTargetMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteMountTarget{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteMountTarget{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteMountTarget"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteMountTargetValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteMountTarget(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDeleteMountTarget(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DeleteMountTarget",
|
||||
}
|
||||
}
|
||||
181
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteReplicationConfiguration.go
generated
vendored
Normal file
181
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteReplicationConfiguration.go
generated
vendored
Normal file
@@ -0,0 +1,181 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes a replication configuration. Deleting a replication configuration ends
|
||||
// the replication process. After a replication configuration is deleted, the
|
||||
// destination file system becomes Writeable and its replication overwrite
|
||||
// protection is re-enabled. For more information, see [Delete a replication configuration].
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DeleteReplicationConfiguration action.
|
||||
//
|
||||
// [Delete a replication configuration]: https://docs.aws.amazon.com/efs/latest/ug/delete-replications.html
|
||||
func (c *Client) DeleteReplicationConfiguration(ctx context.Context, params *DeleteReplicationConfigurationInput, optFns ...func(*Options)) (*DeleteReplicationConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteReplicationConfigurationInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DeleteReplicationConfiguration", params, optFns, c.addOperationDeleteReplicationConfigurationMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DeleteReplicationConfigurationOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DeleteReplicationConfigurationInput struct {
|
||||
|
||||
// The ID of the source file system in the replication configuration.
|
||||
//
|
||||
// This member is required.
|
||||
SourceFileSystemId *string
|
||||
|
||||
// When replicating across Amazon Web Services accounts or across Amazon Web
|
||||
// Services Regions, Amazon EFS deletes the replication configuration from both the
|
||||
// source and destination account or Region ( ALL_CONFIGURATIONS ) by default. If
|
||||
// there's a configuration or permissions issue that prevents Amazon EFS from
|
||||
// deleting the replication configuration from both sides, you can use the
|
||||
// LOCAL_CONFIGURATION_ONLY mode to delete the replication configuration from only
|
||||
// the local side (the account or Region from which the delete is performed).
|
||||
//
|
||||
// Only use the LOCAL_CONFIGURATION_ONLY mode in the case that Amazon EFS is
|
||||
// unable to delete the replication configuration in both the source and
|
||||
// destination account or Region. Deleting the local configuration leaves the
|
||||
// configuration in the other account or Region unrecoverable.
|
||||
//
|
||||
// Additionally, do not use this mode for same-account, same-region replication as
|
||||
// doing so results in a BadRequest exception error.
|
||||
DeletionMode types.DeletionMode
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DeleteReplicationConfigurationOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDeleteReplicationConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteReplicationConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteReplicationConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteReplicationConfiguration"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteReplicationConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteReplicationConfiguration(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDeleteReplicationConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DeleteReplicationConfiguration",
|
||||
}
|
||||
}
|
||||
172
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteTags.go
generated
vendored
Normal file
172
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DeleteTags.go
generated
vendored
Normal file
@@ -0,0 +1,172 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// DEPRECATED - DeleteTags is deprecated and not maintained. To remove tags from
|
||||
// EFS resources, use the API action.
|
||||
//
|
||||
// Deletes the specified tags from a file system. If the DeleteTags request
|
||||
// includes a tag key that doesn't exist, Amazon EFS ignores it and doesn't cause
|
||||
// an error. For more information about tags and related restrictions, see [Tag restrictions]in the
|
||||
// Billing and Cost Management User Guide.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:DeleteTags action.
|
||||
//
|
||||
// Deprecated: Use UntagResource.
|
||||
//
|
||||
// [Tag restrictions]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html
|
||||
func (c *Client) DeleteTags(ctx context.Context, params *DeleteTagsInput, optFns ...func(*Options)) (*DeleteTagsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteTagsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DeleteTags", params, optFns, c.addOperationDeleteTagsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DeleteTagsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DeleteTagsInput struct {
|
||||
|
||||
// The ID of the file system whose tags you want to delete (String).
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// A list of tag keys to delete.
|
||||
//
|
||||
// This member is required.
|
||||
TagKeys []string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DeleteTagsOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDeleteTagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDeleteTags{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDeleteTags{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DeleteTags"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteTagsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteTags(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDeleteTags(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DeleteTags",
|
||||
}
|
||||
}
|
||||
276
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeAccessPoints.go
generated
vendored
Normal file
276
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeAccessPoints.go
generated
vendored
Normal file
@@ -0,0 +1,276 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the description of a specific Amazon EFS access point if the
|
||||
// AccessPointId is provided. If you provide an EFS FileSystemId , it returns
|
||||
// descriptions of all access points for that file system. You can provide either
|
||||
// an AccessPointId or a FileSystemId in the request, but not both.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DescribeAccessPoints action.
|
||||
func (c *Client) DescribeAccessPoints(ctx context.Context, params *DescribeAccessPointsInput, optFns ...func(*Options)) (*DescribeAccessPointsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeAccessPointsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeAccessPoints", params, optFns, c.addOperationDescribeAccessPointsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeAccessPointsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeAccessPointsInput struct {
|
||||
|
||||
// (Optional) Specifies an EFS access point to describe in the response; mutually
|
||||
// exclusive with FileSystemId .
|
||||
AccessPointId *string
|
||||
|
||||
// (Optional) If you provide a FileSystemId , EFS returns all access points for
|
||||
// that file system; mutually exclusive with AccessPointId .
|
||||
FileSystemId *string
|
||||
|
||||
// (Optional) When retrieving all access points for a file system, you can
|
||||
// optionally specify the MaxItems parameter to limit the number of objects
|
||||
// returned in a response. The default value is 100.
|
||||
MaxResults *int32
|
||||
|
||||
// NextToken is present if the response is paginated. You can use NextMarker in
|
||||
// the subsequent request to fetch the next page of access point descriptions.
|
||||
NextToken *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeAccessPointsOutput struct {
|
||||
|
||||
// An array of access point descriptions.
|
||||
AccessPoints []types.AccessPointDescription
|
||||
|
||||
// Present if there are more access points than returned in the response. You can
|
||||
// use the NextMarker in the subsequent request to fetch the additional
|
||||
// descriptions.
|
||||
NextToken *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeAccessPointsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeAccessPoints{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeAccessPoints{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAccessPoints"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAccessPoints(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DescribeAccessPointsPaginatorOptions is the paginator options for
|
||||
// DescribeAccessPoints
|
||||
type DescribeAccessPointsPaginatorOptions struct {
|
||||
// (Optional) When retrieving all access points for a file system, you can
|
||||
// optionally specify the MaxItems parameter to limit the number of objects
|
||||
// returned in a response. The default value is 100.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// DescribeAccessPointsPaginator is a paginator for DescribeAccessPoints
|
||||
type DescribeAccessPointsPaginator struct {
|
||||
options DescribeAccessPointsPaginatorOptions
|
||||
client DescribeAccessPointsAPIClient
|
||||
params *DescribeAccessPointsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewDescribeAccessPointsPaginator returns a new DescribeAccessPointsPaginator
|
||||
func NewDescribeAccessPointsPaginator(client DescribeAccessPointsAPIClient, params *DescribeAccessPointsInput, optFns ...func(*DescribeAccessPointsPaginatorOptions)) *DescribeAccessPointsPaginator {
|
||||
if params == nil {
|
||||
params = &DescribeAccessPointsInput{}
|
||||
}
|
||||
|
||||
options := DescribeAccessPointsPaginatorOptions{}
|
||||
if params.MaxResults != nil {
|
||||
options.Limit = *params.MaxResults
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &DescribeAccessPointsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *DescribeAccessPointsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next DescribeAccessPoints page.
|
||||
func (p *DescribeAccessPointsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeAccessPointsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.NextToken = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.DescribeAccessPoints(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// DescribeAccessPointsAPIClient is a client that implements the
|
||||
// DescribeAccessPoints operation.
|
||||
type DescribeAccessPointsAPIClient interface {
|
||||
DescribeAccessPoints(context.Context, *DescribeAccessPointsInput, ...func(*Options)) (*DescribeAccessPointsOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeAccessPointsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeAccessPoints(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeAccessPoints",
|
||||
}
|
||||
}
|
||||
170
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeAccountPreferences.go
generated
vendored
Normal file
170
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeAccountPreferences.go
generated
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the account preferences settings for the Amazon Web Services account
|
||||
// associated with the user making the request, in the current Amazon Web Services
|
||||
// Region.
|
||||
func (c *Client) DescribeAccountPreferences(ctx context.Context, params *DescribeAccountPreferencesInput, optFns ...func(*Options)) (*DescribeAccountPreferencesOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeAccountPreferencesInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeAccountPreferences", params, optFns, c.addOperationDescribeAccountPreferencesMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeAccountPreferencesOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeAccountPreferencesInput struct {
|
||||
|
||||
// (Optional) When retrieving account preferences, you can optionally specify the
|
||||
// MaxItems parameter to limit the number of objects returned in a response. The
|
||||
// default value is 100.
|
||||
MaxResults *int32
|
||||
|
||||
// (Optional) You can use NextToken in a subsequent request to fetch the next page
|
||||
// of Amazon Web Services account preferences if the response payload was
|
||||
// paginated.
|
||||
NextToken *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeAccountPreferencesOutput struct {
|
||||
|
||||
// Present if there are more records than returned in the response. You can use
|
||||
// the NextToken in the subsequent request to fetch the additional descriptions.
|
||||
NextToken *string
|
||||
|
||||
// Describes the resource ID preference setting for the Amazon Web Services
|
||||
// account associated with the user making the request, in the current Amazon Web
|
||||
// Services Region.
|
||||
ResourceIdPreference *types.ResourceIdPreference
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeAccountPreferencesMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeAccountPreferences{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeAccountPreferences{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeAccountPreferences"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeAccountPreferences(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeAccountPreferences(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeAccountPreferences",
|
||||
}
|
||||
}
|
||||
161
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeBackupPolicy.go
generated
vendored
Normal file
161
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeBackupPolicy.go
generated
vendored
Normal file
@@ -0,0 +1,161 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the backup policy for the specified EFS file system.
|
||||
func (c *Client) DescribeBackupPolicy(ctx context.Context, params *DescribeBackupPolicyInput, optFns ...func(*Options)) (*DescribeBackupPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeBackupPolicyInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeBackupPolicy", params, optFns, c.addOperationDescribeBackupPolicyMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeBackupPolicyOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeBackupPolicyInput struct {
|
||||
|
||||
// Specifies which EFS file system for which to retrieve the BackupPolicy .
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeBackupPolicyOutput struct {
|
||||
|
||||
// Describes the file system's backup policy, indicating whether automatic backups
|
||||
// are turned on or off.
|
||||
BackupPolicy *types.BackupPolicy
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeBackupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeBackupPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeBackupPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeBackupPolicy"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeBackupPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeBackupPolicy(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeBackupPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeBackupPolicy",
|
||||
}
|
||||
}
|
||||
165
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeFileSystemPolicy.go
generated
vendored
Normal file
165
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeFileSystemPolicy.go
generated
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the FileSystemPolicy for the specified EFS file system.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DescribeFileSystemPolicy action.
|
||||
func (c *Client) DescribeFileSystemPolicy(ctx context.Context, params *DescribeFileSystemPolicyInput, optFns ...func(*Options)) (*DescribeFileSystemPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeFileSystemPolicyInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeFileSystemPolicy", params, optFns, c.addOperationDescribeFileSystemPolicyMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeFileSystemPolicyOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeFileSystemPolicyInput struct {
|
||||
|
||||
// Specifies which EFS file system to retrieve the FileSystemPolicy for.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeFileSystemPolicyOutput struct {
|
||||
|
||||
// Specifies the EFS file system to which the FileSystemPolicy applies.
|
||||
FileSystemId *string
|
||||
|
||||
// The JSON formatted FileSystemPolicy for the EFS file system.
|
||||
Policy *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeFileSystemPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeFileSystemPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeFileSystemPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFileSystemPolicy"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeFileSystemPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFileSystemPolicy(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeFileSystemPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeFileSystemPolicy",
|
||||
}
|
||||
}
|
||||
297
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeFileSystems.go
generated
vendored
Normal file
297
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeFileSystems.go
generated
vendored
Normal file
@@ -0,0 +1,297 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the description of a specific Amazon EFS file system if either the file
|
||||
// system CreationToken or the FileSystemId is provided. Otherwise, it returns
|
||||
// descriptions of all file systems owned by the caller's Amazon Web Services
|
||||
// account in the Amazon Web Services Region of the endpoint that you're calling.
|
||||
//
|
||||
// When retrieving all file system descriptions, you can optionally specify the
|
||||
// MaxItems parameter to limit the number of descriptions in a response. This
|
||||
// number is automatically set to 100. If more file system descriptions remain,
|
||||
// Amazon EFS returns a NextMarker , an opaque token, in the response. In this
|
||||
// case, you should send a subsequent request with the Marker request parameter
|
||||
// set to the value of NextMarker .
|
||||
//
|
||||
// To retrieve a list of your file system descriptions, this operation is used in
|
||||
// an iterative process, where DescribeFileSystems is called first without the
|
||||
// Marker and then the operation continues to call it with the Marker parameter
|
||||
// set to the value of the NextMarker from the previous response until the
|
||||
// response has no NextMarker .
|
||||
//
|
||||
// The order of file systems returned in the response of one DescribeFileSystems
|
||||
// call and the order of file systems returned across the responses of a multi-call
|
||||
// iteration is unspecified.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DescribeFileSystems action.
|
||||
func (c *Client) DescribeFileSystems(ctx context.Context, params *DescribeFileSystemsInput, optFns ...func(*Options)) (*DescribeFileSystemsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeFileSystemsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeFileSystems", params, optFns, c.addOperationDescribeFileSystemsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeFileSystemsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeFileSystemsInput struct {
|
||||
|
||||
// (Optional) Restricts the list to the file system with this creation token
|
||||
// (String). You specify a creation token when you create an Amazon EFS file
|
||||
// system.
|
||||
CreationToken *string
|
||||
|
||||
// (Optional) ID of the file system whose description you want to retrieve
|
||||
// (String).
|
||||
FileSystemId *string
|
||||
|
||||
// (Optional) Opaque pagination token returned from a previous DescribeFileSystems
|
||||
// operation (String). If present, specifies to continue the list from where the
|
||||
// returning call had left off.
|
||||
Marker *string
|
||||
|
||||
// (Optional) Specifies the maximum number of file systems to return in the
|
||||
// response (integer). This number is automatically set to 100. The response is
|
||||
// paginated at 100 per page if you have more than 100 file systems.
|
||||
MaxItems *int32
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeFileSystemsOutput struct {
|
||||
|
||||
// An array of file system descriptions.
|
||||
FileSystems []types.FileSystemDescription
|
||||
|
||||
// Present if provided by caller in the request (String).
|
||||
Marker *string
|
||||
|
||||
// Present if there are more file systems than returned in the response (String).
|
||||
// You can use the NextMarker in the subsequent request to fetch the descriptions.
|
||||
NextMarker *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeFileSystemsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeFileSystems{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeFileSystems{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeFileSystems"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeFileSystems(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DescribeFileSystemsPaginatorOptions is the paginator options for
|
||||
// DescribeFileSystems
|
||||
type DescribeFileSystemsPaginatorOptions struct {
|
||||
// (Optional) Specifies the maximum number of file systems to return in the
|
||||
// response (integer). This number is automatically set to 100. The response is
|
||||
// paginated at 100 per page if you have more than 100 file systems.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// DescribeFileSystemsPaginator is a paginator for DescribeFileSystems
|
||||
type DescribeFileSystemsPaginator struct {
|
||||
options DescribeFileSystemsPaginatorOptions
|
||||
client DescribeFileSystemsAPIClient
|
||||
params *DescribeFileSystemsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewDescribeFileSystemsPaginator returns a new DescribeFileSystemsPaginator
|
||||
func NewDescribeFileSystemsPaginator(client DescribeFileSystemsAPIClient, params *DescribeFileSystemsInput, optFns ...func(*DescribeFileSystemsPaginatorOptions)) *DescribeFileSystemsPaginator {
|
||||
if params == nil {
|
||||
params = &DescribeFileSystemsInput{}
|
||||
}
|
||||
|
||||
options := DescribeFileSystemsPaginatorOptions{}
|
||||
if params.MaxItems != nil {
|
||||
options.Limit = *params.MaxItems
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &DescribeFileSystemsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.Marker,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *DescribeFileSystemsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next DescribeFileSystems page.
|
||||
func (p *DescribeFileSystemsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeFileSystemsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.Marker = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxItems = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.DescribeFileSystems(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextMarker
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// DescribeFileSystemsAPIClient is a client that implements the
|
||||
// DescribeFileSystems operation.
|
||||
type DescribeFileSystemsAPIClient interface {
|
||||
DescribeFileSystems(context.Context, *DescribeFileSystemsInput, ...func(*Options)) (*DescribeFileSystemsOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeFileSystemsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeFileSystems(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeFileSystems",
|
||||
}
|
||||
}
|
||||
168
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeLifecycleConfiguration.go
generated
vendored
Normal file
168
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeLifecycleConfiguration.go
generated
vendored
Normal file
@@ -0,0 +1,168 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the current LifecycleConfiguration object for the specified EFS file
|
||||
// system. Lifecycle management uses the LifecycleConfiguration object to identify
|
||||
// when to move files between storage classes. For a file system without a
|
||||
// LifecycleConfiguration object, the call returns an empty array in the response.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DescribeLifecycleConfiguration operation.
|
||||
func (c *Client) DescribeLifecycleConfiguration(ctx context.Context, params *DescribeLifecycleConfigurationInput, optFns ...func(*Options)) (*DescribeLifecycleConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeLifecycleConfigurationInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeLifecycleConfiguration", params, optFns, c.addOperationDescribeLifecycleConfigurationMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeLifecycleConfigurationOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeLifecycleConfigurationInput struct {
|
||||
|
||||
// The ID of the file system whose LifecycleConfiguration object you want to
|
||||
// retrieve (String).
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeLifecycleConfigurationOutput struct {
|
||||
|
||||
// An array of lifecycle management policies. EFS supports a maximum of one policy
|
||||
// per file system.
|
||||
LifecyclePolicies []types.LifecyclePolicy
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeLifecycleConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeLifecycleConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeLifecycleConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeLifecycleConfiguration"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeLifecycleConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLifecycleConfiguration(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeLifecycleConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeLifecycleConfiguration",
|
||||
}
|
||||
}
|
||||
171
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeMountTargetSecurityGroups.go
generated
vendored
Normal file
171
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeMountTargetSecurityGroups.go
generated
vendored
Normal file
@@ -0,0 +1,171 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the security groups currently in effect for a mount target. This
|
||||
// operation requires that the network interface of the mount target has been
|
||||
// created and the lifecycle state of the mount target is not deleted .
|
||||
//
|
||||
// This operation requires permissions for the following actions:
|
||||
//
|
||||
// - elasticfilesystem:DescribeMountTargetSecurityGroups action on the mount
|
||||
// target's file system.
|
||||
//
|
||||
// - ec2:DescribeNetworkInterfaceAttribute action on the mount target's network
|
||||
// interface.
|
||||
func (c *Client) DescribeMountTargetSecurityGroups(ctx context.Context, params *DescribeMountTargetSecurityGroupsInput, optFns ...func(*Options)) (*DescribeMountTargetSecurityGroupsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeMountTargetSecurityGroupsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeMountTargetSecurityGroups", params, optFns, c.addOperationDescribeMountTargetSecurityGroupsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeMountTargetSecurityGroupsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeMountTargetSecurityGroupsInput struct {
|
||||
|
||||
// The ID of the mount target whose security groups you want to retrieve.
|
||||
//
|
||||
// This member is required.
|
||||
MountTargetId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeMountTargetSecurityGroupsOutput struct {
|
||||
|
||||
// An array of security groups.
|
||||
//
|
||||
// This member is required.
|
||||
SecurityGroups []string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeMountTargetSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeMountTargetSecurityGroups{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeMountTargetSecurityGroups{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeMountTargetSecurityGroups"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeMountTargetSecurityGroupsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMountTargetSecurityGroups(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeMountTargetSecurityGroups(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeMountTargetSecurityGroups",
|
||||
}
|
||||
}
|
||||
292
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeMountTargets.go
generated
vendored
Normal file
292
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeMountTargets.go
generated
vendored
Normal file
@@ -0,0 +1,292 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Returns the descriptions of all the current mount targets, or a specific mount
|
||||
// target, for a file system. When requesting all of the current mount targets, the
|
||||
// order of mount targets returned in the response is unspecified.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DescribeMountTargets action, on either the file system ID that
|
||||
// you specify in FileSystemId , or on the file system of the mount target that you
|
||||
// specify in MountTargetId .
|
||||
func (c *Client) DescribeMountTargets(ctx context.Context, params *DescribeMountTargetsInput, optFns ...func(*Options)) (*DescribeMountTargetsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeMountTargetsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeMountTargets", params, optFns, c.addOperationDescribeMountTargetsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeMountTargetsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeMountTargetsInput struct {
|
||||
|
||||
// (Optional) The ID of the access point whose mount targets that you want to
|
||||
// list. It must be included in your request if a FileSystemId or MountTargetId is
|
||||
// not included in your request. Accepts either an access point ID or ARN as input.
|
||||
AccessPointId *string
|
||||
|
||||
// (Optional) ID of the file system whose mount targets you want to list (String).
|
||||
// It must be included in your request if an AccessPointId or MountTargetId is not
|
||||
// included. Accepts either a file system ID or ARN as input.
|
||||
FileSystemId *string
|
||||
|
||||
// (Optional) Opaque pagination token returned from a previous DescribeMountTargets
|
||||
// operation (String). If present, it specifies to continue the list from where the
|
||||
// previous returning call left off.
|
||||
Marker *string
|
||||
|
||||
// (Optional) Maximum number of mount targets to return in the response.
|
||||
// Currently, this number is automatically set to 10, and other values are ignored.
|
||||
// The response is paginated at 100 per page if you have more than 100 mount
|
||||
// targets.
|
||||
MaxItems *int32
|
||||
|
||||
// (Optional) ID of the mount target that you want to have described (String). It
|
||||
// must be included in your request if FileSystemId is not included. Accepts
|
||||
// either a mount target ID or ARN as input.
|
||||
MountTargetId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeMountTargetsOutput struct {
|
||||
|
||||
// If the request included the Marker , the response returns that value in this
|
||||
// field.
|
||||
Marker *string
|
||||
|
||||
// Returns the file system's mount targets as an array of MountTargetDescription
|
||||
// objects.
|
||||
MountTargets []types.MountTargetDescription
|
||||
|
||||
// If a value is present, there are more mount targets to return. In a subsequent
|
||||
// request, you can provide Marker in your request with this value to retrieve the
|
||||
// next set of mount targets.
|
||||
NextMarker *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeMountTargetsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeMountTargets{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeMountTargets{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeMountTargets"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeMountTargets(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DescribeMountTargetsPaginatorOptions is the paginator options for
|
||||
// DescribeMountTargets
|
||||
type DescribeMountTargetsPaginatorOptions struct {
|
||||
// (Optional) Maximum number of mount targets to return in the response.
|
||||
// Currently, this number is automatically set to 10, and other values are ignored.
|
||||
// The response is paginated at 100 per page if you have more than 100 mount
|
||||
// targets.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// DescribeMountTargetsPaginator is a paginator for DescribeMountTargets
|
||||
type DescribeMountTargetsPaginator struct {
|
||||
options DescribeMountTargetsPaginatorOptions
|
||||
client DescribeMountTargetsAPIClient
|
||||
params *DescribeMountTargetsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewDescribeMountTargetsPaginator returns a new DescribeMountTargetsPaginator
|
||||
func NewDescribeMountTargetsPaginator(client DescribeMountTargetsAPIClient, params *DescribeMountTargetsInput, optFns ...func(*DescribeMountTargetsPaginatorOptions)) *DescribeMountTargetsPaginator {
|
||||
if params == nil {
|
||||
params = &DescribeMountTargetsInput{}
|
||||
}
|
||||
|
||||
options := DescribeMountTargetsPaginatorOptions{}
|
||||
if params.MaxItems != nil {
|
||||
options.Limit = *params.MaxItems
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &DescribeMountTargetsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.Marker,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *DescribeMountTargetsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next DescribeMountTargets page.
|
||||
func (p *DescribeMountTargetsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeMountTargetsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.Marker = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxItems = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.DescribeMountTargets(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextMarker
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// DescribeMountTargetsAPIClient is a client that implements the
|
||||
// DescribeMountTargets operation.
|
||||
type DescribeMountTargetsAPIClient interface {
|
||||
DescribeMountTargets(context.Context, *DescribeMountTargetsInput, ...func(*Options)) (*DescribeMountTargetsOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeMountTargetsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeMountTargets(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeMountTargets",
|
||||
}
|
||||
}
|
||||
269
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeReplicationConfigurations.go
generated
vendored
Normal file
269
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeReplicationConfigurations.go
generated
vendored
Normal file
@@ -0,0 +1,269 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Retrieves the replication configuration for a specific file system. If a file
|
||||
// system is not specified, all of the replication configurations for the Amazon
|
||||
// Web Services account in an Amazon Web Services Region are retrieved.
|
||||
func (c *Client) DescribeReplicationConfigurations(ctx context.Context, params *DescribeReplicationConfigurationsInput, optFns ...func(*Options)) (*DescribeReplicationConfigurationsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeReplicationConfigurationsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeReplicationConfigurations", params, optFns, c.addOperationDescribeReplicationConfigurationsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeReplicationConfigurationsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeReplicationConfigurationsInput struct {
|
||||
|
||||
// You can retrieve the replication configuration for a specific file system by
|
||||
// providing its file system ID. For cross-account,cross-region replication, an
|
||||
// account can only describe the replication configuration for a file system in its
|
||||
// own Region.
|
||||
FileSystemId *string
|
||||
|
||||
// (Optional) To limit the number of objects returned in a response, you can
|
||||
// specify the MaxItems parameter. The default value is 100.
|
||||
MaxResults *int32
|
||||
|
||||
// NextToken is present if the response is paginated. You can use NextToken in a
|
||||
// subsequent request to fetch the next page of output.
|
||||
NextToken *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeReplicationConfigurationsOutput struct {
|
||||
|
||||
// You can use the NextToken from the previous response in a subsequent request to
|
||||
// fetch the additional descriptions.
|
||||
NextToken *string
|
||||
|
||||
// The collection of replication configurations that is returned.
|
||||
Replications []types.ReplicationConfigurationDescription
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeReplicationConfigurationsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeReplicationConfigurations{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeReplicationConfigurations{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeReplicationConfigurations"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeReplicationConfigurations(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DescribeReplicationConfigurationsPaginatorOptions is the paginator options for
|
||||
// DescribeReplicationConfigurations
|
||||
type DescribeReplicationConfigurationsPaginatorOptions struct {
|
||||
// (Optional) To limit the number of objects returned in a response, you can
|
||||
// specify the MaxItems parameter. The default value is 100.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// DescribeReplicationConfigurationsPaginator is a paginator for
|
||||
// DescribeReplicationConfigurations
|
||||
type DescribeReplicationConfigurationsPaginator struct {
|
||||
options DescribeReplicationConfigurationsPaginatorOptions
|
||||
client DescribeReplicationConfigurationsAPIClient
|
||||
params *DescribeReplicationConfigurationsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewDescribeReplicationConfigurationsPaginator returns a new
|
||||
// DescribeReplicationConfigurationsPaginator
|
||||
func NewDescribeReplicationConfigurationsPaginator(client DescribeReplicationConfigurationsAPIClient, params *DescribeReplicationConfigurationsInput, optFns ...func(*DescribeReplicationConfigurationsPaginatorOptions)) *DescribeReplicationConfigurationsPaginator {
|
||||
if params == nil {
|
||||
params = &DescribeReplicationConfigurationsInput{}
|
||||
}
|
||||
|
||||
options := DescribeReplicationConfigurationsPaginatorOptions{}
|
||||
if params.MaxResults != nil {
|
||||
options.Limit = *params.MaxResults
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &DescribeReplicationConfigurationsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *DescribeReplicationConfigurationsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next DescribeReplicationConfigurations page.
|
||||
func (p *DescribeReplicationConfigurationsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeReplicationConfigurationsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.NextToken = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.DescribeReplicationConfigurations(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// DescribeReplicationConfigurationsAPIClient is a client that implements the
|
||||
// DescribeReplicationConfigurations operation.
|
||||
type DescribeReplicationConfigurationsAPIClient interface {
|
||||
DescribeReplicationConfigurations(context.Context, *DescribeReplicationConfigurationsInput, ...func(*Options)) (*DescribeReplicationConfigurationsOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeReplicationConfigurationsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeReplicationConfigurations(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeReplicationConfigurations",
|
||||
}
|
||||
}
|
||||
286
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeTags.go
generated
vendored
Normal file
286
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_DescribeTags.go
generated
vendored
Normal file
@@ -0,0 +1,286 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// DEPRECATED - The DescribeTags action is deprecated and not maintained. To view
|
||||
// tags associated with EFS resources, use the ListTagsForResource API action.
|
||||
//
|
||||
// Returns the tags associated with a file system. The order of tags returned in
|
||||
// the response of one DescribeTags call and the order of tags returned across the
|
||||
// responses of a multiple-call iteration (when using pagination) is unspecified.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:DescribeTags
|
||||
// action.
|
||||
//
|
||||
// Deprecated: Use ListTagsForResource.
|
||||
func (c *Client) DescribeTags(ctx context.Context, params *DescribeTagsInput, optFns ...func(*Options)) (*DescribeTagsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeTagsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "DescribeTags", params, optFns, c.addOperationDescribeTagsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*DescribeTagsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type DescribeTagsInput struct {
|
||||
|
||||
// The ID of the file system whose tag set you want to retrieve.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// (Optional) An opaque pagination token returned from a previous DescribeTags
|
||||
// operation (String). If present, it specifies to continue the list from where the
|
||||
// previous call left off.
|
||||
Marker *string
|
||||
|
||||
// (Optional) The maximum number of file system tags to return in the response.
|
||||
// Currently, this number is automatically set to 100, and other values are
|
||||
// ignored. The response is paginated at 100 per page if you have more than 100
|
||||
// tags.
|
||||
MaxItems *int32
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type DescribeTagsOutput struct {
|
||||
|
||||
// Returns tags associated with the file system as an array of Tag objects.
|
||||
//
|
||||
// This member is required.
|
||||
Tags []types.Tag
|
||||
|
||||
// If the request included a Marker , the response returns that value in this field.
|
||||
Marker *string
|
||||
|
||||
// If a value is present, there are more tags to return. In a subsequent request,
|
||||
// you can provide the value of NextMarker as the value of the Marker parameter in
|
||||
// your next request to retrieve the next set of tags.
|
||||
NextMarker *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationDescribeTagsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpDescribeTags{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpDescribeTags{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "DescribeTags"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeTagsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeTags(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DescribeTagsPaginatorOptions is the paginator options for DescribeTags
|
||||
type DescribeTagsPaginatorOptions struct {
|
||||
// (Optional) The maximum number of file system tags to return in the response.
|
||||
// Currently, this number is automatically set to 100, and other values are
|
||||
// ignored. The response is paginated at 100 per page if you have more than 100
|
||||
// tags.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// DescribeTagsPaginator is a paginator for DescribeTags
|
||||
type DescribeTagsPaginator struct {
|
||||
options DescribeTagsPaginatorOptions
|
||||
client DescribeTagsAPIClient
|
||||
params *DescribeTagsInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewDescribeTagsPaginator returns a new DescribeTagsPaginator
|
||||
func NewDescribeTagsPaginator(client DescribeTagsAPIClient, params *DescribeTagsInput, optFns ...func(*DescribeTagsPaginatorOptions)) *DescribeTagsPaginator {
|
||||
if params == nil {
|
||||
params = &DescribeTagsInput{}
|
||||
}
|
||||
|
||||
options := DescribeTagsPaginatorOptions{}
|
||||
if params.MaxItems != nil {
|
||||
options.Limit = *params.MaxItems
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &DescribeTagsPaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.Marker,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *DescribeTagsPaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next DescribeTags page.
|
||||
func (p *DescribeTagsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeTagsOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.Marker = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxItems = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.DescribeTags(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextMarker
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// DescribeTagsAPIClient is a client that implements the DescribeTags operation.
|
||||
type DescribeTagsAPIClient interface {
|
||||
DescribeTags(context.Context, *DescribeTagsInput, ...func(*Options)) (*DescribeTagsOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeTagsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeTags(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "DescribeTags",
|
||||
}
|
||||
}
|
||||
272
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_ListTagsForResource.go
generated
vendored
Normal file
272
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_ListTagsForResource.go
generated
vendored
Normal file
@@ -0,0 +1,272 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Lists all tags for a top-level EFS resource. You must provide the ID of the
|
||||
// resource that you want to retrieve the tags for.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:DescribeAccessPoints action.
|
||||
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListTagsForResourceInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "ListTagsForResource", params, optFns, c.addOperationListTagsForResourceMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*ListTagsForResourceOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type ListTagsForResourceInput struct {
|
||||
|
||||
// Specifies the EFS resource you want to retrieve tags for. You can retrieve tags
|
||||
// for EFS file systems and access points using this API endpoint.
|
||||
//
|
||||
// This member is required.
|
||||
ResourceId *string
|
||||
|
||||
// (Optional) Specifies the maximum number of tag objects to return in the
|
||||
// response. The default value is 100.
|
||||
MaxResults *int32
|
||||
|
||||
// (Optional) You can use NextToken in a subsequent request to fetch the next page
|
||||
// of access point descriptions if the response payload was paginated.
|
||||
NextToken *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type ListTagsForResourceOutput struct {
|
||||
|
||||
// NextToken is present if the response payload is paginated. You can use NextToken
|
||||
// in a subsequent request to fetch the next page of access point descriptions.
|
||||
NextToken *string
|
||||
|
||||
// An array of the tags for the specified EFS resource.
|
||||
Tags []types.Tag
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationListTagsForResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpListTagsForResource{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpListTagsForResource{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "ListTagsForResource"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpListTagsForResourceValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTagsForResource(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ListTagsForResourcePaginatorOptions is the paginator options for
|
||||
// ListTagsForResource
|
||||
type ListTagsForResourcePaginatorOptions struct {
|
||||
// (Optional) Specifies the maximum number of tag objects to return in the
|
||||
// response. The default value is 100.
|
||||
Limit int32
|
||||
|
||||
// Set to true if pagination should stop if the service returns a pagination token
|
||||
// that matches the most recent token provided to the service.
|
||||
StopOnDuplicateToken bool
|
||||
}
|
||||
|
||||
// ListTagsForResourcePaginator is a paginator for ListTagsForResource
|
||||
type ListTagsForResourcePaginator struct {
|
||||
options ListTagsForResourcePaginatorOptions
|
||||
client ListTagsForResourceAPIClient
|
||||
params *ListTagsForResourceInput
|
||||
nextToken *string
|
||||
firstPage bool
|
||||
}
|
||||
|
||||
// NewListTagsForResourcePaginator returns a new ListTagsForResourcePaginator
|
||||
func NewListTagsForResourcePaginator(client ListTagsForResourceAPIClient, params *ListTagsForResourceInput, optFns ...func(*ListTagsForResourcePaginatorOptions)) *ListTagsForResourcePaginator {
|
||||
if params == nil {
|
||||
params = &ListTagsForResourceInput{}
|
||||
}
|
||||
|
||||
options := ListTagsForResourcePaginatorOptions{}
|
||||
if params.MaxResults != nil {
|
||||
options.Limit = *params.MaxResults
|
||||
}
|
||||
|
||||
for _, fn := range optFns {
|
||||
fn(&options)
|
||||
}
|
||||
|
||||
return &ListTagsForResourcePaginator{
|
||||
options: options,
|
||||
client: client,
|
||||
params: params,
|
||||
firstPage: true,
|
||||
nextToken: params.NextToken,
|
||||
}
|
||||
}
|
||||
|
||||
// HasMorePages returns a boolean indicating whether more pages are available
|
||||
func (p *ListTagsForResourcePaginator) HasMorePages() bool {
|
||||
return p.firstPage || (p.nextToken != nil && len(*p.nextToken) != 0)
|
||||
}
|
||||
|
||||
// NextPage retrieves the next ListTagsForResource page.
|
||||
func (p *ListTagsForResourcePaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListTagsForResourceOutput, error) {
|
||||
if !p.HasMorePages() {
|
||||
return nil, fmt.Errorf("no more pages available")
|
||||
}
|
||||
|
||||
params := *p.params
|
||||
params.NextToken = p.nextToken
|
||||
|
||||
var limit *int32
|
||||
if p.options.Limit > 0 {
|
||||
limit = &p.options.Limit
|
||||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.ListTagsForResource(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p.firstPage = false
|
||||
|
||||
prevToken := p.nextToken
|
||||
p.nextToken = result.NextToken
|
||||
|
||||
if p.options.StopOnDuplicateToken &&
|
||||
prevToken != nil &&
|
||||
p.nextToken != nil &&
|
||||
*prevToken == *p.nextToken {
|
||||
p.nextToken = nil
|
||||
}
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// ListTagsForResourceAPIClient is a client that implements the
|
||||
// ListTagsForResource operation.
|
||||
type ListTagsForResourceAPIClient interface {
|
||||
ListTagsForResource(context.Context, *ListTagsForResourceInput, ...func(*Options)) (*ListTagsForResourceOutput, error)
|
||||
}
|
||||
|
||||
var _ ListTagsForResourceAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opListTagsForResource(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "ListTagsForResource",
|
||||
}
|
||||
}
|
||||
173
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_ModifyMountTargetSecurityGroups.go
generated
vendored
Normal file
173
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_ModifyMountTargetSecurityGroups.go
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Modifies the set of security groups in effect for a mount target.
|
||||
//
|
||||
// When you create a mount target, Amazon EFS also creates a new network
|
||||
// interface. For more information, see CreateMountTarget. This operation replaces the security
|
||||
// groups in effect for the network interface associated with a mount target, with
|
||||
// the SecurityGroups provided in the request. This operation requires that the
|
||||
// network interface of the mount target has been created and the lifecycle state
|
||||
// of the mount target is not deleted .
|
||||
//
|
||||
// The operation requires permissions for the following actions:
|
||||
//
|
||||
// - elasticfilesystem:ModifyMountTargetSecurityGroups action on the mount
|
||||
// target's file system.
|
||||
//
|
||||
// - ec2:ModifyNetworkInterfaceAttribute action on the mount target's network
|
||||
// interface.
|
||||
func (c *Client) ModifyMountTargetSecurityGroups(ctx context.Context, params *ModifyMountTargetSecurityGroupsInput, optFns ...func(*Options)) (*ModifyMountTargetSecurityGroupsOutput, error) {
|
||||
if params == nil {
|
||||
params = &ModifyMountTargetSecurityGroupsInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "ModifyMountTargetSecurityGroups", params, optFns, c.addOperationModifyMountTargetSecurityGroupsMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*ModifyMountTargetSecurityGroupsOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type ModifyMountTargetSecurityGroupsInput struct {
|
||||
|
||||
// The ID of the mount target whose security groups you want to modify.
|
||||
//
|
||||
// This member is required.
|
||||
MountTargetId *string
|
||||
|
||||
// An array of VPC security group IDs.
|
||||
SecurityGroups []string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type ModifyMountTargetSecurityGroupsOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationModifyMountTargetSecurityGroupsMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpModifyMountTargetSecurityGroups{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpModifyMountTargetSecurityGroups{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "ModifyMountTargetSecurityGroups"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpModifyMountTargetSecurityGroupsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opModifyMountTargetSecurityGroups(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opModifyMountTargetSecurityGroups(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "ModifyMountTargetSecurityGroups",
|
||||
}
|
||||
}
|
||||
179
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutAccountPreferences.go
generated
vendored
Normal file
179
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutAccountPreferences.go
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Use this operation to set the account preference in the current Amazon Web
|
||||
// Services Region to use long 17 character (63 bit) or short 8 character (32 bit)
|
||||
// resource IDs for new EFS file system and mount target resources. All existing
|
||||
// resource IDs are not affected by any changes you make. You can set the ID
|
||||
// preference during the opt-in period as EFS transitions to long resource IDs. For
|
||||
// more information, see [Managing Amazon EFS resource IDs].
|
||||
//
|
||||
// Starting in October, 2021, you will receive an error if you try to set the
|
||||
// account preference to use the short 8 character format resource ID. Contact
|
||||
// Amazon Web Services support if you receive an error and must use short IDs for
|
||||
// file system and mount target resources.
|
||||
//
|
||||
// [Managing Amazon EFS resource IDs]: https://docs.aws.amazon.com/efs/latest/ug/manage-efs-resource-ids.html
|
||||
func (c *Client) PutAccountPreferences(ctx context.Context, params *PutAccountPreferencesInput, optFns ...func(*Options)) (*PutAccountPreferencesOutput, error) {
|
||||
if params == nil {
|
||||
params = &PutAccountPreferencesInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "PutAccountPreferences", params, optFns, c.addOperationPutAccountPreferencesMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*PutAccountPreferencesOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type PutAccountPreferencesInput struct {
|
||||
|
||||
// Specifies the EFS resource ID preference to set for the user's Amazon Web
|
||||
// Services account, in the current Amazon Web Services Region, either LONG_ID (17
|
||||
// characters), or SHORT_ID (8 characters).
|
||||
//
|
||||
// Starting in October, 2021, you will receive an error when setting the account
|
||||
// preference to SHORT_ID . Contact Amazon Web Services support if you receive an
|
||||
// error and must use short IDs for file system and mount target resources.
|
||||
//
|
||||
// This member is required.
|
||||
ResourceIdType types.ResourceIdType
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type PutAccountPreferencesOutput struct {
|
||||
|
||||
// Describes the resource type and its ID preference for the user's Amazon Web
|
||||
// Services account, in the current Amazon Web Services Region.
|
||||
ResourceIdPreference *types.ResourceIdPreference
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationPutAccountPreferencesMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpPutAccountPreferences{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutAccountPreferences{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "PutAccountPreferences"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpPutAccountPreferencesValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutAccountPreferences(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opPutAccountPreferences(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "PutAccountPreferences",
|
||||
}
|
||||
}
|
||||
167
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutBackupPolicy.go
generated
vendored
Normal file
167
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutBackupPolicy.go
generated
vendored
Normal file
@@ -0,0 +1,167 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Updates the file system's backup policy. Use this action to start or stop
|
||||
// automatic backups of the file system.
|
||||
func (c *Client) PutBackupPolicy(ctx context.Context, params *PutBackupPolicyInput, optFns ...func(*Options)) (*PutBackupPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &PutBackupPolicyInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "PutBackupPolicy", params, optFns, c.addOperationPutBackupPolicyMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*PutBackupPolicyOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type PutBackupPolicyInput struct {
|
||||
|
||||
// The backup policy included in the PutBackupPolicy request.
|
||||
//
|
||||
// This member is required.
|
||||
BackupPolicy *types.BackupPolicy
|
||||
|
||||
// Specifies which EFS file system to update the backup policy for.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type PutBackupPolicyOutput struct {
|
||||
|
||||
// Describes the file system's backup policy, indicating whether automatic backups
|
||||
// are turned on or off.
|
||||
BackupPolicy *types.BackupPolicy
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationPutBackupPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpPutBackupPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutBackupPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "PutBackupPolicy"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpPutBackupPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutBackupPolicy(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opPutBackupPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "PutBackupPolicy",
|
||||
}
|
||||
}
|
||||
195
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutFileSystemPolicy.go
generated
vendored
Normal file
195
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutFileSystemPolicy.go
generated
vendored
Normal file
@@ -0,0 +1,195 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Applies an Amazon EFS FileSystemPolicy to an Amazon EFS file system. A file
|
||||
// system policy is an IAM resource-based policy and can contain multiple policy
|
||||
// statements. A file system always has exactly one file system policy, which can
|
||||
// be the default policy or an explicit policy set or updated using this API
|
||||
// operation. EFS file system policies have a 20,000 character limit. When an
|
||||
// explicit policy is set, it overrides the default policy. For more information
|
||||
// about the default file system policy, see [Default EFS file system policy].
|
||||
//
|
||||
// EFS file system policies have a 20,000 character limit.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:PutFileSystemPolicy action.
|
||||
//
|
||||
// [Default EFS file system policy]: https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html#default-filesystempolicy
|
||||
func (c *Client) PutFileSystemPolicy(ctx context.Context, params *PutFileSystemPolicyInput, optFns ...func(*Options)) (*PutFileSystemPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &PutFileSystemPolicyInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "PutFileSystemPolicy", params, optFns, c.addOperationPutFileSystemPolicyMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*PutFileSystemPolicyOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type PutFileSystemPolicyInput struct {
|
||||
|
||||
// The ID of the EFS file system that you want to create or update the
|
||||
// FileSystemPolicy for.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// The FileSystemPolicy that you're creating. Accepts a JSON formatted policy
|
||||
// definition. EFS file system policies have a 20,000 character limit. To find out
|
||||
// more about the elements that make up a file system policy, see [Resource-based policies within Amazon EFS].
|
||||
//
|
||||
// [Resource-based policies within Amazon EFS]: https://docs.aws.amazon.com/efs/latest/ug/security_iam_service-with-iam.html#security_iam_service-with-iam-resource-based-policies
|
||||
//
|
||||
// This member is required.
|
||||
Policy *string
|
||||
|
||||
// (Optional) A boolean that specifies whether or not to bypass the
|
||||
// FileSystemPolicy lockout safety check. The lockout safety check determines
|
||||
// whether the policy in the request will lock out, or prevent, the IAM principal
|
||||
// that is making the request from making future PutFileSystemPolicy requests on
|
||||
// this file system. Set BypassPolicyLockoutSafetyCheck to True only when you
|
||||
// intend to prevent the IAM principal that is making the request from making
|
||||
// subsequent PutFileSystemPolicy requests on this file system. The default value
|
||||
// is False .
|
||||
BypassPolicyLockoutSafetyCheck bool
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type PutFileSystemPolicyOutput struct {
|
||||
|
||||
// Specifies the EFS file system to which the FileSystemPolicy applies.
|
||||
FileSystemId *string
|
||||
|
||||
// The JSON formatted FileSystemPolicy for the EFS file system.
|
||||
Policy *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationPutFileSystemPolicyMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpPutFileSystemPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutFileSystemPolicy{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "PutFileSystemPolicy"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpPutFileSystemPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutFileSystemPolicy(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opPutFileSystemPolicy(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "PutFileSystemPolicy",
|
||||
}
|
||||
}
|
||||
243
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutLifecycleConfiguration.go
generated
vendored
Normal file
243
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_PutLifecycleConfiguration.go
generated
vendored
Normal file
@@ -0,0 +1,243 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Use this action to manage storage for your file system. A LifecycleConfiguration
|
||||
// consists of one or more LifecyclePolicy objects that define the following:
|
||||
//
|
||||
// - TransitionToIA – When to move files in the file system from primary storage
|
||||
// (Standard storage class) into the Infrequent Access (IA) storage.
|
||||
//
|
||||
// - TransitionToArchive – When to move files in the file system from their
|
||||
// current storage class (either IA or Standard storage) into the Archive storage.
|
||||
//
|
||||
// File systems cannot transition into Archive storage before transitioning into
|
||||
//
|
||||
// IA storage. Therefore, TransitionToArchive must either not be set or must be
|
||||
// later than TransitionToIA.
|
||||
//
|
||||
// The Archive storage class is available only for file systems that use the
|
||||
//
|
||||
// Elastic throughput mode and the General Purpose performance mode.
|
||||
//
|
||||
// - TransitionToPrimaryStorageClass – Whether to move files in the file system
|
||||
// back to primary storage (Standard storage class) after they are accessed in IA
|
||||
// or Archive storage.
|
||||
//
|
||||
// For more information, see [Managing file system storage].
|
||||
//
|
||||
// Each Amazon EFS file system supports one lifecycle configuration, which applies
|
||||
// to all files in the file system. If a LifecycleConfiguration object already
|
||||
// exists for the specified file system, a PutLifecycleConfiguration call modifies
|
||||
// the existing configuration. A PutLifecycleConfiguration call with an empty
|
||||
// LifecyclePolicies array in the request body deletes any existing
|
||||
// LifecycleConfiguration . In the request, specify the following:
|
||||
//
|
||||
// - The ID for the file system for which you are enabling, disabling, or
|
||||
// modifying lifecycle management.
|
||||
//
|
||||
// - A LifecyclePolicies array of LifecyclePolicy objects that define when to
|
||||
// move files to IA storage, to Archive storage, and back to primary storage.
|
||||
//
|
||||
// Amazon EFS requires that each LifecyclePolicy object have only have a single
|
||||
//
|
||||
// transition, so the LifecyclePolicies array needs to be structured with
|
||||
// separate LifecyclePolicy objects. See the example requests in the following
|
||||
// section for more information.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:PutLifecycleConfiguration operation.
|
||||
//
|
||||
// To apply a LifecycleConfiguration object to an encrypted file system, you need
|
||||
// the same Key Management Service permissions as when you created the encrypted
|
||||
// file system.
|
||||
//
|
||||
// [Managing file system storage]: https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html
|
||||
func (c *Client) PutLifecycleConfiguration(ctx context.Context, params *PutLifecycleConfigurationInput, optFns ...func(*Options)) (*PutLifecycleConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &PutLifecycleConfigurationInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "PutLifecycleConfiguration", params, optFns, c.addOperationPutLifecycleConfigurationMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*PutLifecycleConfigurationOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type PutLifecycleConfigurationInput struct {
|
||||
|
||||
// The ID of the file system for which you are creating the LifecycleConfiguration
|
||||
// object (String).
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// An array of LifecyclePolicy objects that define the file system's
|
||||
// LifecycleConfiguration object. A LifecycleConfiguration object informs
|
||||
// lifecycle management of the following:
|
||||
//
|
||||
// - TransitionToIA – When to move files in the file system from primary storage
|
||||
// (Standard storage class) into the Infrequent Access (IA) storage.
|
||||
//
|
||||
// - TransitionToArchive – When to move files in the file system from their
|
||||
// current storage class (either IA or Standard storage) into the Archive storage.
|
||||
//
|
||||
// File systems cannot transition into Archive storage before transitioning into
|
||||
// IA storage. Therefore, TransitionToArchive must either not be set or must be
|
||||
// later than TransitionToIA.
|
||||
//
|
||||
// The Archive storage class is available only for file systems that use the
|
||||
// Elastic throughput mode and the General Purpose performance mode.
|
||||
//
|
||||
// - TransitionToPrimaryStorageClass – Whether to move files in the file system
|
||||
// back to primary storage (Standard storage class) after they are accessed in IA
|
||||
// or Archive storage.
|
||||
//
|
||||
// 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 storage transition. See the example
|
||||
// requests in the following section for more information.
|
||||
//
|
||||
// This member is required.
|
||||
LifecyclePolicies []types.LifecyclePolicy
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type PutLifecycleConfigurationOutput struct {
|
||||
|
||||
// An array of lifecycle management policies. EFS supports a maximum of one policy
|
||||
// per file system.
|
||||
LifecyclePolicies []types.LifecyclePolicy
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationPutLifecycleConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpPutLifecycleConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpPutLifecycleConfiguration{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "PutLifecycleConfiguration"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpPutLifecycleConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opPutLifecycleConfiguration(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opPutLifecycleConfiguration(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "PutLifecycleConfiguration",
|
||||
}
|
||||
}
|
||||
165
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_TagResource.go
generated
vendored
Normal file
165
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_TagResource.go
generated
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Creates a tag for an EFS resource. You can create tags for EFS file systems and
|
||||
// access points using this API operation.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:TagResource
|
||||
// action.
|
||||
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error) {
|
||||
if params == nil {
|
||||
params = &TagResourceInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "TagResource", params, optFns, c.addOperationTagResourceMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*TagResourceOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type TagResourceInput struct {
|
||||
|
||||
// The ID specifying the EFS resource that you want to create a tag for.
|
||||
//
|
||||
// This member is required.
|
||||
ResourceId *string
|
||||
|
||||
// An array of Tag objects to add. Each Tag object is a key-value pair.
|
||||
//
|
||||
// This member is required.
|
||||
Tags []types.Tag
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type TagResourceOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpTagResource{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpTagResource{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "TagResource"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpTagResourceValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opTagResource(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opTagResource(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "TagResource",
|
||||
}
|
||||
}
|
||||
165
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_UntagResource.go
generated
vendored
Normal file
165
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_UntagResource.go
generated
vendored
Normal file
@@ -0,0 +1,165 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Removes tags from an EFS resource. You can remove tags from EFS file systems
|
||||
// and access points using this API operation.
|
||||
//
|
||||
// This operation requires permissions for the elasticfilesystem:UntagResource
|
||||
// action.
|
||||
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error) {
|
||||
if params == nil {
|
||||
params = &UntagResourceInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "UntagResource", params, optFns, c.addOperationUntagResourceMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*UntagResourceOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type UntagResourceInput struct {
|
||||
|
||||
// Specifies the EFS resource that you want to remove tags from.
|
||||
//
|
||||
// This member is required.
|
||||
ResourceId *string
|
||||
|
||||
// The keys of the key-value tag pairs that you want to remove from the specified
|
||||
// EFS resource.
|
||||
//
|
||||
// This member is required.
|
||||
TagKeys []string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type UntagResourceOutput struct {
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpUntagResource{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUntagResource{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "UntagResource"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUntagResourceValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUntagResource(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opUntagResource(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "UntagResource",
|
||||
}
|
||||
}
|
||||
273
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_UpdateFileSystem.go
generated
vendored
Normal file
273
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_UpdateFileSystem.go
generated
vendored
Normal file
@@ -0,0 +1,273 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Updates the throughput mode or the amount of provisioned throughput of an
|
||||
// existing file system.
|
||||
func (c *Client) UpdateFileSystem(ctx context.Context, params *UpdateFileSystemInput, optFns ...func(*Options)) (*UpdateFileSystemOutput, error) {
|
||||
if params == nil {
|
||||
params = &UpdateFileSystemInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "UpdateFileSystem", params, optFns, c.addOperationUpdateFileSystemMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*UpdateFileSystemOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type UpdateFileSystemInput struct {
|
||||
|
||||
// The ID of the file system that you want to update.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// (Optional) The throughput, measured in mebibytes per second (MiBps), that you
|
||||
// want to provision for a file system that you're creating. Required if
|
||||
// ThroughputMode is set to provisioned . Valid values are 1-3414 MiBps, with the
|
||||
// upper limit depending on Region. To increase this limit, contact Amazon Web
|
||||
// ServicesSupport. For more information, see [Amazon EFS quotas that you can increase]in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Amazon EFS quotas that you can increase]: https://docs.aws.amazon.com/efs/latest/ug/limits.html#soft-limits
|
||||
ProvisionedThroughputInMibps *float64
|
||||
|
||||
// (Optional) Updates the file system's throughput mode. If you're not updating
|
||||
// your throughput mode, you don't need to provide this value in your request. If
|
||||
// you are changing the ThroughputMode to provisioned , you must also set a value
|
||||
// for ProvisionedThroughputInMibps .
|
||||
ThroughputMode types.ThroughputMode
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// A description of the file system.
|
||||
type UpdateFileSystemOutput 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 types.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 types.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 *types.FileSystemSize
|
||||
|
||||
// The tags associated with the file system, presented as an array of Tag objects.
|
||||
//
|
||||
// This member is required.
|
||||
Tags []types.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]
|
||||
// in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Using EFS storage classes]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html
|
||||
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 *types.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] in the
|
||||
// Amazon EFS User Guide.
|
||||
//
|
||||
// [Throughput modes]: https://docs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes
|
||||
ThroughputMode types.ThroughputMode
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationUpdateFileSystemMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateFileSystem{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateFileSystem{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateFileSystem"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateFileSystemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateFileSystem(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opUpdateFileSystem(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "UpdateFileSystem",
|
||||
}
|
||||
}
|
||||
197
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_UpdateFileSystemProtection.go
generated
vendored
Normal file
197
vendor/github.com/aws/aws-sdk-go-v2/service/efs/api_op_UpdateFileSystemProtection.go
generated
vendored
Normal file
@@ -0,0 +1,197 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/efs/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Updates protection on the file system.
|
||||
//
|
||||
// This operation requires permissions for the
|
||||
// elasticfilesystem:UpdateFileSystemProtection action.
|
||||
func (c *Client) UpdateFileSystemProtection(ctx context.Context, params *UpdateFileSystemProtectionInput, optFns ...func(*Options)) (*UpdateFileSystemProtectionOutput, error) {
|
||||
if params == nil {
|
||||
params = &UpdateFileSystemProtectionInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "UpdateFileSystemProtection", params, optFns, c.addOperationUpdateFileSystemProtectionMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*UpdateFileSystemProtectionOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type UpdateFileSystemProtectionInput struct {
|
||||
|
||||
// The ID of the file system to update.
|
||||
//
|
||||
// This member is required.
|
||||
FileSystemId *string
|
||||
|
||||
// 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 and the file system becomes writeable.
|
||||
ReplicationOverwriteProtection types.ReplicationOverwriteProtection
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Describes the protection on a file system.
|
||||
type UpdateFileSystemProtectionOutput 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 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 types.ReplicationOverwriteProtection
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationUpdateFileSystemProtectionMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsRestjson1_serializeOpUpdateFileSystemProtection{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsRestjson1_deserializeOpUpdateFileSystemProtection{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "UpdateFileSystemProtection"); err != nil {
|
||||
return fmt.Errorf("add protocol finalizers: %v", err)
|
||||
}
|
||||
|
||||
if err = addlegacyEndpointContextSetter(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLoggerMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientRequestID(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputeContentLength(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResolveEndpointMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addComputePayloadSHA256(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRetry(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRawResponseToMetadata(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecordResponseTiming(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanRetryLoop(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addClientUserAgent(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSetLegacyContextSigningOptionsMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addCredentialSource(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateFileSystemProtectionValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opUpdateFileSystemProtection(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRecursionDetection(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestIDRetrieverMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addResponseErrorMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addRequestResponseLogging(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addDisableHTTPSMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanInitializeEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestStart(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addSpanBuildRequestEnd(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opUpdateFileSystemProtection(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "UpdateFileSystemProtection",
|
||||
}
|
||||
}
|
||||
313
vendor/github.com/aws/aws-sdk-go-v2/service/efs/auth.go
generated
vendored
Normal file
313
vendor/github.com/aws/aws-sdk-go-v2/service/efs/auth.go
generated
vendored
Normal file
@@ -0,0 +1,313 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
smithy "github.com/aws/smithy-go"
|
||||
smithyauth "github.com/aws/smithy-go/auth"
|
||||
"github.com/aws/smithy-go/metrics"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
"github.com/aws/smithy-go/tracing"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
func bindAuthParamsRegion(_ interface{}, params *AuthResolverParameters, _ interface{}, options Options) {
|
||||
params.Region = options.Region
|
||||
}
|
||||
|
||||
type setLegacyContextSigningOptionsMiddleware struct {
|
||||
}
|
||||
|
||||
func (*setLegacyContextSigningOptionsMiddleware) ID() string {
|
||||
return "setLegacyContextSigningOptions"
|
||||
}
|
||||
|
||||
func (m *setLegacyContextSigningOptionsMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
rscheme := getResolvedAuthScheme(ctx)
|
||||
schemeID := rscheme.Scheme.SchemeID()
|
||||
|
||||
if sn := awsmiddleware.GetSigningName(ctx); sn != "" {
|
||||
if schemeID == "aws.auth#sigv4" {
|
||||
smithyhttp.SetSigV4SigningName(&rscheme.SignerProperties, sn)
|
||||
} else if schemeID == "aws.auth#sigv4a" {
|
||||
smithyhttp.SetSigV4ASigningName(&rscheme.SignerProperties, sn)
|
||||
}
|
||||
}
|
||||
|
||||
if sr := awsmiddleware.GetSigningRegion(ctx); sr != "" {
|
||||
if schemeID == "aws.auth#sigv4" {
|
||||
smithyhttp.SetSigV4SigningRegion(&rscheme.SignerProperties, sr)
|
||||
} else if schemeID == "aws.auth#sigv4a" {
|
||||
smithyhttp.SetSigV4ASigningRegions(&rscheme.SignerProperties, []string{sr})
|
||||
}
|
||||
}
|
||||
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
func addSetLegacyContextSigningOptionsMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Finalize.Insert(&setLegacyContextSigningOptionsMiddleware{}, "Signing", middleware.Before)
|
||||
}
|
||||
|
||||
type withAnonymous struct {
|
||||
resolver AuthSchemeResolver
|
||||
}
|
||||
|
||||
var _ AuthSchemeResolver = (*withAnonymous)(nil)
|
||||
|
||||
func (v *withAnonymous) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) {
|
||||
opts, err := v.resolver.ResolveAuthSchemes(ctx, params)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
opts = append(opts, &smithyauth.Option{
|
||||
SchemeID: smithyauth.SchemeIDAnonymous,
|
||||
})
|
||||
return opts, nil
|
||||
}
|
||||
|
||||
func wrapWithAnonymousAuth(options *Options) {
|
||||
if _, ok := options.AuthSchemeResolver.(*defaultAuthSchemeResolver); !ok {
|
||||
return
|
||||
}
|
||||
|
||||
options.AuthSchemeResolver = &withAnonymous{
|
||||
resolver: options.AuthSchemeResolver,
|
||||
}
|
||||
}
|
||||
|
||||
// AuthResolverParameters contains the set of inputs necessary for auth scheme
|
||||
// resolution.
|
||||
type AuthResolverParameters struct {
|
||||
// The name of the operation being invoked.
|
||||
Operation string
|
||||
|
||||
// The region in which the operation is being invoked.
|
||||
Region string
|
||||
}
|
||||
|
||||
func bindAuthResolverParams(ctx context.Context, operation string, input interface{}, options Options) *AuthResolverParameters {
|
||||
params := &AuthResolverParameters{
|
||||
Operation: operation,
|
||||
}
|
||||
|
||||
bindAuthParamsRegion(ctx, params, input, options)
|
||||
|
||||
return params
|
||||
}
|
||||
|
||||
// AuthSchemeResolver returns a set of possible authentication options for an
|
||||
// operation.
|
||||
type AuthSchemeResolver interface {
|
||||
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
|
||||
}
|
||||
|
||||
type defaultAuthSchemeResolver struct{}
|
||||
|
||||
var _ AuthSchemeResolver = (*defaultAuthSchemeResolver)(nil)
|
||||
|
||||
func (*defaultAuthSchemeResolver) ResolveAuthSchemes(ctx context.Context, params *AuthResolverParameters) ([]*smithyauth.Option, error) {
|
||||
if overrides, ok := operationAuthOptions[params.Operation]; ok {
|
||||
return overrides(params), nil
|
||||
}
|
||||
return serviceAuthOptions(params), nil
|
||||
}
|
||||
|
||||
var operationAuthOptions = map[string]func(*AuthResolverParameters) []*smithyauth.Option{}
|
||||
|
||||
func serviceAuthOptions(params *AuthResolverParameters) []*smithyauth.Option {
|
||||
return []*smithyauth.Option{
|
||||
{
|
||||
SchemeID: smithyauth.SchemeIDSigV4,
|
||||
SignerProperties: func() smithy.Properties {
|
||||
var props smithy.Properties
|
||||
smithyhttp.SetSigV4SigningName(&props, "elasticfilesystem")
|
||||
smithyhttp.SetSigV4SigningRegion(&props, params.Region)
|
||||
return props
|
||||
}(),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
type resolveAuthSchemeMiddleware struct {
|
||||
operation string
|
||||
options Options
|
||||
}
|
||||
|
||||
func (*resolveAuthSchemeMiddleware) ID() string {
|
||||
return "ResolveAuthScheme"
|
||||
}
|
||||
|
||||
func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
_, span := tracing.StartSpan(ctx, "ResolveAuthScheme")
|
||||
defer span.End()
|
||||
|
||||
params := bindAuthResolverParams(ctx, m.operation, getOperationInput(ctx), m.options)
|
||||
options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params)
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("resolve auth scheme: %w", err)
|
||||
}
|
||||
|
||||
scheme, ok := m.selectScheme(options)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("could not select an auth scheme")
|
||||
}
|
||||
|
||||
ctx = setResolvedAuthScheme(ctx, scheme)
|
||||
|
||||
span.SetProperty("auth.scheme_id", scheme.Scheme.SchemeID())
|
||||
span.End()
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
func (m *resolveAuthSchemeMiddleware) selectScheme(options []*smithyauth.Option) (*resolvedAuthScheme, bool) {
|
||||
for _, option := range options {
|
||||
if option.SchemeID == smithyauth.SchemeIDAnonymous {
|
||||
return newResolvedAuthScheme(smithyhttp.NewAnonymousScheme(), option), true
|
||||
}
|
||||
|
||||
for _, scheme := range m.options.AuthSchemes {
|
||||
if scheme.SchemeID() != option.SchemeID {
|
||||
continue
|
||||
}
|
||||
|
||||
if scheme.IdentityResolver(m.options) != nil {
|
||||
return newResolvedAuthScheme(scheme, option), true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return nil, false
|
||||
}
|
||||
|
||||
type resolvedAuthSchemeKey struct{}
|
||||
|
||||
type resolvedAuthScheme struct {
|
||||
Scheme smithyhttp.AuthScheme
|
||||
IdentityProperties smithy.Properties
|
||||
SignerProperties smithy.Properties
|
||||
}
|
||||
|
||||
func newResolvedAuthScheme(scheme smithyhttp.AuthScheme, option *smithyauth.Option) *resolvedAuthScheme {
|
||||
return &resolvedAuthScheme{
|
||||
Scheme: scheme,
|
||||
IdentityProperties: option.IdentityProperties,
|
||||
SignerProperties: option.SignerProperties,
|
||||
}
|
||||
}
|
||||
|
||||
func setResolvedAuthScheme(ctx context.Context, scheme *resolvedAuthScheme) context.Context {
|
||||
return middleware.WithStackValue(ctx, resolvedAuthSchemeKey{}, scheme)
|
||||
}
|
||||
|
||||
func getResolvedAuthScheme(ctx context.Context) *resolvedAuthScheme {
|
||||
v, _ := middleware.GetStackValue(ctx, resolvedAuthSchemeKey{}).(*resolvedAuthScheme)
|
||||
return v
|
||||
}
|
||||
|
||||
type getIdentityMiddleware struct {
|
||||
options Options
|
||||
}
|
||||
|
||||
func (*getIdentityMiddleware) ID() string {
|
||||
return "GetIdentity"
|
||||
}
|
||||
|
||||
func (m *getIdentityMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
innerCtx, span := tracing.StartSpan(ctx, "GetIdentity")
|
||||
defer span.End()
|
||||
|
||||
rscheme := getResolvedAuthScheme(innerCtx)
|
||||
if rscheme == nil {
|
||||
return out, metadata, fmt.Errorf("no resolved auth scheme")
|
||||
}
|
||||
|
||||
resolver := rscheme.Scheme.IdentityResolver(m.options)
|
||||
if resolver == nil {
|
||||
return out, metadata, fmt.Errorf("no identity resolver")
|
||||
}
|
||||
|
||||
identity, err := timeOperationMetric(ctx, "client.call.resolve_identity_duration",
|
||||
func() (smithyauth.Identity, error) {
|
||||
return resolver.GetIdentity(innerCtx, rscheme.IdentityProperties)
|
||||
},
|
||||
func(o *metrics.RecordMetricOptions) {
|
||||
o.Properties.Set("auth.scheme_id", rscheme.Scheme.SchemeID())
|
||||
})
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("get identity: %w", err)
|
||||
}
|
||||
|
||||
ctx = setIdentity(ctx, identity)
|
||||
|
||||
span.End()
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
type identityKey struct{}
|
||||
|
||||
func setIdentity(ctx context.Context, identity smithyauth.Identity) context.Context {
|
||||
return middleware.WithStackValue(ctx, identityKey{}, identity)
|
||||
}
|
||||
|
||||
func getIdentity(ctx context.Context) smithyauth.Identity {
|
||||
v, _ := middleware.GetStackValue(ctx, identityKey{}).(smithyauth.Identity)
|
||||
return v
|
||||
}
|
||||
|
||||
type signRequestMiddleware struct {
|
||||
options Options
|
||||
}
|
||||
|
||||
func (*signRequestMiddleware) ID() string {
|
||||
return "Signing"
|
||||
}
|
||||
|
||||
func (m *signRequestMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
_, span := tracing.StartSpan(ctx, "SignRequest")
|
||||
defer span.End()
|
||||
|
||||
req, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unexpected transport type %T", in.Request)
|
||||
}
|
||||
|
||||
rscheme := getResolvedAuthScheme(ctx)
|
||||
if rscheme == nil {
|
||||
return out, metadata, fmt.Errorf("no resolved auth scheme")
|
||||
}
|
||||
|
||||
identity := getIdentity(ctx)
|
||||
if identity == nil {
|
||||
return out, metadata, fmt.Errorf("no identity")
|
||||
}
|
||||
|
||||
signer := rscheme.Scheme.Signer()
|
||||
if signer == nil {
|
||||
return out, metadata, fmt.Errorf("no signer")
|
||||
}
|
||||
|
||||
_, err = timeOperationMetric(ctx, "client.call.signing_duration", func() (any, error) {
|
||||
return nil, signer.SignRequest(ctx, req, identity, rscheme.SignerProperties)
|
||||
}, func(o *metrics.RecordMetricOptions) {
|
||||
o.Properties.Set("auth.scheme_id", rscheme.Scheme.SchemeID())
|
||||
})
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("sign request: %w", err)
|
||||
}
|
||||
|
||||
span.End()
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
9474
vendor/github.com/aws/aws-sdk-go-v2/service/efs/deserializers.go
generated
vendored
Normal file
9474
vendor/github.com/aws/aws-sdk-go-v2/service/efs/deserializers.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
16
vendor/github.com/aws/aws-sdk-go-v2/service/efs/doc.go
generated
vendored
Normal file
16
vendor/github.com/aws/aws-sdk-go-v2/service/efs/doc.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
// Package efs provides the API client, operations, and parameter types for Amazon
|
||||
// Elastic File System.
|
||||
//
|
||||
// # Amazon Elastic File System
|
||||
//
|
||||
// Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage
|
||||
// for use with Amazon EC2 Linux and Mac instances in the Amazon Web Services
|
||||
// Cloud. With Amazon EFS, storage capacity is elastic, growing and shrinking
|
||||
// automatically as you add and remove files, so that your applications have the
|
||||
// storage they need, when they need it. For more information, see the [Amazon Elastic File System API Reference]and the [Amazon Elastic File System User Guide].
|
||||
//
|
||||
// [Amazon Elastic File System User Guide]: https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html
|
||||
// [Amazon Elastic File System API Reference]: https://docs.aws.amazon.com/efs/latest/ug/api-reference.html
|
||||
package efs
|
||||
685
vendor/github.com/aws/aws-sdk-go-v2/service/efs/endpoints.go
generated
vendored
Normal file
685
vendor/github.com/aws/aws-sdk-go-v2/service/efs/endpoints.go
generated
vendored
Normal file
@@ -0,0 +1,685 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
internalConfig "github.com/aws/aws-sdk-go-v2/internal/configsources"
|
||||
"github.com/aws/aws-sdk-go-v2/internal/endpoints"
|
||||
"github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn"
|
||||
internalendpoints "github.com/aws/aws-sdk-go-v2/service/efs/internal/endpoints"
|
||||
smithyauth "github.com/aws/smithy-go/auth"
|
||||
smithyendpoints "github.com/aws/smithy-go/endpoints"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
"github.com/aws/smithy-go/ptr"
|
||||
"github.com/aws/smithy-go/tracing"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// EndpointResolverOptions is the service endpoint resolver options
|
||||
type EndpointResolverOptions = internalendpoints.Options
|
||||
|
||||
// EndpointResolver interface for resolving service endpoints.
|
||||
type EndpointResolver interface {
|
||||
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
|
||||
}
|
||||
|
||||
var _ EndpointResolver = &internalendpoints.Resolver{}
|
||||
|
||||
// NewDefaultEndpointResolver constructs a new service endpoint resolver
|
||||
func NewDefaultEndpointResolver() *internalendpoints.Resolver {
|
||||
return internalendpoints.New()
|
||||
}
|
||||
|
||||
// EndpointResolverFunc is a helper utility that wraps a function so it satisfies
|
||||
// the EndpointResolver interface. This is useful when you want to add additional
|
||||
// endpoint resolving logic, or stub out specific endpoints with custom values.
|
||||
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
|
||||
|
||||
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
|
||||
return fn(region, options)
|
||||
}
|
||||
|
||||
// EndpointResolverFromURL returns an EndpointResolver configured using the
|
||||
// provided endpoint url. By default, the resolved endpoint resolver uses the
|
||||
// client region as signing region, and the endpoint source is set to
|
||||
// EndpointSourceCustom.You can provide functional options to configure endpoint
|
||||
// values for the resolved endpoint.
|
||||
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver {
|
||||
e := aws.Endpoint{URL: url, Source: aws.EndpointSourceCustom}
|
||||
for _, fn := range optFns {
|
||||
fn(&e)
|
||||
}
|
||||
|
||||
return EndpointResolverFunc(
|
||||
func(region string, options EndpointResolverOptions) (aws.Endpoint, error) {
|
||||
if len(e.SigningRegion) == 0 {
|
||||
e.SigningRegion = region
|
||||
}
|
||||
return e, nil
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
type ResolveEndpoint struct {
|
||||
Resolver EndpointResolver
|
||||
Options EndpointResolverOptions
|
||||
}
|
||||
|
||||
func (*ResolveEndpoint) ID() string {
|
||||
return "ResolveEndpoint"
|
||||
}
|
||||
|
||||
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
||||
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
if !awsmiddleware.GetRequiresLegacyEndpoints(ctx) {
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
req, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
|
||||
}
|
||||
|
||||
if m.Resolver == nil {
|
||||
return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
|
||||
}
|
||||
|
||||
eo := m.Options
|
||||
eo.Logger = middleware.GetLogger(ctx)
|
||||
|
||||
var endpoint aws.Endpoint
|
||||
endpoint, err = m.Resolver.ResolveEndpoint(awsmiddleware.GetRegion(ctx), eo)
|
||||
if err != nil {
|
||||
nf := (&aws.EndpointNotFoundError{})
|
||||
if errors.As(err, &nf) {
|
||||
ctx = awsmiddleware.SetRequiresLegacyEndpoints(ctx, false)
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
|
||||
}
|
||||
|
||||
req.URL, err = url.Parse(endpoint.URL)
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("failed to parse endpoint URL: %w", err)
|
||||
}
|
||||
|
||||
if len(awsmiddleware.GetSigningName(ctx)) == 0 {
|
||||
signingName := endpoint.SigningName
|
||||
if len(signingName) == 0 {
|
||||
signingName = "elasticfilesystem"
|
||||
}
|
||||
ctx = awsmiddleware.SetSigningName(ctx, signingName)
|
||||
}
|
||||
ctx = awsmiddleware.SetEndpointSource(ctx, endpoint.Source)
|
||||
ctx = smithyhttp.SetHostnameImmutable(ctx, endpoint.HostnameImmutable)
|
||||
ctx = awsmiddleware.SetSigningRegion(ctx, endpoint.SigningRegion)
|
||||
ctx = awsmiddleware.SetPartitionID(ctx, endpoint.PartitionID)
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
func addResolveEndpointMiddleware(stack *middleware.Stack, o Options) error {
|
||||
return stack.Serialize.Insert(&ResolveEndpoint{
|
||||
Resolver: o.EndpointResolver,
|
||||
Options: o.EndpointOptions,
|
||||
}, "OperationSerializer", middleware.Before)
|
||||
}
|
||||
|
||||
func removeResolveEndpointMiddleware(stack *middleware.Stack) error {
|
||||
_, err := stack.Serialize.Remove((&ResolveEndpoint{}).ID())
|
||||
return err
|
||||
}
|
||||
|
||||
type wrappedEndpointResolver struct {
|
||||
awsResolver aws.EndpointResolverWithOptions
|
||||
}
|
||||
|
||||
func (w *wrappedEndpointResolver) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error) {
|
||||
return w.awsResolver.ResolveEndpoint(ServiceID, region, options)
|
||||
}
|
||||
|
||||
type awsEndpointResolverAdaptor func(service, region string) (aws.Endpoint, error)
|
||||
|
||||
func (a awsEndpointResolverAdaptor) ResolveEndpoint(service, region string, options ...interface{}) (aws.Endpoint, error) {
|
||||
return a(service, region)
|
||||
}
|
||||
|
||||
var _ aws.EndpointResolverWithOptions = awsEndpointResolverAdaptor(nil)
|
||||
|
||||
// withEndpointResolver returns an aws.EndpointResolverWithOptions that first delegates endpoint resolution to the awsResolver.
|
||||
// If awsResolver returns aws.EndpointNotFoundError error, the v1 resolver middleware will swallow the error,
|
||||
// and set an appropriate context flag such that fallback will occur when EndpointResolverV2 is invoked
|
||||
// via its middleware.
|
||||
//
|
||||
// If another error (besides aws.EndpointNotFoundError) is returned, then that error will be propagated.
|
||||
func withEndpointResolver(awsResolver aws.EndpointResolver, awsResolverWithOptions aws.EndpointResolverWithOptions) EndpointResolver {
|
||||
var resolver aws.EndpointResolverWithOptions
|
||||
|
||||
if awsResolverWithOptions != nil {
|
||||
resolver = awsResolverWithOptions
|
||||
} else if awsResolver != nil {
|
||||
resolver = awsEndpointResolverAdaptor(awsResolver.ResolveEndpoint)
|
||||
}
|
||||
|
||||
return &wrappedEndpointResolver{
|
||||
awsResolver: resolver,
|
||||
}
|
||||
}
|
||||
|
||||
func finalizeClientEndpointResolverOptions(options *Options) {
|
||||
options.EndpointOptions.LogDeprecated = options.ClientLogMode.IsDeprecatedUsage()
|
||||
|
||||
if len(options.EndpointOptions.ResolvedRegion) == 0 {
|
||||
const fipsInfix = "-fips-"
|
||||
const fipsPrefix = "fips-"
|
||||
const fipsSuffix = "-fips"
|
||||
|
||||
if strings.Contains(options.Region, fipsInfix) ||
|
||||
strings.Contains(options.Region, fipsPrefix) ||
|
||||
strings.Contains(options.Region, fipsSuffix) {
|
||||
options.EndpointOptions.ResolvedRegion = strings.ReplaceAll(strings.ReplaceAll(strings.ReplaceAll(
|
||||
options.Region, fipsInfix, "-"), fipsPrefix, ""), fipsSuffix, "")
|
||||
options.EndpointOptions.UseFIPSEndpoint = aws.FIPSEndpointStateEnabled
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func resolveEndpointResolverV2(options *Options) {
|
||||
if options.EndpointResolverV2 == nil {
|
||||
options.EndpointResolverV2 = NewDefaultEndpointResolverV2()
|
||||
}
|
||||
}
|
||||
|
||||
func resolveBaseEndpoint(cfg aws.Config, o *Options) {
|
||||
if cfg.BaseEndpoint != nil {
|
||||
o.BaseEndpoint = cfg.BaseEndpoint
|
||||
}
|
||||
|
||||
_, g := os.LookupEnv("AWS_ENDPOINT_URL")
|
||||
_, s := os.LookupEnv("AWS_ENDPOINT_URL_EFS")
|
||||
|
||||
if g && !s {
|
||||
return
|
||||
}
|
||||
|
||||
value, found, err := internalConfig.ResolveServiceBaseEndpoint(context.Background(), "EFS", cfg.ConfigSources)
|
||||
if found && err == nil {
|
||||
o.BaseEndpoint = &value
|
||||
}
|
||||
}
|
||||
|
||||
func bindRegion(region string) *string {
|
||||
if region == "" {
|
||||
return nil
|
||||
}
|
||||
return aws.String(endpoints.MapFIPSRegion(region))
|
||||
}
|
||||
|
||||
// EndpointParameters provides the parameters that influence how endpoints are
|
||||
// resolved.
|
||||
type EndpointParameters struct {
|
||||
// When true, use the dual-stack endpoint. If the configured endpoint does not
|
||||
// support dual-stack, dispatching the request MAY return an error.
|
||||
//
|
||||
// Defaults to
|
||||
// false if no value is provided.
|
||||
//
|
||||
// AWS::UseDualStack
|
||||
UseDualStack *bool
|
||||
|
||||
// When true, send this request to the FIPS-compliant regional endpoint. If the
|
||||
// configured endpoint does not have a FIPS compliant endpoint, dispatching the
|
||||
// request will return an error.
|
||||
//
|
||||
// Defaults to false if no value is
|
||||
// provided.
|
||||
//
|
||||
// AWS::UseFIPS
|
||||
UseFIPS *bool
|
||||
|
||||
// Override the endpoint used to send this request
|
||||
//
|
||||
// Parameter is
|
||||
// required.
|
||||
//
|
||||
// SDK::Endpoint
|
||||
Endpoint *string
|
||||
|
||||
// The AWS region used to dispatch the request.
|
||||
//
|
||||
// Parameter is
|
||||
// required.
|
||||
//
|
||||
// AWS::Region
|
||||
Region *string
|
||||
}
|
||||
|
||||
// ValidateRequired validates required parameters are set.
|
||||
func (p EndpointParameters) ValidateRequired() error {
|
||||
if p.UseDualStack == nil {
|
||||
return fmt.Errorf("parameter UseDualStack is required")
|
||||
}
|
||||
|
||||
if p.UseFIPS == nil {
|
||||
return fmt.Errorf("parameter UseFIPS is required")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// WithDefaults returns a shallow copy of EndpointParameterswith default values
|
||||
// applied to members where applicable.
|
||||
func (p EndpointParameters) WithDefaults() EndpointParameters {
|
||||
if p.UseDualStack == nil {
|
||||
p.UseDualStack = ptr.Bool(false)
|
||||
}
|
||||
|
||||
if p.UseFIPS == nil {
|
||||
p.UseFIPS = ptr.Bool(false)
|
||||
}
|
||||
return p
|
||||
}
|
||||
|
||||
type stringSlice []string
|
||||
|
||||
func (s stringSlice) Get(i int) *string {
|
||||
if i < 0 || i >= len(s) {
|
||||
return nil
|
||||
}
|
||||
|
||||
v := s[i]
|
||||
return &v
|
||||
}
|
||||
|
||||
// EndpointResolverV2 provides the interface for resolving service endpoints.
|
||||
type EndpointResolverV2 interface {
|
||||
// ResolveEndpoint attempts to resolve the endpoint with the provided options,
|
||||
// returning the endpoint if found. Otherwise an error is returned.
|
||||
ResolveEndpoint(ctx context.Context, params EndpointParameters) (
|
||||
smithyendpoints.Endpoint, error,
|
||||
)
|
||||
}
|
||||
|
||||
// resolver provides the implementation for resolving endpoints.
|
||||
type resolver struct{}
|
||||
|
||||
func NewDefaultEndpointResolverV2() EndpointResolverV2 {
|
||||
return &resolver{}
|
||||
}
|
||||
|
||||
// ResolveEndpoint attempts to resolve the endpoint with the provided options,
|
||||
// returning the endpoint if found. Otherwise an error is returned.
|
||||
func (r *resolver) ResolveEndpoint(
|
||||
ctx context.Context, params EndpointParameters,
|
||||
) (
|
||||
endpoint smithyendpoints.Endpoint, err error,
|
||||
) {
|
||||
params = params.WithDefaults()
|
||||
if err = params.ValidateRequired(); err != nil {
|
||||
return endpoint, fmt.Errorf("endpoint parameters are not valid, %w", err)
|
||||
}
|
||||
_UseDualStack := *params.UseDualStack
|
||||
_UseFIPS := *params.UseFIPS
|
||||
|
||||
if exprVal := params.Endpoint; exprVal != nil {
|
||||
_Endpoint := *exprVal
|
||||
_ = _Endpoint
|
||||
if _UseFIPS == true {
|
||||
return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: FIPS and custom endpoint are not supported")
|
||||
}
|
||||
if _UseDualStack == true {
|
||||
return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Dualstack and custom endpoint are not supported")
|
||||
}
|
||||
uriString := _Endpoint
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
if exprVal := params.Region; exprVal != nil {
|
||||
_Region := *exprVal
|
||||
_ = _Region
|
||||
if exprVal := awsrulesfn.GetPartition(_Region); exprVal != nil {
|
||||
_PartitionResult := *exprVal
|
||||
_ = _PartitionResult
|
||||
if _PartitionResult.Name == "aws" {
|
||||
if _UseFIPS == false {
|
||||
if _UseDualStack == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://efs.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
if _PartitionResult.Name == "aws" {
|
||||
if _UseFIPS == true {
|
||||
if _UseDualStack == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://efs-fips.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
if _PartitionResult.Name == "aws-cn" {
|
||||
if _UseFIPS == false {
|
||||
if _UseDualStack == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://efs.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
if _PartitionResult.Name == "aws-cn" {
|
||||
if _UseFIPS == true {
|
||||
if _UseDualStack == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://efs-fips.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
if _PartitionResult.Name == "aws-us-gov" {
|
||||
if _UseFIPS == false {
|
||||
if _UseDualStack == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://efs.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
if _PartitionResult.Name == "aws-us-gov" {
|
||||
if _UseFIPS == true {
|
||||
if _UseDualStack == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://efs-fips.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
}
|
||||
if _UseFIPS == true {
|
||||
if _UseDualStack == true {
|
||||
if true == _PartitionResult.SupportsFIPS {
|
||||
if true == _PartitionResult.SupportsDualStack {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://elasticfilesystem-fips.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
}
|
||||
return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS and DualStack are enabled, but this partition does not support one or both")
|
||||
}
|
||||
}
|
||||
if _UseFIPS == true {
|
||||
if _UseDualStack == false {
|
||||
if _PartitionResult.SupportsFIPS == true {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://elasticfilesystem-fips.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
return endpoint, fmt.Errorf("endpoint rule error, %s", "FIPS is enabled but this partition does not support FIPS")
|
||||
}
|
||||
}
|
||||
if _UseFIPS == false {
|
||||
if _UseDualStack == true {
|
||||
if true == _PartitionResult.SupportsDualStack {
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://elasticfilesystem.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DualStackDnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
return endpoint, fmt.Errorf("endpoint rule error, %s", "DualStack is enabled but this partition does not support DualStack")
|
||||
}
|
||||
}
|
||||
uriString := func() string {
|
||||
var out strings.Builder
|
||||
out.WriteString("https://elasticfilesystem.")
|
||||
out.WriteString(_Region)
|
||||
out.WriteString(".")
|
||||
out.WriteString(_PartitionResult.DnsSuffix)
|
||||
return out.String()
|
||||
}()
|
||||
|
||||
uri, err := url.Parse(uriString)
|
||||
if err != nil {
|
||||
return endpoint, fmt.Errorf("Failed to parse uri: %s", uriString)
|
||||
}
|
||||
|
||||
return smithyendpoints.Endpoint{
|
||||
URI: *uri,
|
||||
Headers: http.Header{},
|
||||
}, nil
|
||||
}
|
||||
return endpoint, fmt.Errorf("Endpoint resolution failed. Invalid operation or environment input.")
|
||||
}
|
||||
return endpoint, fmt.Errorf("endpoint rule error, %s", "Invalid Configuration: Missing Region")
|
||||
}
|
||||
|
||||
type endpointParamsBinder interface {
|
||||
bindEndpointParams(*EndpointParameters)
|
||||
}
|
||||
|
||||
func bindEndpointParams(ctx context.Context, input interface{}, options Options) *EndpointParameters {
|
||||
params := &EndpointParameters{}
|
||||
|
||||
params.UseDualStack = aws.Bool(options.EndpointOptions.UseDualStackEndpoint == aws.DualStackEndpointStateEnabled)
|
||||
params.UseFIPS = aws.Bool(options.EndpointOptions.UseFIPSEndpoint == aws.FIPSEndpointStateEnabled)
|
||||
params.Endpoint = options.BaseEndpoint
|
||||
params.Region = bindRegion(options.Region)
|
||||
|
||||
if b, ok := input.(endpointParamsBinder); ok {
|
||||
b.bindEndpointParams(params)
|
||||
}
|
||||
|
||||
return params
|
||||
}
|
||||
|
||||
type resolveEndpointV2Middleware struct {
|
||||
options Options
|
||||
}
|
||||
|
||||
func (*resolveEndpointV2Middleware) ID() string {
|
||||
return "ResolveEndpointV2"
|
||||
}
|
||||
|
||||
func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
_, span := tracing.StartSpan(ctx, "ResolveEndpoint")
|
||||
defer span.End()
|
||||
|
||||
if awsmiddleware.GetRequiresLegacyEndpoints(ctx) {
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
req, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
|
||||
}
|
||||
|
||||
if m.options.EndpointResolverV2 == nil {
|
||||
return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
|
||||
}
|
||||
|
||||
params := bindEndpointParams(ctx, getOperationInput(ctx), m.options)
|
||||
endpt, err := timeOperationMetric(ctx, "client.call.resolve_endpoint_duration",
|
||||
func() (smithyendpoints.Endpoint, error) {
|
||||
return m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params)
|
||||
})
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
|
||||
}
|
||||
|
||||
span.SetProperty("client.call.resolved_endpoint", endpt.URI.String())
|
||||
|
||||
if endpt.URI.RawPath == "" && req.URL.RawPath != "" {
|
||||
endpt.URI.RawPath = endpt.URI.Path
|
||||
}
|
||||
req.URL.Scheme = endpt.URI.Scheme
|
||||
req.URL.Host = endpt.URI.Host
|
||||
req.URL.Path = smithyhttp.JoinPath(endpt.URI.Path, req.URL.Path)
|
||||
req.URL.RawPath = smithyhttp.JoinPath(endpt.URI.RawPath, req.URL.RawPath)
|
||||
for k := range endpt.Headers {
|
||||
req.Header.Set(k, endpt.Headers.Get(k))
|
||||
}
|
||||
|
||||
rscheme := getResolvedAuthScheme(ctx)
|
||||
if rscheme == nil {
|
||||
return out, metadata, fmt.Errorf("no resolved auth scheme")
|
||||
}
|
||||
|
||||
opts, _ := smithyauth.GetAuthOptions(&endpt.Properties)
|
||||
for _, o := range opts {
|
||||
rscheme.SignerProperties.SetAll(&o.SignerProperties)
|
||||
}
|
||||
|
||||
span.End()
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
64
vendor/github.com/aws/aws-sdk-go-v2/service/efs/generated.json
generated
vendored
Normal file
64
vendor/github.com/aws/aws-sdk-go-v2/service/efs/generated.json
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"github.com/aws/aws-sdk-go-v2": "v1.4.0",
|
||||
"github.com/aws/aws-sdk-go-v2/internal/configsources": "v0.0.0-00010101000000-000000000000",
|
||||
"github.com/aws/aws-sdk-go-v2/internal/endpoints/v2": "v2.0.0-00010101000000-000000000000",
|
||||
"github.com/aws/smithy-go": "v1.4.0"
|
||||
},
|
||||
"files": [
|
||||
"api_client.go",
|
||||
"api_client_test.go",
|
||||
"api_op_CreateAccessPoint.go",
|
||||
"api_op_CreateFileSystem.go",
|
||||
"api_op_CreateMountTarget.go",
|
||||
"api_op_CreateReplicationConfiguration.go",
|
||||
"api_op_CreateTags.go",
|
||||
"api_op_DeleteAccessPoint.go",
|
||||
"api_op_DeleteFileSystem.go",
|
||||
"api_op_DeleteFileSystemPolicy.go",
|
||||
"api_op_DeleteMountTarget.go",
|
||||
"api_op_DeleteReplicationConfiguration.go",
|
||||
"api_op_DeleteTags.go",
|
||||
"api_op_DescribeAccessPoints.go",
|
||||
"api_op_DescribeAccountPreferences.go",
|
||||
"api_op_DescribeBackupPolicy.go",
|
||||
"api_op_DescribeFileSystemPolicy.go",
|
||||
"api_op_DescribeFileSystems.go",
|
||||
"api_op_DescribeLifecycleConfiguration.go",
|
||||
"api_op_DescribeMountTargetSecurityGroups.go",
|
||||
"api_op_DescribeMountTargets.go",
|
||||
"api_op_DescribeReplicationConfigurations.go",
|
||||
"api_op_DescribeTags.go",
|
||||
"api_op_ListTagsForResource.go",
|
||||
"api_op_ModifyMountTargetSecurityGroups.go",
|
||||
"api_op_PutAccountPreferences.go",
|
||||
"api_op_PutBackupPolicy.go",
|
||||
"api_op_PutFileSystemPolicy.go",
|
||||
"api_op_PutLifecycleConfiguration.go",
|
||||
"api_op_TagResource.go",
|
||||
"api_op_UntagResource.go",
|
||||
"api_op_UpdateFileSystem.go",
|
||||
"api_op_UpdateFileSystemProtection.go",
|
||||
"auth.go",
|
||||
"deserializers.go",
|
||||
"doc.go",
|
||||
"endpoints.go",
|
||||
"endpoints_config_test.go",
|
||||
"endpoints_test.go",
|
||||
"generated.json",
|
||||
"internal/endpoints/endpoints.go",
|
||||
"internal/endpoints/endpoints_test.go",
|
||||
"options.go",
|
||||
"protocol_test.go",
|
||||
"serializers.go",
|
||||
"snapshot_test.go",
|
||||
"sra_operation_order_test.go",
|
||||
"types/enums.go",
|
||||
"types/errors.go",
|
||||
"types/types.go",
|
||||
"validators.go"
|
||||
],
|
||||
"go": "1.22",
|
||||
"module": "github.com/aws/aws-sdk-go-v2/service/efs",
|
||||
"unstable": false
|
||||
}
|
||||
6
vendor/github.com/aws/aws-sdk-go-v2/service/efs/go_module_metadata.go
generated
vendored
Normal file
6
vendor/github.com/aws/aws-sdk-go-v2/service/efs/go_module_metadata.go
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.36.2"
|
||||
1092
vendor/github.com/aws/aws-sdk-go-v2/service/efs/internal/endpoints/endpoints.go
generated
vendored
Normal file
1092
vendor/github.com/aws/aws-sdk-go-v2/service/efs/internal/endpoints/endpoints.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
236
vendor/github.com/aws/aws-sdk-go-v2/service/efs/options.go
generated
vendored
Normal file
236
vendor/github.com/aws/aws-sdk-go-v2/service/efs/options.go
generated
vendored
Normal file
@@ -0,0 +1,236 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
internalauthsmithy "github.com/aws/aws-sdk-go-v2/internal/auth/smithy"
|
||||
smithyauth "github.com/aws/smithy-go/auth"
|
||||
"github.com/aws/smithy-go/logging"
|
||||
"github.com/aws/smithy-go/metrics"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
"github.com/aws/smithy-go/tracing"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type HTTPClient interface {
|
||||
Do(*http.Request) (*http.Response, error)
|
||||
}
|
||||
|
||||
type Options struct {
|
||||
// Set of options to modify how an operation is invoked. These apply to all
|
||||
// operations invoked for this client. Use functional options on operation call to
|
||||
// modify this list for per operation behavior.
|
||||
APIOptions []func(*middleware.Stack) error
|
||||
|
||||
// The optional application specific identifier appended to the User-Agent header.
|
||||
AppID string
|
||||
|
||||
// This endpoint will be given as input to an EndpointResolverV2. It is used for
|
||||
// providing a custom base endpoint that is subject to modifications by the
|
||||
// processing EndpointResolverV2.
|
||||
BaseEndpoint *string
|
||||
|
||||
// Configures the events that will be sent to the configured logger.
|
||||
ClientLogMode aws.ClientLogMode
|
||||
|
||||
// The credentials object to use when signing requests.
|
||||
Credentials aws.CredentialsProvider
|
||||
|
||||
// The configuration DefaultsMode that the SDK should use when constructing the
|
||||
// clients initial default settings.
|
||||
DefaultsMode aws.DefaultsMode
|
||||
|
||||
// The endpoint options to be used when attempting to resolve an endpoint.
|
||||
EndpointOptions EndpointResolverOptions
|
||||
|
||||
// The service endpoint resolver.
|
||||
//
|
||||
// Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a
|
||||
// value for this field will likely prevent you from using any endpoint-related
|
||||
// service features released after the introduction of EndpointResolverV2 and
|
||||
// BaseEndpoint.
|
||||
//
|
||||
// To migrate an EndpointResolver implementation that uses a custom endpoint, set
|
||||
// the client option BaseEndpoint instead.
|
||||
EndpointResolver EndpointResolver
|
||||
|
||||
// Resolves the endpoint used for a particular service operation. This should be
|
||||
// used over the deprecated EndpointResolver.
|
||||
EndpointResolverV2 EndpointResolverV2
|
||||
|
||||
// Signature Version 4 (SigV4) Signer
|
||||
HTTPSignerV4 HTTPSignerV4
|
||||
|
||||
// Provides idempotency tokens values that will be automatically populated into
|
||||
// idempotent API operations.
|
||||
IdempotencyTokenProvider IdempotencyTokenProvider
|
||||
|
||||
// The logger writer interface to write logging messages to.
|
||||
Logger logging.Logger
|
||||
|
||||
// The client meter provider.
|
||||
MeterProvider metrics.MeterProvider
|
||||
|
||||
// The region to send requests to. (Required)
|
||||
Region string
|
||||
|
||||
// RetryMaxAttempts specifies the maximum number attempts an API client will call
|
||||
// an operation that fails with a retryable error. A value of 0 is ignored, and
|
||||
// will not be used to configure the API client created default retryer, or modify
|
||||
// per operation call's retry max attempts.
|
||||
//
|
||||
// If specified in an operation call's functional options with a value that is
|
||||
// different than the constructed client's Options, the Client's Retryer will be
|
||||
// wrapped to use the operation's specific RetryMaxAttempts value.
|
||||
RetryMaxAttempts int
|
||||
|
||||
// RetryMode specifies the retry mode the API client will be created with, if
|
||||
// Retryer option is not also specified.
|
||||
//
|
||||
// When creating a new API Clients this member will only be used if the Retryer
|
||||
// Options member is nil. This value will be ignored if Retryer is not nil.
|
||||
//
|
||||
// Currently does not support per operation call overrides, may in the future.
|
||||
RetryMode aws.RetryMode
|
||||
|
||||
// Retryer guides how HTTP requests should be retried in case of recoverable
|
||||
// failures. When nil the API client will use a default retryer. The kind of
|
||||
// default retry created by the API client can be changed with the RetryMode
|
||||
// option.
|
||||
Retryer aws.Retryer
|
||||
|
||||
// The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
|
||||
// to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You
|
||||
// should not populate this structure programmatically, or rely on the values here
|
||||
// within your applications.
|
||||
RuntimeEnvironment aws.RuntimeEnvironment
|
||||
|
||||
// The client tracer provider.
|
||||
TracerProvider tracing.TracerProvider
|
||||
|
||||
// The initial DefaultsMode used when the client options were constructed. If the
|
||||
// DefaultsMode was set to aws.DefaultsModeAuto this will store what the resolved
|
||||
// value was at that point in time.
|
||||
//
|
||||
// Currently does not support per operation call overrides, may in the future.
|
||||
resolvedDefaultsMode aws.DefaultsMode
|
||||
|
||||
// The HTTP client to invoke API calls with. Defaults to client's default HTTP
|
||||
// implementation if nil.
|
||||
HTTPClient HTTPClient
|
||||
|
||||
// The auth scheme resolver which determines how to authenticate for each
|
||||
// operation.
|
||||
AuthSchemeResolver AuthSchemeResolver
|
||||
|
||||
// The list of auth schemes supported by the client.
|
||||
AuthSchemes []smithyhttp.AuthScheme
|
||||
}
|
||||
|
||||
// Copy creates a clone where the APIOptions list is deep copied.
|
||||
func (o Options) Copy() Options {
|
||||
to := o
|
||||
to.APIOptions = make([]func(*middleware.Stack) error, len(o.APIOptions))
|
||||
copy(to.APIOptions, o.APIOptions)
|
||||
|
||||
return to
|
||||
}
|
||||
|
||||
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver {
|
||||
if schemeID == "aws.auth#sigv4" {
|
||||
return getSigV4IdentityResolver(o)
|
||||
}
|
||||
if schemeID == "smithy.api#noAuth" {
|
||||
return &smithyauth.AnonymousIdentityResolver{}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// WithAPIOptions returns a functional option for setting the Client's APIOptions
|
||||
// option.
|
||||
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options) {
|
||||
return func(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, optFns...)
|
||||
}
|
||||
}
|
||||
|
||||
// Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for
|
||||
// this field will likely prevent you from using any endpoint-related service
|
||||
// features released after the introduction of EndpointResolverV2 and BaseEndpoint.
|
||||
//
|
||||
// To migrate an EndpointResolver implementation that uses a custom endpoint, set
|
||||
// the client option BaseEndpoint instead.
|
||||
func WithEndpointResolver(v EndpointResolver) func(*Options) {
|
||||
return func(o *Options) {
|
||||
o.EndpointResolver = v
|
||||
}
|
||||
}
|
||||
|
||||
// WithEndpointResolverV2 returns a functional option for setting the Client's
|
||||
// EndpointResolverV2 option.
|
||||
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options) {
|
||||
return func(o *Options) {
|
||||
o.EndpointResolverV2 = v
|
||||
}
|
||||
}
|
||||
|
||||
func getSigV4IdentityResolver(o Options) smithyauth.IdentityResolver {
|
||||
if o.Credentials != nil {
|
||||
return &internalauthsmithy.CredentialsProviderAdapter{Provider: o.Credentials}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// WithSigV4SigningName applies an override to the authentication workflow to
|
||||
// use the given signing name for SigV4-authenticated operations.
|
||||
//
|
||||
// This is an advanced setting. The value here is FINAL, taking precedence over
|
||||
// the resolved signing name from both auth scheme resolution and endpoint
|
||||
// resolution.
|
||||
func WithSigV4SigningName(name string) func(*Options) {
|
||||
fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
return next.HandleInitialize(awsmiddleware.SetSigningName(ctx, name), in)
|
||||
}
|
||||
return func(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error {
|
||||
return s.Initialize.Add(
|
||||
middleware.InitializeMiddlewareFunc("withSigV4SigningName", fn),
|
||||
middleware.Before,
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// WithSigV4SigningRegion applies an override to the authentication workflow to
|
||||
// use the given signing region for SigV4-authenticated operations.
|
||||
//
|
||||
// This is an advanced setting. The value here is FINAL, taking precedence over
|
||||
// the resolved signing region from both auth scheme resolution and endpoint
|
||||
// resolution.
|
||||
func WithSigV4SigningRegion(region string) func(*Options) {
|
||||
fn := func(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
return next.HandleInitialize(awsmiddleware.SetSigningRegion(ctx, region), in)
|
||||
}
|
||||
return func(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, func(s *middleware.Stack) error {
|
||||
return s.Initialize.Add(
|
||||
middleware.InitializeMiddlewareFunc("withSigV4SigningRegion", fn),
|
||||
middleware.Before,
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func ignoreAnonymousAuth(options *Options) {
|
||||
if aws.IsCredentialsProvider(options.Credentials, (*aws.AnonymousCredentials)(nil)) {
|
||||
options.Credentials = nil
|
||||
}
|
||||
}
|
||||
2922
vendor/github.com/aws/aws-sdk-go-v2/service/efs/serializers.go
generated
vendored
Normal file
2922
vendor/github.com/aws/aws-sdk-go-v2/service/efs/serializers.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
304
vendor/github.com/aws/aws-sdk-go-v2/service/efs/types/enums.go
generated
vendored
Normal file
304
vendor/github.com/aws/aws-sdk-go-v2/service/efs/types/enums.go
generated
vendored
Normal file
@@ -0,0 +1,304 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package types
|
||||
|
||||
type DeletionMode string
|
||||
|
||||
// Enum values for DeletionMode
|
||||
const (
|
||||
DeletionModeAllConfigurations DeletionMode = "ALL_CONFIGURATIONS"
|
||||
DeletionModeLocalConfigurationOnly DeletionMode = "LOCAL_CONFIGURATION_ONLY"
|
||||
)
|
||||
|
||||
// Values returns all known values for DeletionMode. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (DeletionMode) Values() []DeletionMode {
|
||||
return []DeletionMode{
|
||||
"ALL_CONFIGURATIONS",
|
||||
"LOCAL_CONFIGURATION_ONLY",
|
||||
}
|
||||
}
|
||||
|
||||
type IpAddressType string
|
||||
|
||||
// Enum values for IpAddressType
|
||||
const (
|
||||
IpAddressTypeIpv4Only IpAddressType = "IPV4_ONLY"
|
||||
IpAddressTypeIpv6Only IpAddressType = "IPV6_ONLY"
|
||||
IpAddressTypeDualStack IpAddressType = "DUAL_STACK"
|
||||
)
|
||||
|
||||
// Values returns all known values for IpAddressType. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (IpAddressType) Values() []IpAddressType {
|
||||
return []IpAddressType{
|
||||
"IPV4_ONLY",
|
||||
"IPV6_ONLY",
|
||||
"DUAL_STACK",
|
||||
}
|
||||
}
|
||||
|
||||
type LifeCycleState string
|
||||
|
||||
// Enum values for LifeCycleState
|
||||
const (
|
||||
LifeCycleStateCreating LifeCycleState = "creating"
|
||||
LifeCycleStateAvailable LifeCycleState = "available"
|
||||
LifeCycleStateUpdating LifeCycleState = "updating"
|
||||
LifeCycleStateDeleting LifeCycleState = "deleting"
|
||||
LifeCycleStateDeleted LifeCycleState = "deleted"
|
||||
LifeCycleStateError LifeCycleState = "error"
|
||||
)
|
||||
|
||||
// Values returns all known values for LifeCycleState. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (LifeCycleState) Values() []LifeCycleState {
|
||||
return []LifeCycleState{
|
||||
"creating",
|
||||
"available",
|
||||
"updating",
|
||||
"deleting",
|
||||
"deleted",
|
||||
"error",
|
||||
}
|
||||
}
|
||||
|
||||
type PerformanceMode string
|
||||
|
||||
// Enum values for PerformanceMode
|
||||
const (
|
||||
PerformanceModeGeneralPurpose PerformanceMode = "generalPurpose"
|
||||
PerformanceModeMaxIo PerformanceMode = "maxIO"
|
||||
)
|
||||
|
||||
// Values returns all known values for PerformanceMode. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (PerformanceMode) Values() []PerformanceMode {
|
||||
return []PerformanceMode{
|
||||
"generalPurpose",
|
||||
"maxIO",
|
||||
}
|
||||
}
|
||||
|
||||
type ReplicationOverwriteProtection string
|
||||
|
||||
// Enum values for ReplicationOverwriteProtection
|
||||
const (
|
||||
ReplicationOverwriteProtectionEnabled ReplicationOverwriteProtection = "ENABLED"
|
||||
ReplicationOverwriteProtectionDisabled ReplicationOverwriteProtection = "DISABLED"
|
||||
ReplicationOverwriteProtectionReplicating ReplicationOverwriteProtection = "REPLICATING"
|
||||
)
|
||||
|
||||
// Values returns all known values for ReplicationOverwriteProtection. Note that
|
||||
// this can be expanded in the future, and so it is only as up to date as the
|
||||
// client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (ReplicationOverwriteProtection) Values() []ReplicationOverwriteProtection {
|
||||
return []ReplicationOverwriteProtection{
|
||||
"ENABLED",
|
||||
"DISABLED",
|
||||
"REPLICATING",
|
||||
}
|
||||
}
|
||||
|
||||
type ReplicationStatus string
|
||||
|
||||
// Enum values for ReplicationStatus
|
||||
const (
|
||||
ReplicationStatusEnabled ReplicationStatus = "ENABLED"
|
||||
ReplicationStatusEnabling ReplicationStatus = "ENABLING"
|
||||
ReplicationStatusDeleting ReplicationStatus = "DELETING"
|
||||
ReplicationStatusError ReplicationStatus = "ERROR"
|
||||
ReplicationStatusPaused ReplicationStatus = "PAUSED"
|
||||
ReplicationStatusPausing ReplicationStatus = "PAUSING"
|
||||
)
|
||||
|
||||
// Values returns all known values for ReplicationStatus. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (ReplicationStatus) Values() []ReplicationStatus {
|
||||
return []ReplicationStatus{
|
||||
"ENABLED",
|
||||
"ENABLING",
|
||||
"DELETING",
|
||||
"ERROR",
|
||||
"PAUSED",
|
||||
"PAUSING",
|
||||
}
|
||||
}
|
||||
|
||||
type Resource string
|
||||
|
||||
// Enum values for Resource
|
||||
const (
|
||||
ResourceFileSystem Resource = "FILE_SYSTEM"
|
||||
ResourceMountTarget Resource = "MOUNT_TARGET"
|
||||
)
|
||||
|
||||
// Values returns all known values for Resource. Note that this can be expanded in
|
||||
// the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (Resource) Values() []Resource {
|
||||
return []Resource{
|
||||
"FILE_SYSTEM",
|
||||
"MOUNT_TARGET",
|
||||
}
|
||||
}
|
||||
|
||||
type ResourceIdType string
|
||||
|
||||
// Enum values for ResourceIdType
|
||||
const (
|
||||
ResourceIdTypeLongId ResourceIdType = "LONG_ID"
|
||||
ResourceIdTypeShortId ResourceIdType = "SHORT_ID"
|
||||
)
|
||||
|
||||
// Values returns all known values for ResourceIdType. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (ResourceIdType) Values() []ResourceIdType {
|
||||
return []ResourceIdType{
|
||||
"LONG_ID",
|
||||
"SHORT_ID",
|
||||
}
|
||||
}
|
||||
|
||||
type Status string
|
||||
|
||||
// Enum values for Status
|
||||
const (
|
||||
StatusEnabled Status = "ENABLED"
|
||||
StatusEnabling Status = "ENABLING"
|
||||
StatusDisabled Status = "DISABLED"
|
||||
StatusDisabling Status = "DISABLING"
|
||||
)
|
||||
|
||||
// Values returns all known values for Status. Note that this can be expanded in
|
||||
// the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (Status) Values() []Status {
|
||||
return []Status{
|
||||
"ENABLED",
|
||||
"ENABLING",
|
||||
"DISABLED",
|
||||
"DISABLING",
|
||||
}
|
||||
}
|
||||
|
||||
type ThroughputMode string
|
||||
|
||||
// Enum values for ThroughputMode
|
||||
const (
|
||||
ThroughputModeBursting ThroughputMode = "bursting"
|
||||
ThroughputModeProvisioned ThroughputMode = "provisioned"
|
||||
ThroughputModeElastic ThroughputMode = "elastic"
|
||||
)
|
||||
|
||||
// Values returns all known values for ThroughputMode. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (ThroughputMode) Values() []ThroughputMode {
|
||||
return []ThroughputMode{
|
||||
"bursting",
|
||||
"provisioned",
|
||||
"elastic",
|
||||
}
|
||||
}
|
||||
|
||||
type TransitionToArchiveRules string
|
||||
|
||||
// Enum values for TransitionToArchiveRules
|
||||
const (
|
||||
TransitionToArchiveRulesAfter1Day TransitionToArchiveRules = "AFTER_1_DAY"
|
||||
TransitionToArchiveRulesAfter7Days TransitionToArchiveRules = "AFTER_7_DAYS"
|
||||
TransitionToArchiveRulesAfter14Days TransitionToArchiveRules = "AFTER_14_DAYS"
|
||||
TransitionToArchiveRulesAfter30Days TransitionToArchiveRules = "AFTER_30_DAYS"
|
||||
TransitionToArchiveRulesAfter60Days TransitionToArchiveRules = "AFTER_60_DAYS"
|
||||
TransitionToArchiveRulesAfter90Days TransitionToArchiveRules = "AFTER_90_DAYS"
|
||||
TransitionToArchiveRulesAfter180Days TransitionToArchiveRules = "AFTER_180_DAYS"
|
||||
TransitionToArchiveRulesAfter270Days TransitionToArchiveRules = "AFTER_270_DAYS"
|
||||
TransitionToArchiveRulesAfter365Days TransitionToArchiveRules = "AFTER_365_DAYS"
|
||||
)
|
||||
|
||||
// Values returns all known values for TransitionToArchiveRules. Note that this
|
||||
// can be expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (TransitionToArchiveRules) Values() []TransitionToArchiveRules {
|
||||
return []TransitionToArchiveRules{
|
||||
"AFTER_1_DAY",
|
||||
"AFTER_7_DAYS",
|
||||
"AFTER_14_DAYS",
|
||||
"AFTER_30_DAYS",
|
||||
"AFTER_60_DAYS",
|
||||
"AFTER_90_DAYS",
|
||||
"AFTER_180_DAYS",
|
||||
"AFTER_270_DAYS",
|
||||
"AFTER_365_DAYS",
|
||||
}
|
||||
}
|
||||
|
||||
type TransitionToIARules string
|
||||
|
||||
// Enum values for TransitionToIARules
|
||||
const (
|
||||
TransitionToIARulesAfter7Days TransitionToIARules = "AFTER_7_DAYS"
|
||||
TransitionToIARulesAfter14Days TransitionToIARules = "AFTER_14_DAYS"
|
||||
TransitionToIARulesAfter30Days TransitionToIARules = "AFTER_30_DAYS"
|
||||
TransitionToIARulesAfter60Days TransitionToIARules = "AFTER_60_DAYS"
|
||||
TransitionToIARulesAfter90Days TransitionToIARules = "AFTER_90_DAYS"
|
||||
TransitionToIARulesAfter1Day TransitionToIARules = "AFTER_1_DAY"
|
||||
TransitionToIARulesAfter180Days TransitionToIARules = "AFTER_180_DAYS"
|
||||
TransitionToIARulesAfter270Days TransitionToIARules = "AFTER_270_DAYS"
|
||||
TransitionToIARulesAfter365Days TransitionToIARules = "AFTER_365_DAYS"
|
||||
)
|
||||
|
||||
// Values returns all known values for TransitionToIARules. Note that this can be
|
||||
// expanded in the future, and so it is only as up to date as the client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (TransitionToIARules) Values() []TransitionToIARules {
|
||||
return []TransitionToIARules{
|
||||
"AFTER_7_DAYS",
|
||||
"AFTER_14_DAYS",
|
||||
"AFTER_30_DAYS",
|
||||
"AFTER_60_DAYS",
|
||||
"AFTER_90_DAYS",
|
||||
"AFTER_1_DAY",
|
||||
"AFTER_180_DAYS",
|
||||
"AFTER_270_DAYS",
|
||||
"AFTER_365_DAYS",
|
||||
}
|
||||
}
|
||||
|
||||
type TransitionToPrimaryStorageClassRules string
|
||||
|
||||
// Enum values for TransitionToPrimaryStorageClassRules
|
||||
const (
|
||||
TransitionToPrimaryStorageClassRulesAfter1Access TransitionToPrimaryStorageClassRules = "AFTER_1_ACCESS"
|
||||
)
|
||||
|
||||
// Values returns all known values for TransitionToPrimaryStorageClassRules. Note
|
||||
// that this can be expanded in the future, and so it is only as up to date as the
|
||||
// client.
|
||||
//
|
||||
// The ordering of this slice is not guaranteed to be stable across updates.
|
||||
func (TransitionToPrimaryStorageClassRules) Values() []TransitionToPrimaryStorageClassRules {
|
||||
return []TransitionToPrimaryStorageClassRules{
|
||||
"AFTER_1_ACCESS",
|
||||
}
|
||||
}
|
||||
950
vendor/github.com/aws/aws-sdk-go-v2/service/efs/types/errors.go
generated
vendored
Normal file
950
vendor/github.com/aws/aws-sdk-go-v2/service/efs/types/errors.go
generated
vendored
Normal file
@@ -0,0 +1,950 @@
|
||||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package types
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
smithy "github.com/aws/smithy-go"
|
||||
)
|
||||
|
||||
// Returned if the access point that you are trying to create already exists, with
|
||||
// the creation token you provided in the request.
|
||||
type AccessPointAlreadyExists struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
AccessPointId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *AccessPointAlreadyExists) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *AccessPointAlreadyExists) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *AccessPointAlreadyExists) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "AccessPointAlreadyExists"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *AccessPointAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the Amazon Web Services account has already created the maximum
|
||||
// number of access points allowed per file system. For more informaton, see [https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region].
|
||||
//
|
||||
// [https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region]: https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region
|
||||
type AccessPointLimitExceeded struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *AccessPointLimitExceeded) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *AccessPointLimitExceeded) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *AccessPointLimitExceeded) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "AccessPointLimitExceeded"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *AccessPointLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the specified AccessPointId value doesn't exist in the requester's
|
||||
// Amazon Web Services account.
|
||||
type AccessPointNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *AccessPointNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *AccessPointNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *AccessPointNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "AccessPointNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *AccessPointNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the Availability Zone that was specified for a mount target is
|
||||
// different from the Availability Zone that was specified for One Zone storage.
|
||||
// For more information, see [Regional and One Zone storage redundancy].
|
||||
//
|
||||
// [Regional and One Zone storage redundancy]: https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html
|
||||
type AvailabilityZonesMismatch struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *AvailabilityZonesMismatch) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *AvailabilityZonesMismatch) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *AvailabilityZonesMismatch) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "AvailabilityZonesMismatch"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *AvailabilityZonesMismatch) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the request is malformed or contains an error such as an invalid
|
||||
// parameter value or a missing required parameter.
|
||||
type BadRequest struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *BadRequest) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *BadRequest) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *BadRequest) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "BadRequest"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *BadRequest) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the source file system in a replication is encrypted but the
|
||||
// destination file system is unencrypted.
|
||||
type ConflictException struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *ConflictException) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *ConflictException) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *ConflictException) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "ConflictException"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *ConflictException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// The service timed out trying to fulfill the request, and the client should try
|
||||
// the call again.
|
||||
type DependencyTimeout struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *DependencyTimeout) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *DependencyTimeout) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *DependencyTimeout) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "DependencyTimeout"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *DependencyTimeout) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
|
||||
|
||||
// Returned if the file system you are trying to create already exists, with the
|
||||
// creation token you provided.
|
||||
type FileSystemAlreadyExists struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
FileSystemId *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *FileSystemAlreadyExists) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *FileSystemAlreadyExists) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *FileSystemAlreadyExists) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "FileSystemAlreadyExists"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *FileSystemAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if a file system has mount targets.
|
||||
type FileSystemInUse struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *FileSystemInUse) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *FileSystemInUse) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *FileSystemInUse) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "FileSystemInUse"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *FileSystemInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the Amazon Web Services account has already created the maximum
|
||||
// number of file systems allowed per account.
|
||||
type FileSystemLimitExceeded struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *FileSystemLimitExceeded) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *FileSystemLimitExceeded) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *FileSystemLimitExceeded) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "FileSystemLimitExceeded"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *FileSystemLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the specified FileSystemId value doesn't exist in the requester's
|
||||
// Amazon Web Services account.
|
||||
type FileSystemNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *FileSystemNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *FileSystemNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *FileSystemNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "FileSystemNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *FileSystemNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the file system's lifecycle state is not "available".
|
||||
type IncorrectFileSystemLifeCycleState struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *IncorrectFileSystemLifeCycleState) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *IncorrectFileSystemLifeCycleState) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *IncorrectFileSystemLifeCycleState) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "IncorrectFileSystemLifeCycleState"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *IncorrectFileSystemLifeCycleState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the mount target is not in the correct state for the operation.
|
||||
type IncorrectMountTargetState struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *IncorrectMountTargetState) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *IncorrectMountTargetState) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *IncorrectMountTargetState) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "IncorrectMountTargetState"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *IncorrectMountTargetState) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if there's not enough capacity to provision additional throughput.
|
||||
// This value might be returned when you try to create a file system in provisioned
|
||||
// throughput mode, when you attempt to increase the provisioned throughput of an
|
||||
// existing file system, or when you attempt to change an existing file system from
|
||||
// Bursting Throughput to Provisioned Throughput mode. Try again later.
|
||||
type InsufficientThroughputCapacity struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *InsufficientThroughputCapacity) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *InsufficientThroughputCapacity) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *InsufficientThroughputCapacity) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "InsufficientThroughputCapacity"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *InsufficientThroughputCapacity) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
|
||||
|
||||
// Returned if an error occurred on the server side.
|
||||
type InternalServerError struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *InternalServerError) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *InternalServerError) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *InternalServerError) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "InternalServerError"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *InternalServerError) ErrorFault() smithy.ErrorFault { return smithy.FaultServer }
|
||||
|
||||
// Returned if the FileSystemPolicy is malformed or contains an error such as a
|
||||
// parameter value that is not valid or a missing required parameter. Returned in
|
||||
// the case of a policy lockout safety check error.
|
||||
type InvalidPolicyException struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *InvalidPolicyException) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *InvalidPolicyException) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *InvalidPolicyException) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "InvalidPolicyException"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *InvalidPolicyException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the request specified an IpAddress that is already in use in the
|
||||
// subnet.
|
||||
type IpAddressInUse struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *IpAddressInUse) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *IpAddressInUse) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *IpAddressInUse) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "IpAddressInUse"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *IpAddressInUse) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the mount target would violate one of the specified restrictions
|
||||
// based on the file system's existing mount targets.
|
||||
type MountTargetConflict struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *MountTargetConflict) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *MountTargetConflict) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *MountTargetConflict) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "MountTargetConflict"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *MountTargetConflict) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if there is no mount target with the specified ID found in the
|
||||
// caller's Amazon Web Services account.
|
||||
type MountTargetNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *MountTargetNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *MountTargetNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *MountTargetNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "MountTargetNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *MountTargetNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// The calling account has reached the limit for elastic network interfaces for
|
||||
// the specific Amazon Web Services Region. Either delete some network interfaces
|
||||
// or request that the account quota be raised. For more information, see [Amazon VPC Quotas]in the
|
||||
// Amazon VPC User Guide (see the Network interfaces per Region entry in the
|
||||
// Network interfaces table).
|
||||
//
|
||||
// [Amazon VPC Quotas]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
|
||||
type NetworkInterfaceLimitExceeded struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *NetworkInterfaceLimitExceeded) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *NetworkInterfaceLimitExceeded) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *NetworkInterfaceLimitExceeded) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "NetworkInterfaceLimitExceeded"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *NetworkInterfaceLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if IpAddress was not specified in the request and there are no free IP
|
||||
// addresses in the subnet.
|
||||
type NoFreeAddressesInSubnet struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *NoFreeAddressesInSubnet) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *NoFreeAddressesInSubnet) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *NoFreeAddressesInSubnet) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "NoFreeAddressesInSubnet"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *NoFreeAddressesInSubnet) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if no backup is specified for a One Zone EFS file system.
|
||||
type PolicyNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *PolicyNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *PolicyNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *PolicyNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "PolicyNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *PolicyNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the file system is already included in a replication configuration.>
|
||||
type ReplicationAlreadyExists struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *ReplicationAlreadyExists) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *ReplicationAlreadyExists) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *ReplicationAlreadyExists) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "ReplicationAlreadyExists"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *ReplicationAlreadyExists) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the specified file system does not have a replication configuration.
|
||||
type ReplicationNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *ReplicationNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *ReplicationNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *ReplicationNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "ReplicationNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *ReplicationNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the number of SecurityGroups specified in the request is greater
|
||||
// than the limit, which is based on account quota. Either delete some security
|
||||
// groups or request that the account quota be raised. For more information, see [Amazon VPC Quotas]
|
||||
// in the Amazon VPC User Guide (see the Security Groups table).
|
||||
//
|
||||
// [Amazon VPC Quotas]: https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html
|
||||
type SecurityGroupLimitExceeded struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *SecurityGroupLimitExceeded) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *SecurityGroupLimitExceeded) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *SecurityGroupLimitExceeded) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "SecurityGroupLimitExceeded"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *SecurityGroupLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if one of the specified security groups doesn't exist in the subnet's
|
||||
// virtual private cloud (VPC).
|
||||
type SecurityGroupNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *SecurityGroupNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *SecurityGroupNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *SecurityGroupNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "SecurityGroupNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *SecurityGroupNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if there is no subnet with ID SubnetId provided in the request.
|
||||
type SubnetNotFound struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *SubnetNotFound) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *SubnetNotFound) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *SubnetNotFound) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "SubnetNotFound"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *SubnetNotFound) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned when the CreateAccessPoint API action is called too quickly and the
|
||||
// number of Access Points on the file system is nearing the [limit of 120].
|
||||
//
|
||||
// [limit of 120]: https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region
|
||||
type ThrottlingException struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *ThrottlingException) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *ThrottlingException) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *ThrottlingException) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "ThrottlingException"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the throughput mode or amount of provisioned throughput can't be
|
||||
// changed because the throughput limit of 1024 MiB/s has been reached.
|
||||
type ThroughputLimitExceeded struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *ThroughputLimitExceeded) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *ThroughputLimitExceeded) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *ThroughputLimitExceeded) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "ThroughputLimitExceeded"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *ThroughputLimitExceeded) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if you don’t wait at least 24 hours before either changing the
|
||||
// throughput mode, or decreasing the Provisioned Throughput value.
|
||||
type TooManyRequests struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *TooManyRequests) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *TooManyRequests) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *TooManyRequests) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "TooManyRequests"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *TooManyRequests) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the requested Amazon EFS functionality is not available in the
|
||||
// specified Availability Zone.
|
||||
type UnsupportedAvailabilityZone struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *UnsupportedAvailabilityZone) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *UnsupportedAvailabilityZone) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *UnsupportedAvailabilityZone) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "UnsupportedAvailabilityZone"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *UnsupportedAvailabilityZone) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
|
||||
// Returned if the Backup service is not available in the Amazon Web Services
|
||||
// Region in which the request was made.
|
||||
type ValidationException struct {
|
||||
Message *string
|
||||
|
||||
ErrorCodeOverride *string
|
||||
|
||||
ErrorCode_ *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (e *ValidationException) Error() string {
|
||||
return fmt.Sprintf("%s: %s", e.ErrorCode(), e.ErrorMessage())
|
||||
}
|
||||
func (e *ValidationException) ErrorMessage() string {
|
||||
if e.Message == nil {
|
||||
return ""
|
||||
}
|
||||
return *e.Message
|
||||
}
|
||||
func (e *ValidationException) ErrorCode() string {
|
||||
if e == nil || e.ErrorCodeOverride == nil {
|
||||
return "ValidationException"
|
||||
}
|
||||
return *e.ErrorCodeOverride
|
||||
}
|
||||
func (e *ValidationException) ErrorFault() smithy.ErrorFault { return smithy.FaultClient }
|
||||
611
vendor/github.com/aws/aws-sdk-go-v2/service/efs/types/types.go
generated
vendored
Normal file
611
vendor/github.com/aws/aws-sdk-go-v2/service/efs/types/types.go
generated
vendored
Normal file
@@ -0,0 +1,611 @@
|
||||
// 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].
|
||||
//
|
||||
// [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 replication configuration. For more information
|
||||
// about replication status, see [Viewing replication details]in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Viewing replication details]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html
|
||||
//
|
||||
// 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
|
||||
|
||||
// ID of the Amazon Web Services account in which the destination file system
|
||||
// resides.
|
||||
OwnerId *string
|
||||
|
||||
// Amazon Resource Name (ARN) of the IAM role in the source account that allows
|
||||
// Amazon EFS to perform replication on its behalf. This is optional for
|
||||
// same-account replication and required for cross-account replication.
|
||||
RoleArn *string
|
||||
|
||||
// Message that provides details about the PAUSED or ERRROR state of the
|
||||
// replication destination configuration. For more information about replication
|
||||
// status messages, see [Viewing replication details]in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Viewing replication details]: https://docs.aws.amazon.com/efs/latest/ug/awsbackup.html#restoring-backup-efsmonitoring-replication-status.html
|
||||
StatusMessage *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Describes the new or existing destination file system for the replication
|
||||
// configuration.
|
||||
//
|
||||
// - If you want to replicate to a new file system, do not specify the File
|
||||
// System ID for the destination file system. Amazon EFS creates a new, empty file
|
||||
// system. For One Zone storage, specify the Availability Zone to create the file
|
||||
// system in. To use an Key Management Service key other than the default KMS key,
|
||||
// then specify it. For more information, see [Configuring replication to new Amazon EFS file system]in the Amazon EFS User Guide.
|
||||
//
|
||||
// After the file system is created, you cannot change the KMS key or the
|
||||
//
|
||||
// performance mode.
|
||||
//
|
||||
// - If you want to replicate to an existing file system that's in the same
|
||||
// account as the source file system, then you need to provide the ID or Amazon
|
||||
// Resource Name (ARN) of the file system to which to replicate. The file system's
|
||||
// replication overwrite protection must be disabled. For more information, see [Replicating to an existing file system]
|
||||
// in the Amazon EFS User Guide.
|
||||
//
|
||||
// - If you are replicating the file system to a file system that's in a
|
||||
// different account than the source file system (cross-account replication), you
|
||||
// need to provide the ARN for the file system and the IAM role that allows Amazon
|
||||
// EFS to perform replication on the destination account. The file system's
|
||||
// replication overwrite protection must be disabled. For more information, see [Replicating across Amazon Web Services accounts]
|
||||
// in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Configuring replication to new Amazon EFS file system]: https://docs.aws.amazon.com/efs/latest/ug/create-replication.html
|
||||
//
|
||||
// [Replicating across Amazon Web Services accounts]: https://docs.aws.amazon.com/efs/latest/ug/cross-account-replication.html
|
||||
// [Replicating to an existing file system]: https://docs.aws.amazon.com/efs/latest/ug/efs-replication#replicate-existing-destination
|
||||
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 or ARN of the file system to use for the destination. For cross-account
|
||||
// replication, this must be an ARN. The file system's replication overwrite
|
||||
// replication must be disabled. If no ID or ARN is specified, then a new file
|
||||
// system is created.
|
||||
//
|
||||
// When you initially configure replication to an existing file system, Amazon EFS
|
||||
// writes data to or removes existing data from the destination file system to
|
||||
// match data in the source file system. If you don't want to change data in the
|
||||
// destination file system, then you should replicate to a new file system instead.
|
||||
// For more information, see [https://docs.aws.amazon.com/efs/latest/ug/create-replication.html].
|
||||
//
|
||||
// [https://docs.aws.amazon.com/efs/latest/ug/create-replication.html]: https://docs.aws.amazon.com/efs/latest/ug/create-replication.html
|
||||
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 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. The Region must
|
||||
// be enabled for the Amazon Web Services account that owns the source file system.
|
||||
// For more information, see [Managing Amazon Web Services Regions]in the Amazon Web Services General Reference
|
||||
// Reference Guide.
|
||||
//
|
||||
// [Managing Amazon Web Services Regions]: https://docs.aws.amazon.com/general/latest/gr/rande-manage.html#rande-manage-enable
|
||||
Region *string
|
||||
|
||||
// Amazon Resource Name (ARN) of the IAM role in the source account that allows
|
||||
// Amazon EFS to perform replication on its behalf. This is optional for
|
||||
// same-account replication and required for cross-account replication.
|
||||
RoleArn *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]
|
||||
// in the Amazon EFS User Guide.
|
||||
//
|
||||
// [Using EFS storage classes]: https://docs.aws.amazon.com/efs/latest/ug/storage-classes.html
|
||||
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] in the
|
||||
// Amazon EFS User Guide.
|
||||
//
|
||||
// [Throughput modes]: https://docs.aws.amazon.com/efs/latest/ug/performance.html#throughput-modes
|
||||
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 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].
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// [Managing file system storage]: https://docs.aws.amazon.com/efs/latest/ug/lifecycle-management-efs.html
|
||||
type LifecyclePolicy struct {
|
||||
|
||||
// The number of days after files were last accessed in primary storage (the
|
||||
// Standard storage class) 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 IPv6 address for the mount target.
|
||||
Ipv6Address *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
|
||||
|
||||
// ID of the Amazon Web Services account in which the source file system resides.
|
||||
SourceFileSystemOwnerId *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 its 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
|
||||
1193
vendor/github.com/aws/aws-sdk-go-v2/service/efs/validators.go
generated
vendored
Normal file
1193
vendor/github.com/aws/aws-sdk-go-v2/service/efs/validators.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
11468
vendor/github.com/aws/aws-sdk-go/service/efs/api.go
generated
vendored
11468
vendor/github.com/aws/aws-sdk-go/service/efs/api.go
generated
vendored
File diff suppressed because it is too large
Load Diff
34
vendor/github.com/aws/aws-sdk-go/service/efs/doc.go
generated
vendored
34
vendor/github.com/aws/aws-sdk-go/service/efs/doc.go
generated
vendored
@@ -1,34 +0,0 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package efs provides the client and types for making API
|
||||
// requests to Amazon Elastic File System.
|
||||
//
|
||||
// Amazon Elastic File System (Amazon EFS) provides simple, scalable file storage
|
||||
// for use with Amazon EC2 Linux and Mac instances in the Amazon Web Services
|
||||
// Cloud. With Amazon EFS, storage capacity is elastic, growing and shrinking
|
||||
// automatically as you add and remove files, so that your applications have
|
||||
// the storage they need, when they need it. For more information, see the Amazon
|
||||
// Elastic File System API Reference (https://docs.aws.amazon.com/efs/latest/ug/api-reference.html)
|
||||
// and the Amazon Elastic File System User Guide (https://docs.aws.amazon.com/efs/latest/ug/whatisefs.html).
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01 for more information on this service.
|
||||
//
|
||||
// See efs package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/efs/
|
||||
//
|
||||
// # Using the Client
|
||||
//
|
||||
// To contact Amazon Elastic File System with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the Amazon Elastic File System client EFS for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/efs/#New
|
||||
package efs
|
||||
275
vendor/github.com/aws/aws-sdk-go/service/efs/errors.go
generated
vendored
275
vendor/github.com/aws/aws-sdk-go/service/efs/errors.go
generated
vendored
@@ -1,275 +0,0 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeAccessPointAlreadyExists for service response error code
|
||||
// "AccessPointAlreadyExists".
|
||||
//
|
||||
// Returned if the access point that you are trying to create already exists,
|
||||
// with the creation token you provided in the request.
|
||||
ErrCodeAccessPointAlreadyExists = "AccessPointAlreadyExists"
|
||||
|
||||
// ErrCodeAccessPointLimitExceeded for service response error code
|
||||
// "AccessPointLimitExceeded".
|
||||
//
|
||||
// Returned if the Amazon Web Services account has already created the maximum
|
||||
// number of access points allowed per file system. For more informaton, see
|
||||
// https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region
|
||||
// (https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region).
|
||||
ErrCodeAccessPointLimitExceeded = "AccessPointLimitExceeded"
|
||||
|
||||
// ErrCodeAccessPointNotFound for service response error code
|
||||
// "AccessPointNotFound".
|
||||
//
|
||||
// Returned if the specified AccessPointId value doesn't exist in the requester's
|
||||
// Amazon Web Services account.
|
||||
ErrCodeAccessPointNotFound = "AccessPointNotFound"
|
||||
|
||||
// ErrCodeAvailabilityZonesMismatch for service response error code
|
||||
// "AvailabilityZonesMismatch".
|
||||
//
|
||||
// Returned if the Availability Zone that was specified for a mount target is
|
||||
// different from the Availability Zone that was specified for One Zone storage.
|
||||
// For more information, see Regional and One Zone storage redundancy (https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html).
|
||||
ErrCodeAvailabilityZonesMismatch = "AvailabilityZonesMismatch"
|
||||
|
||||
// ErrCodeBadRequest for service response error code
|
||||
// "BadRequest".
|
||||
//
|
||||
// Returned if the request is malformed or contains an error such as an invalid
|
||||
// parameter value or a missing required parameter.
|
||||
ErrCodeBadRequest = "BadRequest"
|
||||
|
||||
// ErrCodeConflictException for service response error code
|
||||
// "ConflictException".
|
||||
//
|
||||
// Returned if the source file system in a replication is encrypted but the
|
||||
// destination file system is unencrypted.
|
||||
ErrCodeConflictException = "ConflictException"
|
||||
|
||||
// ErrCodeDependencyTimeout for service response error code
|
||||
// "DependencyTimeout".
|
||||
//
|
||||
// The service timed out trying to fulfill the request, and the client should
|
||||
// try the call again.
|
||||
ErrCodeDependencyTimeout = "DependencyTimeout"
|
||||
|
||||
// ErrCodeFileSystemAlreadyExists for service response error code
|
||||
// "FileSystemAlreadyExists".
|
||||
//
|
||||
// Returned if the file system you are trying to create already exists, with
|
||||
// the creation token you provided.
|
||||
ErrCodeFileSystemAlreadyExists = "FileSystemAlreadyExists"
|
||||
|
||||
// ErrCodeFileSystemInUse for service response error code
|
||||
// "FileSystemInUse".
|
||||
//
|
||||
// Returned if a file system has mount targets.
|
||||
ErrCodeFileSystemInUse = "FileSystemInUse"
|
||||
|
||||
// ErrCodeFileSystemLimitExceeded for service response error code
|
||||
// "FileSystemLimitExceeded".
|
||||
//
|
||||
// Returned if the Amazon Web Services account has already created the maximum
|
||||
// number of file systems allowed per account.
|
||||
ErrCodeFileSystemLimitExceeded = "FileSystemLimitExceeded"
|
||||
|
||||
// ErrCodeFileSystemNotFound for service response error code
|
||||
// "FileSystemNotFound".
|
||||
//
|
||||
// Returned if the specified FileSystemId value doesn't exist in the requester's
|
||||
// Amazon Web Services account.
|
||||
ErrCodeFileSystemNotFound = "FileSystemNotFound"
|
||||
|
||||
// ErrCodeIncorrectFileSystemLifeCycleState for service response error code
|
||||
// "IncorrectFileSystemLifeCycleState".
|
||||
//
|
||||
// Returned if the file system's lifecycle state is not "available".
|
||||
ErrCodeIncorrectFileSystemLifeCycleState = "IncorrectFileSystemLifeCycleState"
|
||||
|
||||
// ErrCodeIncorrectMountTargetState for service response error code
|
||||
// "IncorrectMountTargetState".
|
||||
//
|
||||
// Returned if the mount target is not in the correct state for the operation.
|
||||
ErrCodeIncorrectMountTargetState = "IncorrectMountTargetState"
|
||||
|
||||
// ErrCodeInsufficientThroughputCapacity for service response error code
|
||||
// "InsufficientThroughputCapacity".
|
||||
//
|
||||
// Returned if there's not enough capacity to provision additional throughput.
|
||||
// This value might be returned when you try to create a file system in provisioned
|
||||
// throughput mode, when you attempt to increase the provisioned throughput
|
||||
// of an existing file system, or when you attempt to change an existing file
|
||||
// system from Bursting Throughput to Provisioned Throughput mode. Try again
|
||||
// later.
|
||||
ErrCodeInsufficientThroughputCapacity = "InsufficientThroughputCapacity"
|
||||
|
||||
// ErrCodeInternalServerError for service response error code
|
||||
// "InternalServerError".
|
||||
//
|
||||
// Returned if an error occurred on the server side.
|
||||
ErrCodeInternalServerError = "InternalServerError"
|
||||
|
||||
// ErrCodeInvalidPolicyException for service response error code
|
||||
// "InvalidPolicyException".
|
||||
//
|
||||
// Returned if the FileSystemPolicy is malformed or contains an error such as
|
||||
// a parameter value that is not valid or a missing required parameter. Returned
|
||||
// in the case of a policy lockout safety check error.
|
||||
ErrCodeInvalidPolicyException = "InvalidPolicyException"
|
||||
|
||||
// ErrCodeIpAddressInUse for service response error code
|
||||
// "IpAddressInUse".
|
||||
//
|
||||
// Returned if the request specified an IpAddress that is already in use in
|
||||
// the subnet.
|
||||
ErrCodeIpAddressInUse = "IpAddressInUse"
|
||||
|
||||
// ErrCodeMountTargetConflict for service response error code
|
||||
// "MountTargetConflict".
|
||||
//
|
||||
// Returned if the mount target would violate one of the specified restrictions
|
||||
// based on the file system's existing mount targets.
|
||||
ErrCodeMountTargetConflict = "MountTargetConflict"
|
||||
|
||||
// ErrCodeMountTargetNotFound for service response error code
|
||||
// "MountTargetNotFound".
|
||||
//
|
||||
// Returned if there is no mount target with the specified ID found in the caller's
|
||||
// Amazon Web Services account.
|
||||
ErrCodeMountTargetNotFound = "MountTargetNotFound"
|
||||
|
||||
// ErrCodeNetworkInterfaceLimitExceeded for service response error code
|
||||
// "NetworkInterfaceLimitExceeded".
|
||||
//
|
||||
// The calling account has reached the limit for elastic network interfaces
|
||||
// for the specific Amazon Web Services Region. Either delete some network interfaces
|
||||
// or request that the account quota be raised. For more information, see Amazon
|
||||
// VPC Quotas (https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_Limits.html)
|
||||
// in the Amazon VPC User Guide (see the Network interfaces per Region entry
|
||||
// in the Network interfaces table).
|
||||
ErrCodeNetworkInterfaceLimitExceeded = "NetworkInterfaceLimitExceeded"
|
||||
|
||||
// ErrCodeNoFreeAddressesInSubnet for service response error code
|
||||
// "NoFreeAddressesInSubnet".
|
||||
//
|
||||
// Returned if IpAddress was not specified in the request and there are no free
|
||||
// IP addresses in the subnet.
|
||||
ErrCodeNoFreeAddressesInSubnet = "NoFreeAddressesInSubnet"
|
||||
|
||||
// ErrCodePolicyNotFound for service response error code
|
||||
// "PolicyNotFound".
|
||||
//
|
||||
// Returned if the default file system policy is in effect for the EFS file
|
||||
// system specified.
|
||||
ErrCodePolicyNotFound = "PolicyNotFound"
|
||||
|
||||
// ErrCodeReplicationAlreadyExists for service response error code
|
||||
// "ReplicationAlreadyExists".
|
||||
//
|
||||
// Returned if the file system is already included in a replication configuration.>
|
||||
ErrCodeReplicationAlreadyExists = "ReplicationAlreadyExists"
|
||||
|
||||
// ErrCodeReplicationNotFound for service response error code
|
||||
// "ReplicationNotFound".
|
||||
//
|
||||
// Returned if the specified file system does not have a replication configuration.
|
||||
ErrCodeReplicationNotFound = "ReplicationNotFound"
|
||||
|
||||
// ErrCodeSecurityGroupLimitExceeded for service response error code
|
||||
// "SecurityGroupLimitExceeded".
|
||||
//
|
||||
// Returned if the size of SecurityGroups specified in the request is greater
|
||||
// than five.
|
||||
ErrCodeSecurityGroupLimitExceeded = "SecurityGroupLimitExceeded"
|
||||
|
||||
// ErrCodeSecurityGroupNotFound for service response error code
|
||||
// "SecurityGroupNotFound".
|
||||
//
|
||||
// Returned if one of the specified security groups doesn't exist in the subnet's
|
||||
// virtual private cloud (VPC).
|
||||
ErrCodeSecurityGroupNotFound = "SecurityGroupNotFound"
|
||||
|
||||
// ErrCodeSubnetNotFound for service response error code
|
||||
// "SubnetNotFound".
|
||||
//
|
||||
// Returned if there is no subnet with ID SubnetId provided in the request.
|
||||
ErrCodeSubnetNotFound = "SubnetNotFound"
|
||||
|
||||
// ErrCodeThrottlingException for service response error code
|
||||
// "ThrottlingException".
|
||||
//
|
||||
// Returned when the CreateAccessPoint API action is called too quickly and
|
||||
// the number of Access Points on the file system is nearing the limit of 120
|
||||
// (https://docs.aws.amazon.com/efs/latest/ug/limits.html#limits-efs-resources-per-account-per-region).
|
||||
ErrCodeThrottlingException = "ThrottlingException"
|
||||
|
||||
// ErrCodeThroughputLimitExceeded for service response error code
|
||||
// "ThroughputLimitExceeded".
|
||||
//
|
||||
// Returned if the throughput mode or amount of provisioned throughput can't
|
||||
// be changed because the throughput limit of 1024 MiB/s has been reached.
|
||||
ErrCodeThroughputLimitExceeded = "ThroughputLimitExceeded"
|
||||
|
||||
// ErrCodeTooManyRequests for service response error code
|
||||
// "TooManyRequests".
|
||||
//
|
||||
// Returned if you don’t wait at least 24 hours before either changing the
|
||||
// throughput mode, or decreasing the Provisioned Throughput value.
|
||||
ErrCodeTooManyRequests = "TooManyRequests"
|
||||
|
||||
// ErrCodeUnsupportedAvailabilityZone for service response error code
|
||||
// "UnsupportedAvailabilityZone".
|
||||
//
|
||||
// Returned if the requested Amazon EFS functionality is not available in the
|
||||
// specified Availability Zone.
|
||||
ErrCodeUnsupportedAvailabilityZone = "UnsupportedAvailabilityZone"
|
||||
|
||||
// ErrCodeValidationException for service response error code
|
||||
// "ValidationException".
|
||||
//
|
||||
// Returned if the Backup service is not available in the Amazon Web Services
|
||||
// Region in which the request was made.
|
||||
ErrCodeValidationException = "ValidationException"
|
||||
)
|
||||
|
||||
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
|
||||
"AccessPointAlreadyExists": newErrorAccessPointAlreadyExists,
|
||||
"AccessPointLimitExceeded": newErrorAccessPointLimitExceeded,
|
||||
"AccessPointNotFound": newErrorAccessPointNotFound,
|
||||
"AvailabilityZonesMismatch": newErrorAvailabilityZonesMismatch,
|
||||
"BadRequest": newErrorBadRequest,
|
||||
"ConflictException": newErrorConflictException,
|
||||
"DependencyTimeout": newErrorDependencyTimeout,
|
||||
"FileSystemAlreadyExists": newErrorFileSystemAlreadyExists,
|
||||
"FileSystemInUse": newErrorFileSystemInUse,
|
||||
"FileSystemLimitExceeded": newErrorFileSystemLimitExceeded,
|
||||
"FileSystemNotFound": newErrorFileSystemNotFound,
|
||||
"IncorrectFileSystemLifeCycleState": newErrorIncorrectFileSystemLifeCycleState,
|
||||
"IncorrectMountTargetState": newErrorIncorrectMountTargetState,
|
||||
"InsufficientThroughputCapacity": newErrorInsufficientThroughputCapacity,
|
||||
"InternalServerError": newErrorInternalServerError,
|
||||
"InvalidPolicyException": newErrorInvalidPolicyException,
|
||||
"IpAddressInUse": newErrorIpAddressInUse,
|
||||
"MountTargetConflict": newErrorMountTargetConflict,
|
||||
"MountTargetNotFound": newErrorMountTargetNotFound,
|
||||
"NetworkInterfaceLimitExceeded": newErrorNetworkInterfaceLimitExceeded,
|
||||
"NoFreeAddressesInSubnet": newErrorNoFreeAddressesInSubnet,
|
||||
"PolicyNotFound": newErrorPolicyNotFound,
|
||||
"ReplicationAlreadyExists": newErrorReplicationAlreadyExists,
|
||||
"ReplicationNotFound": newErrorReplicationNotFound,
|
||||
"SecurityGroupLimitExceeded": newErrorSecurityGroupLimitExceeded,
|
||||
"SecurityGroupNotFound": newErrorSecurityGroupNotFound,
|
||||
"SubnetNotFound": newErrorSubnetNotFound,
|
||||
"ThrottlingException": newErrorThrottlingException,
|
||||
"ThroughputLimitExceeded": newErrorThroughputLimitExceeded,
|
||||
"TooManyRequests": newErrorTooManyRequests,
|
||||
"UnsupportedAvailabilityZone": newErrorUnsupportedAvailabilityZone,
|
||||
"ValidationException": newErrorValidationException,
|
||||
}
|
||||
107
vendor/github.com/aws/aws-sdk-go/service/efs/service.go
generated
vendored
107
vendor/github.com/aws/aws-sdk-go/service/efs/service.go
generated
vendored
@@ -1,107 +0,0 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package efs
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/restjson"
|
||||
)
|
||||
|
||||
// EFS provides the API operation methods for making requests to
|
||||
// Amazon Elastic File System. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// EFS methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type EFS struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "elasticfilesystem" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "EFS" // ServiceID is a unique identifier of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the EFS client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// mySession := session.Must(session.NewSession())
|
||||
//
|
||||
// // Create a EFS client from just a session.
|
||||
// svc := efs.New(mySession)
|
||||
//
|
||||
// // Create a EFS client with additional configuration
|
||||
// svc := efs.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *EFS {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = EndpointsID
|
||||
// No Fallback
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *EFS {
|
||||
svc := &EFS{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
PartitionID: partitionID,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2015-02-01",
|
||||
ResolvedRegion: resolvedRegion,
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(restjson.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(restjson.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(restjson.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(
|
||||
protocol.NewUnmarshalErrorHandler(restjson.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
|
||||
)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a EFS operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *EFS) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
3032
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go
generated
vendored
3032
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/api.go
generated
vendored
File diff suppressed because it is too large
Load Diff
28
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/doc.go
generated
vendored
28
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/doc.go
generated
vendored
@@ -1,28 +0,0 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
// Package resourcegroupstaggingapi provides the client and types for making API
|
||||
// requests to AWS Resource Groups Tagging API.
|
||||
//
|
||||
// # Resource Groups Tagging API
|
||||
//
|
||||
// See https://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26 for more information on this service.
|
||||
//
|
||||
// See resourcegroupstaggingapi package documentation for more information.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/resourcegroupstaggingapi/
|
||||
//
|
||||
// # Using the Client
|
||||
//
|
||||
// To contact AWS Resource Groups Tagging API with the SDK use the New function to create
|
||||
// a new service client. With that client you can make API requests to the service.
|
||||
// These clients are safe to use concurrently.
|
||||
//
|
||||
// See the SDK's documentation for more information on how to use the SDK.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/
|
||||
//
|
||||
// See aws.Config documentation for more information on configuring SDK clients.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
|
||||
//
|
||||
// See the AWS Resource Groups Tagging API client ResourceGroupsTaggingAPI for more
|
||||
// information on creating client for this service.
|
||||
// https://docs.aws.amazon.com/sdk-for-go/api/service/resourcegroupstaggingapi/#New
|
||||
package resourcegroupstaggingapi
|
||||
85
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/errors.go
generated
vendored
85
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/errors.go
generated
vendored
@@ -1,85 +0,0 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package resourcegroupstaggingapi
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
// ErrCodeConcurrentModificationException for service response error code
|
||||
// "ConcurrentModificationException".
|
||||
//
|
||||
// The target of the operation is currently being modified by a different request.
|
||||
// Try again later.
|
||||
ErrCodeConcurrentModificationException = "ConcurrentModificationException"
|
||||
|
||||
// ErrCodeConstraintViolationException for service response error code
|
||||
// "ConstraintViolationException".
|
||||
//
|
||||
// The request was denied because performing this operation violates a constraint.
|
||||
//
|
||||
// Some of the reasons in the following list might not apply to this specific
|
||||
// operation.
|
||||
//
|
||||
// * You must meet the prerequisites for using tag policies. For information,
|
||||
// see Prerequisites and Permissions for Using Tag Policies (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html)
|
||||
// in the Organizations User Guide.
|
||||
//
|
||||
// * You must enable the tag policies service principal (tagpolicies.tag.amazonaws.com)
|
||||
// to integrate with Organizations For information, see EnableAWSServiceAccess
|
||||
// (https://docs.aws.amazon.com/organizations/latest/APIReference/API_EnableAWSServiceAccess.html).
|
||||
//
|
||||
// * You must have a tag policy attached to the organization root, an OU,
|
||||
// or an account.
|
||||
ErrCodeConstraintViolationException = "ConstraintViolationException"
|
||||
|
||||
// ErrCodeInternalServiceException for service response error code
|
||||
// "InternalServiceException".
|
||||
//
|
||||
// The request processing failed because of an unknown error, exception, or
|
||||
// failure. You can retry the request.
|
||||
ErrCodeInternalServiceException = "InternalServiceException"
|
||||
|
||||
// ErrCodeInvalidParameterException for service response error code
|
||||
// "InvalidParameterException".
|
||||
//
|
||||
// This error indicates one of the following:
|
||||
//
|
||||
// * A parameter is missing.
|
||||
//
|
||||
// * A malformed string was supplied for the request parameter.
|
||||
//
|
||||
// * An out-of-range value was supplied for the request parameter.
|
||||
//
|
||||
// * The target ID is invalid, unsupported, or doesn't exist.
|
||||
//
|
||||
// * You can't access the Amazon S3 bucket for report storage. For more information,
|
||||
// see Additional Requirements for Organization-wide Tag Compliance Reports
|
||||
// (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies-prereqs.html#bucket-policies-org-report)
|
||||
// in the Organizations User Guide.
|
||||
ErrCodeInvalidParameterException = "InvalidParameterException"
|
||||
|
||||
// ErrCodePaginationTokenExpiredException for service response error code
|
||||
// "PaginationTokenExpiredException".
|
||||
//
|
||||
// A PaginationToken is valid for a maximum of 15 minutes. Your request was
|
||||
// denied because the specified PaginationToken has expired.
|
||||
ErrCodePaginationTokenExpiredException = "PaginationTokenExpiredException"
|
||||
|
||||
// ErrCodeThrottledException for service response error code
|
||||
// "ThrottledException".
|
||||
//
|
||||
// The request was denied to limit the frequency of submitted requests.
|
||||
ErrCodeThrottledException = "ThrottledException"
|
||||
)
|
||||
|
||||
var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
|
||||
"ConcurrentModificationException": newErrorConcurrentModificationException,
|
||||
"ConstraintViolationException": newErrorConstraintViolationException,
|
||||
"InternalServiceException": newErrorInternalServiceException,
|
||||
"InvalidParameterException": newErrorInvalidParameterException,
|
||||
"PaginationTokenExpiredException": newErrorPaginationTokenExpiredException,
|
||||
"ThrottledException": newErrorThrottledException,
|
||||
}
|
||||
109
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/service.go
generated
vendored
109
vendor/github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi/service.go
generated
vendored
@@ -1,109 +0,0 @@
|
||||
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
|
||||
|
||||
package resourcegroupstaggingapi
|
||||
|
||||
import (
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/client"
|
||||
"github.com/aws/aws-sdk-go/aws/client/metadata"
|
||||
"github.com/aws/aws-sdk-go/aws/request"
|
||||
"github.com/aws/aws-sdk-go/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
|
||||
)
|
||||
|
||||
// ResourceGroupsTaggingAPI provides the API operation methods for making requests to
|
||||
// AWS Resource Groups Tagging API. See this package's package overview docs
|
||||
// for details on the service.
|
||||
//
|
||||
// ResourceGroupsTaggingAPI methods are safe to use concurrently. It is not safe to
|
||||
// modify mutate any of the struct's properties though.
|
||||
type ResourceGroupsTaggingAPI struct {
|
||||
*client.Client
|
||||
}
|
||||
|
||||
// Used for custom client initialization logic
|
||||
var initClient func(*client.Client)
|
||||
|
||||
// Used for custom request initialization logic
|
||||
var initRequest func(*request.Request)
|
||||
|
||||
// Service information constants
|
||||
const (
|
||||
ServiceName = "tagging" // Name of service.
|
||||
EndpointsID = ServiceName // ID to lookup a service endpoint with.
|
||||
ServiceID = "Resource Groups Tagging API" // ServiceID is a unique identifier of a specific service.
|
||||
)
|
||||
|
||||
// New creates a new instance of the ResourceGroupsTaggingAPI client with a session.
|
||||
// If additional configuration is needed for the client instance use the optional
|
||||
// aws.Config parameter to add your extra config.
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// mySession := session.Must(session.NewSession())
|
||||
//
|
||||
// // Create a ResourceGroupsTaggingAPI client from just a session.
|
||||
// svc := resourcegroupstaggingapi.New(mySession)
|
||||
//
|
||||
// // Create a ResourceGroupsTaggingAPI client with additional configuration
|
||||
// svc := resourcegroupstaggingapi.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
|
||||
func New(p client.ConfigProvider, cfgs ...*aws.Config) *ResourceGroupsTaggingAPI {
|
||||
c := p.ClientConfig(EndpointsID, cfgs...)
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = EndpointsID
|
||||
// No Fallback
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.PartitionID, c.Endpoint, c.SigningRegion, c.SigningName, c.ResolvedRegion)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, partitionID, endpoint, signingRegion, signingName, resolvedRegion string) *ResourceGroupsTaggingAPI {
|
||||
svc := &ResourceGroupsTaggingAPI{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
metadata.ClientInfo{
|
||||
ServiceName: ServiceName,
|
||||
ServiceID: ServiceID,
|
||||
SigningName: signingName,
|
||||
SigningRegion: signingRegion,
|
||||
PartitionID: partitionID,
|
||||
Endpoint: endpoint,
|
||||
APIVersion: "2017-01-26",
|
||||
ResolvedRegion: resolvedRegion,
|
||||
JSONVersion: "1.1",
|
||||
TargetPrefix: "ResourceGroupsTaggingAPI_20170126",
|
||||
},
|
||||
handlers,
|
||||
),
|
||||
}
|
||||
|
||||
// Handlers
|
||||
svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
|
||||
svc.Handlers.Build.PushBackNamed(jsonrpc.BuildHandler)
|
||||
svc.Handlers.Unmarshal.PushBackNamed(jsonrpc.UnmarshalHandler)
|
||||
svc.Handlers.UnmarshalMeta.PushBackNamed(jsonrpc.UnmarshalMetaHandler)
|
||||
svc.Handlers.UnmarshalError.PushBackNamed(
|
||||
protocol.NewUnmarshalErrorHandler(jsonrpc.NewUnmarshalTypedError(exceptionFromCode)).NamedHandler(),
|
||||
)
|
||||
|
||||
// Run custom client initialization if present
|
||||
if initClient != nil {
|
||||
initClient(svc.Client)
|
||||
}
|
||||
|
||||
return svc
|
||||
}
|
||||
|
||||
// newRequest creates a new request for a ResourceGroupsTaggingAPI operation and runs any
|
||||
// custom request initialization.
|
||||
func (c *ResourceGroupsTaggingAPI) newRequest(op *request.Operation, params, data interface{}) *request.Request {
|
||||
req := c.NewRequest(op, params, data)
|
||||
|
||||
// Run custom request initialization if present
|
||||
if initRequest != nil {
|
||||
initRequest(req)
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
7
vendor/modules.txt
vendored
7
vendor/modules.txt
vendored
@@ -440,10 +440,8 @@ github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil
|
||||
github.com/aws/aws-sdk-go/service/cloudfront
|
||||
github.com/aws/aws-sdk-go/service/cloudfront/cloudfrontiface
|
||||
github.com/aws/aws-sdk-go/service/ec2
|
||||
github.com/aws/aws-sdk-go/service/efs
|
||||
github.com/aws/aws-sdk-go/service/iam
|
||||
github.com/aws/aws-sdk-go/service/iam/iamiface
|
||||
github.com/aws/aws-sdk-go/service/resourcegroupstaggingapi
|
||||
github.com/aws/aws-sdk-go/service/route53
|
||||
github.com/aws/aws-sdk-go/service/s3
|
||||
github.com/aws/aws-sdk-go/service/s3/s3iface
|
||||
@@ -521,6 +519,11 @@ github.com/aws/aws-sdk-go-v2/internal/v4a/internal/v4
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/efs v1.36.2
|
||||
## explicit; go 1.22
|
||||
github.com/aws/aws-sdk-go-v2/service/efs
|
||||
github.com/aws/aws-sdk-go-v2/service/efs/internal/endpoints
|
||||
github.com/aws/aws-sdk-go-v2/service/efs/types
|
||||
# github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.29.6
|
||||
## explicit; go 1.22
|
||||
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing
|
||||
|
||||
Reference in New Issue
Block a user