build(deps): bump the go-deps group across 1 directory with 13 updates
Bumps the go-deps group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2) | `1.30.3` | `1.30.4` | | [github.com/aws/aws-sdk-go-v2/config](https://github.com/aws/aws-sdk-go-v2) | `1.27.9` | `1.27.31` | | [github.com/aws/aws-sdk-go-v2/feature/s3/manager](https://github.com/aws/aws-sdk-go-v2) | `1.16.9` | `1.17.16` | | [github.com/aws/aws-sdk-go-v2/service/autoscaling](https://github.com/aws/aws-sdk-go-v2) | `1.43.3` | `1.43.5` | | [github.com/aws/aws-sdk-go-v2/service/ec2](https://github.com/aws/aws-sdk-go-v2) | `1.173.0` | `1.177.0` | | [github.com/openshift-online/ocm-sdk-go](https://github.com/openshift-online/ocm-sdk-go) | `0.1.432` | `0.1.438` | | [github.com/osbuild/images](https://github.com/osbuild/images) | `0.79.0` | `0.80.0` | | [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) | `1.19.1` | `1.20.2` | Updates `github.com/aws/aws-sdk-go-v2` from 1.30.3 to 1.30.4 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.30.3...v1.30.4) Updates `github.com/aws/aws-sdk-go-v2/config` from 1.27.9 to 1.27.31 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.27.9...config/v1.27.31) Updates `github.com/aws/aws-sdk-go-v2/credentials` from 1.17.9 to 1.17.30 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/config/v1.17.9...credentials/v1.17.30) Updates `github.com/aws/aws-sdk-go-v2/feature/ec2/imds` from 1.16.0 to 1.16.12 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.0...v1.16.12) Updates `github.com/aws/aws-sdk-go-v2/feature/s3/manager` from 1.16.9 to 1.17.16 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/v1.16.9...credentials/v1.17.16) Updates `github.com/aws/aws-sdk-go-v2/service/autoscaling` from 1.43.3 to 1.43.5 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.43.3...service/fsx/v1.43.5) Updates `github.com/aws/aws-sdk-go-v2/service/ec2` from 1.173.0 to 1.177.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/ec2/v1.173.0...service/ec2/v1.177.0) Updates `github.com/aws/aws-sdk-go-v2/service/s3` from 1.51.4 to 1.61.0 - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/s3/v1.51.4...service/s3/v1.61.0) Updates `github.com/aws/smithy-go` from 1.20.3 to 1.20.4 - [Release notes](https://github.com/aws/smithy-go/releases) - [Changelog](https://github.com/aws/smithy-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws/smithy-go/compare/v1.20.3...v1.20.4) Updates `github.com/openshift-online/ocm-sdk-go` from 0.1.432 to 0.1.438 - [Release notes](https://github.com/openshift-online/ocm-sdk-go/releases) - [Changelog](https://github.com/openshift-online/ocm-sdk-go/blob/main/CHANGES.md) - [Commits](https://github.com/openshift-online/ocm-sdk-go/compare/v0.1.432...v0.1.438) Updates `github.com/osbuild/images` from 0.79.0 to 0.80.0 - [Release notes](https://github.com/osbuild/images/releases) - [Commits](https://github.com/osbuild/images/compare/v0.79.0...v0.80.0) Updates `github.com/prometheus/client_golang` from 1.19.1 to 1.20.2 - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.19.1...v1.20.2) Updates `google.golang.org/api` from 0.193.0 to 0.194.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.193.0...v0.194.0) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/config dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/credentials dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/feature/ec2/imds dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/feature/s3/manager dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/service/autoscaling dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/service/ec2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/aws/aws-sdk-go-v2/service/s3 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/aws/smithy-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/openshift-online/ocm-sdk-go dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-deps - dependency-name: github.com/osbuild/images dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps - dependency-name: google.golang.org/api dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-deps ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
30ea05dd43
commit
6bb45ef9d1
270 changed files with 16179 additions and 6002 deletions
57
go.mod
57
go.mod
|
|
@ -18,15 +18,15 @@ require (
|
|||
github.com/Azure/go-autorest/autorest v0.11.29
|
||||
github.com/Azure/go-autorest/autorest/azure/auth v0.5.13
|
||||
github.com/BurntSushi/toml v1.4.0
|
||||
github.com/aws/aws-sdk-go-v2 v1.30.3
|
||||
github.com/aws/aws-sdk-go-v2/config v1.27.9
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.9
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.0
|
||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.9
|
||||
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.3
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4
|
||||
github.com/aws/smithy-go v1.20.3
|
||||
github.com/aws/aws-sdk-go-v2 v1.30.4
|
||||
github.com/aws/aws-sdk-go-v2/config v1.27.31
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.30
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.12
|
||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.16
|
||||
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.5
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.177.0
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.61.0
|
||||
github.com/aws/smithy-go v1.20.4
|
||||
github.com/coreos/go-semver v0.3.1
|
||||
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
|
||||
github.com/deepmap/oapi-codegen v1.8.2
|
||||
|
|
@ -44,12 +44,12 @@ require (
|
|||
github.com/kolo/xmlrpc v0.0.0-20201022064351-38db28db192b
|
||||
github.com/labstack/echo/v4 v4.12.0
|
||||
github.com/labstack/gommon v0.4.2
|
||||
github.com/openshift-online/ocm-sdk-go v0.1.432
|
||||
github.com/openshift-online/ocm-sdk-go v0.1.438
|
||||
github.com/oracle/oci-go-sdk/v54 v54.0.0
|
||||
github.com/osbuild/images v0.79.0
|
||||
github.com/osbuild/images v0.80.0
|
||||
github.com/osbuild/osbuild-composer/pkg/splunk_logger v0.0.0-20240814102216-0239db53236d
|
||||
github.com/osbuild/pulp-client v0.1.0
|
||||
github.com/prometheus/client_golang v1.19.1
|
||||
github.com/prometheus/client_golang v1.20.2
|
||||
github.com/segmentio/ksuid v1.0.4
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
github.com/spf13/cobra v1.8.1
|
||||
|
|
@ -60,12 +60,12 @@ require (
|
|||
golang.org/x/oauth2 v0.22.0
|
||||
golang.org/x/sync v0.8.0
|
||||
golang.org/x/sys v0.24.0
|
||||
google.golang.org/api v0.193.0
|
||||
google.golang.org/api v0.194.0
|
||||
)
|
||||
|
||||
require (
|
||||
cloud.google.com/go v0.115.1 // indirect
|
||||
cloud.google.com/go/auth v0.9.0 // indirect
|
||||
cloud.google.com/go/auth v0.9.1 // indirect
|
||||
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
|
||||
cloud.google.com/go/compute/metadata v0.5.0 // indirect
|
||||
cloud.google.com/go/iam v1.1.12 // indirect
|
||||
|
|
@ -86,18 +86,18 @@ require (
|
|||
github.com/VividCortex/ewma v1.2.0 // indirect
|
||||
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d // indirect
|
||||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.20.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.28.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.16 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.18 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.18 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.16 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.22.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.5 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.30.5 // indirect
|
||||
github.com/aymerick/douceur v0.2.0 // indirect
|
||||
github.com/beorn7/perks v1.0.1 // indirect
|
||||
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
|
||||
|
|
@ -184,6 +184,7 @@ require (
|
|||
github.com/moby/sys/user v0.2.0 // indirect
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
|
||||
github.com/oklog/ulid v1.3.1 // indirect
|
||||
github.com/opencontainers/go-digest v1.0.0 // indirect
|
||||
github.com/opencontainers/image-spec v1.1.0 // indirect
|
||||
|
|
@ -194,8 +195,8 @@ require (
|
|||
github.com/pkg/errors v0.9.1 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
||||
github.com/proglottis/gpgme v0.1.3 // indirect
|
||||
github.com/prometheus/client_model v0.6.0 // indirect
|
||||
github.com/prometheus/common v0.51.1 // indirect
|
||||
github.com/prometheus/client_model v0.6.1 // indirect
|
||||
github.com/prometheus/common v0.55.0 // indirect
|
||||
github.com/prometheus/procfs v0.15.1 // indirect
|
||||
github.com/rivo/uniseg v0.4.7 // indirect
|
||||
github.com/secure-systems-lab/go-securesystemslib v0.8.0 // indirect
|
||||
|
|
|
|||
114
go.sum
114
go.sum
|
|
@ -1,8 +1,8 @@
|
|||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
cloud.google.com/go v0.115.1 h1:Jo0SM9cQnSkYfp44+v+NQXHpcHqlnRJk2qxh6yvxxxQ=
|
||||
cloud.google.com/go v0.115.1/go.mod h1:DuujITeaufu3gL68/lOFIirVNJwQeyf5UXyi+Wbgknc=
|
||||
cloud.google.com/go/auth v0.9.0 h1:cYhKl1JUhynmxjXfrk4qdPc6Amw7i+GC9VLflgT0p5M=
|
||||
cloud.google.com/go/auth v0.9.0/go.mod h1:2HsApZBr9zGZhC9QAXsYVYaWk8kNUt37uny+XVKi7wM=
|
||||
cloud.google.com/go/auth v0.9.1 h1:+pMtLEV2k0AXKvs/tGZojuj6QaioxfUjOpMsG5Gtx+w=
|
||||
cloud.google.com/go/auth v0.9.1/go.mod h1:Sw8ocT5mhhXxFklyhT12Eiy0ed6tTrPMCJjSI8KhYLk=
|
||||
cloud.google.com/go/auth/oauth2adapt v0.2.4 h1:0GWE/FUsXhf6C+jAkWgYm7X9tK8cuEIfy19DBn6B6bY=
|
||||
cloud.google.com/go/auth/oauth2adapt v0.2.4/go.mod h1:jC/jOpwFP6JBxhB3P5Rr0a9HLMC/Pe3eaL4NmdvqPtc=
|
||||
cloud.google.com/go/compute v1.28.0 h1:OPtBxMcheSS+DWfci803qvPly3d4w7Eu5ztKBcFfzwk=
|
||||
|
|
@ -84,48 +84,48 @@ github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpH
|
|||
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
|
||||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
|
||||
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
|
||||
github.com/aws/aws-sdk-go-v2 v1.30.3 h1:jUeBtG0Ih+ZIFH0F4UkmL9w3cSpaMv9tYYDbzILP8dY=
|
||||
github.com/aws/aws-sdk-go-v2 v1.30.3/go.mod h1:nIQjQVp5sfpQcTc9mPSr1B0PaWK5ByX9MOoDadSN4lc=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1 h1:gTK2uhtAPtFcdRRJilZPx8uJLL2J85xK11nKtWL0wfU=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.1/go.mod h1:sxpLb+nZk7tIfCWChfd+h4QwHNUR57d8hA1cleTkjJo=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.27.9 h1:gRx/NwpNEFSk+yQlgmk1bmxxvQ5TyJ76CWXs9XScTqg=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.27.9/go.mod h1:dK1FQfpwpql83kbD873E9vz4FyAxuJtR22wzoXn3qq0=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.9 h1:N8s0/7yW+h8qR8WaRlPQeJ6czVMNQVNtNdUqf6cItao=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.9/go.mod h1:446YhIdmSV0Jf/SLafGZalQo+xr2iw7/fzXGDPTU1yQ=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.0 h1:af5YzcLf80tv4Em4jWVD75lpnOHSBkPUZxZfGkrI3HI=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.0/go.mod h1:nQ3how7DMnFMWiU1SpECohgC82fpn4cKZ875NDMmwtA=
|
||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.9 h1:vXY/Hq1XdxHBIYgBUmug/AbMyIe1AKulPYS2/VE1X70=
|
||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.9/go.mod h1:GyJJTZoHVuENM4TeJEl5Ffs4W9m19u+4wKJcDi/GZ4A=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 h1:SoNJ4RlFEQEbtDcCEt+QG56MY4fm4W8rYirAmq+/DdU=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15/go.mod h1:U9ke74k1n2bf+RIgoX1SXFed1HLs51OgUSs+Ph0KJP8=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 h1:C6WHdGnTDIYETAm5iErQUiVNsclNx9qbJVPIt03B6bI=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15/go.mod h1:ZQLZqhcu+JhSrA9/NXRm8SkDvsycE+JkV3WGY41e+IM=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3 h1:mDnFOE2sVkyphMWtTH+stv0eW3k0OTx94K63xpxHty4=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.3/go.mod h1:V8MuRVcCRt5h1S+Fwu8KbC7l/gBGo3yBAyUbJM2IJOk=
|
||||
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.3 h1:y4kBd6IXizNoJ1QnVa1kFFmonxnv6mm6z+q7z0Jkdhg=
|
||||
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.3/go.mod h1:j2WsKJ/NQS+y8JUgpv+BBzyzddNZP2SG60fB5aQBZaA=
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0 h1:ta62lid9JkIpKZtZZXSj6rP2AqY5x1qYGq53ffxqD9Q=
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.173.0/go.mod h1:o6QDjdVKpP5EF0dp/VlvqckzuSDATr1rLdHt3A5m0YY=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 h1:dT3MqvGhSoaIhRseqw2I0yH81l7wiR2vjs57O51EAm8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3/go.mod h1:GlAeCkHwugxdHaueRr4nhPuY+WW+gR8UjlcqzPr1SPI=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5 h1:mbWNpfRUTT6bnacmvOTKXZjR/HycibdWzNpfbrbLDIs=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.5/go.mod h1:FCOPWGjsshkkICJIn9hq9xr6dLKtyaWpuUojiN3W1/8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 h1:HGErhhrxZlQ044RiM+WdoZxp0p+EGM62y3L6pwA4olE=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17/go.mod h1:RkZEx4l0EHYDJpWppMJ3nD9wZJAa8/0lq9aVC+r2UII=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3 h1:4t+QEX7BsXz98W8W1lNvMAG+NX8qHz2CjLBxQKku40g=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.3/go.mod h1:oFcjjUq5Hm09N9rpxTdeMeLeQcxS7mIkBkL8qUKng+A=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4 h1:lW5xUzOPGAMY7HPuNF4FdyBwRc3UJ/e8KsapbesVeNU=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.51.4/go.mod h1:MGTaf3x/+z7ZGugCGvepnx2DS6+caCYYqKhzVoLNYPk=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.20.3 h1:mnbuWHOcM70/OFUlZZ5rcdfA8PflGXXiefU/O+1S3+8=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.20.3/go.mod h1:5HFu51Elk+4oRBZVxmHrSds5jFXmFj8C3w7DVF2gnrs=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.3 h1:uLq0BKatTmDzWa/Nu4WO0M1AaQDaPpwTKAeByEc6WFM=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.3/go.mod h1:b+qdhjnxj8GSR6t5YfphOffeoQSQ1KmpoVVuBn+PWxs=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.28.5 h1:J/PpTf/hllOjx8Xu9DMflff3FajfLxqM5+tepvVXmxg=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.28.5/go.mod h1:0ih0Z83YDH/QeQ6Ori2yGE2XvWYv/Xm+cZc01LC6oK0=
|
||||
github.com/aws/smithy-go v1.20.3 h1:ryHwveWzPV5BIof6fyDvor6V3iUL7nTfiTKXHiW05nE=
|
||||
github.com/aws/smithy-go v1.20.3/go.mod h1:krry+ya/rV9RDcV/Q16kpu6ypI4K2czasz0NC3qS14E=
|
||||
github.com/aws/aws-sdk-go-v2 v1.30.4 h1:frhcagrVNrzmT95RJImMHgabt99vkXGslubDaDagTk8=
|
||||
github.com/aws/aws-sdk-go-v2 v1.30.4/go.mod h1:CT+ZPWXbYrci8chcARI3OmI/qgd+f6WtuLOoaIA8PR0=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.4 h1:70PVAiL15/aBMh5LThwgXdSQorVr91L127ttckI9QQU=
|
||||
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.4/go.mod h1:/MQxMqci8tlqDH+pjmoLu1i0tbWCUP1hhyMRuFxpQCw=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.27.31 h1:kxBoRsjhT3pq0cKthgj6RU6bXTm/2SgdoUMyrVw0rAI=
|
||||
github.com/aws/aws-sdk-go-v2/config v1.27.31/go.mod h1:z04nZdSWFPaDwK3DdJOG2r+scLQzMYuJeW0CujEm9FM=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.30 h1:aau/oYFtibVovr2rDt8FHlU17BTicFEMAi29V1U+L5Q=
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.30/go.mod h1:BPJ/yXV92ZVq6G8uYvbU0gSl8q94UB63nMT5ctNO38g=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.12 h1:yjwoSyDZF8Jth+mUk5lSPJCkMC0lMy6FaCD51jm6ayE=
|
||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.12/go.mod h1:fuR57fAgMk7ot3WcNQfb6rSEn+SUffl7ri+aa8uKysI=
|
||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.16 h1:1FWqcOnvnO0lRsv0kLACwwQquoZIoS5tD0MtfoNdnkk=
|
||||
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.16/go.mod h1:+E8OuB446P/5Swajo40TqenLMzm6aYDEEz6FZDn/u1E=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16 h1:TNyt/+X43KJ9IJJMjKfa3bNTiZbUP7DeCxfbTROESwY=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.16/go.mod h1:2DwJF39FlNAUiX5pAc0UNeiz16lK2t7IaFcm0LFHEgc=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16 h1:jYfy8UPmd+6kJW5YhY0L1/KftReOGxI/4NtVSTh9O/I=
|
||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.16/go.mod h1:7ZfEPZxkW42Afq4uQB8H2E2e6ebh6mXTueEpYzjCzcs=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 h1:VaRN3TlFdd6KxX1x3ILT5ynH6HvKgqdiXoTxAF4HQcQ=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1/go.mod h1:FbtygfRFze9usAadmnGJNc8KsP346kEe+y2/oyhGAGc=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.16 h1:mimdLQkIX1zr8GIPY1ZtALdBQGxcASiBd2MOp8m/dMc=
|
||||
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.16/go.mod h1:YHk6owoSwrIsok+cAH9PENCOGoH5PU2EllX4vLtSrsY=
|
||||
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.5 h1:b9wq1tEV06De56Vzpif7MFtMmErKWh+WureDxMwItnE=
|
||||
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.43.5/go.mod h1:dDC/8RWLlLrUEoVJB04yka2iIWkFdtAAliefSH+FUlo=
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.177.0 h1:LAdDRIj5BEZM9fLDTUWUyPzWvv5A++nCEps/RGmZNOo=
|
||||
github.com/aws/aws-sdk-go-v2/service/ec2 v1.177.0/go.mod h1:ISODge3zgdwOEa4Ou6WM9PKbxJWJ15DYKnr2bfmCAIA=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4 h1:KypMCbLPPHEmf9DgMGw51jMj77VfGPAN2Kv4cfhlfgI=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.4/go.mod h1:Vz1JQXliGcQktFTN/LN6uGppAIRoLBR2bMvIMP0gOjc=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.18 h1:GckUnpm4EJOAio1c8o25a+b3lVfwVzC9gnSBqiiNmZM=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.18/go.mod h1:Br6+bxfG33Dk3ynmkhsW2Z/t9D4+lRqdLDNCKi85w0U=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.18 h1:tJ5RnkHCiSH0jyd6gROjlJtNwov0eGYNz8s8nFcR0jQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.18/go.mod h1:++NHzT+nAF7ZPrHPsA+ENvsXkOO8wEu+C6RXltAG4/c=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.16 h1:jg16PhLPUiHIj8zYIW6bqzeQSuHVEiWnGA0Brz5Xv2I=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.16/go.mod h1:Uyk1zE1VVdsHSU7096h/rwnXDzOzYQVl+FNPhPw7ShY=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.61.0 h1:Wb544Wh+xfSXqJ/j3R4aX9wrKUoZsJNmilBYZb3mKQ4=
|
||||
github.com/aws/aws-sdk-go-v2/service/s3 v1.61.0/go.mod h1:BSPI0EfnYUuNHPS0uqIo5VrRwzie+Fp+YhQOUs16sKI=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.22.5 h1:zCsFCKvbj25i7p1u94imVoO447I/sFv8qq+lGJhRN0c=
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.22.5/go.mod h1:ZeDX1SnKsVlejeuz41GiajjZpRSWR7/42q/EyA/QEiM=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.5 h1:SKvPgvdvmiTWoi0GAJ7AsJfOz3ngVkD/ERbs5pUnHNI=
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.5/go.mod h1:20sz31hv/WsPa3HhU3hfrIet2kxM4Pe0r20eBZ20Tac=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.30.5 h1:OMsEmCyz2i89XwRwPouAJvhj81wINh+4UK+k/0Yo/q8=
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.30.5/go.mod h1:vmSqFK+BVIwVpDAGZB3CoCXHzurt4qBE8lf+I/kRTh0=
|
||||
github.com/aws/smithy-go v1.20.4 h1:2HK1zBdPgRbjFOHlfeQZfpC4r72MOb9bZkiFwggKO+4=
|
||||
github.com/aws/smithy-go v1.20.4/go.mod h1:irrKGvNn1InZwb2d7fkIRNucdfwR8R+Ts3wxYa/cJHg=
|
||||
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
|
||||
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
|
||||
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||
|
|
@ -490,6 +490,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
|
|||
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||
github.com/morikuni/aec v1.0.0 h1:nP9CBfwrvYnBRgY6qfDQkygYDmYwOilePFkwzv4dU8A=
|
||||
github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
|
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
|
||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
||||
github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
|
||||
github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
|
||||
github.com/onsi/ginkgo/v2 v2.20.0 h1:PE84V2mHqoT1sglvHc8ZdQtPcwmvvt29WLEEO3xmdZw=
|
||||
|
|
@ -504,12 +506,12 @@ github.com/opencontainers/runtime-spec v1.2.0 h1:z97+pHb3uELt/yiAWD691HNHQIF07bE
|
|||
github.com/opencontainers/runtime-spec v1.2.0/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
|
||||
github.com/opencontainers/selinux v1.11.0 h1:+5Zbo97w3Lbmb3PeqQtpmTkMwsW5nRI3YaLpt7tQ7oU=
|
||||
github.com/opencontainers/selinux v1.11.0/go.mod h1:E5dMC3VPuVvVHDYmi78qvhJp8+M586T4DlDRYpFkyec=
|
||||
github.com/openshift-online/ocm-sdk-go v0.1.432 h1:XIlCJKxXXznMP5Usu9lVGZa+UTYVlZ/ZKwqTvtNKhw8=
|
||||
github.com/openshift-online/ocm-sdk-go v0.1.432/go.mod h1:CiAu2jwl3ITKOxkeV0Qnhzv4gs35AmpIzVABQLtcI2Y=
|
||||
github.com/openshift-online/ocm-sdk-go v0.1.438 h1:tsLCCUzbLCTL4RZG02y9RuopmGCXp2cjxqhdyCutdes=
|
||||
github.com/openshift-online/ocm-sdk-go v0.1.438/go.mod h1:CiAu2jwl3ITKOxkeV0Qnhzv4gs35AmpIzVABQLtcI2Y=
|
||||
github.com/oracle/oci-go-sdk/v54 v54.0.0 h1:CDLjeSejv2aDpElAJrhKpi6zvT/zhZCZuXchUUZ+LS4=
|
||||
github.com/oracle/oci-go-sdk/v54 v54.0.0/go.mod h1:+t+yvcFGVp+3ZnztnyxqXfQDsMlq8U25faBLa+mqCMc=
|
||||
github.com/osbuild/images v0.79.0 h1:6kBRo0WzmyQTZ4ojX1oU9nIxBazZOO4I3FLsZaz8268=
|
||||
github.com/osbuild/images v0.79.0/go.mod h1:Rzud9PFt0L9qFFlisL9I6OsZ2h0M6viMBdPhPtpwfwg=
|
||||
github.com/osbuild/images v0.80.0 h1:+Ra0qYrTj8v5eUfk1VG/NMHQiTfsNGrcTrj2aCawiSM=
|
||||
github.com/osbuild/images v0.80.0/go.mod h1:mcBIJoSTCuglH2+yaIp7VOos/N+9E2VrHlJvejd/4Vg=
|
||||
github.com/osbuild/osbuild-composer/pkg/splunk_logger v0.0.0-20240814102216-0239db53236d h1:r9BFPDv0uuA9k1947Jybcxs36c/pTywWS1gjeizvtcQ=
|
||||
github.com/osbuild/osbuild-composer/pkg/splunk_logger v0.0.0-20240814102216-0239db53236d/go.mod h1:zR1iu/hOuf+OQNJlk70tju9IqzzM4ycq0ectkFBm94U=
|
||||
github.com/osbuild/pulp-client v0.1.0 h1:L0C4ezBJGTamN3BKdv+rKLuq/WxXJbsFwz/Hj7aEmJ8=
|
||||
|
|
@ -528,13 +530,13 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI
|
|||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/proglottis/gpgme v0.1.3 h1:Crxx0oz4LKB3QXc5Ea0J19K/3ICfy3ftr5exgUK1AU0=
|
||||
github.com/proglottis/gpgme v0.1.3/go.mod h1:fPbW/EZ0LvwQtH8Hy7eixhp1eF3G39dtx7GUN+0Gmy0=
|
||||
github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE=
|
||||
github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho=
|
||||
github.com/prometheus/client_golang v1.20.2 h1:5ctymQzZlyOON1666svgwn3s6IKWgfbjsejTMiXIyjg=
|
||||
github.com/prometheus/client_golang v1.20.2/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
|
||||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||
github.com/prometheus/client_model v0.6.0 h1:k1v3CzpSRUTrKMppY35TLwPvxHqBu0bYgxZzqGIgaos=
|
||||
github.com/prometheus/client_model v0.6.0/go.mod h1:NTQHnmxFpouOD0DpvP4XujX3CdOAGQPoaGhyTchlyt8=
|
||||
github.com/prometheus/common v0.51.1 h1:eIjN50Bwglz6a/c3hAgSMcofL3nD+nFQkV6Dd4DsQCw=
|
||||
github.com/prometheus/common v0.51.1/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q=
|
||||
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
|
||||
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
|
||||
github.com/prometheus/common v0.55.0 h1:KEi6DK7lXW/m7Ig5i47x0vRzuBsHuvJdi5ee6Y3G1dc=
|
||||
github.com/prometheus/common v0.55.0/go.mod h1:2SECS4xJG1kd8XF9IcM1gMX6510RAEL65zxzNImwdc8=
|
||||
github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=
|
||||
github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
|
|
@ -813,8 +815,8 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T
|
|||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/api v0.193.0 h1:eOGDoJFsLU+HpCBaDJex2fWiYujAw9KbXgpOAMePoUs=
|
||||
google.golang.org/api v0.193.0/go.mod h1:Po3YMV1XZx+mTku3cfJrlIYR03wiGrCOsdpC67hjZvw=
|
||||
google.golang.org/api v0.194.0 h1:dztZKG9HgtIpbI35FhfuSNR/zmaMVdxNlntHj1sIS4s=
|
||||
google.golang.org/api v0.194.0/go.mod h1:AgvUFdojGANh3vI+P7EVnxj3AISHllxGCJSFmggmnd0=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||
|
|
|
|||
7
vendor/cloud.google.com/go/auth/CHANGES.md
generated
vendored
7
vendor/cloud.google.com/go/auth/CHANGES.md
generated
vendored
|
|
@ -1,5 +1,12 @@
|
|||
# Changelog
|
||||
|
||||
## [0.9.1](https://github.com/googleapis/google-cloud-go/compare/auth/v0.9.0...auth/v0.9.1) (2024-08-22)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **auth:** Setting expireEarly to default when the value is 0 ([#10732](https://github.com/googleapis/google-cloud-go/issues/10732)) ([5e67869](https://github.com/googleapis/google-cloud-go/commit/5e67869a31e9e8ecb4eeebd2cfa11a761c3b1948))
|
||||
|
||||
## [0.9.0](https://github.com/googleapis/google-cloud-go/compare/auth/v0.8.1...auth/v0.9.0) (2024-08-16)
|
||||
|
||||
|
||||
|
|
|
|||
2
vendor/cloud.google.com/go/auth/auth.go
generated
vendored
2
vendor/cloud.google.com/go/auth/auth.go
generated
vendored
|
|
@ -258,7 +258,7 @@ func (ctpo *CachedTokenProviderOptions) autoRefresh() bool {
|
|||
}
|
||||
|
||||
func (ctpo *CachedTokenProviderOptions) expireEarly() time.Duration {
|
||||
if ctpo == nil {
|
||||
if ctpo == nil || ctpo.ExpireEarly == 0 {
|
||||
return defaultExpiryDelta
|
||||
}
|
||||
return ctpo.ExpireEarly
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package aws
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.30.3"
|
||||
const goModuleVersion = "1.30.4"
|
||||
|
|
|
|||
12
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/CHANGELOG.md
generated
vendored
12
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,15 @@
|
|||
# v1.6.4 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
|
||||
# v1.6.3 (2024-06-28)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.6.2 (2024-03-29)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.6.1 (2024-02-21)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package eventstream
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.6.1"
|
||||
const goModuleVersion = "1.6.4"
|
||||
|
|
|
|||
90
vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md
generated
vendored
90
vendor/github.com/aws/aws-sdk-go-v2/config/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,93 @@
|
|||
# v1.27.31 (2024-08-26)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.30 (2024-08-23)
|
||||
|
||||
* **Bug Fix**: Don't fail credentials unit tests if credentials are found on a file
|
||||
|
||||
# v1.27.29 (2024-08-22)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.28 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.27 (2024-07-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.26 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.25 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.24 (2024-07-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.23 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.22 (2024-06-26)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.21 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.20 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.19 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.18 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.17 (2024-06-03)
|
||||
|
||||
* **Documentation**: Add deprecation docs to global endpoint resolution interfaces. These APIs were previously deprecated with the introduction of service-specific endpoint resolution (EndpointResolverV2 and BaseEndpoint on service client options).
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.16 (2024-05-23)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.15 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.14 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.13 (2024-05-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.12 (2024-05-08)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.11 (2024-04-05)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.10 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.27.9 (2024-03-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/config/config.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/config/config.go
generated
vendored
|
|
@ -80,6 +80,9 @@ var defaultAWSConfigResolvers = []awsConfigResolver{
|
|||
|
||||
// Sets the RequestMinCompressSizeBytes if present in env var or shared config profile
|
||||
resolveRequestMinCompressSizeBytes,
|
||||
|
||||
// Sets the AccountIDEndpointMode if present in env var or shared config profile
|
||||
resolveAccountIDEndpointMode,
|
||||
}
|
||||
|
||||
// A Config represents a generic configuration value or set of values. This type
|
||||
|
|
|
|||
37
vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go
generated
vendored
37
vendor/github.com/aws/aws-sdk-go-v2/config/env_config.go
generated
vendored
|
|
@ -80,6 +80,9 @@ const (
|
|||
awsRequestMinCompressionSizeBytes = "AWS_REQUEST_MIN_COMPRESSION_SIZE_BYTES"
|
||||
|
||||
awsS3DisableExpressSessionAuthEnv = "AWS_S3_DISABLE_EXPRESS_SESSION_AUTH"
|
||||
|
||||
awsAccountIDEnv = "AWS_ACCOUNT_ID"
|
||||
awsAccountIDEndpointModeEnv = "AWS_ACCOUNT_ID_ENDPOINT_MODE"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
@ -290,6 +293,9 @@ type EnvConfig struct {
|
|||
// will only bypass the modified endpoint routing and signing behaviors
|
||||
// associated with the feature.
|
||||
S3DisableExpressAuth *bool
|
||||
|
||||
// Indicates whether account ID will be required/ignored in endpoint2.0 routing
|
||||
AccountIDEndpointMode aws.AccountIDEndpointMode
|
||||
}
|
||||
|
||||
// loadEnvConfig reads configuration values from the OS's environment variables.
|
||||
|
|
@ -309,6 +315,7 @@ func NewEnvConfig() (EnvConfig, error) {
|
|||
setStringFromEnvVal(&creds.AccessKeyID, credAccessEnvKeys)
|
||||
setStringFromEnvVal(&creds.SecretAccessKey, credSecretEnvKeys)
|
||||
if creds.HasKeys() {
|
||||
creds.AccountID = os.Getenv(awsAccountIDEnv)
|
||||
creds.SessionToken = os.Getenv(awsSessionTokenEnvVar)
|
||||
cfg.Credentials = creds
|
||||
}
|
||||
|
|
@ -389,6 +396,10 @@ func NewEnvConfig() (EnvConfig, error) {
|
|||
return cfg, err
|
||||
}
|
||||
|
||||
if err := setAIDEndPointModeFromEnvVal(&cfg.AccountIDEndpointMode, []string{awsAccountIDEndpointModeEnv}); err != nil {
|
||||
return cfg, err
|
||||
}
|
||||
|
||||
return cfg, nil
|
||||
}
|
||||
|
||||
|
|
@ -417,6 +428,10 @@ func (c EnvConfig) getRequestMinCompressSizeBytes(context.Context) (int64, bool,
|
|||
return *c.RequestMinCompressSizeBytes, true, nil
|
||||
}
|
||||
|
||||
func (c EnvConfig) getAccountIDEndpointMode(context.Context) (aws.AccountIDEndpointMode, bool, error) {
|
||||
return c.AccountIDEndpointMode, len(c.AccountIDEndpointMode) > 0, nil
|
||||
}
|
||||
|
||||
// GetRetryMaxAttempts returns the value of AWS_MAX_ATTEMPTS if was specified,
|
||||
// and not 0.
|
||||
func (c EnvConfig) GetRetryMaxAttempts(ctx context.Context) (int, bool, error) {
|
||||
|
|
@ -491,6 +506,28 @@ func setEC2IMDSEndpointMode(mode *imds.EndpointModeState, keys []string) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func setAIDEndPointModeFromEnvVal(m *aws.AccountIDEndpointMode, keys []string) error {
|
||||
for _, k := range keys {
|
||||
value := os.Getenv(k)
|
||||
if len(value) == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
switch value {
|
||||
case "preferred":
|
||||
*m = aws.AccountIDEndpointModePreferred
|
||||
case "required":
|
||||
*m = aws.AccountIDEndpointModeRequired
|
||||
case "disabled":
|
||||
*m = aws.AccountIDEndpointModeDisabled
|
||||
default:
|
||||
return fmt.Errorf("invalid value for environment variable, %s=%s, must be preferred/required/disabled", k, value)
|
||||
}
|
||||
break
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetRegion returns the AWS Region if set in the environment. Returns an empty
|
||||
// string if not set.
|
||||
func (c EnvConfig) getRegion(ctx context.Context) (string, bool, error) {
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/config/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package config
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.27.9"
|
||||
const goModuleVersion = "1.27.31"
|
||||
|
|
|
|||
29
vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
generated
vendored
29
vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
generated
vendored
|
|
@ -215,6 +215,8 @@ type LoadOptions struct {
|
|||
|
||||
// Whether S3 Express auth is disabled.
|
||||
S3DisableExpressAuth *bool
|
||||
|
||||
AccountIDEndpointMode aws.AccountIDEndpointMode
|
||||
}
|
||||
|
||||
func (o LoadOptions) getDefaultsMode(ctx context.Context) (aws.DefaultsMode, bool, error) {
|
||||
|
|
@ -278,6 +280,10 @@ func (o LoadOptions) getRequestMinCompressSizeBytes(ctx context.Context) (int64,
|
|||
return *o.RequestMinCompressSizeBytes, true, nil
|
||||
}
|
||||
|
||||
func (o LoadOptions) getAccountIDEndpointMode(ctx context.Context) (aws.AccountIDEndpointMode, bool, error) {
|
||||
return o.AccountIDEndpointMode, len(o.AccountIDEndpointMode) > 0, nil
|
||||
}
|
||||
|
||||
// WithRegion is a helper function to construct functional options
|
||||
// that sets Region on config's LoadOptions. Setting the region to
|
||||
// an empty string, will result in the region value being ignored.
|
||||
|
|
@ -323,6 +329,17 @@ func WithRequestMinCompressSizeBytes(RequestMinCompressSizeBytes *int64) LoadOpt
|
|||
}
|
||||
}
|
||||
|
||||
// WithAccountIDEndpointMode is a helper function to construct functional options
|
||||
// that sets AccountIDEndpointMode on config's LoadOptions
|
||||
func WithAccountIDEndpointMode(m aws.AccountIDEndpointMode) LoadOptionsFunc {
|
||||
return func(o *LoadOptions) error {
|
||||
if m != "" {
|
||||
o.AccountIDEndpointMode = m
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// getDefaultRegion returns DefaultRegion from config's LoadOptions
|
||||
func (o LoadOptions) getDefaultRegion(ctx context.Context) (string, bool, error) {
|
||||
if len(o.DefaultRegion) == 0 {
|
||||
|
|
@ -824,7 +841,14 @@ func (o LoadOptions) getEndpointResolver(ctx context.Context) (aws.EndpointResol
|
|||
// the EndpointResolver value is ignored. If multiple WithEndpointResolver calls
|
||||
// are made, the last call overrides the previous call values.
|
||||
//
|
||||
// Deprecated: See WithEndpointResolverWithOptions
|
||||
// Deprecated: The global endpoint resolution interface is deprecated. The API
|
||||
// for endpoint resolution is now unique to each service and is set via the
|
||||
// EndpointResolverV2 field on service client options. Use of
|
||||
// WithEndpointResolver or WithEndpointResolverWithOptions will prevent you
|
||||
// from using any endpoint-related service features released after the
|
||||
// introduction of EndpointResolverV2. You may also encounter broken or
|
||||
// unexpected behavior when using the old global interface with services that
|
||||
// use many endpoint-related customizations such as S3.
|
||||
func WithEndpointResolver(v aws.EndpointResolver) LoadOptionsFunc {
|
||||
return func(o *LoadOptions) error {
|
||||
o.EndpointResolver = v
|
||||
|
|
@ -844,6 +868,9 @@ func (o LoadOptions) getEndpointResolverWithOptions(ctx context.Context) (aws.En
|
|||
// that sets the EndpointResolverWithOptions on LoadOptions. If the EndpointResolverWithOptions is set to nil,
|
||||
// the EndpointResolver value is ignored. If multiple WithEndpointResolver calls
|
||||
// are made, the last call overrides the previous call values.
|
||||
//
|
||||
// Deprecated: The global endpoint resolution interface is deprecated. See
|
||||
// deprecation docs on [WithEndpointResolver].
|
||||
func WithEndpointResolverWithOptions(v aws.EndpointResolverWithOptions) LoadOptionsFunc {
|
||||
return func(o *LoadOptions) error {
|
||||
o.EndpointResolverWithOptions = v
|
||||
|
|
|
|||
17
vendor/github.com/aws/aws-sdk-go-v2/config/provider.go
generated
vendored
17
vendor/github.com/aws/aws-sdk-go-v2/config/provider.go
generated
vendored
|
|
@ -225,6 +225,23 @@ func getRequestMinCompressSizeBytes(ctx context.Context, configs configs) (value
|
|||
return
|
||||
}
|
||||
|
||||
// accountIDEndpointModeProvider provides access to the AccountIDEndpointMode
|
||||
type accountIDEndpointModeProvider interface {
|
||||
getAccountIDEndpointMode(context.Context) (aws.AccountIDEndpointMode, bool, error)
|
||||
}
|
||||
|
||||
func getAccountIDEndpointMode(ctx context.Context, configs configs) (value aws.AccountIDEndpointMode, found bool, err error) {
|
||||
for _, cfg := range configs {
|
||||
if p, ok := cfg.(accountIDEndpointModeProvider); ok {
|
||||
value, found, err = p.getAccountIDEndpointMode(ctx)
|
||||
if err != nil || found {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// ec2IMDSRegionProvider provides access to the ec2 imds region
|
||||
// configuration value
|
||||
type ec2IMDSRegionProvider interface {
|
||||
|
|
|
|||
16
vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go
generated
vendored
16
vendor/github.com/aws/aws-sdk-go-v2/config/resolve.go
generated
vendored
|
|
@ -166,6 +166,22 @@ func resolveRequestMinCompressSizeBytes(ctx context.Context, cfg *aws.Config, co
|
|||
return nil
|
||||
}
|
||||
|
||||
// resolveAccountIDEndpointMode extracts the AccountIDEndpointMode from the configs slice's
|
||||
// SharedConfig or EnvConfig
|
||||
func resolveAccountIDEndpointMode(ctx context.Context, cfg *aws.Config, configs configs) error {
|
||||
m, found, err := getAccountIDEndpointMode(ctx, configs)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !found {
|
||||
m = aws.AccountIDEndpointModePreferred
|
||||
}
|
||||
|
||||
cfg.AccountIDEndpointMode = m
|
||||
return nil
|
||||
}
|
||||
|
||||
// resolveDefaultRegion extracts the first instance of a default region and sets `aws.Config.Region` to the default
|
||||
// region if region had not been resolved from other sources.
|
||||
func resolveDefaultRegion(ctx context.Context, cfg *aws.Config, configs configs) error {
|
||||
|
|
|
|||
34
vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go
generated
vendored
34
vendor/github.com/aws/aws-sdk-go-v2/config/shared_config.go
generated
vendored
|
|
@ -115,6 +115,9 @@ const (
|
|||
requestMinCompressionSizeBytes = "request_min_compression_size_bytes"
|
||||
|
||||
s3DisableExpressSessionAuthKey = "s3_disable_express_session_auth"
|
||||
|
||||
accountIDKey = "aws_account_id"
|
||||
accountIDEndpointMode = "account_id_endpoint_mode"
|
||||
)
|
||||
|
||||
// defaultSharedConfigProfile allows for swapping the default profile for testing
|
||||
|
|
@ -341,6 +344,8 @@ type SharedConfig struct {
|
|||
// will only bypass the modified endpoint routing and signing behaviors
|
||||
// associated with the feature.
|
||||
S3DisableExpressAuth *bool
|
||||
|
||||
AccountIDEndpointMode aws.AccountIDEndpointMode
|
||||
}
|
||||
|
||||
func (c SharedConfig) getDefaultsMode(ctx context.Context) (value aws.DefaultsMode, ok bool, err error) {
|
||||
|
|
@ -1124,12 +1129,17 @@ func (c *SharedConfig) setFromIniSection(profile string, section ini.Section) er
|
|||
return fmt.Errorf("failed to load %s from shared config, %w", requestMinCompressionSizeBytes, err)
|
||||
}
|
||||
|
||||
if err := updateAIDEndpointMode(&c.AccountIDEndpointMode, section, accountIDEndpointMode); err != nil {
|
||||
return fmt.Errorf("failed to load %s from shared config, %w", accountIDEndpointMode, err)
|
||||
}
|
||||
|
||||
// Shared Credentials
|
||||
creds := aws.Credentials{
|
||||
AccessKeyID: section.String(accessKeyIDKey),
|
||||
SecretAccessKey: section.String(secretAccessKey),
|
||||
SessionToken: section.String(sessionTokenKey),
|
||||
Source: fmt.Sprintf("SharedConfigCredentials: %s", section.SourceFile[accessKeyIDKey]),
|
||||
AccountID: section.String(accountIDKey),
|
||||
}
|
||||
|
||||
if creds.HasKeys() {
|
||||
|
|
@ -1177,6 +1187,26 @@ func updateDisableRequestCompression(disable **bool, sec ini.Section, key string
|
|||
return nil
|
||||
}
|
||||
|
||||
func updateAIDEndpointMode(m *aws.AccountIDEndpointMode, sec ini.Section, key string) error {
|
||||
if !sec.Has(key) {
|
||||
return nil
|
||||
}
|
||||
|
||||
v := sec.String(key)
|
||||
switch v {
|
||||
case "preferred":
|
||||
*m = aws.AccountIDEndpointModePreferred
|
||||
case "required":
|
||||
*m = aws.AccountIDEndpointModeRequired
|
||||
case "disabled":
|
||||
*m = aws.AccountIDEndpointModeDisabled
|
||||
default:
|
||||
return fmt.Errorf("invalid value for shared config profile field, %s=%s, must be preferred/required/disabled", key, v)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c SharedConfig) getRequestMinCompressSizeBytes(ctx context.Context) (int64, bool, error) {
|
||||
if c.RequestMinCompressSizeBytes == nil {
|
||||
return 0, false, nil
|
||||
|
|
@ -1191,6 +1221,10 @@ func (c SharedConfig) getDisableRequestCompression(ctx context.Context) (bool, b
|
|||
return *c.DisableRequestCompression, true, nil
|
||||
}
|
||||
|
||||
func (c SharedConfig) getAccountIDEndpointMode(ctx context.Context) (aws.AccountIDEndpointMode, bool, error) {
|
||||
return c.AccountIDEndpointMode, len(c.AccountIDEndpointMode) > 0, nil
|
||||
}
|
||||
|
||||
func updateDefaultsMode(mode *aws.DefaultsMode, section ini.Section, key string) error {
|
||||
if !section.Has(key) {
|
||||
return nil
|
||||
|
|
|
|||
85
vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md
generated
vendored
85
vendor/github.com/aws/aws-sdk-go-v2/credentials/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,88 @@
|
|||
# v1.17.30 (2024-08-26)
|
||||
|
||||
* **Bug Fix**: Save SSO cached token expiry in UTC to ensure cross-SDK compatibility.
|
||||
|
||||
# v1.17.29 (2024-08-22)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.28 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.27 (2024-07-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.26 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.25 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.24 (2024-07-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.23 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.22 (2024-06-26)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.21 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.20 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.19 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.18 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.17 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.16 (2024-05-23)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.15 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.14 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.13 (2024-05-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.12 (2024-05-08)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.11 (2024-04-05)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.10 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.9 (2024-03-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ type GetCredentialsOutput struct {
|
|||
AccessKeyID string
|
||||
SecretAccessKey string
|
||||
Token string
|
||||
AccountID string
|
||||
}
|
||||
|
||||
// EndpointError is an error returned from the endpoint service
|
||||
|
|
|
|||
1
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go
generated
vendored
1
vendor/github.com/aws/aws-sdk-go-v2/credentials/endpointcreds/provider.go
generated
vendored
|
|
@ -152,6 +152,7 @@ func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
|
|||
SecretAccessKey: resp.SecretAccessKey,
|
||||
SessionToken: resp.Token,
|
||||
Source: ProviderName,
|
||||
AccountID: resp.AccountID,
|
||||
}
|
||||
|
||||
if resp.Expiration != nil {
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/credentials/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package credentials
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.17.9"
|
||||
const goModuleVersion = "1.17.30"
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/credentials/processcreds/provider.go
generated
vendored
|
|
@ -167,6 +167,9 @@ type CredentialProcessResponse struct {
|
|||
|
||||
// The date on which the current credentials expire.
|
||||
Expiration *time.Time
|
||||
|
||||
// The ID of the account for credentials
|
||||
AccountID string `json:"AccountId"`
|
||||
}
|
||||
|
||||
// Retrieve executes the credential process command and returns the
|
||||
|
|
@ -208,6 +211,7 @@ func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
|
|||
AccessKeyID: resp.AccessKeyID,
|
||||
SecretAccessKey: resp.SecretAccessKey,
|
||||
SessionToken: resp.SessionToken,
|
||||
AccountID: resp.AccountID,
|
||||
}
|
||||
|
||||
// Handle expiration
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_cached_token.go
generated
vendored
|
|
@ -225,7 +225,7 @@ func (r *rfc3339) UnmarshalJSON(bytes []byte) (err error) {
|
|||
}
|
||||
|
||||
func (r *rfc3339) MarshalJSON() ([]byte, error) {
|
||||
value := time.Time(*r).Format(time.RFC3339)
|
||||
value := time.Time(*r).UTC().Format(time.RFC3339)
|
||||
|
||||
// Use JSON unmarshal to unescape the quoted value making use of JSON's
|
||||
// quoting rules.
|
||||
|
|
|
|||
1
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go
generated
vendored
1
vendor/github.com/aws/aws-sdk-go-v2/credentials/ssocreds/sso_credentials_provider.go
generated
vendored
|
|
@ -129,6 +129,7 @@ func (p *Provider) Retrieve(ctx context.Context) (aws.Credentials, error) {
|
|||
CanExpire: true,
|
||||
Expires: time.Unix(0, output.RoleCredentials.Expiration*int64(time.Millisecond)).UTC(),
|
||||
Source: ProviderName,
|
||||
AccountID: p.options.AccountID,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
6
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go
generated
vendored
6
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/assume_role_provider.go
generated
vendored
|
|
@ -308,6 +308,11 @@ func (p *AssumeRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, err
|
|||
return aws.Credentials{Source: ProviderName}, err
|
||||
}
|
||||
|
||||
var accountID string
|
||||
if resp.AssumedRoleUser != nil {
|
||||
accountID = getAccountID(resp.AssumedRoleUser)
|
||||
}
|
||||
|
||||
return aws.Credentials{
|
||||
AccessKeyID: *resp.Credentials.AccessKeyId,
|
||||
SecretAccessKey: *resp.Credentials.SecretAccessKey,
|
||||
|
|
@ -316,5 +321,6 @@ func (p *AssumeRoleProvider) Retrieve(ctx context.Context) (aws.Credentials, err
|
|||
|
||||
CanExpire: true,
|
||||
Expires: *resp.Credentials.Expiration,
|
||||
AccountID: accountID,
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
19
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go
generated
vendored
19
vendor/github.com/aws/aws-sdk-go-v2/credentials/stscreds/web_identity_provider.go
generated
vendored
|
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/aws"
|
||||
|
|
@ -135,6 +136,11 @@ func (p *WebIdentityRoleProvider) Retrieve(ctx context.Context) (aws.Credentials
|
|||
return aws.Credentials{}, fmt.Errorf("failed to retrieve credentials, %w", err)
|
||||
}
|
||||
|
||||
var accountID string
|
||||
if resp.AssumedRoleUser != nil {
|
||||
accountID = getAccountID(resp.AssumedRoleUser)
|
||||
}
|
||||
|
||||
// InvalidIdentityToken error is a temporary error that can occur
|
||||
// when assuming an Role with a JWT web identity token.
|
||||
|
||||
|
|
@ -145,6 +151,19 @@ func (p *WebIdentityRoleProvider) Retrieve(ctx context.Context) (aws.Credentials
|
|||
Source: WebIdentityProviderName,
|
||||
CanExpire: true,
|
||||
Expires: *resp.Credentials.Expiration,
|
||||
AccountID: accountID,
|
||||
}
|
||||
return value, nil
|
||||
}
|
||||
|
||||
// extract accountID from arn with format "arn:partition:service:region:account-id:[resource-section]"
|
||||
func getAccountID(u *types.AssumedRoleUser) string {
|
||||
if u.Arn == nil {
|
||||
return ""
|
||||
}
|
||||
parts := strings.Split(*u.Arn, ":")
|
||||
if len(parts) < 5 {
|
||||
return ""
|
||||
}
|
||||
return parts[4]
|
||||
}
|
||||
|
|
|
|||
49
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md
generated
vendored
49
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,52 @@
|
|||
# v1.16.12 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.11 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.10 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.9 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.8 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.7 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.6 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.5 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.4 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.3 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.2 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.1 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.0 (2024-03-21)
|
||||
|
||||
* **Feature**: Add config switch `DisableDefaultTimeout` that allows you to disable the default operation timeout (5 seconds) for IMDS calls.
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/feature/ec2/imds/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package imds
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.16.0"
|
||||
const goModuleVersion = "1.16.12"
|
||||
|
|
|
|||
134
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/CHANGELOG.md
generated
vendored
134
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,137 @@
|
|||
# v1.17.16 (2024-08-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.15 (2024-08-26)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.14 (2024-08-23)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.13 (2024-08-22)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.12 (2024-08-20)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.11 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.10 (2024-08-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.9 (2024-07-24)
|
||||
|
||||
* **Documentation**: Clarify region hint and credential usage in HeadBucketRegion.
|
||||
|
||||
# v1.17.8 (2024-07-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.7 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.6 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.5 (2024-07-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.4 (2024-07-02)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.3 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.2 (2024-06-26)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.1 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.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.16.25 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.24 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.23 (2024-06-05)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.22 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.21 (2024-05-23)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.20 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.19 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.18 (2024-05-14)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.17 (2024-05-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.16 (2024-05-08)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.15 (2024-04-05)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.14 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.13 (2024-03-21)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.12 (2024-03-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.11 (2024-03-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.10 (2024-03-13)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.16.9 (2024-03-07)
|
||||
|
||||
* **Bug Fix**: Remove dependency on go-cmp.
|
||||
|
|
|
|||
15
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/bucket_region.go
generated
vendored
15
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/bucket_region.go
generated
vendored
|
|
@ -17,15 +17,13 @@ const bucketRegionHeader = "X-Amz-Bucket-Region"
|
|||
// GetBucketRegion will attempt to get the region for a bucket using the
|
||||
// client's configured region to determine which AWS partition to perform the query on.
|
||||
//
|
||||
// The request will not be signed, and will not use your AWS credentials.
|
||||
//
|
||||
// A BucketNotFound error will be returned if the bucket does not exist in the
|
||||
// AWS partition the client region belongs to.
|
||||
//
|
||||
// For example to get the region of a bucket which exists in "eu-central-1"
|
||||
// you could provide a region hint of "us-west-2".
|
||||
//
|
||||
// cfg, err := config.LoadDefaultConfig(context.TODO())
|
||||
// cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-2"))
|
||||
// if err != nil {
|
||||
// log.Println("error:", err)
|
||||
// return
|
||||
|
|
@ -60,6 +58,17 @@ const bucketRegionHeader = "X-Amz-Bucket-Region"
|
|||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
//
|
||||
// If buckets are public, you may use anonymous credential like so.
|
||||
//
|
||||
// manager.GetBucketRegion(ctx, s3.NewFromConfig(cfg), bucket, func(o *s3.Options) {
|
||||
// o.Credentials = nil
|
||||
// // Or
|
||||
// o.Credentials = aws.AnonymousCredentials{}
|
||||
// })
|
||||
//
|
||||
// The request with anonymous credentials will not be signed.
|
||||
// Otherwise credentials would be required for private buckets.
|
||||
func GetBucketRegion(ctx context.Context, client HeadBucketAPIClient, bucket string, optFns ...func(*s3.Options)) (string, error) {
|
||||
var captureBucketRegion deserializeBucketRegion
|
||||
|
||||
|
|
|
|||
5
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/download.go
generated
vendored
5
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/download.go
generated
vendored
|
|
@ -183,7 +183,10 @@ func (d Downloader) Download(ctx context.Context, w io.WriterAt, input *s3.GetOb
|
|||
// Copy ClientOptions
|
||||
clientOptions := make([]func(*s3.Options), 0, len(impl.cfg.ClientOptions)+1)
|
||||
clientOptions = append(clientOptions, func(o *s3.Options) {
|
||||
o.APIOptions = append(o.APIOptions, middleware.AddSDKAgentKey(middleware.FeatureMetadata, userAgentKey))
|
||||
o.APIOptions = append(o.APIOptions,
|
||||
middleware.AddSDKAgentKey(middleware.FeatureMetadata, userAgentKey),
|
||||
addFeatureUserAgent, // yes, there are two of these
|
||||
)
|
||||
})
|
||||
clientOptions = append(clientOptions, impl.cfg.ClientOptions...)
|
||||
impl.cfg.ClientOptions = clientOptions
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package manager
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.16.9"
|
||||
const goModuleVersion = "1.17.16"
|
||||
|
|
|
|||
29
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/upload.go
generated
vendored
29
vendor/github.com/aws/aws-sdk-go-v2/feature/s3/manager/upload.go
generated
vendored
|
|
@ -311,6 +311,7 @@ func (u Uploader) Upload(ctx context.Context, input *s3.PutObjectInput, opts ...
|
|||
clientOptions = append(clientOptions, func(o *s3.Options) {
|
||||
o.APIOptions = append(o.APIOptions,
|
||||
middleware.AddSDKAgentKey(middleware.FeatureMetadata, userAgentKey),
|
||||
addFeatureUserAgent, // yes, there are two of these
|
||||
func(s *smithymiddleware.Stack) error {
|
||||
return s.Finalize.Insert(&setS3ExpressDefaultChecksum{}, "ResolveEndpointV2", smithymiddleware.After)
|
||||
},
|
||||
|
|
@ -853,3 +854,31 @@ func (*setS3ExpressDefaultChecksum) HandleFinalize(
|
|||
|
||||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
func addFeatureUserAgent(stack *smithymiddleware.Stack) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ua.AddUserAgentFeature(middleware.UserAgentFeatureS3Transfer)
|
||||
return nil
|
||||
}
|
||||
|
||||
func getOrAddRequestUserAgent(stack *smithymiddleware.Stack) (*middleware.RequestUserAgent, error) {
|
||||
id := (*middleware.RequestUserAgent)(nil).ID()
|
||||
mw, ok := stack.Build.Get(id)
|
||||
if !ok {
|
||||
mw = middleware.NewRequestUserAgent()
|
||||
if err := stack.Build.Add(mw, smithymiddleware.After); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
ua, ok := mw.(*middleware.RequestUserAgent)
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("%T for %s middleware did not match expected type", mw, id)
|
||||
}
|
||||
|
||||
return ua, nil
|
||||
}
|
||||
|
|
|
|||
5
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md
generated
vendored
5
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,8 @@
|
|||
# v1.3.16 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.15 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package configsources
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.3.15"
|
||||
const goModuleVersion = "1.3.16"
|
||||
|
|
|
|||
5
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md
generated
vendored
5
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,8 @@
|
|||
# v2.6.16 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v2.6.15 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package endpoints
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "2.6.15"
|
||||
const goModuleVersion = "2.6.16"
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,7 @@
|
|||
# v1.8.1 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
|
||||
# v1.8.0 (2024-02-13)
|
||||
|
||||
* **Feature**: Bump minimum Go version to 1.20 per our language support policy.
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/internal/ini/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package ini
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.8.0"
|
||||
const goModuleVersion = "1.8.1"
|
||||
|
|
|
|||
53
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/CHANGELOG.md
generated
vendored
53
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,56 @@
|
|||
# v1.3.16 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.15 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.14 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.13 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.12 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.11 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.10 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.9 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.8 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.7 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.6 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.5 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.4 (2024-03-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.3 (2024-03-07)
|
||||
|
||||
* **Bug Fix**: Remove dependency on go-cmp.
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package v4a
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.3.3"
|
||||
const goModuleVersion = "1.3.16"
|
||||
|
|
|
|||
8
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/smithy.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/internal/v4a/smithy.go
generated
vendored
|
|
@ -5,6 +5,8 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
internalcontext "github.com/aws/aws-sdk-go-v2/internal/context"
|
||||
|
||||
v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||||
"github.com/aws/aws-sdk-go-v2/internal/sdk"
|
||||
"github.com/aws/smithy-go"
|
||||
|
|
@ -72,7 +74,11 @@ func (v *SignerAdapter) SignRequest(ctx context.Context, r *smithyhttp.Request,
|
|||
}
|
||||
|
||||
hash := v4.GetPayloadHash(ctx)
|
||||
err := v.Signer.SignHTTP(ctx, ca.Credentials, r.Request, hash, name, regions, sdk.NowTime(), func(o *SignerOptions) {
|
||||
signingTime := sdk.NowTime()
|
||||
if skew := internalcontext.GetAttemptSkewContext(ctx); skew != 0 {
|
||||
signingTime.Add(skew)
|
||||
}
|
||||
err := v.Signer.SignHTTP(ctx, ca.Credentials, r.Request, hash, name, regions, signingTime, func(o *SignerOptions) {
|
||||
o.DisableURIPathEscaping, _ = smithyhttp.GetDisableDoubleEncoding(&props)
|
||||
|
||||
o.Logger = v.Logger
|
||||
|
|
|
|||
9
vendor/github.com/aws/aws-sdk-go-v2/service/autoscaling/CHANGELOG.md
generated
vendored
9
vendor/github.com/aws/aws-sdk-go-v2/service/autoscaling/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,12 @@
|
|||
# v1.43.5 (2024-08-22)
|
||||
|
||||
* **Documentation**: Amazon EC2 Auto Scaling now provides EBS health check to manage EC2 instance replacement
|
||||
|
||||
# v1.43.4 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.43.3 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
|
|
@ -164,9 +164,9 @@ type CreateAutoScalingGroupInput struct {
|
|||
|
||||
// A comma-separated value string of one or more health check types.
|
||||
//
|
||||
// The valid values are EC2 , ELB , and VPC_LATTICE . EC2 is the default health
|
||||
// check and cannot be disabled. For more information, see [Health checks for instances in an Auto Scaling group]in the Amazon EC2 Auto
|
||||
// Scaling User Guide.
|
||||
// The valid values are EC2 , EBS , ELB , and VPC_LATTICE . EC2 is the default
|
||||
// health check and cannot be disabled. For more information, see [Health checks for instances in an Auto Scaling group]in the Amazon
|
||||
// EC2 Auto Scaling User Guide.
|
||||
//
|
||||
// Only specify EC2 if you must clear a value that was previously set.
|
||||
//
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/autoscaling/api_op_SetInstanceHealth.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/autoscaling/api_op_SetInstanceHealth.go
generated
vendored
|
|
@ -12,9 +12,9 @@ import (
|
|||
|
||||
// Sets the health status of the specified instance.
|
||||
//
|
||||
// For more information, see [Health checks for instances in an Auto Scaling group] in the Amazon EC2 Auto Scaling User Guide.
|
||||
// For more information, see [Set up a custom health check for your Auto Scaling group] in the Amazon EC2 Auto Scaling User Guide.
|
||||
//
|
||||
// [Health checks for instances in an Auto Scaling group]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-health-checks.html
|
||||
// [Set up a custom health check for your Auto Scaling group]: https://docs.aws.amazon.com/autoscaling/ec2/userguide/set-up-a-custom-health-check.html
|
||||
func (c *Client) SetInstanceHealth(ctx context.Context, params *SetInstanceHealthInput, optFns ...func(*Options)) (*SetInstanceHealthOutput, error) {
|
||||
if params == nil {
|
||||
params = &SetInstanceHealthInput{}
|
||||
|
|
|
|||
|
|
@ -146,9 +146,9 @@ type UpdateAutoScalingGroupInput struct {
|
|||
|
||||
// A comma-separated value string of one or more health check types.
|
||||
//
|
||||
// The valid values are EC2 , ELB , and VPC_LATTICE . EC2 is the default health
|
||||
// check and cannot be disabled. For more information, see [Health checks for instances in an Auto Scaling group]in the Amazon EC2 Auto
|
||||
// Scaling User Guide.
|
||||
// The valid values are EC2 , EBS , ELB , and VPC_LATTICE . EC2 is the default
|
||||
// health check and cannot be disabled. For more information, see [Health checks for instances in an Auto Scaling group]in the Amazon
|
||||
// EC2 Auto Scaling User Guide.
|
||||
//
|
||||
// Only specify EC2 if you must clear a value that was previously set.
|
||||
//
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/service/autoscaling/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/autoscaling/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package autoscaling
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.43.3"
|
||||
const goModuleVersion = "1.43.5"
|
||||
|
|
|
|||
|
|
@ -172,6 +172,9 @@ var defaultPartitions = endpoints.Partitions{
|
|||
endpoints.EndpointKey{
|
||||
Region: "ap-southeast-4",
|
||||
}: endpoints.Endpoint{},
|
||||
endpoints.EndpointKey{
|
||||
Region: "ap-southeast-5",
|
||||
}: endpoints.Endpoint{},
|
||||
endpoints.EndpointKey{
|
||||
Region: "ca-central-1",
|
||||
}: endpoints.Endpoint{},
|
||||
|
|
|
|||
21
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md
generated
vendored
21
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,24 @@
|
|||
# v1.177.0 (2024-08-28)
|
||||
|
||||
* **Feature**: Amazon VPC IP Address Manager (IPAM) now allows customers to provision IPv4 CIDR blocks and allocate Elastic IP Addresses directly from IPAM pools with public IPv4 space
|
||||
|
||||
# v1.176.0 (2024-08-21)
|
||||
|
||||
* **Feature**: DescribeInstanceStatus now returns health information on EBS volumes attached to Nitro instances
|
||||
|
||||
# v1.175.1 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.175.0 (2024-08-12)
|
||||
|
||||
* **Feature**: This release adds new capabilities to manage On-Demand Capacity Reservations including the ability to split your reservation, move capacity between reservations, and modify the instance eligibility of your reservation.
|
||||
|
||||
# v1.174.0 (2024-08-08)
|
||||
|
||||
* **Feature**: Launch of private IPv6 addressing for VPCs and Subnets. VPC IPAM supports the planning and monitoring of private IPv6 usage.
|
||||
|
||||
# v1.173.0 (2024-07-25)
|
||||
|
||||
* **Feature**: EC2 Fleet now supports using custom identifiers to reference Amazon Machine Images (AMI) in launch requests that are configured to choose from a diversified list of instance types.
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_AllocateAddress.go
generated
vendored
|
|
@ -69,6 +69,9 @@ type AllocateAddressInput struct {
|
|||
// UnauthorizedOperation .
|
||||
DryRun *bool
|
||||
|
||||
// The ID of an IPAM pool.
|
||||
IpamPoolId *string
|
||||
|
||||
// A unique set of Availability Zones, Local Zones, or Wavelength Zones from
|
||||
// which Amazon Web Services advertises IP addresses. Use this parameter to limit
|
||||
// the IP address to this location. IP addresses cannot move between network border
|
||||
|
|
|
|||
35
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go
generated
vendored
35
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CopyImage.go
generated
vendored
|
|
@ -11,30 +11,23 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Initiates the copy of an AMI. You can copy an AMI from one Region to another,
|
||||
// or from a Region to an Outpost. You can't copy an AMI from an Outpost to a
|
||||
// Region, from one Outpost to another, or within the same Outpost. To copy an AMI
|
||||
// to another partition, see [CreateStoreImageTask].
|
||||
// Initiates an AMI copy operation. You can copy an AMI from one Region to
|
||||
// another, or from a Region to an Outpost. You can't copy an AMI from an Outpost
|
||||
// to a Region, from one Outpost to another, or within the same Outpost. To copy an
|
||||
// AMI to another partition, see [CreateStoreImageTask].
|
||||
//
|
||||
// To copy an AMI from one Region to another, specify the source Region using the
|
||||
// SourceRegion parameter, and specify the destination Region using its endpoint.
|
||||
// Copies of encrypted backing snapshots for the AMI are encrypted. Copies of
|
||||
// unencrypted backing snapshots remain unencrypted, unless you set Encrypted
|
||||
// during the copy operation. You cannot create an unencrypted copy of an encrypted
|
||||
// backing snapshot.
|
||||
// When you copy an AMI from one Region to another, the destination Region is the
|
||||
// current Region.
|
||||
//
|
||||
// To copy an AMI from a Region to an Outpost, specify the source Region using the
|
||||
// SourceRegion parameter, and specify the ARN of the destination Outpost using
|
||||
// DestinationOutpostArn. Backing snapshots copied to an Outpost are encrypted by
|
||||
// default using the default encryption key for the Region, or a different key that
|
||||
// you specify in the request using KmsKeyId. Outposts do not support unencrypted
|
||||
// snapshots. For more information, [Amazon EBS local snapshots on Outposts]in the Amazon EBS User Guide.
|
||||
// When you copy an AMI from a Region to an Outpost, specify the ARN of the
|
||||
// Outpost as the destination. Backing snapshots copied to an Outpost are encrypted
|
||||
// by default using the default encryption key for the Region or the key that you
|
||||
// specify. Outposts do not support unencrypted snapshots.
|
||||
//
|
||||
// For more information about the prerequisites and limits when copying an AMI,
|
||||
// see [Copy an AMI]in the Amazon EC2 User Guide.
|
||||
// For information about the prerequisites when copying an AMI, see [Copy an AMI] in the Amazon
|
||||
// EC2 User Guide.
|
||||
//
|
||||
// [CreateStoreImageTask]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateStoreImageTask.html
|
||||
// [Amazon EBS local snapshots on Outposts]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#ami
|
||||
// [Copy an AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/CopyingAMIs.html
|
||||
func (c *Client) CopyImage(ctx context.Context, params *CopyImageInput, optFns ...func(*Options)) (*CopyImageOutput, error) {
|
||||
if params == nil {
|
||||
|
|
@ -111,10 +104,10 @@ type CopyImageInput struct {
|
|||
// encrypted. You can encrypt a copy of an unencrypted snapshot, but you cannot
|
||||
// create an unencrypted copy of an encrypted snapshot. The default KMS key for
|
||||
// Amazon EBS is used unless you specify a non-default Key Management Service (KMS)
|
||||
// KMS key using KmsKeyId . For more information, see [Amazon EBS encryption] in the Amazon EBS User
|
||||
// KMS key using KmsKeyId . For more information, see [Use encryption with EBS-backed AMIs] in the Amazon EC2 User
|
||||
// Guide.
|
||||
//
|
||||
// [Amazon EBS encryption]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
|
||||
// [Use encryption with EBS-backed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html
|
||||
Encrypted *bool
|
||||
|
||||
// The identifier of the symmetric Key Management Service (KMS) KMS key to use
|
||||
|
|
|
|||
211
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationBySplitting.go
generated
vendored
Normal file
211
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateCapacityReservationBySplitting.go
generated
vendored
Normal file
|
|
@ -0,0 +1,211 @@
|
|||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package ec2
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/ec2/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Create a new Capacity Reservation by splitting the available capacity of the
|
||||
//
|
||||
// source Capacity Reservation. The new Capacity Reservation will have the same
|
||||
// attributes as the source Capacity Reservation except for tags. The source
|
||||
// Capacity Reservation must be active and owned by your Amazon Web Services
|
||||
// account.
|
||||
func (c *Client) CreateCapacityReservationBySplitting(ctx context.Context, params *CreateCapacityReservationBySplittingInput, optFns ...func(*Options)) (*CreateCapacityReservationBySplittingOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateCapacityReservationBySplittingInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "CreateCapacityReservationBySplitting", params, optFns, c.addOperationCreateCapacityReservationBySplittingMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*CreateCapacityReservationBySplittingOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type CreateCapacityReservationBySplittingInput struct {
|
||||
|
||||
// The number of instances to split from the source Capacity Reservation.
|
||||
//
|
||||
// This member is required.
|
||||
InstanceCount *int32
|
||||
|
||||
// The ID of the Capacity Reservation from which you want to split the available
|
||||
// capacity.
|
||||
//
|
||||
// This member is required.
|
||||
SourceCapacityReservationId *string
|
||||
|
||||
// Unique, case-sensitive identifier that you provide to ensure the idempotency of
|
||||
// the request. For more information, see [Ensure Idempotency].
|
||||
//
|
||||
// [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
||||
ClientToken *string
|
||||
|
||||
// Checks whether you have the required permissions for the action, without
|
||||
// actually making the request, and provides an error response. If you have the
|
||||
// required permissions, the error response is DryRunOperation . Otherwise, it is
|
||||
// UnauthorizedOperation .
|
||||
DryRun *bool
|
||||
|
||||
// The tags to apply to the new Capacity Reservation.
|
||||
TagSpecifications []types.TagSpecification
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type CreateCapacityReservationBySplittingOutput struct {
|
||||
|
||||
// Information about the destination Capacity Reservation.
|
||||
DestinationCapacityReservation *types.CapacityReservation
|
||||
|
||||
// The number of instances in the new Capacity Reservation. The number of
|
||||
// instances in the source Capacity Reservation was reduced by this amount.
|
||||
InstanceCount *int32
|
||||
|
||||
// Information about the source Capacity Reservation.
|
||||
SourceCapacityReservation *types.CapacityReservation
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationCreateCapacityReservationBySplittingMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsEc2query_serializeOpCreateCapacityReservationBySplitting{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsEc2query_deserializeOpCreateCapacityReservationBySplitting{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "CreateCapacityReservationBySplitting"); 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 = 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 = addIdempotencyToken_opCreateCapacityReservationBySplittingMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateCapacityReservationBySplittingValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opCreateCapacityReservationBySplitting(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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type idempotencyToken_initializeOpCreateCapacityReservationBySplitting struct {
|
||||
tokenProvider IdempotencyTokenProvider
|
||||
}
|
||||
|
||||
func (*idempotencyToken_initializeOpCreateCapacityReservationBySplitting) ID() string {
|
||||
return "OperationIdempotencyTokenAutoFill"
|
||||
}
|
||||
|
||||
func (m *idempotencyToken_initializeOpCreateCapacityReservationBySplitting) 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.(*CreateCapacityReservationBySplittingInput)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("expected middleware input to be of type *CreateCapacityReservationBySplittingInput ")
|
||||
}
|
||||
|
||||
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_opCreateCapacityReservationBySplittingMiddleware(stack *middleware.Stack, cfg Options) error {
|
||||
return stack.Initialize.Add(&idempotencyToken_initializeOpCreateCapacityReservationBySplitting{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opCreateCapacityReservationBySplitting(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "CreateCapacityReservationBySplitting",
|
||||
}
|
||||
}
|
||||
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_CreateIpam.go
generated
vendored
|
|
@ -51,6 +51,10 @@ type CreateIpamInput struct {
|
|||
// UnauthorizedOperation .
|
||||
DryRun *bool
|
||||
|
||||
// Enable this option to use your own GUA ranges as private IPv6 addresses. This
|
||||
// option is disabled by default.
|
||||
EnablePrivateGua *bool
|
||||
|
||||
// The operating Regions for the IPAM. Operating Regions are Amazon Web Services
|
||||
// Regions where the IPAM is allowed to manage IP address CIDRs. IPAM only
|
||||
// discovers and monitors resources in the Amazon Web Services Regions you select
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ type CreateNetworkInterfacePermissionInput struct {
|
|||
// The Amazon Web Services account ID.
|
||||
AwsAccountId *string
|
||||
|
||||
// The Amazon Web Service. Currently not supported.
|
||||
// The Amazon Web Services service. Currently not supported.
|
||||
AwsService *string
|
||||
|
||||
// Checks whether you have the required permissions for the action, without
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteSecurityGroup.go
generated
vendored
|
|
@ -13,8 +13,8 @@ import (
|
|||
// Deletes a security group.
|
||||
//
|
||||
// If you attempt to delete a security group that is associated with an instance
|
||||
// or network interface or is referenced by another security group, the operation
|
||||
// fails with DependencyViolation .
|
||||
// or network interface or is referenced by another security group in the same VPC,
|
||||
// the operation fails with DependencyViolation .
|
||||
func (c *Client) DeleteSecurityGroup(ctx context.Context, params *DeleteSecurityGroupInput, optFns ...func(*Options)) (*DeleteSecurityGroupOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteSecurityGroupInput{}
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressTransfers.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeAddressTransfers.go
generated
vendored
|
|
@ -20,8 +20,8 @@ import (
|
|||
// IP address transfer. During those seven days, the source account can view the
|
||||
// pending transfer by using this action. After seven days, the transfer expires
|
||||
// and ownership of the Elastic IP address returns to the source account. Accepted
|
||||
// transfers are visible to the source account for three days after the transfers
|
||||
// have been accepted.
|
||||
// transfers are visible to the source account for 14 days after the transfers have
|
||||
// been accepted.
|
||||
//
|
||||
// [Transfer Elastic IP addresses]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#transfer-EIPs-intro
|
||||
func (c *Client) DescribeAddressTransfers(ctx context.Context, params *DescribeAddressTransfersInput, optFns ...func(*Options)) (*DescribeAddressTransfersOutput, error) {
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeInstanceStatus.go
generated
vendored
|
|
@ -106,6 +106,9 @@ type DescribeInstanceStatusInput struct {
|
|||
//
|
||||
// - system-status.status - The system status of the instance ( ok | impaired |
|
||||
// initializing | insufficient-data | not-applicable ).
|
||||
//
|
||||
// - attached-ebs-status.status - The status of the attached EBS volume for the
|
||||
// instance ( ok | impaired | initializing | insufficient-data | not-applicable ).
|
||||
Filters []types.Filter
|
||||
|
||||
// When true , includes the health status for all instances. When false , includes
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ type DescribeNetworkInterfacePermissionsInput struct {
|
|||
// - network-interface-permission.aws-account-id - The Amazon Web Services
|
||||
// account ID.
|
||||
//
|
||||
// - network-interface-permission.aws-service - The Amazon Web Service.
|
||||
// - network-interface-permission.aws-service - The Amazon Web Services service.
|
||||
//
|
||||
// - network-interface-permission.permission - The type of permission (
|
||||
// INSTANCE-ATTACH | EIP-ASSOCIATE ).
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeNetworkInterfaces.go
generated
vendored
|
|
@ -129,8 +129,8 @@ type DescribeNetworkInterfacesInput struct {
|
|||
// or service that created the network interface.
|
||||
//
|
||||
// - requester-managed - Indicates whether the network interface is being managed
|
||||
// by an Amazon Web Service (for example, Amazon Web Services Management Console,
|
||||
// Auto Scaling, and so on).
|
||||
// by an Amazon Web Services service (for example, Amazon Web Services Management
|
||||
// Console, Auto Scaling, and so on).
|
||||
//
|
||||
// - source-dest-check - Indicates whether the network interface performs
|
||||
// source/destination checking. A value of true means checking is enabled, and
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DescribeRouteTables.go
generated
vendored
|
|
@ -73,8 +73,8 @@ type DescribeRouteTablesInput struct {
|
|||
// - route.destination-ipv6-cidr-block - The IPv6 CIDR range specified in a route
|
||||
// in the route table.
|
||||
//
|
||||
// - route.destination-prefix-list-id - The ID (prefix) of the Amazon Web Service
|
||||
// specified in a route in the table.
|
||||
// - route.destination-prefix-list-id - The ID (prefix) of the Amazon Web
|
||||
// Services service specified in a route in the table.
|
||||
//
|
||||
// - route.egress-only-internet-gateway-id - The ID of an egress-only Internet
|
||||
// gateway specified in a route in the route table.
|
||||
|
|
|
|||
|
|
@ -12,9 +12,9 @@ import (
|
|||
)
|
||||
|
||||
// Describes the stale security group rules for security groups in a specified
|
||||
// VPC. Rules are stale when they reference a deleted security group in the same
|
||||
// VPC or peered VPC. Rules can also be stale if they reference a security group in
|
||||
// a peer VPC for which the VPC peering connection has been deleted.
|
||||
// VPC. Rules are stale when they reference a deleted security group in a peered
|
||||
// VPC. Rules can also be stale if they reference a security group in a peer VPC
|
||||
// for which the VPC peering connection has been deleted.
|
||||
func (c *Client) DescribeStaleSecurityGroups(ctx context.Context, params *DescribeStaleSecurityGroupsInput, optFns ...func(*Options)) (*DescribeStaleSecurityGroupsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeStaleSecurityGroupsInput{}
|
||||
|
|
|
|||
|
|
@ -15,9 +15,14 @@ import (
|
|||
// the specified Amazon Web Services Region. After you disable block public access
|
||||
// for snapshots in a Region, users can publicly share snapshots in that Region.
|
||||
//
|
||||
// If block public access is enabled in block-all-sharing mode, and you disable
|
||||
// block public access, all snapshots that were previously publicly shared are no
|
||||
// longer treated as private and they become publicly accessible again.
|
||||
// Enabling block public access for snapshots in block-all-sharing mode does not
|
||||
// change the permissions for snapshots that are already publicly shared. Instead,
|
||||
// it prevents these snapshots from be publicly visible and publicly accessible.
|
||||
// Therefore, the attributes for these snapshots still indicate that they are
|
||||
// publicly shared, even though they are not publicly available.
|
||||
//
|
||||
// If you disable block public access , these snapshots will become publicly
|
||||
// available again.
|
||||
//
|
||||
// For more information, see [Block public access for snapshots] in the Amazon EBS User Guide .
|
||||
//
|
||||
|
|
|
|||
|
|
@ -18,9 +18,14 @@ import (
|
|||
// shared are either treated as private or they remain publicly shared, depending
|
||||
// on the State that you specify.
|
||||
//
|
||||
// If block public access is enabled in block-all-sharing mode, and you change the
|
||||
// mode to block-new-sharing , all snapshots that were previously publicly shared
|
||||
// are no longer treated as private and they become publicly accessible again.
|
||||
// Enabling block public access for snapshots in block all sharing mode does not
|
||||
// change the permissions for snapshots that are already publicly shared. Instead,
|
||||
// it prevents these snapshots from be publicly visible and publicly accessible.
|
||||
// Therefore, the attributes for these snapshots still indicate that they are
|
||||
// publicly shared, even though they are not publicly available.
|
||||
//
|
||||
// If you later disable block public access or change the mode to block new
|
||||
// sharing, these snapshots will become publicly available again.
|
||||
//
|
||||
// For more information, see [Block public access for snapshots] in the Amazon EBS User Guide.
|
||||
//
|
||||
|
|
@ -50,12 +55,6 @@ type EnableSnapshotBlockPublicAccessInput struct {
|
|||
// Additionally, snapshots that are already publicly shared are treated as private
|
||||
// and they are no longer publicly available.
|
||||
//
|
||||
// If you enable block public access for snapshots in block-all-sharing mode, it
|
||||
// does not change the permissions for snapshots that are already publicly shared.
|
||||
// Instead, it prevents these snapshots from be publicly visible and publicly
|
||||
// accessible. Therefore, the attributes for these snapshots still indicate that
|
||||
// they are publicly shared, even though they are not publicly available.
|
||||
//
|
||||
// - block-new-sharing - Prevents only new public sharing of snapshots in the
|
||||
// Region. Users in the account will no longer be able to request new public
|
||||
// sharing. However, snapshots that are already publicly shared, remain publicly
|
||||
|
|
|
|||
25
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go
generated
vendored
25
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyCapacityReservation.go
generated
vendored
|
|
@ -12,12 +12,14 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// Modifies a Capacity Reservation's capacity and the conditions under which it is
|
||||
// to be released. You cannot change a Capacity Reservation's instance type, EBS
|
||||
// optimization, instance store settings, platform, Availability Zone, or instance
|
||||
// eligibility. If you need to modify any of these attributes, we recommend that
|
||||
// you cancel the Capacity Reservation, and then create a new one with the required
|
||||
// attributes.
|
||||
// Modifies a Capacity Reservation's capacity, instance eligibility, and the
|
||||
// conditions under which it is to be released. You can't modify a Capacity
|
||||
// Reservation's instance type, EBS optimization, platform, instance store
|
||||
// settings, Availability Zone, or tenancy. If you need to modify any of these
|
||||
// attributes, we recommend that you cancel the Capacity Reservation, and then
|
||||
// create a new one with the required attributes. For more information, see [Modify an active Capacity Reservation].
|
||||
//
|
||||
// [Modify an active Capacity Reservation]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html
|
||||
func (c *Client) ModifyCapacityReservation(ctx context.Context, params *ModifyCapacityReservationInput, optFns ...func(*Options)) (*ModifyCapacityReservationOutput, error) {
|
||||
if params == nil {
|
||||
params = &ModifyCapacityReservationInput{}
|
||||
|
|
@ -79,6 +81,17 @@ type ModifyCapacityReservationInput struct {
|
|||
// can't be increased or decreased by more than 1000 in a single request.
|
||||
InstanceCount *int32
|
||||
|
||||
// The matching criteria (instance eligibility) that you want to use in the
|
||||
// modified Capacity Reservation. If you change the instance eligibility of an
|
||||
// existing Capacity Reservation from targeted to open , any running instances that
|
||||
// match the attributes of the Capacity Reservation, have the
|
||||
// CapacityReservationPreference set to open , and are not yet running in the
|
||||
// Capacity Reservation, will automatically use the modified Capacity Reservation.
|
||||
//
|
||||
// To modify the instance eligibility, the Capacity Reservation must be completely
|
||||
// idle (zero usage).
|
||||
InstanceMatchCriteria types.InstanceMatchCriteria
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifyIpam.go
generated
vendored
|
|
@ -54,6 +54,10 @@ type ModifyIpamInput struct {
|
|||
// UnauthorizedOperation .
|
||||
DryRun *bool
|
||||
|
||||
// Enable this option to use your own GUA ranges as private IPv6 addresses. This
|
||||
// option is disabled by default.
|
||||
EnablePrivateGua *bool
|
||||
|
||||
// The operating Regions to remove.
|
||||
RemoveOperatingRegions []types.RemoveIpamOperatingRegion
|
||||
|
||||
|
|
|
|||
7
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go
generated
vendored
7
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_ModifySubnetAttribute.go
generated
vendored
|
|
@ -72,6 +72,13 @@ type ModifySubnetAttributeInput struct {
|
|||
|
||||
// Indicates whether DNS queries made to the Amazon-provided DNS Resolver in this
|
||||
// subnet should return synthetic IPv6 addresses for IPv4-only destinations.
|
||||
//
|
||||
// You must first configure a NAT gateway in a public subnet (separate from the
|
||||
// subnet containing the IPv6-only workloads). For example, the subnet containing
|
||||
// the NAT gateway should have a 0.0.0.0/0 route pointing to the internet gateway.
|
||||
// For more information, see [Configure DNS64 and NAT64]in the Amazon VPC User Guide.
|
||||
//
|
||||
// [Configure DNS64 and NAT64]: https://docs.aws.amazon.com/vpc/latest/userguide/nat-gateway-nat64-dns64.html#nat-gateway-nat64-dns64-walkthrough
|
||||
EnableDns64 *types.AttributeBooleanValue
|
||||
|
||||
// Indicates the device position for local network interfaces in this subnet. For
|
||||
|
|
|
|||
223
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveCapacityReservationInstances.go
generated
vendored
Normal file
223
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_MoveCapacityReservationInstances.go
generated
vendored
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
// Code generated by smithy-go-codegen DO NOT EDIT.
|
||||
|
||||
package ec2
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware"
|
||||
"github.com/aws/aws-sdk-go-v2/service/ec2/types"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Move available capacity from a source Capacity Reservation to a destination
|
||||
// Capacity Reservation. The source Capacity Reservation and the destination
|
||||
// Capacity Reservation must be active , owned by your Amazon Web Services account,
|
||||
// and share the following:
|
||||
//
|
||||
// - Instance type
|
||||
//
|
||||
// - Platform
|
||||
//
|
||||
// - Availability Zone
|
||||
//
|
||||
// - Tenancy
|
||||
//
|
||||
// - Placement group
|
||||
//
|
||||
// - Capacity Reservation end time - At specific time or Manually .
|
||||
func (c *Client) MoveCapacityReservationInstances(ctx context.Context, params *MoveCapacityReservationInstancesInput, optFns ...func(*Options)) (*MoveCapacityReservationInstancesOutput, error) {
|
||||
if params == nil {
|
||||
params = &MoveCapacityReservationInstancesInput{}
|
||||
}
|
||||
|
||||
result, metadata, err := c.invokeOperation(ctx, "MoveCapacityReservationInstances", params, optFns, c.addOperationMoveCapacityReservationInstancesMiddlewares)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
out := result.(*MoveCapacityReservationInstancesOutput)
|
||||
out.ResultMetadata = metadata
|
||||
return out, nil
|
||||
}
|
||||
|
||||
type MoveCapacityReservationInstancesInput struct {
|
||||
|
||||
// The ID of the Capacity Reservation that you want to move capacity into.
|
||||
//
|
||||
// This member is required.
|
||||
DestinationCapacityReservationId *string
|
||||
|
||||
// The number of instances that you want to move from the source Capacity
|
||||
// Reservation.
|
||||
//
|
||||
// This member is required.
|
||||
InstanceCount *int32
|
||||
|
||||
// The ID of the Capacity Reservation from which you want to move capacity.
|
||||
//
|
||||
// This member is required.
|
||||
SourceCapacityReservationId *string
|
||||
|
||||
// Unique, case-sensitive identifier that you provide to ensure the idempotency of
|
||||
// the request. For more information, see [Ensure Idempotency].
|
||||
//
|
||||
// [Ensure Idempotency]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
||||
ClientToken *string
|
||||
|
||||
// Checks whether you have the required permissions for the action, without
|
||||
// actually making the request, and provides an error response. If you have the
|
||||
// required permissions, the error response is DryRunOperation . Otherwise, it is
|
||||
// UnauthorizedOperation .
|
||||
DryRun *bool
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
type MoveCapacityReservationInstancesOutput struct {
|
||||
|
||||
// Information about the destination Capacity Reservation.
|
||||
DestinationCapacityReservation *types.CapacityReservation
|
||||
|
||||
// The number of instances that were moved from the source Capacity Reservation
|
||||
// to the destination Capacity Reservation.
|
||||
InstanceCount *int32
|
||||
|
||||
// Information about the source Capacity Reservation.
|
||||
SourceCapacityReservation *types.CapacityReservation
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
ResultMetadata middleware.Metadata
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (c *Client) addOperationMoveCapacityReservationInstancesMiddlewares(stack *middleware.Stack, options Options) (err error) {
|
||||
if err := stack.Serialize.Add(&setOperationInputMiddleware{}, middleware.After); err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Serialize.Add(&awsEc2query_serializeOpMoveCapacityReservationInstances{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
err = stack.Deserialize.Add(&awsEc2query_deserializeOpMoveCapacityReservationInstances{}, middleware.After)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := addProtocolFinalizerMiddlewares(stack, options, "MoveCapacityReservationInstances"); 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 = 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 = addIdempotencyToken_opMoveCapacityReservationInstancesMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpMoveCapacityReservationInstancesValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opMoveCapacityReservationInstances(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
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type idempotencyToken_initializeOpMoveCapacityReservationInstances struct {
|
||||
tokenProvider IdempotencyTokenProvider
|
||||
}
|
||||
|
||||
func (*idempotencyToken_initializeOpMoveCapacityReservationInstances) ID() string {
|
||||
return "OperationIdempotencyTokenAutoFill"
|
||||
}
|
||||
|
||||
func (m *idempotencyToken_initializeOpMoveCapacityReservationInstances) 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.(*MoveCapacityReservationInstancesInput)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("expected middleware input to be of type *MoveCapacityReservationInstancesInput ")
|
||||
}
|
||||
|
||||
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_opMoveCapacityReservationInstancesMiddleware(stack *middleware.Stack, cfg Options) error {
|
||||
return stack.Initialize.Add(&idempotencyToken_initializeOpMoveCapacityReservationInstances{tokenProvider: cfg.IdempotencyTokenProvider}, middleware.Before)
|
||||
}
|
||||
|
||||
func newServiceMetadataMiddleware_opMoveCapacityReservationInstances(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
ServiceID: ServiceID,
|
||||
OperationName: "MoveCapacityReservationInstances",
|
||||
}
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@ type ProvisionPublicIpv4PoolCidrInput struct {
|
|||
IpamPoolId *string
|
||||
|
||||
// The netmask length of the CIDR you would like to allocate to the public IPv4
|
||||
// pool.
|
||||
// pool. The least specific netmask length you can define is 24.
|
||||
//
|
||||
// This member is required.
|
||||
NetmaskLength *int32
|
||||
|
|
|
|||
33
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go
generated
vendored
33
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_RegisterImage.go
generated
vendored
|
|
@ -13,8 +13,7 @@ import (
|
|||
|
||||
// Registers an AMI. When you're creating an instance-store backed AMI,
|
||||
// registering the AMI is the final step in the creation process. For more
|
||||
// information about creating AMIs, see [Create your own AMI]in the Amazon Elastic Compute Cloud User
|
||||
// Guide.
|
||||
// information about creating AMIs, see [Create an AMI from a snapshot]and [Create an instance-store backed AMI] in the Amazon EC2 User Guide.
|
||||
//
|
||||
// For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single
|
||||
// request, so you don't have to register the AMI yourself. We recommend that you
|
||||
|
|
@ -33,25 +32,24 @@ import (
|
|||
// mapping. If the snapshot is encrypted, or encryption by default is enabled, the
|
||||
// root volume of an instance launched from the AMI is encrypted.
|
||||
//
|
||||
// For more information, see [Create a Linux AMI from a snapshot] and [Use encryption with Amazon EBS-backed AMIs] in the Amazon Elastic Compute Cloud User Guide.
|
||||
// For more information, see [Create an AMI from a snapshot] and [Use encryption with Amazon EBS-backed AMIs] in the Amazon EC2 User Guide.
|
||||
//
|
||||
// # Amazon Web Services Marketplace product codes
|
||||
//
|
||||
// If any snapshots have Amazon Web Services Marketplace product codes, they are
|
||||
// copied to the new AMI.
|
||||
//
|
||||
// Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL)
|
||||
// and SUSE Linux Enterprise Server (SLES), use the Amazon EC2 billing product code
|
||||
// associated with an AMI to verify the subscription status for package updates. To
|
||||
// create a new AMI for operating systems that require a billing product code,
|
||||
// instead of registering the AMI, do the following to preserve the billing product
|
||||
// code association:
|
||||
//
|
||||
// - Launch an instance from an existing AMI with that billing product code.
|
||||
//
|
||||
// - Customize the instance.
|
||||
//
|
||||
// - Create an AMI from the instance using CreateImage.
|
||||
// In most cases, AMIs for Windows, RedHat, SUSE, and SQL Server require correct
|
||||
// licensing information to be present on the AMI. For more information, see [Understand AMI billing information]in
|
||||
// the Amazon EC2 User Guide. When creating an AMI from a snapshot, the
|
||||
// RegisterImage operation derives the correct billing information from the
|
||||
// snapshot's metadata, but this requires the appropriate metadata to be present.
|
||||
// To verify if the correct billing information was applied, check the
|
||||
// PlatformDetails field on the new AMI. If the field is empty or doesn't match the
|
||||
// expected operating system code (for example, Windows, RedHat, SUSE, or SQL), the
|
||||
// AMI creation was unsuccessful, and you should discard the AMI and instead create
|
||||
// the AMI from an instance using CreateImage. For more information, see [Create an AMI from an instance] in the Amazon EC2
|
||||
// User Guide.
|
||||
//
|
||||
// If you purchase a Reserved Instance to apply to an On-Demand Instance that was
|
||||
// launched from an AMI with a billing product code, make sure that the Reserved
|
||||
|
|
@ -62,9 +60,10 @@ import (
|
|||
// User Guide.
|
||||
//
|
||||
// [Understand AMI billing information]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-billing-info.html
|
||||
// [Create a Linux AMI from a snapshot]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot
|
||||
// [Create an instance-store backed AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-instance-store.html
|
||||
// [Create an AMI from an instance]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#how-to-create-ebs-ami
|
||||
// [Create an AMI from a snapshot]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html#creating-launching-ami-from-snapshot
|
||||
// [Use encryption with Amazon EBS-backed AMIs]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIEncryption.html
|
||||
// [Create your own AMI]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami.html
|
||||
func (c *Client) RegisterImage(ctx context.Context, params *RegisterImageInput, optFns ...func(*Options)) (*RegisterImageOutput, error) {
|
||||
if params == nil {
|
||||
params = &RegisterImageInput{}
|
||||
|
|
|
|||
601
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go
generated
vendored
601
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/deserializers.go
generated
vendored
|
|
@ -5037,6 +5037,97 @@ func awsEc2query_deserializeOpErrorCreateCapacityReservation(response *smithyhtt
|
|||
}
|
||||
}
|
||||
|
||||
type awsEc2query_deserializeOpCreateCapacityReservationBySplitting struct {
|
||||
}
|
||||
|
||||
func (*awsEc2query_deserializeOpCreateCapacityReservationBySplitting) ID() string {
|
||||
return "OperationDeserializer"
|
||||
}
|
||||
|
||||
func (m *awsEc2query_deserializeOpCreateCapacityReservationBySplitting) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
|
||||
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
out, metadata, err = next.HandleDeserialize(ctx, in)
|
||||
if err != nil {
|
||||
return out, metadata, err
|
||||
}
|
||||
|
||||
response, ok := out.RawResponse.(*smithyhttp.Response)
|
||||
if !ok {
|
||||
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
|
||||
}
|
||||
|
||||
if response.StatusCode < 200 || response.StatusCode >= 300 {
|
||||
return out, metadata, awsEc2query_deserializeOpErrorCreateCapacityReservationBySplitting(response, &metadata)
|
||||
}
|
||||
output := &CreateCapacityReservationBySplittingOutput{}
|
||||
out.Result = output
|
||||
|
||||
var buff [1024]byte
|
||||
ringBuffer := smithyio.NewRingBuffer(buff[:])
|
||||
body := io.TeeReader(response.Body, ringBuffer)
|
||||
rootDecoder := xml.NewDecoder(body)
|
||||
t, err := smithyxml.FetchRootElement(rootDecoder)
|
||||
if err == io.EOF {
|
||||
return out, metadata, nil
|
||||
}
|
||||
if err != nil {
|
||||
var snapshot bytes.Buffer
|
||||
io.Copy(&snapshot, ringBuffer)
|
||||
return out, metadata, &smithy.DeserializationError{
|
||||
Err: fmt.Errorf("failed to decode response body, %w", err),
|
||||
Snapshot: snapshot.Bytes(),
|
||||
}
|
||||
}
|
||||
|
||||
decoder := smithyxml.WrapNodeDecoder(rootDecoder, t)
|
||||
err = awsEc2query_deserializeOpDocumentCreateCapacityReservationBySplittingOutput(&output, decoder)
|
||||
if err != nil {
|
||||
var snapshot bytes.Buffer
|
||||
io.Copy(&snapshot, ringBuffer)
|
||||
err = &smithy.DeserializationError{
|
||||
Err: fmt.Errorf("failed to decode response body, %w", err),
|
||||
Snapshot: snapshot.Bytes(),
|
||||
}
|
||||
return out, metadata, err
|
||||
}
|
||||
|
||||
return out, metadata, err
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeOpErrorCreateCapacityReservationBySplitting(response *smithyhttp.Response, metadata *middleware.Metadata) error {
|
||||
var errorBuffer bytes.Buffer
|
||||
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
|
||||
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
|
||||
}
|
||||
errorBody := bytes.NewReader(errorBuffer.Bytes())
|
||||
|
||||
errorCode := "UnknownError"
|
||||
errorMessage := errorCode
|
||||
|
||||
errorComponents, err := ec2query.GetErrorResponseComponents(errorBody)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
|
||||
if len(errorComponents.Code) != 0 {
|
||||
errorCode = errorComponents.Code
|
||||
}
|
||||
if len(errorComponents.Message) != 0 {
|
||||
errorMessage = errorComponents.Message
|
||||
}
|
||||
errorBody.Seek(0, io.SeekStart)
|
||||
switch {
|
||||
default:
|
||||
genericError := &smithy.GenericAPIError{
|
||||
Code: errorCode,
|
||||
Message: errorMessage,
|
||||
}
|
||||
return genericError
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
type awsEc2query_deserializeOpCreateCapacityReservationFleet struct {
|
||||
}
|
||||
|
||||
|
|
@ -49799,6 +49890,97 @@ func awsEc2query_deserializeOpErrorMoveByoipCidrToIpam(response *smithyhttp.Resp
|
|||
}
|
||||
}
|
||||
|
||||
type awsEc2query_deserializeOpMoveCapacityReservationInstances struct {
|
||||
}
|
||||
|
||||
func (*awsEc2query_deserializeOpMoveCapacityReservationInstances) ID() string {
|
||||
return "OperationDeserializer"
|
||||
}
|
||||
|
||||
func (m *awsEc2query_deserializeOpMoveCapacityReservationInstances) HandleDeserialize(ctx context.Context, in middleware.DeserializeInput, next middleware.DeserializeHandler) (
|
||||
out middleware.DeserializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
out, metadata, err = next.HandleDeserialize(ctx, in)
|
||||
if err != nil {
|
||||
return out, metadata, err
|
||||
}
|
||||
|
||||
response, ok := out.RawResponse.(*smithyhttp.Response)
|
||||
if !ok {
|
||||
return out, metadata, &smithy.DeserializationError{Err: fmt.Errorf("unknown transport type %T", out.RawResponse)}
|
||||
}
|
||||
|
||||
if response.StatusCode < 200 || response.StatusCode >= 300 {
|
||||
return out, metadata, awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response, &metadata)
|
||||
}
|
||||
output := &MoveCapacityReservationInstancesOutput{}
|
||||
out.Result = output
|
||||
|
||||
var buff [1024]byte
|
||||
ringBuffer := smithyio.NewRingBuffer(buff[:])
|
||||
body := io.TeeReader(response.Body, ringBuffer)
|
||||
rootDecoder := xml.NewDecoder(body)
|
||||
t, err := smithyxml.FetchRootElement(rootDecoder)
|
||||
if err == io.EOF {
|
||||
return out, metadata, nil
|
||||
}
|
||||
if err != nil {
|
||||
var snapshot bytes.Buffer
|
||||
io.Copy(&snapshot, ringBuffer)
|
||||
return out, metadata, &smithy.DeserializationError{
|
||||
Err: fmt.Errorf("failed to decode response body, %w", err),
|
||||
Snapshot: snapshot.Bytes(),
|
||||
}
|
||||
}
|
||||
|
||||
decoder := smithyxml.WrapNodeDecoder(rootDecoder, t)
|
||||
err = awsEc2query_deserializeOpDocumentMoveCapacityReservationInstancesOutput(&output, decoder)
|
||||
if err != nil {
|
||||
var snapshot bytes.Buffer
|
||||
io.Copy(&snapshot, ringBuffer)
|
||||
err = &smithy.DeserializationError{
|
||||
Err: fmt.Errorf("failed to decode response body, %w", err),
|
||||
Snapshot: snapshot.Bytes(),
|
||||
}
|
||||
return out, metadata, err
|
||||
}
|
||||
|
||||
return out, metadata, err
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeOpErrorMoveCapacityReservationInstances(response *smithyhttp.Response, metadata *middleware.Metadata) error {
|
||||
var errorBuffer bytes.Buffer
|
||||
if _, err := io.Copy(&errorBuffer, response.Body); err != nil {
|
||||
return &smithy.DeserializationError{Err: fmt.Errorf("failed to copy error response body, %w", err)}
|
||||
}
|
||||
errorBody := bytes.NewReader(errorBuffer.Bytes())
|
||||
|
||||
errorCode := "UnknownError"
|
||||
errorMessage := errorCode
|
||||
|
||||
errorComponents, err := ec2query.GetErrorResponseComponents(errorBody)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
awsmiddleware.SetRequestIDMetadata(metadata, errorComponents.RequestID)
|
||||
if len(errorComponents.Code) != 0 {
|
||||
errorCode = errorComponents.Code
|
||||
}
|
||||
if len(errorComponents.Message) != 0 {
|
||||
errorMessage = errorComponents.Message
|
||||
}
|
||||
errorBody.Seek(0, io.SeekStart)
|
||||
switch {
|
||||
default:
|
||||
genericError := &smithy.GenericAPIError{
|
||||
Code: errorCode,
|
||||
Message: errorMessage,
|
||||
}
|
||||
return genericError
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
type awsEc2query_deserializeOpProvisionByoipCidr struct {
|
||||
}
|
||||
|
||||
|
|
@ -71760,6 +71942,208 @@ func awsEc2query_deserializeDocumentEbsOptimizedInfo(v **types.EbsOptimizedInfo,
|
|||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeDocumentEbsStatusDetails(v **types.EbsStatusDetails, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
}
|
||||
var sv *types.EbsStatusDetails
|
||||
if *v == nil {
|
||||
sv = &types.EbsStatusDetails{}
|
||||
} else {
|
||||
sv = *v
|
||||
}
|
||||
|
||||
for {
|
||||
t, done, err := decoder.Token()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if done {
|
||||
break
|
||||
}
|
||||
originalDecoder := decoder
|
||||
decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t)
|
||||
switch {
|
||||
case strings.EqualFold("impairedSince", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
t, err := smithytime.ParseDateTime(xtv)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
sv.ImpairedSince = ptr.Time(t)
|
||||
}
|
||||
|
||||
case strings.EqualFold("name", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.Name = types.StatusName(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("status", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.Status = types.StatusType(xtv)
|
||||
}
|
||||
|
||||
default:
|
||||
// Do nothing and ignore the unexpected tag element
|
||||
err = decoder.Decoder.Skip()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
}
|
||||
decoder = originalDecoder
|
||||
}
|
||||
*v = sv
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeDocumentEbsStatusDetailsList(v *[]types.EbsStatusDetails, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
}
|
||||
var sv []types.EbsStatusDetails
|
||||
if *v == nil {
|
||||
sv = make([]types.EbsStatusDetails, 0)
|
||||
} else {
|
||||
sv = *v
|
||||
}
|
||||
|
||||
originalDecoder := decoder
|
||||
for {
|
||||
t, done, err := decoder.Token()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if done {
|
||||
break
|
||||
}
|
||||
switch {
|
||||
case strings.EqualFold("item", t.Name.Local):
|
||||
var col types.EbsStatusDetails
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
destAddr := &col
|
||||
if err := awsEc2query_deserializeDocumentEbsStatusDetails(&destAddr, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
col = *destAddr
|
||||
sv = append(sv, col)
|
||||
|
||||
default:
|
||||
err = decoder.Decoder.Skip()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
}
|
||||
decoder = originalDecoder
|
||||
}
|
||||
*v = sv
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeDocumentEbsStatusDetailsListUnwrapped(v *[]types.EbsStatusDetails, decoder smithyxml.NodeDecoder) error {
|
||||
var sv []types.EbsStatusDetails
|
||||
if *v == nil {
|
||||
sv = make([]types.EbsStatusDetails, 0)
|
||||
} else {
|
||||
sv = *v
|
||||
}
|
||||
|
||||
switch {
|
||||
default:
|
||||
var mv types.EbsStatusDetails
|
||||
t := decoder.StartEl
|
||||
_ = t
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
destAddr := &mv
|
||||
if err := awsEc2query_deserializeDocumentEbsStatusDetails(&destAddr, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
mv = *destAddr
|
||||
sv = append(sv, mv)
|
||||
}
|
||||
*v = sv
|
||||
return nil
|
||||
}
|
||||
func awsEc2query_deserializeDocumentEbsStatusSummary(v **types.EbsStatusSummary, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
}
|
||||
var sv *types.EbsStatusSummary
|
||||
if *v == nil {
|
||||
sv = &types.EbsStatusSummary{}
|
||||
} else {
|
||||
sv = *v
|
||||
}
|
||||
|
||||
for {
|
||||
t, done, err := decoder.Token()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if done {
|
||||
break
|
||||
}
|
||||
originalDecoder := decoder
|
||||
decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t)
|
||||
switch {
|
||||
case strings.EqualFold("details", t.Name.Local):
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
if err := awsEc2query_deserializeDocumentEbsStatusDetailsList(&sv.Details, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
case strings.EqualFold("status", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.Status = types.SummaryStatus(xtv)
|
||||
}
|
||||
|
||||
default:
|
||||
// Do nothing and ignore the unexpected tag element
|
||||
err = decoder.Decoder.Skip()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
}
|
||||
decoder = originalDecoder
|
||||
}
|
||||
*v = sv
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeDocumentEc2InstanceConnectEndpoint(v **types.Ec2InstanceConnectEndpoint, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
|
|
@ -86923,6 +87307,12 @@ func awsEc2query_deserializeDocumentInstanceStatus(v **types.InstanceStatus, dec
|
|||
originalDecoder := decoder
|
||||
decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t)
|
||||
switch {
|
||||
case strings.EqualFold("attachedEbsStatus", t.Name.Local):
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
if err := awsEc2query_deserializeDocumentEbsStatusSummary(&sv.AttachedEbsStatus, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
case strings.EqualFold("availabilityZone", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
|
|
@ -89080,6 +89470,22 @@ func awsEc2query_deserializeDocumentIpam(v **types.Ipam, decoder smithyxml.NodeD
|
|||
sv.Description = ptr.String(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("enablePrivateGua", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv, err := strconv.ParseBool(string(val))
|
||||
if err != nil {
|
||||
return fmt.Errorf("expected Boolean to be of type *bool, got %T instead", val)
|
||||
}
|
||||
sv.EnablePrivateGua = ptr.Bool(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipamArn", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
|
|
@ -90071,6 +90477,19 @@ func awsEc2query_deserializeDocumentIpamDiscoveredResourceCidr(v **types.IpamDis
|
|||
sv.IpamResourceDiscoveryId = ptr.String(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipSource", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.IpSource = types.IpamResourceCidrIpSource(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipUsage", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
|
|
@ -123490,6 +123909,32 @@ func awsEc2query_deserializeDocumentSubnetIpv6CidrBlockAssociation(v **types.Sub
|
|||
sv.AssociationId = ptr.String(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipSource", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.IpSource = types.IpSource(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipv6AddressAttribute", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.Ipv6AddressAttribute = types.Ipv6AddressAttribute(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipv6CidrBlock", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
|
|
@ -139000,6 +139445,32 @@ func awsEc2query_deserializeDocumentVpcIpv6CidrBlockAssociation(v **types.VpcIpv
|
|||
sv.AssociationId = ptr.String(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipSource", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.IpSource = types.IpSource(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipv6AddressAttribute", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
sv.Ipv6AddressAttribute = types.Ipv6AddressAttribute(xtv)
|
||||
}
|
||||
|
||||
case strings.EqualFold("ipv6CidrBlock", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
|
|
@ -143281,6 +143752,71 @@ func awsEc2query_deserializeOpDocumentCopySnapshotOutput(v **CopySnapshotOutput,
|
|||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeOpDocumentCreateCapacityReservationBySplittingOutput(v **CreateCapacityReservationBySplittingOutput, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
}
|
||||
var sv *CreateCapacityReservationBySplittingOutput
|
||||
if *v == nil {
|
||||
sv = &CreateCapacityReservationBySplittingOutput{}
|
||||
} else {
|
||||
sv = *v
|
||||
}
|
||||
|
||||
for {
|
||||
t, done, err := decoder.Token()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if done {
|
||||
break
|
||||
}
|
||||
originalDecoder := decoder
|
||||
decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t)
|
||||
switch {
|
||||
case strings.EqualFold("destinationCapacityReservation", t.Name.Local):
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
if err := awsEc2query_deserializeDocumentCapacityReservation(&sv.DestinationCapacityReservation, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
case strings.EqualFold("instanceCount", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
i64, err := strconv.ParseInt(xtv, 10, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
sv.InstanceCount = ptr.Int32(int32(i64))
|
||||
}
|
||||
|
||||
case strings.EqualFold("sourceCapacityReservation", t.Name.Local):
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
if err := awsEc2query_deserializeDocumentCapacityReservation(&sv.SourceCapacityReservation, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
default:
|
||||
// Do nothing and ignore the unexpected tag element
|
||||
err = decoder.Decoder.Skip()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
}
|
||||
decoder = originalDecoder
|
||||
}
|
||||
*v = sv
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeOpDocumentCreateCapacityReservationFleetOutput(v **CreateCapacityReservationFleetOutput, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
|
|
@ -168431,6 +168967,71 @@ func awsEc2query_deserializeOpDocumentMoveByoipCidrToIpamOutput(v **MoveByoipCid
|
|||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeOpDocumentMoveCapacityReservationInstancesOutput(v **MoveCapacityReservationInstancesOutput, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
}
|
||||
var sv *MoveCapacityReservationInstancesOutput
|
||||
if *v == nil {
|
||||
sv = &MoveCapacityReservationInstancesOutput{}
|
||||
} else {
|
||||
sv = *v
|
||||
}
|
||||
|
||||
for {
|
||||
t, done, err := decoder.Token()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if done {
|
||||
break
|
||||
}
|
||||
originalDecoder := decoder
|
||||
decoder = smithyxml.WrapNodeDecoder(originalDecoder.Decoder, t)
|
||||
switch {
|
||||
case strings.EqualFold("destinationCapacityReservation", t.Name.Local):
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
if err := awsEc2query_deserializeDocumentCapacityReservation(&sv.DestinationCapacityReservation, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
case strings.EqualFold("instanceCount", t.Name.Local):
|
||||
val, err := decoder.Value()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if val == nil {
|
||||
break
|
||||
}
|
||||
{
|
||||
xtv := string(val)
|
||||
i64, err := strconv.ParseInt(xtv, 10, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
sv.InstanceCount = ptr.Int32(int32(i64))
|
||||
}
|
||||
|
||||
case strings.EqualFold("sourceCapacityReservation", t.Name.Local):
|
||||
nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t)
|
||||
if err := awsEc2query_deserializeDocumentCapacityReservation(&sv.SourceCapacityReservation, nodeDecoder); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
default:
|
||||
// Do nothing and ignore the unexpected tag element
|
||||
err = decoder.Decoder.Skip()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
}
|
||||
decoder = originalDecoder
|
||||
}
|
||||
*v = sv
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_deserializeOpDocumentProvisionByoipCidrOutput(v **ProvisionByoipCidrOutput, decoder smithyxml.NodeDecoder) error {
|
||||
if v == nil {
|
||||
return fmt.Errorf("unexpected nil of type %T", v)
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/generated.json
generated
vendored
|
|
@ -67,6 +67,7 @@
|
|||
"api_op_CopySnapshot.go",
|
||||
"api_op_CopySnapshot_test.go",
|
||||
"api_op_CreateCapacityReservation.go",
|
||||
"api_op_CreateCapacityReservationBySplitting.go",
|
||||
"api_op_CreateCapacityReservationFleet.go",
|
||||
"api_op_CreateCarrierGateway.go",
|
||||
"api_op_CreateClientVpnEndpoint.go",
|
||||
|
|
@ -569,6 +570,7 @@
|
|||
"api_op_MonitorInstances.go",
|
||||
"api_op_MoveAddressToVpc.go",
|
||||
"api_op_MoveByoipCidrToIpam.go",
|
||||
"api_op_MoveCapacityReservationInstances.go",
|
||||
"api_op_ProvisionByoipCidr.go",
|
||||
"api_op_ProvisionIpamByoasn.go",
|
||||
"api_op_ProvisionIpamPoolCidr.go",
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package ec2
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.173.0"
|
||||
const goModuleVersion = "1.177.0"
|
||||
|
|
|
|||
214
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go
generated
vendored
214
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/serializers.go
generated
vendored
|
|
@ -3601,6 +3601,70 @@ func (m *awsEc2query_serializeOpCreateCapacityReservation) HandleSerialize(ctx c
|
|||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
type awsEc2query_serializeOpCreateCapacityReservationBySplitting struct {
|
||||
}
|
||||
|
||||
func (*awsEc2query_serializeOpCreateCapacityReservationBySplitting) ID() string {
|
||||
return "OperationSerializer"
|
||||
}
|
||||
|
||||
func (m *awsEc2query_serializeOpCreateCapacityReservationBySplitting) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
||||
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
request, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
|
||||
}
|
||||
|
||||
input, ok := in.Parameters.(*CreateCapacityReservationBySplittingInput)
|
||||
_ = input
|
||||
if !ok {
|
||||
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
||||
}
|
||||
|
||||
operationPath := "/"
|
||||
if len(request.Request.URL.Path) == 0 {
|
||||
request.Request.URL.Path = operationPath
|
||||
} else {
|
||||
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
||||
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
||||
request.Request.URL.Path += "/"
|
||||
}
|
||||
}
|
||||
request.Request.Method = "POST"
|
||||
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
||||
if err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
|
||||
|
||||
bodyWriter := bytes.NewBuffer(nil)
|
||||
bodyEncoder := query.NewEncoder(bodyWriter)
|
||||
body := bodyEncoder.Object()
|
||||
body.Key("Action").String("CreateCapacityReservationBySplitting")
|
||||
body.Key("Version").String("2016-11-15")
|
||||
|
||||
if err := awsEc2query_serializeOpDocumentCreateCapacityReservationBySplittingInput(input, bodyEncoder.Value); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
err = bodyEncoder.Encode()
|
||||
if err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
in.Request = request
|
||||
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
type awsEc2query_serializeOpCreateCapacityReservationFleet struct {
|
||||
}
|
||||
|
||||
|
|
@ -35729,6 +35793,70 @@ func (m *awsEc2query_serializeOpMoveByoipCidrToIpam) HandleSerialize(ctx context
|
|||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
type awsEc2query_serializeOpMoveCapacityReservationInstances struct {
|
||||
}
|
||||
|
||||
func (*awsEc2query_serializeOpMoveCapacityReservationInstances) ID() string {
|
||||
return "OperationSerializer"
|
||||
}
|
||||
|
||||
func (m *awsEc2query_serializeOpMoveCapacityReservationInstances) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) (
|
||||
out middleware.SerializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
request, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown transport type %T", in.Request)}
|
||||
}
|
||||
|
||||
input, ok := in.Parameters.(*MoveCapacityReservationInstancesInput)
|
||||
_ = input
|
||||
if !ok {
|
||||
return out, metadata, &smithy.SerializationError{Err: fmt.Errorf("unknown input parameters type %T", in.Parameters)}
|
||||
}
|
||||
|
||||
operationPath := "/"
|
||||
if len(request.Request.URL.Path) == 0 {
|
||||
request.Request.URL.Path = operationPath
|
||||
} else {
|
||||
request.Request.URL.Path = path.Join(request.Request.URL.Path, operationPath)
|
||||
if request.Request.URL.Path != "/" && operationPath[len(operationPath)-1] == '/' {
|
||||
request.Request.URL.Path += "/"
|
||||
}
|
||||
}
|
||||
request.Request.Method = "POST"
|
||||
httpBindingEncoder, err := httpbinding.NewEncoder(request.URL.Path, request.URL.RawQuery, request.Header)
|
||||
if err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
httpBindingEncoder.SetHeader("Content-Type").String("application/x-www-form-urlencoded")
|
||||
|
||||
bodyWriter := bytes.NewBuffer(nil)
|
||||
bodyEncoder := query.NewEncoder(bodyWriter)
|
||||
body := bodyEncoder.Object()
|
||||
body.Key("Action").String("MoveCapacityReservationInstances")
|
||||
body.Key("Version").String("2016-11-15")
|
||||
|
||||
if err := awsEc2query_serializeOpDocumentMoveCapacityReservationInstancesInput(input, bodyEncoder.Value); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
err = bodyEncoder.Encode()
|
||||
if err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
if request, err = request.SetStream(bytes.NewReader(bodyWriter.Bytes())); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
|
||||
if request.Request, err = httpBindingEncoder.Encode(request.Request); err != nil {
|
||||
return out, metadata, &smithy.SerializationError{Err: err}
|
||||
}
|
||||
in.Request = request
|
||||
|
||||
return next.HandleSerialize(ctx, in)
|
||||
}
|
||||
|
||||
type awsEc2query_serializeOpProvisionByoipCidr struct {
|
||||
}
|
||||
|
||||
|
|
@ -50093,6 +50221,11 @@ func awsEc2query_serializeOpDocumentAllocateAddressInput(v *AllocateAddressInput
|
|||
objectKey.Boolean(*v.DryRun)
|
||||
}
|
||||
|
||||
if v.IpamPoolId != nil {
|
||||
objectKey := object.Key("IpamPoolId")
|
||||
objectKey.String(*v.IpamPoolId)
|
||||
}
|
||||
|
||||
if v.NetworkBorderGroup != nil {
|
||||
objectKey := object.Key("NetworkBorderGroup")
|
||||
objectKey.String(*v.NetworkBorderGroup)
|
||||
|
|
@ -51556,6 +51689,40 @@ func awsEc2query_serializeOpDocumentCopySnapshotInput(v *CopySnapshotInput, valu
|
|||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_serializeOpDocumentCreateCapacityReservationBySplittingInput(v *CreateCapacityReservationBySplittingInput, value query.Value) error {
|
||||
object := value.Object()
|
||||
_ = object
|
||||
|
||||
if v.ClientToken != nil {
|
||||
objectKey := object.Key("ClientToken")
|
||||
objectKey.String(*v.ClientToken)
|
||||
}
|
||||
|
||||
if v.DryRun != nil {
|
||||
objectKey := object.Key("DryRun")
|
||||
objectKey.Boolean(*v.DryRun)
|
||||
}
|
||||
|
||||
if v.InstanceCount != nil {
|
||||
objectKey := object.Key("InstanceCount")
|
||||
objectKey.Integer(*v.InstanceCount)
|
||||
}
|
||||
|
||||
if v.SourceCapacityReservationId != nil {
|
||||
objectKey := object.Key("SourceCapacityReservationId")
|
||||
objectKey.String(*v.SourceCapacityReservationId)
|
||||
}
|
||||
|
||||
if v.TagSpecifications != nil {
|
||||
objectKey := object.FlatKey("TagSpecification")
|
||||
if err := awsEc2query_serializeDocumentTagSpecificationList(v.TagSpecifications, objectKey); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_serializeOpDocumentCreateCapacityReservationFleetInput(v *CreateCapacityReservationFleetInput, value query.Value) error {
|
||||
object := value.Object()
|
||||
_ = object
|
||||
|
|
@ -52511,6 +52678,11 @@ func awsEc2query_serializeOpDocumentCreateIpamInput(v *CreateIpamInput, value qu
|
|||
objectKey.Boolean(*v.DryRun)
|
||||
}
|
||||
|
||||
if v.EnablePrivateGua != nil {
|
||||
objectKey := object.Key("EnablePrivateGua")
|
||||
objectKey.Boolean(*v.EnablePrivateGua)
|
||||
}
|
||||
|
||||
if v.OperatingRegions != nil {
|
||||
objectKey := object.FlatKey("OperatingRegion")
|
||||
if err := awsEc2query_serializeDocumentAddIpamOperatingRegionSet(v.OperatingRegions, objectKey); err != nil {
|
||||
|
|
@ -65166,6 +65338,11 @@ func awsEc2query_serializeOpDocumentModifyCapacityReservationInput(v *ModifyCapa
|
|||
objectKey.Integer(*v.InstanceCount)
|
||||
}
|
||||
|
||||
if len(v.InstanceMatchCriteria) > 0 {
|
||||
objectKey := object.Key("InstanceMatchCriteria")
|
||||
objectKey.String(string(v.InstanceMatchCriteria))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -65958,6 +66135,11 @@ func awsEc2query_serializeOpDocumentModifyIpamInput(v *ModifyIpamInput, value qu
|
|||
objectKey.Boolean(*v.DryRun)
|
||||
}
|
||||
|
||||
if v.EnablePrivateGua != nil {
|
||||
objectKey := object.Key("EnablePrivateGua")
|
||||
objectKey.Boolean(*v.EnablePrivateGua)
|
||||
}
|
||||
|
||||
if v.IpamId != nil {
|
||||
objectKey := object.Key("IpamId")
|
||||
objectKey.String(*v.IpamId)
|
||||
|
|
@ -67696,6 +67878,38 @@ func awsEc2query_serializeOpDocumentMoveByoipCidrToIpamInput(v *MoveByoipCidrToI
|
|||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_serializeOpDocumentMoveCapacityReservationInstancesInput(v *MoveCapacityReservationInstancesInput, value query.Value) error {
|
||||
object := value.Object()
|
||||
_ = object
|
||||
|
||||
if v.ClientToken != nil {
|
||||
objectKey := object.Key("ClientToken")
|
||||
objectKey.String(*v.ClientToken)
|
||||
}
|
||||
|
||||
if v.DestinationCapacityReservationId != nil {
|
||||
objectKey := object.Key("DestinationCapacityReservationId")
|
||||
objectKey.String(*v.DestinationCapacityReservationId)
|
||||
}
|
||||
|
||||
if v.DryRun != nil {
|
||||
objectKey := object.Key("DryRun")
|
||||
objectKey.Boolean(*v.DryRun)
|
||||
}
|
||||
|
||||
if v.InstanceCount != nil {
|
||||
objectKey := object.Key("InstanceCount")
|
||||
objectKey.Integer(*v.InstanceCount)
|
||||
}
|
||||
|
||||
if v.SourceCapacityReservationId != nil {
|
||||
objectKey := object.Key("SourceCapacityReservationId")
|
||||
objectKey.String(*v.SourceCapacityReservationId)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func awsEc2query_serializeOpDocumentProvisionByoipCidrInput(v *ProvisionByoipCidrInput, value query.Value) error {
|
||||
object := value.Object()
|
||||
_ = object
|
||||
|
|
|
|||
65
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go
generated
vendored
65
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/enums.go
generated
vendored
|
|
@ -5061,6 +5061,7 @@ const (
|
|||
IpamPoolAllocationResourceTypeEc2PublicIpv4Pool IpamPoolAllocationResourceType = "ec2-public-ipv4-pool"
|
||||
IpamPoolAllocationResourceTypeCustom IpamPoolAllocationResourceType = "custom"
|
||||
IpamPoolAllocationResourceTypeSubnet IpamPoolAllocationResourceType = "subnet"
|
||||
IpamPoolAllocationResourceTypeEip IpamPoolAllocationResourceType = "eip"
|
||||
)
|
||||
|
||||
// Values returns all known values for IpamPoolAllocationResourceType. Note that
|
||||
|
|
@ -5075,6 +5076,7 @@ func (IpamPoolAllocationResourceType) Values() []IpamPoolAllocationResourceType
|
|||
"ec2-public-ipv4-pool",
|
||||
"custom",
|
||||
"subnet",
|
||||
"eip",
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5280,6 +5282,7 @@ const (
|
|||
IpamPublicAddressTypeServiceManagedIp IpamPublicAddressType = "service-managed-ip"
|
||||
IpamPublicAddressTypeServiceManagedByoip IpamPublicAddressType = "service-managed-byoip"
|
||||
IpamPublicAddressTypeAmazonOwnedEip IpamPublicAddressType = "amazon-owned-eip"
|
||||
IpamPublicAddressTypeAmazonOwnedContig IpamPublicAddressType = "amazon-owned-contig"
|
||||
IpamPublicAddressTypeByoip IpamPublicAddressType = "byoip"
|
||||
IpamPublicAddressTypeEc2PublicIp IpamPublicAddressType = "ec2-public-ip"
|
||||
)
|
||||
|
|
@ -5293,11 +5296,33 @@ func (IpamPublicAddressType) Values() []IpamPublicAddressType {
|
|||
"service-managed-ip",
|
||||
"service-managed-byoip",
|
||||
"amazon-owned-eip",
|
||||
"amazon-owned-contig",
|
||||
"byoip",
|
||||
"ec2-public-ip",
|
||||
}
|
||||
}
|
||||
|
||||
type IpamResourceCidrIpSource string
|
||||
|
||||
// Enum values for IpamResourceCidrIpSource
|
||||
const (
|
||||
IpamResourceCidrIpSourceAmazon IpamResourceCidrIpSource = "amazon"
|
||||
IpamResourceCidrIpSourceByoip IpamResourceCidrIpSource = "byoip"
|
||||
IpamResourceCidrIpSourceNone IpamResourceCidrIpSource = "none"
|
||||
)
|
||||
|
||||
// Values returns all known values for IpamResourceCidrIpSource. 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 (IpamResourceCidrIpSource) Values() []IpamResourceCidrIpSource {
|
||||
return []IpamResourceCidrIpSource{
|
||||
"amazon",
|
||||
"byoip",
|
||||
"none",
|
||||
}
|
||||
}
|
||||
|
||||
type IpamResourceDiscoveryAssociationState string
|
||||
|
||||
// Enum values for IpamResourceDiscoveryAssociationState
|
||||
|
|
@ -5514,6 +5539,46 @@ func (IpamTier) Values() []IpamTier {
|
|||
}
|
||||
}
|
||||
|
||||
type IpSource string
|
||||
|
||||
// Enum values for IpSource
|
||||
const (
|
||||
IpSourceAmazon IpSource = "amazon"
|
||||
IpSourceByoip IpSource = "byoip"
|
||||
IpSourceNone IpSource = "none"
|
||||
)
|
||||
|
||||
// Values returns all known values for IpSource. 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 (IpSource) Values() []IpSource {
|
||||
return []IpSource{
|
||||
"amazon",
|
||||
"byoip",
|
||||
"none",
|
||||
}
|
||||
}
|
||||
|
||||
type Ipv6AddressAttribute string
|
||||
|
||||
// Enum values for Ipv6AddressAttribute
|
||||
const (
|
||||
Ipv6AddressAttributePublic Ipv6AddressAttribute = "public"
|
||||
Ipv6AddressAttributePrivate Ipv6AddressAttribute = "private"
|
||||
)
|
||||
|
||||
// Values returns all known values for Ipv6AddressAttribute. 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 (Ipv6AddressAttribute) Values() []Ipv6AddressAttribute {
|
||||
return []Ipv6AddressAttribute{
|
||||
"public",
|
||||
"private",
|
||||
}
|
||||
}
|
||||
|
||||
type Ipv6SupportValue string
|
||||
|
||||
// Enum values for Ipv6SupportValue
|
||||
|
|
|
|||
92
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go
generated
vendored
92
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/types/types.go
generated
vendored
|
|
@ -474,7 +474,7 @@ type AnalysisRouteTableRoute struct {
|
|||
// The destination IPv4 address, in CIDR notation.
|
||||
DestinationCidr *string
|
||||
|
||||
// The prefix of the Amazon Web Service.
|
||||
// The prefix of the Amazon Web Services service.
|
||||
DestinationPrefixListId *string
|
||||
|
||||
// The ID of an egress-only internet gateway.
|
||||
|
|
@ -2679,8 +2679,7 @@ type DataQuery struct {
|
|||
// in the query, the dataResponse identifies the query as MyQuery01 .
|
||||
Id *string
|
||||
|
||||
// The metric, aggregation-latency , indicating that network latency is aggregated
|
||||
// for the query. This is the only supported metric.
|
||||
// The metric used for the network performance request.
|
||||
Metric MetricType
|
||||
|
||||
// The aggregation period used for the data query.
|
||||
|
|
@ -2708,8 +2707,7 @@ type DataResponse struct {
|
|||
// The ID passed in the DataQuery .
|
||||
Id *string
|
||||
|
||||
// The metric used for the network performance request. Only aggregate-latency is
|
||||
// supported, which shows network latency during a specified period.
|
||||
// The metric used for the network performance request.
|
||||
Metric MetricType
|
||||
|
||||
// A list of MetricPoint objects.
|
||||
|
|
@ -3508,6 +3506,33 @@ type EbsOptimizedInfo struct {
|
|||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Describes the attached EBS status check for an instance.
|
||||
type EbsStatusDetails struct {
|
||||
|
||||
// The date and time when the attached EBS status check failed.
|
||||
ImpairedSince *time.Time
|
||||
|
||||
// The name of the attached EBS status check.
|
||||
Name StatusName
|
||||
|
||||
// The result of the attached EBS status check.
|
||||
Status StatusType
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// Provides a summary of the attached EBS volume status for an instance.
|
||||
type EbsStatusSummary struct {
|
||||
|
||||
// Details about the attached EBS status check for an instance.
|
||||
Details []EbsStatusDetails
|
||||
|
||||
// The current status.
|
||||
Status SummaryStatus
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
// The EC2 Instance Connect Endpoint.
|
||||
type Ec2InstanceConnectEndpoint struct {
|
||||
|
||||
|
|
@ -7942,6 +7967,10 @@ type InstanceStateChange struct {
|
|||
// Describes the status of an instance.
|
||||
type InstanceStatus struct {
|
||||
|
||||
// Reports impaired functionality that stems from an attached Amazon EBS volume
|
||||
// that is unreachable and unable to complete I/O operations.
|
||||
AttachedEbsStatus *EbsStatusSummary
|
||||
|
||||
// The Availability Zone of the instance.
|
||||
AvailabilityZone *string
|
||||
|
||||
|
|
@ -8290,6 +8319,10 @@ type Ipam struct {
|
|||
// The description for the IPAM.
|
||||
Description *string
|
||||
|
||||
// Enable this option to use your own GUA ranges as private IPv6 addresses. This
|
||||
// option is disabled by default.
|
||||
EnablePrivateGua *bool
|
||||
|
||||
// The Amazon Resource Name (ARN) of the IPAM.
|
||||
IpamArn *string
|
||||
|
||||
|
|
@ -8521,6 +8554,11 @@ type IpamDiscoveredResourceCidr struct {
|
|||
// The Availability Zone ID.
|
||||
AvailabilityZoneId *string
|
||||
|
||||
// The source that allocated the IP address space. byoip or amazon indicates
|
||||
// public IP address space allocated by Amazon or space that you have allocated
|
||||
// with Bring your own IP (BYOIP). none indicates private space.
|
||||
IpSource IpamResourceCidrIpSource
|
||||
|
||||
// The percentage of IP address space in use. To convert the decimal to a
|
||||
// percentage, multiply the decimal by 100. Note the following:
|
||||
//
|
||||
|
|
@ -11257,9 +11295,19 @@ type ModifyTransitGatewayOptions struct {
|
|||
// The range is 64512 to 65534 for 16-bit ASNs and 4200000000 to 4294967294 for
|
||||
// 32-bit ASNs.
|
||||
//
|
||||
// The modify ASN operation is not allowed on a transit gateway with active BGP
|
||||
// sessions. You must first delete all transit gateway attachments that have BGP
|
||||
// configured prior to modifying the ASN on the transit gateway.
|
||||
// The modify ASN operation is not allowed on a transit gateway if it has the
|
||||
// following attachments:
|
||||
//
|
||||
// - Dynamic VPN
|
||||
//
|
||||
// - Static VPN
|
||||
//
|
||||
// - Direct Connect Gateway
|
||||
//
|
||||
// - Connect
|
||||
//
|
||||
// You must first delete all transit gateway attachments configured prior to
|
||||
// modifying the ASN on the transit gateway.
|
||||
AmazonSideAsn *int64
|
||||
|
||||
// The ID of the default association route table.
|
||||
|
|
@ -12295,7 +12343,7 @@ type NetworkInterfacePermission struct {
|
|||
// The Amazon Web Services account ID.
|
||||
AwsAccountId *string
|
||||
|
||||
// The Amazon Web Service.
|
||||
// The Amazon Web Services service.
|
||||
AwsService *string
|
||||
|
||||
// The ID of the network interface.
|
||||
|
|
@ -13080,7 +13128,7 @@ type PortRange struct {
|
|||
// Describes prefixes for Amazon Web Services services.
|
||||
type PrefixList struct {
|
||||
|
||||
// The IP address range of the Amazon Web Service.
|
||||
// The IP address range of the Amazon Web Services service.
|
||||
Cidrs []string
|
||||
|
||||
// The ID of the prefix.
|
||||
|
|
@ -13739,7 +13787,7 @@ type RequestLaunchTemplateData struct {
|
|||
// The name or Amazon Resource Name (ARN) of an IAM instance profile.
|
||||
IamInstanceProfile *LaunchTemplateIamInstanceProfileSpecificationRequest
|
||||
|
||||
// The ID of the AMI in the format ami-17characters00000 .
|
||||
// The ID of the AMI in the format ami-0ac394d6a3example .
|
||||
//
|
||||
// Alternatively, you can specify a Systems Manager parameter, using one of the
|
||||
// following formats. The Systems Manager parameter will resolve to an AMI ID on
|
||||
|
|
@ -14542,7 +14590,7 @@ type Route struct {
|
|||
// The IPv6 CIDR block used for the destination match.
|
||||
DestinationIpv6CidrBlock *string
|
||||
|
||||
// The prefix of the Amazon Web Service.
|
||||
// The prefix of the Amazon Web Services service.
|
||||
DestinationPrefixListId *string
|
||||
|
||||
// The ID of the egress-only internet gateway.
|
||||
|
|
@ -17071,6 +17119,16 @@ type SubnetIpv6CidrBlockAssociation struct {
|
|||
// The ID of the association.
|
||||
AssociationId *string
|
||||
|
||||
// The source that allocated the IP address space. byoip or amazon indicates
|
||||
// public IP address space allocated by Amazon or space that you have allocated
|
||||
// with Bring your own IP (BYOIP). none indicates private space.
|
||||
IpSource IpSource
|
||||
|
||||
// Public IPv6 addresses are those advertised on the internet from Amazon Web
|
||||
// Services. Private IP addresses are not and cannot be advertised on the internet
|
||||
// from Amazon Web Services.
|
||||
Ipv6AddressAttribute Ipv6AddressAttribute
|
||||
|
||||
// The IPv6 CIDR block.
|
||||
Ipv6CidrBlock *string
|
||||
|
||||
|
|
@ -19790,6 +19848,16 @@ type VpcIpv6CidrBlockAssociation struct {
|
|||
// The association ID for the IPv6 CIDR block.
|
||||
AssociationId *string
|
||||
|
||||
// The source that allocated the IP address space. byoip or amazon indicates
|
||||
// public IP address space allocated by Amazon or space that you have allocated
|
||||
// with Bring your own IP (BYOIP). none indicates private space.
|
||||
IpSource IpSource
|
||||
|
||||
// Public IPv6 addresses are those advertised on the internet from Amazon Web
|
||||
// Services. Private IP addresses are not and cannot be advertised on the internet
|
||||
// from Amazon Web Services.
|
||||
Ipv6AddressAttribute Ipv6AddressAttribute
|
||||
|
||||
// The IPv6 CIDR block.
|
||||
Ipv6CidrBlock *string
|
||||
|
||||
|
|
|
|||
87
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go
generated
vendored
87
vendor/github.com/aws/aws-sdk-go-v2/service/ec2/validators.go
generated
vendored
|
|
@ -1010,6 +1010,26 @@ func (m *validateOpCopySnapshot) HandleInitialize(ctx context.Context, in middle
|
|||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
type validateOpCreateCapacityReservationBySplitting struct {
|
||||
}
|
||||
|
||||
func (*validateOpCreateCapacityReservationBySplitting) ID() string {
|
||||
return "OperationInputValidation"
|
||||
}
|
||||
|
||||
func (m *validateOpCreateCapacityReservationBySplitting) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
input, ok := in.Parameters.(*CreateCapacityReservationBySplittingInput)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
|
||||
}
|
||||
if err := validateOpCreateCapacityReservationBySplittingInput(input); err != nil {
|
||||
return out, metadata, err
|
||||
}
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
type validateOpCreateCapacityReservationFleet struct {
|
||||
}
|
||||
|
||||
|
|
@ -7570,6 +7590,26 @@ func (m *validateOpMoveByoipCidrToIpam) HandleInitialize(ctx context.Context, in
|
|||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
type validateOpMoveCapacityReservationInstances struct {
|
||||
}
|
||||
|
||||
func (*validateOpMoveCapacityReservationInstances) ID() string {
|
||||
return "OperationInputValidation"
|
||||
}
|
||||
|
||||
func (m *validateOpMoveCapacityReservationInstances) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
|
||||
out middleware.InitializeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
input, ok := in.Parameters.(*MoveCapacityReservationInstancesInput)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
|
||||
}
|
||||
if err := validateOpMoveCapacityReservationInstancesInput(input); err != nil {
|
||||
return out, metadata, err
|
||||
}
|
||||
return next.HandleInitialize(ctx, in)
|
||||
}
|
||||
|
||||
type validateOpProvisionByoipCidr struct {
|
||||
}
|
||||
|
||||
|
|
@ -8990,6 +9030,10 @@ func addOpCopySnapshotValidationMiddleware(stack *middleware.Stack) error {
|
|||
return stack.Initialize.Add(&validateOpCopySnapshot{}, middleware.After)
|
||||
}
|
||||
|
||||
func addOpCreateCapacityReservationBySplittingValidationMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Initialize.Add(&validateOpCreateCapacityReservationBySplitting{}, middleware.After)
|
||||
}
|
||||
|
||||
func addOpCreateCapacityReservationFleetValidationMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Initialize.Add(&validateOpCreateCapacityReservationFleet{}, middleware.After)
|
||||
}
|
||||
|
|
@ -10302,6 +10346,10 @@ func addOpMoveByoipCidrToIpamValidationMiddleware(stack *middleware.Stack) error
|
|||
return stack.Initialize.Add(&validateOpMoveByoipCidrToIpam{}, middleware.After)
|
||||
}
|
||||
|
||||
func addOpMoveCapacityReservationInstancesValidationMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Initialize.Add(&validateOpMoveCapacityReservationInstances{}, middleware.After)
|
||||
}
|
||||
|
||||
func addOpProvisionByoipCidrValidationMiddleware(stack *middleware.Stack) error {
|
||||
return stack.Initialize.Add(&validateOpProvisionByoipCidr{}, middleware.After)
|
||||
}
|
||||
|
|
@ -12289,6 +12337,24 @@ func validateOpCopySnapshotInput(v *CopySnapshotInput) error {
|
|||
}
|
||||
}
|
||||
|
||||
func validateOpCreateCapacityReservationBySplittingInput(v *CreateCapacityReservationBySplittingInput) error {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
invalidParams := smithy.InvalidParamsError{Context: "CreateCapacityReservationBySplittingInput"}
|
||||
if v.SourceCapacityReservationId == nil {
|
||||
invalidParams.Add(smithy.NewErrParamRequired("SourceCapacityReservationId"))
|
||||
}
|
||||
if v.InstanceCount == nil {
|
||||
invalidParams.Add(smithy.NewErrParamRequired("InstanceCount"))
|
||||
}
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func validateOpCreateCapacityReservationFleetInput(v *CreateCapacityReservationFleetInput) error {
|
||||
if v == nil {
|
||||
return nil
|
||||
|
|
@ -17761,6 +17827,27 @@ func validateOpMoveByoipCidrToIpamInput(v *MoveByoipCidrToIpamInput) error {
|
|||
}
|
||||
}
|
||||
|
||||
func validateOpMoveCapacityReservationInstancesInput(v *MoveCapacityReservationInstancesInput) error {
|
||||
if v == nil {
|
||||
return nil
|
||||
}
|
||||
invalidParams := smithy.InvalidParamsError{Context: "MoveCapacityReservationInstancesInput"}
|
||||
if v.SourceCapacityReservationId == nil {
|
||||
invalidParams.Add(smithy.NewErrParamRequired("SourceCapacityReservationId"))
|
||||
}
|
||||
if v.DestinationCapacityReservationId == nil {
|
||||
invalidParams.Add(smithy.NewErrParamRequired("DestinationCapacityReservationId"))
|
||||
}
|
||||
if v.InstanceCount == nil {
|
||||
invalidParams.Add(smithy.NewErrParamRequired("InstanceCount"))
|
||||
}
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func validateOpProvisionByoipCidrInput(v *ProvisionByoipCidrInput) error {
|
||||
if v == nil {
|
||||
return nil
|
||||
|
|
|
|||
4
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md
generated
vendored
4
vendor/github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,7 @@
|
|||
# v1.11.4 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
|
||||
# v1.11.3 (2024-06-28)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
package acceptencoding
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.11.3"
|
||||
const goModuleVersion = "1.11.4"
|
||||
|
|
|
|||
53
vendor/github.com/aws/aws-sdk-go-v2/service/internal/checksum/CHANGELOG.md
generated
vendored
53
vendor/github.com/aws/aws-sdk-go-v2/service/internal/checksum/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,56 @@
|
|||
# v1.3.18 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.17 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.16 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.15 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.14 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.13 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.12 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.11 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.10 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.9 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.8 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.7 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.6 (2024-03-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.3.5 (2024-03-07)
|
||||
|
||||
* **Bug Fix**: Remove dependency on go-cmp.
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/service/internal/checksum/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/internal/checksum/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package checksum
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.3.5"
|
||||
const goModuleVersion = "1.3.18"
|
||||
|
|
|
|||
5
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md
generated
vendored
5
vendor/github.com/aws/aws-sdk-go-v2/service/internal/presigned-url/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,8 @@
|
|||
# v1.11.18 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.11.17 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
package presignedurl
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.11.17"
|
||||
const goModuleVersion = "1.11.18"
|
||||
|
|
|
|||
53
vendor/github.com/aws/aws-sdk-go-v2/service/internal/s3shared/CHANGELOG.md
generated
vendored
53
vendor/github.com/aws/aws-sdk-go-v2/service/internal/s3shared/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,56 @@
|
|||
# v1.17.16 (2024-08-15)
|
||||
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.15 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.14 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.13 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.12 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.11 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.10 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.9 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.8 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.7 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.6 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.5 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.4 (2024-03-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.17.3 (2024-03-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/service/internal/s3shared/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/internal/s3shared/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package s3shared
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.17.3"
|
||||
const goModuleVersion = "1.17.16"
|
||||
|
|
|
|||
106
vendor/github.com/aws/aws-sdk-go-v2/service/s3/CHANGELOG.md
generated
vendored
106
vendor/github.com/aws/aws-sdk-go-v2/service/s3/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,109 @@
|
|||
# v1.61.0 (2024-08-28)
|
||||
|
||||
* **Feature**: Add presignPost for s3 PutObject
|
||||
|
||||
# v1.60.1 (2024-08-22)
|
||||
|
||||
* No change notes available for this release.
|
||||
|
||||
# v1.60.0 (2024-08-20)
|
||||
|
||||
* **Feature**: Amazon Simple Storage Service / Features : Add support for conditional writes for PutObject and CompleteMultipartUpload APIs.
|
||||
|
||||
# v1.59.0 (2024-08-15)
|
||||
|
||||
* **Feature**: Amazon Simple Storage Service / Features : Adds support for pagination in the S3 ListBuckets API.
|
||||
* **Dependency Update**: Bump minimum Go version to 1.21.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.58.3 (2024-08-02)
|
||||
|
||||
* **Bug Fix**: Add assurance tests for auth scheme selection logic.
|
||||
|
||||
# v1.58.2 (2024-07-10.2)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.58.1 (2024-07-10)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.58.0 (2024-07-02)
|
||||
|
||||
* **Feature**: Added response overrides to Head Object requests.
|
||||
|
||||
# v1.57.1 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.57.0 (2024-06-26)
|
||||
|
||||
* **Feature**: Support list-of-string endpoint parameter.
|
||||
|
||||
# v1.56.1 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.56.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.55.2 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.55.1 (2024-06-07)
|
||||
|
||||
* **Bug Fix**: Add clock skew correction on all service clients
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.55.0 (2024-06-05)
|
||||
|
||||
* **Feature**: Added new params copySource and key to copyObject API for supporting S3 Access Grants plugin. These changes will not change any of the existing S3 API functionality.
|
||||
* **Bug Fix**: Add S3-specific smithy protocol tests.
|
||||
|
||||
# v1.54.4 (2024-06-03)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.54.3 (2024-05-23)
|
||||
|
||||
* **Bug Fix**: Prevent parsing failures for nonstandard `Expires` values in responses. If the SDK cannot parse the value set in the response header for this field it will now be returned as `nil`. A new field, `ExpiresString`, has been added that will retain the unparsed value from the response (regardless of whether it came back in a format recognized by the SDK).
|
||||
|
||||
# v1.54.2 (2024-05-16)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.54.1 (2024-05-15)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.54.0 (2024-05-14)
|
||||
|
||||
* **Feature**: Updated a few x-id in the http uri traits
|
||||
|
||||
# v1.53.2 (2024-05-08)
|
||||
|
||||
* **Bug Fix**: GoDoc improvement
|
||||
|
||||
# v1.53.1 (2024-03-29)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.53.0 (2024-03-18)
|
||||
|
||||
* **Feature**: Fix two issues with response root node names.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.52.1 (2024-03-15)
|
||||
|
||||
* **Documentation**: Documentation updates for Amazon S3.
|
||||
|
||||
# v1.52.0 (2024-03-13)
|
||||
|
||||
* **Feature**: This release makes the default option for S3 on Outposts request signing to use the SigV4A algorithm when using AWS Common Runtime (CRT).
|
||||
|
||||
# v1.51.4 (2024-03-07)
|
||||
|
||||
* **Bug Fix**: Remove dependency on go-cmp.
|
||||
|
|
|
|||
108
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_client.go
generated
vendored
108
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_client.go
generated
vendored
|
|
@ -14,6 +14,7 @@ import (
|
|||
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"
|
||||
"github.com/aws/aws-sdk-go-v2/internal/v4a"
|
||||
acceptencodingcust "github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding"
|
||||
internalChecksum "github.com/aws/aws-sdk-go-v2/service/internal/checksum"
|
||||
|
|
@ -22,12 +23,14 @@ import (
|
|||
s3sharedconfig "github.com/aws/aws-sdk-go-v2/service/internal/s3shared/config"
|
||||
s3cust "github.com/aws/aws-sdk-go-v2/service/s3/internal/customizations"
|
||||
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/middleware"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
"net"
|
||||
"net/http"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
@ -38,6 +41,9 @@ const ServiceAPIVersion = "2006-03-01"
|
|||
// Storage Service.
|
||||
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
|
||||
|
|
@ -82,6 +88,8 @@ func New(options Options, optFns ...func(*Options)) *Client {
|
|||
|
||||
finalizeExpressCredentials(&options, client)
|
||||
|
||||
initializeTimeOffsetResolver(client)
|
||||
|
||||
return client
|
||||
}
|
||||
|
||||
|
|
@ -259,15 +267,16 @@ func setResolvedDefaultsMode(o *Options) {
|
|||
// 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,
|
||||
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,
|
||||
AccountIDEndpointMode: cfg.AccountIDEndpointMode,
|
||||
}
|
||||
resolveAWSRetryerProvider(cfg, &opts)
|
||||
resolveAWSRetryMaxAttempts(cfg, &opts)
|
||||
|
|
@ -475,6 +484,30 @@ 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 addRetry(stack *middleware.Stack, o Options) error {
|
||||
attempt := retry.NewAttemptMiddleware(o.Retryer, smithyhttp.RequestCloner, func(m *retry.Attempt) {
|
||||
m.LogAttempts = o.ClientLogMode.IsRetries()
|
||||
|
|
@ -548,6 +581,18 @@ func resolveUseFIPSEndpoint(cfg aws.Config, o *Options) error {
|
|||
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
|
||||
}
|
||||
|
||||
type httpSignerV4a interface {
|
||||
SignHTTP(ctx context.Context, credentials v4a.Credentials, r *http.Request, payloadHash,
|
||||
service string, regionSet []string, signingTime time.Time,
|
||||
|
|
@ -568,6 +613,51 @@ func newDefaultV4aSigner(o Options) *v4a.Signer {
|
|||
})
|
||||
}
|
||||
|
||||
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 checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error {
|
||||
switch mode {
|
||||
case aws.AccountIDEndpointModeUnset:
|
||||
case aws.AccountIDEndpointModePreferred:
|
||||
case aws.AccountIDEndpointModeDisabled:
|
||||
case aws.AccountIDEndpointModeRequired:
|
||||
if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok {
|
||||
return fmt.Errorf("accountID is required but not set")
|
||||
} else if ca.Credentials.AccountID == "" {
|
||||
return fmt.Errorf("accountID is required but not set")
|
||||
}
|
||||
// default check in case invalid mode is configured through request config
|
||||
default:
|
||||
return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
func addMetadataRetrieverMiddleware(stack *middleware.Stack) error {
|
||||
return s3shared.AddMetadataRetrieverMiddleware(stack)
|
||||
}
|
||||
|
|
|
|||
144
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_AbortMultipartUpload.go
generated
vendored
144
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_AbortMultipartUpload.go
generated
vendored
|
|
@ -18,22 +18,34 @@ import (
|
|||
// by any previously uploaded parts will be freed. However, if any part uploads are
|
||||
// currently in progress, those part uploads might or might not succeed. As a
|
||||
// result, it might be necessary to abort a given multipart upload multiple times
|
||||
// in order to completely free all storage consumed by all parts. To verify that
|
||||
// all parts have been removed and prevent getting charged for the part storage,
|
||||
// you should call the ListParts (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html)
|
||||
// API operation and ensure that the parts list is empty. Directory buckets - For
|
||||
// directory buckets, you must make requests for this API operation to the Zonal
|
||||
// endpoint. These endpoints support virtual-hosted-style requests in the format
|
||||
// https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style
|
||||
// requests are not supported. For more information, see Regional and Zonal
|
||||
// endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide. Permissions
|
||||
// in order to completely free all storage consumed by all parts.
|
||||
//
|
||||
// To verify that all parts have been removed and prevent getting charged for the
|
||||
// part storage, you should call the [ListParts]API operation and ensure that the parts list
|
||||
// is empty.
|
||||
//
|
||||
// - Directory buckets - If multipart uploads in a directory bucket are in
|
||||
// progress, you can't delete the bucket until all the in-progress multipart
|
||||
// uploads are aborted or completed. To delete these in-progress multipart uploads,
|
||||
// use the ListMultipartUploads operation to list the in-progress multipart
|
||||
// uploads in the bucket and use the AbortMultupartUpload operation to abort all
|
||||
// the in-progress multipart uploads.
|
||||
//
|
||||
// - Directory buckets - For directory buckets, you must make requests for this
|
||||
// API operation to the Zonal endpoint. These endpoints support
|
||||
// virtual-hosted-style requests in the format
|
||||
// https://bucket_name.s3express-az_id.region.amazonaws.com/key-name .
|
||||
// Path-style requests are not supported. For more information, see [Regional and Zonal endpoints]in the
|
||||
// Amazon S3 User Guide.
|
||||
//
|
||||
// Permissions
|
||||
//
|
||||
// - General purpose bucket permissions - For information about permissions
|
||||
// required to use the multipart upload, see Multipart Upload and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// required to use the multipart upload, see [Multipart Upload and Permissions]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory bucket permissions - To grant access to this API operation on a
|
||||
// directory bucket, we recommend that you use the CreateSession (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html)
|
||||
// API operation for session-based authorization. Specifically, you grant the
|
||||
// directory bucket, we recommend that you use the [CreateSession]CreateSession API operation
|
||||
// for session-based authorization. Specifically, you grant the
|
||||
// s3express:CreateSession permission to the directory bucket in a bucket policy
|
||||
// or an IAM identity-based policy. Then, you make the CreateSession API call on
|
||||
// the bucket to obtain a session token. With the session token in your request
|
||||
|
|
@ -41,17 +53,31 @@ import (
|
|||
// expires, you make another CreateSession API call to generate a new session
|
||||
// token for use. Amazon Web Services CLI or SDKs create session and refresh the
|
||||
// session token automatically to avoid service interruptions when a session
|
||||
// expires. For more information about authorization, see CreateSession (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html)
|
||||
// .
|
||||
// expires. For more information about authorization, see [CreateSession]CreateSession .
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com . The following operations are
|
||||
// related to AbortMultipartUpload :
|
||||
// - CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html)
|
||||
// - UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)
|
||||
// - CompleteMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html)
|
||||
// - ListParts (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html)
|
||||
// - ListMultipartUploads (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html)
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com .
|
||||
//
|
||||
// The following operations are related to AbortMultipartUpload :
|
||||
//
|
||||
// [CreateMultipartUpload]
|
||||
//
|
||||
// [UploadPart]
|
||||
//
|
||||
// [CompleteMultipartUpload]
|
||||
//
|
||||
// [ListParts]
|
||||
//
|
||||
// [ListMultipartUploads]
|
||||
//
|
||||
// [ListParts]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html
|
||||
// [UploadPart]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [ListMultipartUploads]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html
|
||||
// [CreateSession]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
||||
// [Multipart Upload and Permissions]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
||||
// [CompleteMultipartUpload]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html
|
||||
// [CreateMultipartUpload]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html
|
||||
func (c *Client) AbortMultipartUpload(ctx context.Context, params *AbortMultipartUploadInput, optFns ...func(*Options)) (*AbortMultipartUploadOutput, error) {
|
||||
if params == nil {
|
||||
params = &AbortMultipartUploadInput{}
|
||||
|
|
@ -69,31 +95,39 @@ func (c *Client) AbortMultipartUpload(ctx context.Context, params *AbortMultipar
|
|||
|
||||
type AbortMultipartUploadInput struct {
|
||||
|
||||
// The bucket name to which the upload was taking place. Directory buckets - When
|
||||
// you use this operation with a directory bucket, you must use
|
||||
// virtual-hosted-style requests in the format
|
||||
// The bucket name to which the upload was taking place.
|
||||
//
|
||||
// Directory buckets - When you use this operation with a directory bucket, you
|
||||
// must use virtual-hosted-style requests in the format
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com . Path-style requests are not
|
||||
// supported. Directory bucket names must be unique in the chosen Availability
|
||||
// Zone. Bucket names must follow the format bucket_base_name--az-id--x-s3 (for
|
||||
// example, DOC-EXAMPLE-BUCKET--usw2-az2--x-s3 ). For information about bucket
|
||||
// naming restrictions, see Directory bucket naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html)
|
||||
// in the Amazon S3 User Guide. Access points - When you use this action with an
|
||||
// access point, you must provide the alias of the access point in place of the
|
||||
// bucket name or specify the access point ARN. When using the access point ARN,
|
||||
// you must direct requests to the access point hostname. The access point hostname
|
||||
// takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
|
||||
// When using this action with an access point through the Amazon Web Services
|
||||
// SDKs, you provide the access point ARN in place of the bucket name. For more
|
||||
// information about access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html)
|
||||
// in the Amazon S3 User Guide. Access points and Object Lambda access points are
|
||||
// not supported by directory buckets. S3 on Outposts - When you use this action
|
||||
// with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts
|
||||
// hostname. The S3 on Outposts hostname takes the form
|
||||
// example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3 ). For information about bucket
|
||||
// naming restrictions, see [Directory bucket naming rules]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Access points - When you use this action with an access point, you must provide
|
||||
// the alias of the access point in place of the bucket name or specify the access
|
||||
// point ARN. When using the access point ARN, you must direct requests to the
|
||||
// access point hostname. The access point hostname takes the form
|
||||
// AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this
|
||||
// action with an access point through the Amazon Web Services SDKs, you provide
|
||||
// the access point ARN in place of the bucket name. For more information about
|
||||
// access point ARNs, see [Using access points]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Access points and Object Lambda access points are not supported by directory
|
||||
// buckets.
|
||||
//
|
||||
// S3 on Outposts - When you use this action with Amazon S3 on Outposts, you must
|
||||
// direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
||||
// takes the form
|
||||
// AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you
|
||||
// use this action with S3 on Outposts through the Amazon Web Services SDKs, you
|
||||
// provide the Outposts access point ARN in place of the bucket name. For more
|
||||
// information about S3 on Outposts ARNs, see What is S3 on Outposts? (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// information about S3 on Outposts ARNs, see [What is S3 on Outposts?]in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Directory bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
|
||||
// [What is S3 on Outposts?]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html
|
||||
// [Using access points]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html
|
||||
//
|
||||
// This member is required.
|
||||
Bucket *string
|
||||
|
|
@ -117,16 +151,19 @@ type AbortMultipartUploadInput struct {
|
|||
// Bucket owners need not specify this parameter in their requests. If either the
|
||||
// source or destination S3 bucket has Requester Pays enabled, the requester will
|
||||
// pay for corresponding charges to copy the object. For information about
|
||||
// downloading objects from Requester Pays buckets, see Downloading Objects in
|
||||
// Requester Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// downloading objects from Requester Pays buckets, see [Downloading Objects in Requester Pays Buckets]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Downloading Objects in Requester Pays Buckets]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
||||
RequestPayer types.RequestPayer
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (in *AbortMultipartUploadInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.Key = in.Key
|
||||
|
||||
|
|
@ -135,7 +172,9 @@ func (in *AbortMultipartUploadInput) bindEndpointParams(p *EndpointParameters) {
|
|||
type AbortMultipartUploadOutput struct {
|
||||
|
||||
// If present, indicates that the requester was successfully charged for the
|
||||
// request. This functionality is not supported for directory buckets.
|
||||
// request.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
RequestCharged types.RequestCharged
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
|
|
@ -202,6 +241,15 @@ func (c *Client) addOperationAbortMultipartUploadMiddlewares(stack *middleware.S
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpAbortMultipartUploadValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
327
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CompleteMultipartUpload.go
generated
vendored
327
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CompleteMultipartUpload.go
generated
vendored
|
|
@ -13,51 +13,59 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Completes a multipart upload by assembling previously uploaded parts. You first
|
||||
// initiate the multipart upload and then upload all parts using the UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)
|
||||
// operation or the UploadPartCopy (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)
|
||||
// operation. After successfully uploading all relevant parts of an upload, you
|
||||
// call this CompleteMultipartUpload operation to complete the upload. Upon
|
||||
// receiving this request, Amazon S3 concatenates all the parts in ascending order
|
||||
// by part number to create a new object. In the CompleteMultipartUpload request,
|
||||
// you must provide the parts list and ensure that the parts list is complete. The
|
||||
// CompleteMultipartUpload API operation concatenates the parts that you provide in
|
||||
// the list. For each part in the list, you must provide the PartNumber value and
|
||||
// the ETag value that are returned after that part was uploaded. The processing
|
||||
// of a CompleteMultipartUpload request could take several minutes to finalize.
|
||||
// After Amazon S3 begins processing the request, it sends an HTTP response header
|
||||
// that specifies a 200 OK response. While processing is in progress, Amazon S3
|
||||
// periodically sends white space characters to keep the connection from timing
|
||||
// out. A request could fail after the initial 200 OK response has been sent. This
|
||||
// means that a 200 OK response can contain either a success or an error. The
|
||||
// error response might be embedded in the 200 OK response. If you call this API
|
||||
// operation directly, make sure to design your application to parse the contents
|
||||
// of the response and handle it appropriately. If you use Amazon Web Services
|
||||
// SDKs, SDKs handle this condition. The SDKs detect the embedded error and apply
|
||||
// error handling per your configuration settings (including automatically retrying
|
||||
// the request as appropriate). If the condition persists, the SDKs throw an
|
||||
// exception (or, for the SDKs that don't use exceptions, they return an error).
|
||||
// Completes a multipart upload by assembling previously uploaded parts.
|
||||
//
|
||||
// You first initiate the multipart upload and then upload all parts using the [UploadPart]
|
||||
// operation or the [UploadPartCopy]operation. After successfully uploading all relevant parts of
|
||||
// an upload, you call this CompleteMultipartUpload operation to complete the
|
||||
// upload. Upon receiving this request, Amazon S3 concatenates all the parts in
|
||||
// ascending order by part number to create a new object. In the
|
||||
// CompleteMultipartUpload request, you must provide the parts list and ensure that
|
||||
// the parts list is complete. The CompleteMultipartUpload API operation
|
||||
// concatenates the parts that you provide in the list. For each part in the list,
|
||||
// you must provide the PartNumber value and the ETag value that are returned
|
||||
// after that part was uploaded.
|
||||
//
|
||||
// The processing of a CompleteMultipartUpload request could take several minutes
|
||||
// to finalize. After Amazon S3 begins processing the request, it sends an HTTP
|
||||
// response header that specifies a 200 OK response. While processing is in
|
||||
// progress, Amazon S3 periodically sends white space characters to keep the
|
||||
// connection from timing out. A request could fail after the initial 200 OK
|
||||
// response has been sent. This means that a 200 OK response can contain either a
|
||||
// success or an error. The error response might be embedded in the 200 OK
|
||||
// response. If you call this API operation directly, make sure to design your
|
||||
// application to parse the contents of the response and handle it appropriately.
|
||||
// If you use Amazon Web Services SDKs, SDKs handle this condition. The SDKs detect
|
||||
// the embedded error and apply error handling per your configuration settings
|
||||
// (including automatically retrying the request as appropriate). If the condition
|
||||
// persists, the SDKs throw an exception (or, for the SDKs that don't use
|
||||
// exceptions, they return an error).
|
||||
//
|
||||
// Note that if CompleteMultipartUpload fails, applications should be prepared to
|
||||
// retry the failed requests. For more information, see Amazon S3 Error Best
|
||||
// Practices (https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html)
|
||||
// . You can't use Content-Type: application/x-www-form-urlencoded for the
|
||||
// retry any failed requests (including 500 error responses). For more information,
|
||||
// see [Amazon S3 Error Best Practices].
|
||||
//
|
||||
// You can't use Content-Type: application/x-www-form-urlencoded for the
|
||||
// CompleteMultipartUpload requests. Also, if you don't provide a Content-Type
|
||||
// header, CompleteMultipartUpload can still return a 200 OK response. For more
|
||||
// information about multipart uploads, see Uploading Objects Using Multipart
|
||||
// Upload (https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html)
|
||||
// in the Amazon S3 User Guide. Directory buckets - For directory buckets, you must
|
||||
// make requests for this API operation to the Zonal endpoint. These endpoints
|
||||
// support virtual-hosted-style requests in the format
|
||||
// header, CompleteMultipartUpload can still return a 200 OK response.
|
||||
//
|
||||
// For more information about multipart uploads, see [Uploading Objects Using Multipart Upload] in the Amazon S3 User Guide.
|
||||
//
|
||||
// Directory buckets - For directory buckets, you must make requests for this API
|
||||
// operation to the Zonal endpoint. These endpoints support virtual-hosted-style
|
||||
// requests in the format
|
||||
// https://bucket_name.s3express-az_id.region.amazonaws.com/key-name . Path-style
|
||||
// requests are not supported. For more information, see Regional and Zonal
|
||||
// endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide. Permissions
|
||||
// requests are not supported. For more information, see [Regional and Zonal endpoints]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// Permissions
|
||||
//
|
||||
// - General purpose bucket permissions - For information about permissions
|
||||
// required to use the multipart upload API, see Multipart Upload and Permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// required to use the multipart upload API, see [Multipart Upload and Permissions]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory bucket permissions - To grant access to this API operation on a
|
||||
// directory bucket, we recommend that you use the CreateSession (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html)
|
||||
// API operation for session-based authorization. Specifically, you grant the
|
||||
// directory bucket, we recommend that you use the [CreateSession]CreateSession API operation
|
||||
// for session-based authorization. Specifically, you grant the
|
||||
// s3express:CreateSession permission to the directory bucket in a bucket policy
|
||||
// or an IAM identity-based policy. Then, you make the CreateSession API call on
|
||||
// the bucket to obtain a session token. With the session token in your request
|
||||
|
|
@ -65,36 +73,70 @@ import (
|
|||
// expires, you make another CreateSession API call to generate a new session
|
||||
// token for use. Amazon Web Services CLI or SDKs create session and refresh the
|
||||
// session token automatically to avoid service interruptions when a session
|
||||
// expires. For more information about authorization, see CreateSession (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html)
|
||||
// .
|
||||
// expires. For more information about authorization, see [CreateSession]CreateSession .
|
||||
//
|
||||
// - If you provide an [additional checksum value]in your MultipartUpload requests and the object is
|
||||
// encrypted with Key Management Service, you must have permission to use the
|
||||
// kms:Decrypt action for the CompleteMultipartUpload request to succeed.
|
||||
//
|
||||
// Special errors
|
||||
//
|
||||
// - Error Code: EntityTooSmall
|
||||
//
|
||||
// - Description: Your proposed upload is smaller than the minimum allowed
|
||||
// object size. Each part must be at least 5 MB in size, except the last part.
|
||||
//
|
||||
// - HTTP Status Code: 400 Bad Request
|
||||
//
|
||||
// - Error Code: InvalidPart
|
||||
//
|
||||
// - Description: One or more of the specified parts could not be found. The
|
||||
// part might not have been uploaded, or the specified ETag might not have matched
|
||||
// the uploaded part's ETag.
|
||||
//
|
||||
// - HTTP Status Code: 400 Bad Request
|
||||
//
|
||||
// - Error Code: InvalidPartOrder
|
||||
//
|
||||
// - Description: The list of parts was not in ascending order. The parts list
|
||||
// must be specified in order by part number.
|
||||
//
|
||||
// - HTTP Status Code: 400 Bad Request
|
||||
//
|
||||
// - Error Code: NoSuchUpload
|
||||
//
|
||||
// - Description: The specified multipart upload does not exist. The upload ID
|
||||
// might be invalid, or the multipart upload might have been aborted or completed.
|
||||
//
|
||||
// - HTTP Status Code: 404 Not Found
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com . The following operations are
|
||||
// related to CompleteMultipartUpload :
|
||||
// - CreateMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html)
|
||||
// - UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)
|
||||
// - AbortMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html)
|
||||
// - ListParts (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html)
|
||||
// - ListMultipartUploads (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html)
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com .
|
||||
//
|
||||
// The following operations are related to CompleteMultipartUpload :
|
||||
//
|
||||
// [CreateMultipartUpload]
|
||||
//
|
||||
// [UploadPart]
|
||||
//
|
||||
// [AbortMultipartUpload]
|
||||
//
|
||||
// [ListParts]
|
||||
//
|
||||
// [ListMultipartUploads]
|
||||
//
|
||||
// [Uploading Objects Using Multipart Upload]: https://docs.aws.amazon.com/AmazonS3/latest/dev/uploadobjusingmpu.html
|
||||
// [Amazon S3 Error Best Practices]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ErrorBestPractices.html
|
||||
// [AbortMultipartUpload]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html
|
||||
// [ListParts]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html
|
||||
// [UploadPart]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [additional checksum value]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Checksum.html
|
||||
// [ListMultipartUploads]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html
|
||||
// [CreateSession]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
||||
// [UploadPartCopy]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
|
||||
// [Multipart Upload and Permissions]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html
|
||||
// [CreateMultipartUpload]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateMultipartUpload.html
|
||||
func (c *Client) CompleteMultipartUpload(ctx context.Context, params *CompleteMultipartUploadInput, optFns ...func(*Options)) (*CompleteMultipartUploadOutput, error) {
|
||||
if params == nil {
|
||||
params = &CompleteMultipartUploadInput{}
|
||||
|
|
@ -112,31 +154,39 @@ func (c *Client) CompleteMultipartUpload(ctx context.Context, params *CompleteMu
|
|||
|
||||
type CompleteMultipartUploadInput struct {
|
||||
|
||||
// Name of the bucket to which the multipart upload was initiated. Directory
|
||||
// buckets - When you use this operation with a directory bucket, you must use
|
||||
// virtual-hosted-style requests in the format
|
||||
// Name of the bucket to which the multipart upload was initiated.
|
||||
//
|
||||
// Directory buckets - When you use this operation with a directory bucket, you
|
||||
// must use virtual-hosted-style requests in the format
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com . Path-style requests are not
|
||||
// supported. Directory bucket names must be unique in the chosen Availability
|
||||
// Zone. Bucket names must follow the format bucket_base_name--az-id--x-s3 (for
|
||||
// example, DOC-EXAMPLE-BUCKET--usw2-az2--x-s3 ). For information about bucket
|
||||
// naming restrictions, see Directory bucket naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html)
|
||||
// in the Amazon S3 User Guide. Access points - When you use this action with an
|
||||
// access point, you must provide the alias of the access point in place of the
|
||||
// bucket name or specify the access point ARN. When using the access point ARN,
|
||||
// you must direct requests to the access point hostname. The access point hostname
|
||||
// takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
|
||||
// When using this action with an access point through the Amazon Web Services
|
||||
// SDKs, you provide the access point ARN in place of the bucket name. For more
|
||||
// information about access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html)
|
||||
// in the Amazon S3 User Guide. Access points and Object Lambda access points are
|
||||
// not supported by directory buckets. S3 on Outposts - When you use this action
|
||||
// with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts
|
||||
// hostname. The S3 on Outposts hostname takes the form
|
||||
// example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3 ). For information about bucket
|
||||
// naming restrictions, see [Directory bucket naming rules]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Access points - When you use this action with an access point, you must provide
|
||||
// the alias of the access point in place of the bucket name or specify the access
|
||||
// point ARN. When using the access point ARN, you must direct requests to the
|
||||
// access point hostname. The access point hostname takes the form
|
||||
// AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this
|
||||
// action with an access point through the Amazon Web Services SDKs, you provide
|
||||
// the access point ARN in place of the bucket name. For more information about
|
||||
// access point ARNs, see [Using access points]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Access points and Object Lambda access points are not supported by directory
|
||||
// buckets.
|
||||
//
|
||||
// S3 on Outposts - When you use this action with Amazon S3 on Outposts, you must
|
||||
// direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
||||
// takes the form
|
||||
// AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you
|
||||
// use this action with S3 on Outposts through the Amazon Web Services SDKs, you
|
||||
// provide the Outposts access point ARN in place of the bucket name. For more
|
||||
// information about S3 on Outposts ARNs, see What is S3 on Outposts? (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// information about S3 on Outposts ARNs, see [What is S3 on Outposts?]in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Directory bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
|
||||
// [What is S3 on Outposts?]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html
|
||||
// [Using access points]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html
|
||||
//
|
||||
// This member is required.
|
||||
Bucket *string
|
||||
|
|
@ -153,30 +203,34 @@ type CompleteMultipartUploadInput struct {
|
|||
|
||||
// This header can be used as a data integrity check to verify that the data
|
||||
// received is the same data that was originally sent. This header specifies the
|
||||
// base64-encoded, 32-bit CRC32 checksum of the object. For more information, see
|
||||
// Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
|
||||
// base64-encoded, 32-bit CRC32 checksum of the object. For more information, see [Checking object integrity]
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
||||
ChecksumCRC32 *string
|
||||
|
||||
// This header can be used as a data integrity check to verify that the data
|
||||
// received is the same data that was originally sent. This header specifies the
|
||||
// base64-encoded, 32-bit CRC32C checksum of the object. For more information, see
|
||||
// Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
|
||||
// base64-encoded, 32-bit CRC32C checksum of the object. For more information, see [Checking object integrity]
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
||||
ChecksumCRC32C *string
|
||||
|
||||
// This header can be used as a data integrity check to verify that the data
|
||||
// received is the same data that was originally sent. This header specifies the
|
||||
// base64-encoded, 160-bit SHA-1 digest of the object. For more information, see
|
||||
// Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
|
||||
// base64-encoded, 160-bit SHA-1 digest of the object. For more information, see [Checking object integrity]
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
||||
ChecksumSHA1 *string
|
||||
|
||||
// This header can be used as a data integrity check to verify that the data
|
||||
// received is the same data that was originally sent. This header specifies the
|
||||
// base64-encoded, 256-bit SHA-256 digest of the object. For more information, see
|
||||
// Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
|
||||
// base64-encoded, 256-bit SHA-256 digest of the object. For more information, see [Checking object integrity]
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
||||
ChecksumSHA256 *string
|
||||
|
||||
// The account ID of the expected bucket owner. If the account ID that you provide
|
||||
|
|
@ -184,6 +238,22 @@ type CompleteMultipartUploadInput struct {
|
|||
// status code 403 Forbidden (access denied).
|
||||
ExpectedBucketOwner *string
|
||||
|
||||
// Uploads the object only if the object key name does not already exist in the
|
||||
// bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error.
|
||||
//
|
||||
// If a conflicting operation occurs during the upload S3 returns a 409
|
||||
// ConditionalRequestConflict response. On a 409 failure you should re-initiate the
|
||||
// multipart upload with CreateMultipartUpload and re-upload each part.
|
||||
//
|
||||
// Expects the '*' (asterisk) character.
|
||||
//
|
||||
// For more information about conditional requests, see [RFC 7232], or [Conditional requests] in the Amazon S3
|
||||
// User Guide.
|
||||
//
|
||||
// [Conditional requests]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html
|
||||
// [RFC 7232]: https://tools.ietf.org/html/rfc7232
|
||||
IfNoneMatch *string
|
||||
|
||||
// The container for the multipart upload request information.
|
||||
MultipartUpload *types.CompletedMultipartUpload
|
||||
|
||||
|
|
@ -191,38 +261,47 @@ type CompleteMultipartUploadInput struct {
|
|||
// Bucket owners need not specify this parameter in their requests. If either the
|
||||
// source or destination S3 bucket has Requester Pays enabled, the requester will
|
||||
// pay for corresponding charges to copy the object. For information about
|
||||
// downloading objects from Requester Pays buckets, see Downloading Objects in
|
||||
// Requester Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// downloading objects from Requester Pays buckets, see [Downloading Objects in Requester Pays Buckets]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Downloading Objects in Requester Pays Buckets]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
||||
RequestPayer types.RequestPayer
|
||||
|
||||
// The server-side encryption (SSE) algorithm used to encrypt the object. This
|
||||
// parameter is required only when the object was created using a checksum
|
||||
// algorithm or if your bucket policy requires the use of SSE-C. For more
|
||||
// information, see Protecting data using SSE-C keys (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html#ssec-require-condition-key)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// information, see [Protecting data using SSE-C keys]in the Amazon S3 User Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Protecting data using SSE-C keys]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html#ssec-require-condition-key
|
||||
SSECustomerAlgorithm *string
|
||||
|
||||
// The server-side encryption (SSE) customer managed key. This parameter is needed
|
||||
// only when the object was created using a checksum algorithm. For more
|
||||
// information, see Protecting data using SSE-C keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// information, see [Protecting data using SSE-C keys]in the Amazon S3 User Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Protecting data using SSE-C keys]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
||||
SSECustomerKey *string
|
||||
|
||||
// The MD5 server-side encryption (SSE) customer managed key. This parameter is
|
||||
// needed only when the object was created using a checksum algorithm. For more
|
||||
// information, see Protecting data using SSE-C keys (https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// information, see [Protecting data using SSE-C keys]in the Amazon S3 User Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Protecting data using SSE-C keys]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
|
||||
SSECustomerKeyMD5 *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (in *CompleteMultipartUploadInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.Key = in.Key
|
||||
|
||||
|
|
@ -231,13 +310,15 @@ func (in *CompleteMultipartUploadInput) bindEndpointParams(p *EndpointParameters
|
|||
type CompleteMultipartUploadOutput struct {
|
||||
|
||||
// The name of the bucket that contains the newly created object. Does not return
|
||||
// the access point ARN or access point alias if used. Access points are not
|
||||
// supported by directory buckets.
|
||||
// the access point ARN or access point alias if used.
|
||||
//
|
||||
// Access points are not supported by directory buckets.
|
||||
Bucket *string
|
||||
|
||||
// Indicates whether the multipart upload uses an S3 Bucket Key for server-side
|
||||
// encryption with Key Management Service (KMS) keys (SSE-KMS). This functionality
|
||||
// is not supported for directory buckets.
|
||||
// encryption with Key Management Service (KMS) keys (SSE-KMS).
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
BucketKeyEnabled *bool
|
||||
|
||||
// The base64-encoded, 32-bit CRC32 checksum of the object. This will only be
|
||||
|
|
@ -245,8 +326,10 @@ type CompleteMultipartUploadOutput struct {
|
|||
// object that was uploaded using multipart uploads, this value may not be a direct
|
||||
// checksum value of the full object. Instead, it's a calculation based on the
|
||||
// checksum values of each individual part. For more information about how
|
||||
// checksums are calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
|
||||
// in the Amazon S3 User Guide.
|
||||
// checksums are calculated with multipart uploads, see [Checking object integrity]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums
|
||||
ChecksumCRC32 *string
|
||||
|
||||
// The base64-encoded, 32-bit CRC32C checksum of the object. This will only be
|
||||
|
|
@ -254,8 +337,10 @@ type CompleteMultipartUploadOutput struct {
|
|||
// object that was uploaded using multipart uploads, this value may not be a direct
|
||||
// checksum value of the full object. Instead, it's a calculation based on the
|
||||
// checksum values of each individual part. For more information about how
|
||||
// checksums are calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
|
||||
// in the Amazon S3 User Guide.
|
||||
// checksums are calculated with multipart uploads, see [Checking object integrity]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums
|
||||
ChecksumCRC32C *string
|
||||
|
||||
// The base64-encoded, 160-bit SHA-1 digest of the object. This will only be
|
||||
|
|
@ -263,8 +348,10 @@ type CompleteMultipartUploadOutput struct {
|
|||
// object that was uploaded using multipart uploads, this value may not be a direct
|
||||
// checksum value of the full object. Instead, it's a calculation based on the
|
||||
// checksum values of each individual part. For more information about how
|
||||
// checksums are calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
|
||||
// in the Amazon S3 User Guide.
|
||||
// checksums are calculated with multipart uploads, see [Checking object integrity]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums
|
||||
ChecksumSHA1 *string
|
||||
|
||||
// The base64-encoded, 256-bit SHA-256 digest of the object. This will only be
|
||||
|
|
@ -272,8 +359,10 @@ type CompleteMultipartUploadOutput struct {
|
|||
// object that was uploaded using multipart uploads, this value may not be a direct
|
||||
// checksum value of the full object. Instead, it's a calculation based on the
|
||||
// checksum values of each individual part. For more information about how
|
||||
// checksums are calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums)
|
||||
// in the Amazon S3 User Guide.
|
||||
// checksums are calculated with multipart uploads, see [Checking object integrity]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums
|
||||
ChecksumSHA256 *string
|
||||
|
||||
// Entity tag that identifies the newly created object's data. Objects with
|
||||
|
|
@ -282,12 +371,14 @@ type CompleteMultipartUploadOutput struct {
|
|||
// data. If the entity tag is not an MD5 digest of the object data, it will contain
|
||||
// one or more nonhexadecimal characters and/or will consist of less than 32 or
|
||||
// more than 32 hexadecimal digits. For more information about how the entity tag
|
||||
// is calculated, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// is calculated, see [Checking object integrity]in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
||||
ETag *string
|
||||
|
||||
// If the object expiration is configured, this will contain the expiration date (
|
||||
// expiry-date ) and rule ID ( rule-id ). The value of rule-id is URL-encoded.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
Expiration *string
|
||||
|
||||
|
|
@ -298,21 +389,28 @@ type CompleteMultipartUploadOutput struct {
|
|||
Location *string
|
||||
|
||||
// If present, indicates that the requester was successfully charged for the
|
||||
// request. This functionality is not supported for directory buckets.
|
||||
// request.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
RequestCharged types.RequestCharged
|
||||
|
||||
// If present, indicates the ID of the Key Management Service (KMS) symmetric
|
||||
// encryption customer managed key that was used for the object. This functionality
|
||||
// is not supported for directory buckets.
|
||||
// encryption customer managed key that was used for the object.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSEKMSKeyId *string
|
||||
|
||||
// The server-side encryption algorithm used when storing this object in Amazon S3
|
||||
// (for example, AES256 , aws:kms ). For directory buckets, only server-side
|
||||
// encryption with Amazon S3 managed keys (SSE-S3) ( AES256 ) is supported.
|
||||
// (for example, AES256 , aws:kms ).
|
||||
//
|
||||
// For directory buckets, only server-side encryption with Amazon S3 managed keys
|
||||
// (SSE-S3) ( AES256 ) is supported.
|
||||
ServerSideEncryption types.ServerSideEncryption
|
||||
|
||||
// Version ID of the newly created object, in case the bucket has versioning
|
||||
// turned on. This functionality is not supported for directory buckets.
|
||||
// turned on.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
VersionId *string
|
||||
|
||||
// Metadata pertaining to the operation's result.
|
||||
|
|
@ -379,6 +477,15 @@ func (c *Client) addOperationCompleteMultipartUploadMiddlewares(stack *middlewar
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCompleteMultipartUploadValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
655
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CopyObject.go
generated
vendored
655
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CopyObject.go
generated
vendored
File diff suppressed because it is too large
Load diff
222
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CreateBucket.go
generated
vendored
222
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CreateBucket.go
generated
vendored
|
|
@ -15,82 +15,116 @@ import (
|
|||
)
|
||||
|
||||
// This action creates an Amazon S3 bucket. To create an Amazon S3 on Outposts
|
||||
// bucket, see CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html)
|
||||
// . Creates a new S3 bucket. To create a bucket, you must set up Amazon S3 and
|
||||
// have a valid Amazon Web Services Access Key ID to authenticate requests.
|
||||
// Anonymous requests are never allowed to create buckets. By creating the bucket,
|
||||
// you become the bucket owner. There are two types of buckets: general purpose
|
||||
// buckets and directory buckets. For more information about these bucket types,
|
||||
// see Creating, configuring, and working with Amazon S3 buckets (https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// bucket, see [CreateBucket]CreateBucket .
|
||||
//
|
||||
// Creates a new S3 bucket. To create a bucket, you must set up Amazon S3 and have
|
||||
// a valid Amazon Web Services Access Key ID to authenticate requests. Anonymous
|
||||
// requests are never allowed to create buckets. By creating the bucket, you become
|
||||
// the bucket owner.
|
||||
//
|
||||
// There are two types of buckets: general purpose buckets and directory buckets.
|
||||
// For more information about these bucket types, see [Creating, configuring, and working with Amazon S3 buckets]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - General purpose buckets - If you send your CreateBucket request to the
|
||||
// s3.amazonaws.com global endpoint, the request goes to the us-east-1 Region. So
|
||||
// the signature calculations in Signature Version 4 must use us-east-1 as the
|
||||
// Region, even if the location constraint in the request specifies another Region
|
||||
// where the bucket is to be created. If you create a bucket in a Region other than
|
||||
// US East (N. Virginia), your application must be able to handle 307 redirect. For
|
||||
// more information, see Virtual hosting of buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// more information, see [Virtual hosting of buckets]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory buckets - For directory buckets, you must make requests for this
|
||||
// API operation to the Regional endpoint. These endpoints support path-style
|
||||
// requests in the format
|
||||
// https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. For more information, see
|
||||
// Regional and Zonal endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// Virtual-hosted-style requests aren't supported. For more information, see [Regional and Zonal endpoints]in
|
||||
// the Amazon S3 User Guide.
|
||||
//
|
||||
// Permissions
|
||||
//
|
||||
// - General purpose bucket permissions - In addition to the s3:CreateBucket
|
||||
// permission, the following permissions are required in a policy when your
|
||||
// CreateBucket request includes specific headers:
|
||||
//
|
||||
// - Access control lists (ACLs) - In your CreateBucket request, if you specify
|
||||
// an access control list (ACL) and set it to public-read , public-read-write ,
|
||||
// authenticated-read , or if you explicitly specify any other custom ACLs, both
|
||||
// s3:CreateBucket and s3:PutBucketAcl permissions are required. In your
|
||||
// CreateBucket request, if you set the ACL to private , or if you don't specify
|
||||
// any ACLs, only the s3:CreateBucket permission is required.
|
||||
//
|
||||
// - Object Lock - In your CreateBucket request, if you set
|
||||
// x-amz-bucket-object-lock-enabled to true, the
|
||||
// s3:PutBucketObjectLockConfiguration and s3:PutBucketVersioning permissions are
|
||||
// required.
|
||||
//
|
||||
// - S3 Object Ownership - If your CreateBucket request includes the
|
||||
// x-amz-object-ownership header, then the s3:PutBucketOwnershipControls
|
||||
// permission is required. If your CreateBucket request sets BucketOwnerEnforced
|
||||
// for Amazon S3 Object Ownership and specifies a bucket ACL that provides access
|
||||
// to an external Amazon Web Services account, your request fails with a 400
|
||||
// error and returns the InvalidBucketAcLWithObjectOwnership error code. For more
|
||||
// information, see Setting Object Ownership on an existing bucket (https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-ownership-existing-bucket.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// - S3 Block Public Access - If your specific use case requires granting public
|
||||
// access to your S3 resources, you can disable Block Public Access. Specifically,
|
||||
// you can create a new bucket with Block Public Access enabled, then separately
|
||||
// call the DeletePublicAccessBlock (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html)
|
||||
// API. To use this operation, you must have the s3:PutBucketPublicAccessBlock
|
||||
// permission. For more information about S3 Block Public Access, see Blocking
|
||||
// public access to your Amazon S3 storage (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// - Directory bucket permissions - You must have the s3express:CreateBucket
|
||||
// permission in an IAM identity-based policy instead of a bucket policy.
|
||||
// Cross-account access to this API operation isn't supported. This operation can
|
||||
// only be performed by the Amazon Web Services account that owns the resource. For
|
||||
// more information about directory bucket policies and permissions, see Amazon
|
||||
// Web Services Identity and Access Management (IAM) for S3 Express One Zone (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html)
|
||||
// in the Amazon S3 User Guide. The permissions for ACLs, Object Lock, S3 Object
|
||||
// Ownership, and S3 Block Public Access are not supported for directory buckets.
|
||||
// For directory buckets, all Block Public Access settings are enabled at the
|
||||
// bucket level and S3 Object Ownership is set to Bucket owner enforced (ACLs
|
||||
// disabled). These settings can't be modified. For more information about
|
||||
// permissions for creating and working with directory buckets, see Directory
|
||||
// buckets (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html)
|
||||
// in the Amazon S3 User Guide. For more information about supported S3 features
|
||||
// for directory buckets, see Features of S3 Express One Zone (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-features)
|
||||
// in the Amazon S3 User Guide.
|
||||
// permission is required.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// s3express-control.region.amazonaws.com . The following operations are related to
|
||||
// CreateBucket :
|
||||
// - PutObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html)
|
||||
// - DeleteBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html)
|
||||
// To set an ACL on a bucket as part of a CreateBucket request, you must explicitly
|
||||
//
|
||||
// set S3 Object Ownership for the bucket to a different value than the default,
|
||||
// BucketOwnerEnforced . Additionally, if your desired bucket ACL grants public
|
||||
// access, you must first create the bucket (without the bucket ACL) and then
|
||||
// explicitly disable Block Public Access on the bucket before using PutBucketAcl
|
||||
// to set the ACL. If you try to create a bucket with a public ACL, the request
|
||||
// will fail.
|
||||
//
|
||||
// For the majority of modern use cases in S3, we recommend that you keep all
|
||||
//
|
||||
// Block Public Access settings enabled and keep ACLs disabled. If you would like
|
||||
// to share data with users outside of your account, you can use bucket policies as
|
||||
// needed. For more information, see [Controlling ownership of objects and disabling ACLs for your bucket]and [Blocking public access to your Amazon S3 storage]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - S3 Block Public Access - If your specific use case requires granting public
|
||||
// access to your S3 resources, you can disable Block Public Access. Specifically,
|
||||
// you can create a new bucket with Block Public Access enabled, then separately
|
||||
// call the [DeletePublicAccessBlock]DeletePublicAccessBlock API. To use this operation, you must have the
|
||||
// s3:PutBucketPublicAccessBlock permission. For more information about S3 Block
|
||||
// Public Access, see [Blocking public access to your Amazon S3 storage]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory bucket permissions - You must have the s3express:CreateBucket
|
||||
// permission in an IAM identity-based policy instead of a bucket policy.
|
||||
// Cross-account access to this API operation isn't supported. This operation can
|
||||
// only be performed by the Amazon Web Services account that owns the resource. For
|
||||
// more information about directory bucket policies and permissions, see [Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone]in the
|
||||
// Amazon S3 User Guide.
|
||||
//
|
||||
// The permissions for ACLs, Object Lock, S3 Object Ownership, and S3 Block Public
|
||||
//
|
||||
// Access are not supported for directory buckets. For directory buckets, all Block
|
||||
// Public Access settings are enabled at the bucket level and S3 Object Ownership
|
||||
// is set to Bucket owner enforced (ACLs disabled). These settings can't be
|
||||
// modified.
|
||||
//
|
||||
// For more information about permissions for creating and working with directory
|
||||
//
|
||||
// buckets, see [Directory buckets]in the Amazon S3 User Guide. For more information about
|
||||
// supported S3 features for directory buckets, see [Features of S3 Express One Zone]in the Amazon S3 User Guide.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// s3express-control.region.amazonaws.com .
|
||||
//
|
||||
// The following operations are related to CreateBucket :
|
||||
//
|
||||
// [PutObject]
|
||||
//
|
||||
// [DeleteBucket]
|
||||
//
|
||||
// [Creating, configuring, and working with Amazon S3 buckets]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-buckets-s3.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [DeleteBucket]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html
|
||||
// [PutObject]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html
|
||||
// [CreateBucket]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_control_CreateBucket.html
|
||||
// [Virtual hosting of buckets]: https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html
|
||||
//
|
||||
// [DeletePublicAccessBlock]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeletePublicAccessBlock.html
|
||||
// [Directory buckets]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html
|
||||
// [Features of S3 Express One Zone]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-one-zone.html#s3-express-features
|
||||
// [Controlling ownership of objects and disabling ACLs for your bucket]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
|
||||
// [Blocking public access to your Amazon S3 storage]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-control-block-public-access.html
|
||||
// [Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
||||
func (c *Client) CreateBucket(ctx context.Context, params *CreateBucketInput, optFns ...func(*Options)) (*CreateBucketOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateBucketInput{}
|
||||
|
|
@ -108,77 +142,100 @@ func (c *Client) CreateBucket(ctx context.Context, params *CreateBucketInput, op
|
|||
|
||||
type CreateBucketInput struct {
|
||||
|
||||
// The name of the bucket to create. General purpose buckets - For information
|
||||
// about bucket naming restrictions, see Bucket naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html)
|
||||
// in the Amazon S3 User Guide. Directory buckets - When you use this operation
|
||||
// with a directory bucket, you must use path-style requests in the format
|
||||
// The name of the bucket to create.
|
||||
//
|
||||
// General purpose buckets - For information about bucket naming restrictions, see [Bucket naming rules]
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// Directory buckets - When you use this operation with a directory bucket, you
|
||||
// must use path-style requests in the format
|
||||
// https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. Directory bucket names must be
|
||||
// unique in the chosen Availability Zone. Bucket names must also follow the format
|
||||
// bucket_base_name--az_id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az2--x-s3
|
||||
// ). For information about bucket naming restrictions, see Directory bucket
|
||||
// naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html)
|
||||
// in the Amazon S3 User Guide
|
||||
// bucket_base_name--az_id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3
|
||||
// ). For information about bucket naming restrictions, see [Directory bucket naming rules]in the Amazon S3 User
|
||||
// Guide
|
||||
//
|
||||
// [Directory bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
|
||||
// [Bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html
|
||||
//
|
||||
// This member is required.
|
||||
Bucket *string
|
||||
|
||||
// The canned ACL to apply to the bucket. This functionality is not supported for
|
||||
// directory buckets.
|
||||
// The canned ACL to apply to the bucket.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
ACL types.BucketCannedACL
|
||||
|
||||
// The configuration information for the bucket.
|
||||
CreateBucketConfiguration *types.CreateBucketConfiguration
|
||||
|
||||
// Allows grantee the read, write, read ACP, and write ACP permissions on the
|
||||
// bucket. This functionality is not supported for directory buckets.
|
||||
// bucket.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
GrantFullControl *string
|
||||
|
||||
// Allows grantee to list the objects in the bucket. This functionality is not
|
||||
// supported for directory buckets.
|
||||
// Allows grantee to list the objects in the bucket.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
GrantRead *string
|
||||
|
||||
// Allows grantee to read the bucket ACL. This functionality is not supported for
|
||||
// directory buckets.
|
||||
// Allows grantee to read the bucket ACL.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
GrantReadACP *string
|
||||
|
||||
// Allows grantee to create new objects in the bucket. For the bucket and object
|
||||
// owners of existing objects, also allows deletions and overwrites of those
|
||||
// objects. This functionality is not supported for directory buckets.
|
||||
// Allows grantee to create new objects in the bucket.
|
||||
//
|
||||
// For the bucket and object owners of existing objects, also allows deletions and
|
||||
// overwrites of those objects.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
GrantWrite *string
|
||||
|
||||
// Allows grantee to write the ACL for the applicable bucket. This functionality
|
||||
// is not supported for directory buckets.
|
||||
// Allows grantee to write the ACL for the applicable bucket.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
GrantWriteACP *string
|
||||
|
||||
// Specifies whether you want S3 Object Lock to be enabled for the new bucket.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
ObjectLockEnabledForBucket *bool
|
||||
|
||||
// The container element for object ownership for a bucket's ownership controls.
|
||||
//
|
||||
// BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the
|
||||
// bucket owner if the objects are uploaded with the bucket-owner-full-control
|
||||
// canned ACL. ObjectWriter - The uploading account will own the object if the
|
||||
// object is uploaded with the bucket-owner-full-control canned ACL.
|
||||
// canned ACL.
|
||||
//
|
||||
// ObjectWriter - The uploading account will own the object if the object is
|
||||
// uploaded with the bucket-owner-full-control canned ACL.
|
||||
//
|
||||
// BucketOwnerEnforced - Access control lists (ACLs) are disabled and no longer
|
||||
// affect permissions. The bucket owner automatically owns and has full control
|
||||
// over every object in the bucket. The bucket only accepts PUT requests that don't
|
||||
// specify an ACL or specify bucket owner full control ACLs (such as the predefined
|
||||
// bucket-owner-full-control canned ACL or a custom ACL in XML format that grants
|
||||
// the same permissions). By default, ObjectOwnership is set to BucketOwnerEnforced
|
||||
// and ACLs are disabled. We recommend keeping ACLs disabled, except in uncommon
|
||||
// use cases where you must control access for each object individually. For more
|
||||
// information about S3 Object Ownership, see Controlling ownership of objects and
|
||||
// disabling ACLs for your bucket (https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets. Directory buckets use the bucket owner enforced setting for S3 Object
|
||||
// Ownership.
|
||||
// the same permissions).
|
||||
//
|
||||
// By default, ObjectOwnership is set to BucketOwnerEnforced and ACLs are
|
||||
// disabled. We recommend keeping ACLs disabled, except in uncommon use cases where
|
||||
// you must control access for each object individually. For more information about
|
||||
// S3 Object Ownership, see [Controlling ownership of objects and disabling ACLs for your bucket]in the Amazon S3 User Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets. Directory buckets
|
||||
// use the bucket owner enforced setting for S3 Object Ownership.
|
||||
//
|
||||
// [Controlling ownership of objects and disabling ACLs for your bucket]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html
|
||||
ObjectOwnership types.ObjectOwnership
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (in *CreateBucketInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
p.DisableAccessPoints = ptr.Bool(true)
|
||||
|
|
@ -253,6 +310,15 @@ func (c *Client) addOperationCreateBucketMiddlewares(stack *middleware.Stack, op
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateBucketValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
663
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CreateMultipartUpload.go
generated
vendored
663
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CreateMultipartUpload.go
generated
vendored
|
|
@ -16,51 +16,53 @@ import (
|
|||
|
||||
// This action initiates a multipart upload and returns an upload ID. This upload
|
||||
// ID is used to associate all of the parts in the specific multipart upload. You
|
||||
// specify this upload ID in each of your subsequent upload part requests (see
|
||||
// UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)
|
||||
// ). You also include this upload ID in the final request to either complete or
|
||||
// abort the multipart upload request. For more information about multipart
|
||||
// uploads, see Multipart Upload Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html)
|
||||
// in the Amazon S3 User Guide. After you initiate a multipart upload and upload
|
||||
// one or more parts, to stop being charged for storing the uploaded parts, you
|
||||
// must either complete or abort the multipart upload. Amazon S3 frees up the space
|
||||
// used to store the parts and stops charging you for storing them only after you
|
||||
// either complete or abort a multipart upload. If you have configured a lifecycle
|
||||
// rule to abort incomplete multipart uploads, the created multipart upload must be
|
||||
// completed within the number of days specified in the bucket lifecycle
|
||||
// configuration. Otherwise, the incomplete multipart upload becomes eligible for
|
||||
// an abort action and Amazon S3 aborts the multipart upload. For more information,
|
||||
// see Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config)
|
||||
// .
|
||||
// specify this upload ID in each of your subsequent upload part requests (see [UploadPart]).
|
||||
// You also include this upload ID in the final request to either complete or abort
|
||||
// the multipart upload request. For more information about multipart uploads, see [Multipart Upload Overview]
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// After you initiate a multipart upload and upload one or more parts, to stop
|
||||
// being charged for storing the uploaded parts, you must either complete or abort
|
||||
// the multipart upload. Amazon S3 frees up the space used to store the parts and
|
||||
// stops charging you for storing them only after you either complete or abort a
|
||||
// multipart upload.
|
||||
//
|
||||
// If you have configured a lifecycle rule to abort incomplete multipart uploads,
|
||||
// the created multipart upload must be completed within the number of days
|
||||
// specified in the bucket lifecycle configuration. Otherwise, the incomplete
|
||||
// multipart upload becomes eligible for an abort action and Amazon S3 aborts the
|
||||
// multipart upload. For more information, see [Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration].
|
||||
//
|
||||
// - Directory buckets - S3 Lifecycle is not supported by directory buckets.
|
||||
//
|
||||
// - Directory buckets - For directory buckets, you must make requests for this
|
||||
// API operation to the Zonal endpoint. These endpoints support
|
||||
// virtual-hosted-style requests in the format
|
||||
// https://bucket_name.s3express-az_id.region.amazonaws.com/key-name .
|
||||
// Path-style requests are not supported. For more information, see Regional and
|
||||
// Zonal endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// Path-style requests are not supported. For more information, see [Regional and Zonal endpoints]in the
|
||||
// Amazon S3 User Guide.
|
||||
//
|
||||
// Request signing For request signing, multipart upload is just a series of
|
||||
// regular requests. You initiate a multipart upload, send one or more requests to
|
||||
// upload parts, and then complete the multipart upload process. You sign each
|
||||
// request individually. There is nothing special about signing multipart upload
|
||||
// requests. For more information about signing, see Authenticating Requests
|
||||
// (Amazon Web Services Signature Version 4) (https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html)
|
||||
// in the Amazon S3 User Guide. Permissions
|
||||
// - General purpose bucket permissions - For information about the permissions
|
||||
// required to use the multipart upload API, see Multipart upload and permissions (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuAndPermissions.html)
|
||||
// in the Amazon S3 User Guide. To perform a multipart upload with encryption by
|
||||
// using an Amazon Web Services KMS key, the requester must have permission to the
|
||||
// kms:Decrypt and kms:GenerateDataKey* actions on the key. These permissions are
|
||||
// required because Amazon S3 must decrypt and read data from the encrypted file
|
||||
// parts before it completes the multipart upload. For more information, see
|
||||
// Multipart upload API and permissions (https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions)
|
||||
// and Protecting data using server-side encryption with Amazon Web Services KMS (https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// requests. For more information about signing, see [Authenticating Requests (Amazon Web Services Signature Version 4)]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Permissions
|
||||
//
|
||||
// - General purpose bucket permissions - To perform a multipart upload with
|
||||
// encryption using an Key Management Service (KMS) KMS key, the requester must
|
||||
// have permission to the kms:Decrypt and kms:GenerateDataKey actions on the key.
|
||||
// The requester must also have permissions for the kms:GenerateDataKey action
|
||||
// for the CreateMultipartUpload API. Then, the requester needs permissions for
|
||||
// the kms:Decrypt action on the UploadPart and UploadPartCopy APIs. These
|
||||
// permissions are required because Amazon S3 must decrypt and read data from the
|
||||
// encrypted file parts before it completes the multipart upload. For more
|
||||
// information, see [Multipart upload API and permissions]and [Protecting data using server-side encryption with Amazon Web Services KMS]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory bucket permissions - To grant access to this API operation on a
|
||||
// directory bucket, we recommend that you use the CreateSession (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html)
|
||||
// API operation for session-based authorization. Specifically, you grant the
|
||||
// directory bucket, we recommend that you use the [CreateSession]CreateSession API operation
|
||||
// for session-based authorization. Specifically, you grant the
|
||||
// s3express:CreateSession permission to the directory bucket in a bucket policy
|
||||
// or an IAM identity-based policy. Then, you make the CreateSession API call on
|
||||
// the bucket to obtain a session token. With the session token in your request
|
||||
|
|
@ -68,10 +70,10 @@ import (
|
|||
// expires, you make another CreateSession API call to generate a new session
|
||||
// token for use. Amazon Web Services CLI or SDKs create session and refresh the
|
||||
// session token automatically to avoid service interruptions when a session
|
||||
// expires. For more information about authorization, see CreateSession (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html)
|
||||
// .
|
||||
// expires. For more information about authorization, see [CreateSession]CreateSession .
|
||||
//
|
||||
// Encryption
|
||||
//
|
||||
// - General purpose buckets - Server-side encryption is for data encryption at
|
||||
// rest. Amazon S3 encrypts your data as it writes it to disks in its data centers
|
||||
// and decrypts it when you access it. Amazon S3 automatically encrypts all new
|
||||
|
|
@ -91,61 +93,95 @@ import (
|
|||
// in your request is different from the default encryption configuration of the
|
||||
// destination bucket, the encryption setting in your request takes precedence. If
|
||||
// you choose to provide your own encryption key, the request headers you provide
|
||||
// in UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)
|
||||
// and UploadPartCopy (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)
|
||||
// requests must match the headers you used in the CreateMultipartUpload request.
|
||||
// in [UploadPart]and [UploadPartCopy]requests must match the headers you used in the CreateMultipartUpload
|
||||
// request.
|
||||
//
|
||||
// - Use KMS keys (SSE-KMS) that include the Amazon Web Services managed key (
|
||||
// aws/s3 ) and KMS customer managed keys stored in Key Management Service (KMS)
|
||||
// – If you want Amazon Web Services to manage the keys used to encrypt data,
|
||||
// specify the following headers in the request.
|
||||
//
|
||||
// - x-amz-server-side-encryption
|
||||
//
|
||||
// - x-amz-server-side-encryption-aws-kms-key-id
|
||||
//
|
||||
// - x-amz-server-side-encryption-context
|
||||
//
|
||||
// - If you specify x-amz-server-side-encryption:aws:kms , but don't provide
|
||||
// x-amz-server-side-encryption-aws-kms-key-id , Amazon S3 uses the Amazon Web
|
||||
// Services managed key ( aws/s3 key) in KMS to protect the data.
|
||||
//
|
||||
// - To perform a multipart upload with encryption by using an Amazon Web
|
||||
// Services KMS key, the requester must have permission to the kms:Decrypt and
|
||||
// kms:GenerateDataKey* actions on the key. These permissions are required
|
||||
// because Amazon S3 must decrypt and read data from the encrypted file parts
|
||||
// before it completes the multipart upload. For more information, see Multipart
|
||||
// upload API and permissions (https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions)
|
||||
// and Protecting data using server-side encryption with Amazon Web Services KMS (https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// before it completes the multipart upload. For more information, see [Multipart upload API and permissions]and [Protecting data using server-side encryption with Amazon Web Services KMS]in
|
||||
// the Amazon S3 User Guide.
|
||||
//
|
||||
// - If your Identity and Access Management (IAM) user or role is in the same
|
||||
// Amazon Web Services account as the KMS key, then you must have these permissions
|
||||
// on the key policy. If your IAM user or role is in a different account from the
|
||||
// key, then you must have the permissions on both the key policy and your IAM user
|
||||
// or role.
|
||||
//
|
||||
// - All GET and PUT requests for an object protected by KMS fail if you don't
|
||||
// make them by using Secure Sockets Layer (SSL), Transport Layer Security (TLS),
|
||||
// or Signature Version 4. For information about configuring any of the officially
|
||||
// supported Amazon Web Services SDKs and Amazon Web Services CLI, see
|
||||
// Specifying the Signature Version in Request Authentication (https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version)
|
||||
// in the Amazon S3 User Guide. For more information about server-side
|
||||
// encryption with KMS keys (SSE-KMS), see Protecting Data Using Server-Side
|
||||
// Encryption with KMS keys (https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// - Use customer-provided encryption keys (SSE-C) – If you want to manage your
|
||||
// own encryption keys, provide all the following headers in the request.
|
||||
// - x-amz-server-side-encryption-customer-algorithm
|
||||
// - x-amz-server-side-encryption-customer-key
|
||||
// - x-amz-server-side-encryption-customer-key-MD5 For more information about
|
||||
// server-side encryption with customer-provided encryption keys (SSE-C), see
|
||||
// Protecting data using server-side encryption with customer-provided encryption
|
||||
// keys (SSE-C) (https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// - Directory buckets -For directory buckets, only server-side encryption with
|
||||
// Amazon S3 managed keys (SSE-S3) ( AES256 ) is supported.
|
||||
// supported Amazon Web Services SDKs and Amazon Web Services CLI, see [Specifying the Signature Version in Request Authentication]in the
|
||||
// Amazon S3 User Guide.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com . The following operations are
|
||||
// related to CreateMultipartUpload :
|
||||
// - UploadPart (https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html)
|
||||
// - CompleteMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html)
|
||||
// - AbortMultipartUpload (https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html)
|
||||
// - ListParts (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html)
|
||||
// - ListMultipartUploads (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html)
|
||||
// For more information about server-side encryption with KMS keys (SSE-KMS), see [Protecting Data Using Server-Side Encryption with KMS keys]
|
||||
//
|
||||
// in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Use customer-provided encryption keys (SSE-C) – If you want to manage your
|
||||
// own encryption keys, provide all the following headers in the request.
|
||||
//
|
||||
// - x-amz-server-side-encryption-customer-algorithm
|
||||
//
|
||||
// - x-amz-server-side-encryption-customer-key
|
||||
//
|
||||
// - x-amz-server-side-encryption-customer-key-MD5
|
||||
//
|
||||
// For more information about server-side encryption with customer-provided
|
||||
//
|
||||
// encryption keys (SSE-C), see [Protecting data using server-side encryption with customer-provided encryption keys (SSE-C)]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory buckets -For directory buckets, only server-side encryption with
|
||||
// Amazon S3 managed keys (SSE-S3) ( AES256 ) is supported.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com .
|
||||
//
|
||||
// The following operations are related to CreateMultipartUpload :
|
||||
//
|
||||
// [UploadPart]
|
||||
//
|
||||
// [CompleteMultipartUpload]
|
||||
//
|
||||
// [AbortMultipartUpload]
|
||||
//
|
||||
// [ListParts]
|
||||
//
|
||||
// [ListMultipartUploads]
|
||||
//
|
||||
// [ListParts]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListParts.html
|
||||
// [UploadPart]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPart.html
|
||||
// [Protecting Data Using Server-Side Encryption with KMS keys]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [Specifying the Signature Version in Request Authentication]: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version
|
||||
// [Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config
|
||||
// [CreateSession]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html
|
||||
// [Multipart upload API and permissions]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpuoverview.html#mpuAndPermissions
|
||||
// [UploadPartCopy]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html
|
||||
// [CompleteMultipartUpload]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CompleteMultipartUpload.html
|
||||
// [Authenticating Requests (Amazon Web Services Signature Version 4)]: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
|
||||
// [AbortMultipartUpload]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_AbortMultipartUpload.html
|
||||
// [Multipart Upload Overview]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html
|
||||
// [Protecting data using server-side encryption with Amazon Web Services KMS]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html
|
||||
// [ListMultipartUploads]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListMultipartUploads.html
|
||||
//
|
||||
// [Protecting data using server-side encryption with customer-provided encryption keys (SSE-C)]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html
|
||||
func (c *Client) CreateMultipartUpload(ctx context.Context, params *CreateMultipartUploadInput, optFns ...func(*Options)) (*CreateMultipartUploadOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateMultipartUploadInput{}
|
||||
|
|
@ -164,30 +200,39 @@ func (c *Client) CreateMultipartUpload(ctx context.Context, params *CreateMultip
|
|||
type CreateMultipartUploadInput struct {
|
||||
|
||||
// The name of the bucket where the multipart upload is initiated and where the
|
||||
// object is uploaded. Directory buckets - When you use this operation with a
|
||||
// directory bucket, you must use virtual-hosted-style requests in the format
|
||||
// object is uploaded.
|
||||
//
|
||||
// Directory buckets - When you use this operation with a directory bucket, you
|
||||
// must use virtual-hosted-style requests in the format
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com . Path-style requests are not
|
||||
// supported. Directory bucket names must be unique in the chosen Availability
|
||||
// Zone. Bucket names must follow the format bucket_base_name--az-id--x-s3 (for
|
||||
// example, DOC-EXAMPLE-BUCKET--usw2-az2--x-s3 ). For information about bucket
|
||||
// naming restrictions, see Directory bucket naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html)
|
||||
// in the Amazon S3 User Guide. Access points - When you use this action with an
|
||||
// access point, you must provide the alias of the access point in place of the
|
||||
// bucket name or specify the access point ARN. When using the access point ARN,
|
||||
// you must direct requests to the access point hostname. The access point hostname
|
||||
// takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com.
|
||||
// When using this action with an access point through the Amazon Web Services
|
||||
// SDKs, you provide the access point ARN in place of the bucket name. For more
|
||||
// information about access point ARNs, see Using access points (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html)
|
||||
// in the Amazon S3 User Guide. Access points and Object Lambda access points are
|
||||
// not supported by directory buckets. S3 on Outposts - When you use this action
|
||||
// with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts
|
||||
// hostname. The S3 on Outposts hostname takes the form
|
||||
// example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3 ). For information about bucket
|
||||
// naming restrictions, see [Directory bucket naming rules]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Access points - When you use this action with an access point, you must provide
|
||||
// the alias of the access point in place of the bucket name or specify the access
|
||||
// point ARN. When using the access point ARN, you must direct requests to the
|
||||
// access point hostname. The access point hostname takes the form
|
||||
// AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this
|
||||
// action with an access point through the Amazon Web Services SDKs, you provide
|
||||
// the access point ARN in place of the bucket name. For more information about
|
||||
// access point ARNs, see [Using access points]in the Amazon S3 User Guide.
|
||||
//
|
||||
// Access points and Object Lambda access points are not supported by directory
|
||||
// buckets.
|
||||
//
|
||||
// S3 on Outposts - When you use this action with Amazon S3 on Outposts, you must
|
||||
// direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname
|
||||
// takes the form
|
||||
// AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com . When you
|
||||
// use this action with S3 on Outposts through the Amazon Web Services SDKs, you
|
||||
// provide the Outposts access point ARN in place of the bucket name. For more
|
||||
// information about S3 on Outposts ARNs, see What is S3 on Outposts? (https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// information about S3 on Outposts ARNs, see [What is S3 on Outposts?]in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Directory bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
|
||||
// [What is S3 on Outposts?]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html
|
||||
// [Using access points]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html
|
||||
//
|
||||
// This member is required.
|
||||
Bucket *string
|
||||
|
|
@ -199,32 +244,41 @@ type CreateMultipartUploadInput struct {
|
|||
|
||||
// The canned ACL to apply to the object. Amazon S3 supports a set of predefined
|
||||
// ACLs, known as canned ACLs. Each canned ACL has a predefined set of grantees and
|
||||
// permissions. For more information, see Canned ACL (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL)
|
||||
// in the Amazon S3 User Guide. By default, all objects are private. Only the owner
|
||||
// has full access control. When uploading an object, you can grant access
|
||||
// permissions to individual Amazon Web Services accounts or to predefined groups
|
||||
// defined by Amazon S3. These permissions are then added to the access control
|
||||
// list (ACL) on the new object. For more information, see Using ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html)
|
||||
// . One way to grant the permissions using the request headers is to specify a
|
||||
// canned ACL with the x-amz-acl request header.
|
||||
// permissions. For more information, see [Canned ACL]in the Amazon S3 User Guide.
|
||||
//
|
||||
// By default, all objects are private. Only the owner has full access control.
|
||||
// When uploading an object, you can grant access permissions to individual Amazon
|
||||
// Web Services accounts or to predefined groups defined by Amazon S3. These
|
||||
// permissions are then added to the access control list (ACL) on the new object.
|
||||
// For more information, see [Using ACLs]. One way to grant the permissions using the request
|
||||
// headers is to specify a canned ACL with the x-amz-acl request header.
|
||||
//
|
||||
// - This functionality is not supported for directory buckets.
|
||||
//
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
//
|
||||
// [Canned ACL]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#CannedACL
|
||||
// [Using ACLs]: https://docs.aws.amazon.com/AmazonS3/latest/dev/S3_ACLs_UsingACLs.html
|
||||
ACL types.ObjectCannedACL
|
||||
|
||||
// Specifies whether Amazon S3 should use an S3 Bucket Key for object encryption
|
||||
// with server-side encryption using Key Management Service (KMS) keys (SSE-KMS).
|
||||
// Setting this header to true causes Amazon S3 to use an S3 Bucket Key for object
|
||||
// encryption with SSE-KMS. Specifying this header with an object action doesn’t
|
||||
// affect bucket-level settings for S3 Bucket Key. This functionality is not
|
||||
// supported for directory buckets.
|
||||
// encryption with SSE-KMS.
|
||||
//
|
||||
// Specifying this header with an object action doesn’t affect bucket-level
|
||||
// settings for S3 Bucket Key.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
BucketKeyEnabled *bool
|
||||
|
||||
// Specifies caching behavior along the request/reply chain.
|
||||
CacheControl *string
|
||||
|
||||
// Indicates the algorithm that you want Amazon S3 to use to create the checksum
|
||||
// for the object. For more information, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// for the object. For more information, see [Checking object integrity]in the Amazon S3 User Guide.
|
||||
//
|
||||
// [Checking object integrity]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html
|
||||
ChecksumAlgorithm types.ChecksumAlgorithm
|
||||
|
||||
// Specifies presentational information for the object.
|
||||
|
|
@ -232,8 +286,10 @@ type CreateMultipartUploadInput struct {
|
|||
|
||||
// Specifies what content encodings have been applied to the object and thus what
|
||||
// decoding mechanisms must be applied to obtain the media-type referenced by the
|
||||
// Content-Type header field. For directory buckets, only the aws-chunked value is
|
||||
// supported in this header field.
|
||||
// Content-Type header field.
|
||||
//
|
||||
// For directory buckets, only the aws-chunked value is supported in this header
|
||||
// field.
|
||||
ContentEncoding *string
|
||||
|
||||
// The language that the content is in.
|
||||
|
|
@ -251,213 +307,329 @@ type CreateMultipartUploadInput struct {
|
|||
Expires *time.Time
|
||||
|
||||
// Specify access permissions explicitly to give the grantee READ, READ_ACP, and
|
||||
// WRITE_ACP permissions on the object. By default, all objects are private. Only
|
||||
// the owner has full access control. When uploading an object, you can use this
|
||||
// header to explicitly grant access permissions to specific Amazon Web Services
|
||||
// accounts or groups. This header maps to specific permissions that Amazon S3
|
||||
// supports in an ACL. For more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html)
|
||||
// in the Amazon S3 User Guide. You specify each grantee as a type=value pair,
|
||||
// where the type is one of the following:
|
||||
// - id – if the value specified is the canonical user ID of an Amazon Web
|
||||
// Services account
|
||||
// - uri – if you are granting permissions to a predefined group
|
||||
// - emailAddress – if the value specified is the email address of an Amazon Web
|
||||
// Services account Using email addresses to specify a grantee is only supported in
|
||||
// the following Amazon Web Services Regions:
|
||||
// - US East (N. Virginia)
|
||||
// - US West (N. California)
|
||||
// - US West (Oregon)
|
||||
// - Asia Pacific (Singapore)
|
||||
// - Asia Pacific (Sydney)
|
||||
// - Asia Pacific (Tokyo)
|
||||
// - Europe (Ireland)
|
||||
// - South America (São Paulo) For a list of all the Amazon S3 supported Regions
|
||||
// and endpoints, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
|
||||
// in the Amazon Web Services General Reference.
|
||||
// For example, the following x-amz-grant-read header grants the Amazon Web
|
||||
// Services accounts identified by account IDs permissions to read object data and
|
||||
// its metadata: x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
// - This functionality is not supported for directory buckets.
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
GrantFullControl *string
|
||||
|
||||
// Specify access permissions explicitly to allow grantee to read the object data
|
||||
// and its metadata. By default, all objects are private. Only the owner has full
|
||||
// access control. When uploading an object, you can use this header to explicitly
|
||||
// grant access permissions to specific Amazon Web Services accounts or groups.
|
||||
// This header maps to specific permissions that Amazon S3 supports in an ACL. For
|
||||
// more information, see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html)
|
||||
// in the Amazon S3 User Guide. You specify each grantee as a type=value pair,
|
||||
// where the type is one of the following:
|
||||
// - id – if the value specified is the canonical user ID of an Amazon Web
|
||||
// Services account
|
||||
// - uri – if you are granting permissions to a predefined group
|
||||
// - emailAddress – if the value specified is the email address of an Amazon Web
|
||||
// Services account Using email addresses to specify a grantee is only supported in
|
||||
// the following Amazon Web Services Regions:
|
||||
// - US East (N. Virginia)
|
||||
// - US West (N. California)
|
||||
// - US West (Oregon)
|
||||
// - Asia Pacific (Singapore)
|
||||
// - Asia Pacific (Sydney)
|
||||
// - Asia Pacific (Tokyo)
|
||||
// - Europe (Ireland)
|
||||
// - South America (São Paulo) For a list of all the Amazon S3 supported Regions
|
||||
// and endpoints, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
|
||||
// in the Amazon Web Services General Reference.
|
||||
// For example, the following x-amz-grant-read header grants the Amazon Web
|
||||
// Services accounts identified by account IDs permissions to read object data and
|
||||
// its metadata: x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
// - This functionality is not supported for directory buckets.
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
GrantRead *string
|
||||
|
||||
// Specify access permissions explicitly to allows grantee to read the object ACL.
|
||||
// WRITE_ACP permissions on the object.
|
||||
//
|
||||
// By default, all objects are private. Only the owner has full access control.
|
||||
// When uploading an object, you can use this header to explicitly grant access
|
||||
// permissions to specific Amazon Web Services accounts or groups. This header maps
|
||||
// to specific permissions that Amazon S3 supports in an ACL. For more information,
|
||||
// see Access Control List (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html)
|
||||
// in the Amazon S3 User Guide. You specify each grantee as a type=value pair,
|
||||
// where the type is one of the following:
|
||||
// see [Access Control List (ACL) Overview]in the Amazon S3 User Guide.
|
||||
//
|
||||
// You specify each grantee as a type=value pair, where the type is one of the
|
||||
// following:
|
||||
//
|
||||
// - id – if the value specified is the canonical user ID of an Amazon Web
|
||||
// Services account
|
||||
//
|
||||
// - uri – if you are granting permissions to a predefined group
|
||||
//
|
||||
// - emailAddress – if the value specified is the email address of an Amazon Web
|
||||
// Services account Using email addresses to specify a grantee is only supported in
|
||||
// the following Amazon Web Services Regions:
|
||||
// Services account
|
||||
//
|
||||
// Using email addresses to specify a grantee is only supported in the following
|
||||
// Amazon Web Services Regions:
|
||||
//
|
||||
// - US East (N. Virginia)
|
||||
//
|
||||
// - US West (N. California)
|
||||
//
|
||||
// - US West (Oregon)
|
||||
//
|
||||
// - Asia Pacific (Singapore)
|
||||
//
|
||||
// - Asia Pacific (Sydney)
|
||||
//
|
||||
// - Asia Pacific (Tokyo)
|
||||
//
|
||||
// - Europe (Ireland)
|
||||
// - South America (São Paulo) For a list of all the Amazon S3 supported Regions
|
||||
// and endpoints, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
|
||||
// in the Amazon Web Services General Reference.
|
||||
//
|
||||
// - South America (São Paulo)
|
||||
//
|
||||
// For a list of all the Amazon S3 supported Regions and endpoints, see [Regions and Endpoints]in the
|
||||
// Amazon Web Services General Reference.
|
||||
//
|
||||
// For example, the following x-amz-grant-read header grants the Amazon Web
|
||||
// Services accounts identified by account IDs permissions to read object data and
|
||||
// its metadata: x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
// its metadata:
|
||||
//
|
||||
// x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
//
|
||||
// - This functionality is not supported for directory buckets.
|
||||
//
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
//
|
||||
// [Regions and Endpoints]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
||||
// [Access Control List (ACL) Overview]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
|
||||
GrantFullControl *string
|
||||
|
||||
// Specify access permissions explicitly to allow grantee to read the object data
|
||||
// and its metadata.
|
||||
//
|
||||
// By default, all objects are private. Only the owner has full access control.
|
||||
// When uploading an object, you can use this header to explicitly grant access
|
||||
// permissions to specific Amazon Web Services accounts or groups. This header maps
|
||||
// to specific permissions that Amazon S3 supports in an ACL. For more information,
|
||||
// see [Access Control List (ACL) Overview]in the Amazon S3 User Guide.
|
||||
//
|
||||
// You specify each grantee as a type=value pair, where the type is one of the
|
||||
// following:
|
||||
//
|
||||
// - id – if the value specified is the canonical user ID of an Amazon Web
|
||||
// Services account
|
||||
//
|
||||
// - uri – if you are granting permissions to a predefined group
|
||||
//
|
||||
// - emailAddress – if the value specified is the email address of an Amazon Web
|
||||
// Services account
|
||||
//
|
||||
// Using email addresses to specify a grantee is only supported in the following
|
||||
// Amazon Web Services Regions:
|
||||
//
|
||||
// - US East (N. Virginia)
|
||||
//
|
||||
// - US West (N. California)
|
||||
//
|
||||
// - US West (Oregon)
|
||||
//
|
||||
// - Asia Pacific (Singapore)
|
||||
//
|
||||
// - Asia Pacific (Sydney)
|
||||
//
|
||||
// - Asia Pacific (Tokyo)
|
||||
//
|
||||
// - Europe (Ireland)
|
||||
//
|
||||
// - South America (São Paulo)
|
||||
//
|
||||
// For a list of all the Amazon S3 supported Regions and endpoints, see [Regions and Endpoints]in the
|
||||
// Amazon Web Services General Reference.
|
||||
//
|
||||
// For example, the following x-amz-grant-read header grants the Amazon Web
|
||||
// Services accounts identified by account IDs permissions to read object data and
|
||||
// its metadata:
|
||||
//
|
||||
// x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
//
|
||||
// - This functionality is not supported for directory buckets.
|
||||
//
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
//
|
||||
// [Regions and Endpoints]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
||||
// [Access Control List (ACL) Overview]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
|
||||
GrantRead *string
|
||||
|
||||
// Specify access permissions explicitly to allows grantee to read the object ACL.
|
||||
//
|
||||
// By default, all objects are private. Only the owner has full access control.
|
||||
// When uploading an object, you can use this header to explicitly grant access
|
||||
// permissions to specific Amazon Web Services accounts or groups. This header maps
|
||||
// to specific permissions that Amazon S3 supports in an ACL. For more information,
|
||||
// see [Access Control List (ACL) Overview]in the Amazon S3 User Guide.
|
||||
//
|
||||
// You specify each grantee as a type=value pair, where the type is one of the
|
||||
// following:
|
||||
//
|
||||
// - id – if the value specified is the canonical user ID of an Amazon Web
|
||||
// Services account
|
||||
//
|
||||
// - uri – if you are granting permissions to a predefined group
|
||||
//
|
||||
// - emailAddress – if the value specified is the email address of an Amazon Web
|
||||
// Services account
|
||||
//
|
||||
// Using email addresses to specify a grantee is only supported in the following
|
||||
// Amazon Web Services Regions:
|
||||
//
|
||||
// - US East (N. Virginia)
|
||||
//
|
||||
// - US West (N. California)
|
||||
//
|
||||
// - US West (Oregon)
|
||||
//
|
||||
// - Asia Pacific (Singapore)
|
||||
//
|
||||
// - Asia Pacific (Sydney)
|
||||
//
|
||||
// - Asia Pacific (Tokyo)
|
||||
//
|
||||
// - Europe (Ireland)
|
||||
//
|
||||
// - South America (São Paulo)
|
||||
//
|
||||
// For a list of all the Amazon S3 supported Regions and endpoints, see [Regions and Endpoints]in the
|
||||
// Amazon Web Services General Reference.
|
||||
//
|
||||
// For example, the following x-amz-grant-read header grants the Amazon Web
|
||||
// Services accounts identified by account IDs permissions to read object data and
|
||||
// its metadata:
|
||||
//
|
||||
// x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
//
|
||||
// - This functionality is not supported for directory buckets.
|
||||
//
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
//
|
||||
// [Regions and Endpoints]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
||||
// [Access Control List (ACL) Overview]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
|
||||
GrantReadACP *string
|
||||
|
||||
// Specify access permissions explicitly to allows grantee to allow grantee to
|
||||
// write the ACL for the applicable object. By default, all objects are private.
|
||||
// Only the owner has full access control. When uploading an object, you can use
|
||||
// this header to explicitly grant access permissions to specific Amazon Web
|
||||
// Services accounts or groups. This header maps to specific permissions that
|
||||
// Amazon S3 supports in an ACL. For more information, see Access Control List
|
||||
// (ACL) Overview (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html)
|
||||
// in the Amazon S3 User Guide. You specify each grantee as a type=value pair,
|
||||
// where the type is one of the following:
|
||||
// write the ACL for the applicable object.
|
||||
//
|
||||
// By default, all objects are private. Only the owner has full access control.
|
||||
// When uploading an object, you can use this header to explicitly grant access
|
||||
// permissions to specific Amazon Web Services accounts or groups. This header maps
|
||||
// to specific permissions that Amazon S3 supports in an ACL. For more information,
|
||||
// see [Access Control List (ACL) Overview]in the Amazon S3 User Guide.
|
||||
//
|
||||
// You specify each grantee as a type=value pair, where the type is one of the
|
||||
// following:
|
||||
//
|
||||
// - id – if the value specified is the canonical user ID of an Amazon Web
|
||||
// Services account
|
||||
//
|
||||
// - uri – if you are granting permissions to a predefined group
|
||||
//
|
||||
// - emailAddress – if the value specified is the email address of an Amazon Web
|
||||
// Services account Using email addresses to specify a grantee is only supported in
|
||||
// the following Amazon Web Services Regions:
|
||||
// Services account
|
||||
//
|
||||
// Using email addresses to specify a grantee is only supported in the following
|
||||
// Amazon Web Services Regions:
|
||||
//
|
||||
// - US East (N. Virginia)
|
||||
//
|
||||
// - US West (N. California)
|
||||
//
|
||||
// - US West (Oregon)
|
||||
//
|
||||
// - Asia Pacific (Singapore)
|
||||
//
|
||||
// - Asia Pacific (Sydney)
|
||||
//
|
||||
// - Asia Pacific (Tokyo)
|
||||
//
|
||||
// - Europe (Ireland)
|
||||
// - South America (São Paulo) For a list of all the Amazon S3 supported Regions
|
||||
// and endpoints, see Regions and Endpoints (https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region)
|
||||
// in the Amazon Web Services General Reference.
|
||||
//
|
||||
// - South America (São Paulo)
|
||||
//
|
||||
// For a list of all the Amazon S3 supported Regions and endpoints, see [Regions and Endpoints]in the
|
||||
// Amazon Web Services General Reference.
|
||||
//
|
||||
// For example, the following x-amz-grant-read header grants the Amazon Web
|
||||
// Services accounts identified by account IDs permissions to read object data and
|
||||
// its metadata: x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
// its metadata:
|
||||
//
|
||||
// x-amz-grant-read: id="11112222333", id="444455556666"
|
||||
//
|
||||
// - This functionality is not supported for directory buckets.
|
||||
//
|
||||
// - This functionality is not supported for Amazon S3 on Outposts.
|
||||
//
|
||||
// [Regions and Endpoints]: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
|
||||
// [Access Control List (ACL) Overview]: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
|
||||
GrantWriteACP *string
|
||||
|
||||
// A map of metadata to store with the object in S3.
|
||||
Metadata map[string]string
|
||||
|
||||
// Specifies whether you want to apply a legal hold to the uploaded object. This
|
||||
// functionality is not supported for directory buckets.
|
||||
// Specifies whether you want to apply a legal hold to the uploaded object.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
ObjectLockLegalHoldStatus types.ObjectLockLegalHoldStatus
|
||||
|
||||
// Specifies the Object Lock mode that you want to apply to the uploaded object.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
ObjectLockMode types.ObjectLockMode
|
||||
|
||||
// Specifies the date and time when you want the Object Lock to expire. This
|
||||
// functionality is not supported for directory buckets.
|
||||
// Specifies the date and time when you want the Object Lock to expire.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
ObjectLockRetainUntilDate *time.Time
|
||||
|
||||
// Confirms that the requester knows that they will be charged for the request.
|
||||
// Bucket owners need not specify this parameter in their requests. If either the
|
||||
// source or destination S3 bucket has Requester Pays enabled, the requester will
|
||||
// pay for corresponding charges to copy the object. For information about
|
||||
// downloading objects from Requester Pays buckets, see Downloading Objects in
|
||||
// Requester Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html)
|
||||
// in the Amazon S3 User Guide. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// downloading objects from Requester Pays buckets, see [Downloading Objects in Requester Pays Buckets]in the Amazon S3 User
|
||||
// Guide.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Downloading Objects in Requester Pays Buckets]: https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
|
||||
RequestPayer types.RequestPayer
|
||||
|
||||
// Specifies the algorithm to use when encrypting the object (for example,
|
||||
// AES256). This functionality is not supported for directory buckets.
|
||||
// Specifies the algorithm to use when encrypting the object (for example, AES256).
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSECustomerAlgorithm *string
|
||||
|
||||
// Specifies the customer-provided encryption key for Amazon S3 to use in
|
||||
// encrypting data. This value is used to store the object and then it is
|
||||
// discarded; Amazon S3 does not store the encryption key. The key must be
|
||||
// appropriate for use with the algorithm specified in the
|
||||
// x-amz-server-side-encryption-customer-algorithm header. This functionality is
|
||||
// not supported for directory buckets.
|
||||
// x-amz-server-side-encryption-customer-algorithm header.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSECustomerKey *string
|
||||
|
||||
// Specifies the 128-bit MD5 digest of the customer-provided encryption key
|
||||
// according to RFC 1321. Amazon S3 uses this header for a message integrity check
|
||||
// to ensure that the encryption key was transmitted without error. This
|
||||
// functionality is not supported for directory buckets.
|
||||
// to ensure that the encryption key was transmitted without error.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSECustomerKeyMD5 *string
|
||||
|
||||
// Specifies the Amazon Web Services KMS Encryption Context to use for object
|
||||
// encryption. The value of this header is a base64-encoded UTF-8 string holding
|
||||
// JSON with the encryption context key-value pairs. This functionality is not
|
||||
// supported for directory buckets.
|
||||
// JSON with the encryption context key-value pairs.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSEKMSEncryptionContext *string
|
||||
|
||||
// Specifies the ID (Key ID, Key ARN, or Key Alias) of the symmetric encryption
|
||||
// customer managed key to use for object encryption. This functionality is not
|
||||
// supported for directory buckets.
|
||||
// customer managed key to use for object encryption.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSEKMSKeyId *string
|
||||
|
||||
// The server-side encryption algorithm used when you store this object in Amazon
|
||||
// S3 (for example, AES256 , aws:kms ). For directory buckets, only server-side
|
||||
// encryption with Amazon S3 managed keys (SSE-S3) ( AES256 ) is supported.
|
||||
// S3 (for example, AES256 , aws:kms ).
|
||||
//
|
||||
// For directory buckets, only server-side encryption with Amazon S3 managed keys
|
||||
// (SSE-S3) ( AES256 ) is supported.
|
||||
ServerSideEncryption types.ServerSideEncryption
|
||||
|
||||
// By default, Amazon S3 uses the STANDARD Storage Class to store newly created
|
||||
// objects. The STANDARD storage class provides high durability and high
|
||||
// availability. Depending on performance needs, you can specify a different
|
||||
// Storage Class. For more information, see Storage Classes (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// Storage Class. For more information, see [Storage Classes]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - For directory buckets, only the S3 Express One Zone storage class is
|
||||
// supported to store newly created objects.
|
||||
//
|
||||
// - Amazon S3 on Outposts only uses the OUTPOSTS Storage Class.
|
||||
//
|
||||
// [Storage Classes]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html
|
||||
StorageClass types.StorageClass
|
||||
|
||||
// The tag-set for the object. The tag-set must be encoded as URL Query
|
||||
// parameters. This functionality is not supported for directory buckets.
|
||||
// The tag-set for the object. The tag-set must be encoded as URL Query parameters.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
Tagging *string
|
||||
|
||||
// If the bucket is configured as a website, redirects requests for this object to
|
||||
// another object in the same bucket or to an external URL. Amazon S3 stores the
|
||||
// value of this header in the object metadata. This functionality is not supported
|
||||
// for directory buckets.
|
||||
// value of this header in the object metadata.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
WebsiteRedirectLocation *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (in *CreateMultipartUploadInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.Key = in.Key
|
||||
|
||||
|
|
@ -469,27 +641,33 @@ type CreateMultipartUploadOutput struct {
|
|||
// incomplete multipart uploads and the prefix in the lifecycle rule matches the
|
||||
// object name in the request, the response includes this header. The header
|
||||
// indicates when the initiated multipart upload becomes eligible for an abort
|
||||
// operation. For more information, see Aborting Incomplete Multipart Uploads
|
||||
// Using a Bucket Lifecycle Configuration (https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config)
|
||||
// in the Amazon S3 User Guide. The response also includes the x-amz-abort-rule-id
|
||||
// header that provides the ID of the lifecycle configuration rule that defines the
|
||||
// abort action. This functionality is not supported for directory buckets.
|
||||
// operation. For more information, see [Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration]in the Amazon S3 User Guide.
|
||||
//
|
||||
// The response also includes the x-amz-abort-rule-id header that provides the ID
|
||||
// of the lifecycle configuration rule that defines the abort action.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
//
|
||||
// [Aborting Incomplete Multipart Uploads Using a Bucket Lifecycle Configuration]: https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html#mpu-abort-incomplete-mpu-lifecycle-config
|
||||
AbortDate *time.Time
|
||||
|
||||
// This header is returned along with the x-amz-abort-date header. It identifies
|
||||
// the applicable lifecycle configuration rule that defines the action to abort
|
||||
// incomplete multipart uploads. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// incomplete multipart uploads.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
AbortRuleId *string
|
||||
|
||||
// The name of the bucket to which the multipart upload was initiated. Does not
|
||||
// return the access point ARN or access point alias if used. Access points are not
|
||||
// supported by directory buckets.
|
||||
// return the access point ARN or access point alias if used.
|
||||
//
|
||||
// Access points are not supported by directory buckets.
|
||||
Bucket *string
|
||||
|
||||
// Indicates whether the multipart upload uses an S3 Bucket Key for server-side
|
||||
// encryption with Key Management Service (KMS) keys (SSE-KMS). This functionality
|
||||
// is not supported for directory buckets.
|
||||
// encryption with Key Management Service (KMS) keys (SSE-KMS).
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
BucketKeyEnabled *bool
|
||||
|
||||
// The algorithm that was used to create a checksum of the object.
|
||||
|
|
@ -499,35 +677,43 @@ type CreateMultipartUploadOutput struct {
|
|||
Key *string
|
||||
|
||||
// If present, indicates that the requester was successfully charged for the
|
||||
// request. This functionality is not supported for directory buckets.
|
||||
// request.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
RequestCharged types.RequestCharged
|
||||
|
||||
// If server-side encryption with a customer-provided encryption key was
|
||||
// requested, the response will include this header to confirm the encryption
|
||||
// algorithm that's used. This functionality is not supported for directory
|
||||
// buckets.
|
||||
// algorithm that's used.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSECustomerAlgorithm *string
|
||||
|
||||
// If server-side encryption with a customer-provided encryption key was
|
||||
// requested, the response will include this header to provide the round-trip
|
||||
// message integrity verification of the customer-provided encryption key. This
|
||||
// functionality is not supported for directory buckets.
|
||||
// message integrity verification of the customer-provided encryption key.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSECustomerKeyMD5 *string
|
||||
|
||||
// If present, indicates the Amazon Web Services KMS Encryption Context to use for
|
||||
// object encryption. The value of this header is a base64-encoded UTF-8 string
|
||||
// holding JSON with the encryption context key-value pairs. This functionality is
|
||||
// not supported for directory buckets.
|
||||
// holding JSON with the encryption context key-value pairs.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSEKMSEncryptionContext *string
|
||||
|
||||
// If present, indicates the ID of the Key Management Service (KMS) symmetric
|
||||
// encryption customer managed key that was used for the object. This functionality
|
||||
// is not supported for directory buckets.
|
||||
// encryption customer managed key that was used for the object.
|
||||
//
|
||||
// This functionality is not supported for directory buckets.
|
||||
SSEKMSKeyId *string
|
||||
|
||||
// The server-side encryption algorithm used when you store this object in Amazon
|
||||
// S3 (for example, AES256 , aws:kms ). For directory buckets, only server-side
|
||||
// encryption with Amazon S3 managed keys (SSE-S3) ( AES256 ) is supported.
|
||||
// S3 (for example, AES256 , aws:kms ).
|
||||
//
|
||||
// For directory buckets, only server-side encryption with Amazon S3 managed keys
|
||||
// (SSE-S3) ( AES256 ) is supported.
|
||||
ServerSideEncryption types.ServerSideEncryption
|
||||
|
||||
// ID for the initiated multipart upload.
|
||||
|
|
@ -597,6 +783,15 @@ func (c *Client) addOperationCreateMultipartUploadMiddlewares(stack *middleware.
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateMultipartUploadValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
98
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CreateSession.go
generated
vendored
98
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_CreateSession.go
generated
vendored
|
|
@ -17,62 +17,72 @@ import (
|
|||
// Creates a session that establishes temporary security credentials to support
|
||||
// fast authentication and authorization for the Zonal endpoint APIs on directory
|
||||
// buckets. For more information about Zonal endpoint APIs that include the
|
||||
// Availability Zone in the request endpoint, see S3 Express One Zone APIs (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html)
|
||||
// in the Amazon S3 User Guide. To make Zonal endpoint API requests on a directory
|
||||
// bucket, use the CreateSession API operation. Specifically, you grant
|
||||
// s3express:CreateSession permission to a bucket in a bucket policy or an IAM
|
||||
// identity-based policy. Then, you use IAM credentials to make the CreateSession
|
||||
// API request on the bucket, which returns temporary security credentials that
|
||||
// include the access key ID, secret access key, session token, and expiration.
|
||||
// These credentials have associated permissions to access the Zonal endpoint APIs.
|
||||
// After the session is created, you don’t need to use other policies to grant
|
||||
// permissions to each Zonal endpoint API individually. Instead, in your Zonal
|
||||
// endpoint API requests, you sign your requests by applying the temporary security
|
||||
// credentials of the session to the request headers and following the SigV4
|
||||
// protocol for authentication. You also apply the session token to the
|
||||
// x-amz-s3session-token request header for authorization. Temporary security
|
||||
// credentials are scoped to the bucket and expire after 5 minutes. After the
|
||||
// expiration time, any calls that you make with those credentials will fail. You
|
||||
// must use IAM credentials again to make a CreateSession API request that
|
||||
// generates a new set of temporary credentials for use. Temporary credentials
|
||||
// cannot be extended or refreshed beyond the original specified interval. If you
|
||||
// use Amazon Web Services SDKs, SDKs handle the session token refreshes
|
||||
// Availability Zone in the request endpoint, see [S3 Express One Zone APIs]in the Amazon S3 User Guide.
|
||||
//
|
||||
// To make Zonal endpoint API requests on a directory bucket, use the CreateSession
|
||||
// API operation. Specifically, you grant s3express:CreateSession permission to a
|
||||
// bucket in a bucket policy or an IAM identity-based policy. Then, you use IAM
|
||||
// credentials to make the CreateSession API request on the bucket, which returns
|
||||
// temporary security credentials that include the access key ID, secret access
|
||||
// key, session token, and expiration. These credentials have associated
|
||||
// permissions to access the Zonal endpoint APIs. After the session is created, you
|
||||
// don’t need to use other policies to grant permissions to each Zonal endpoint API
|
||||
// individually. Instead, in your Zonal endpoint API requests, you sign your
|
||||
// requests by applying the temporary security credentials of the session to the
|
||||
// request headers and following the SigV4 protocol for authentication. You also
|
||||
// apply the session token to the x-amz-s3session-token request header for
|
||||
// authorization. Temporary security credentials are scoped to the bucket and
|
||||
// expire after 5 minutes. After the expiration time, any calls that you make with
|
||||
// those credentials will fail. You must use IAM credentials again to make a
|
||||
// CreateSession API request that generates a new set of temporary credentials for
|
||||
// use. Temporary credentials cannot be extended or refreshed beyond the original
|
||||
// specified interval.
|
||||
//
|
||||
// If you use Amazon Web Services SDKs, SDKs handle the session token refreshes
|
||||
// automatically to avoid service interruptions when a session expires. We
|
||||
// recommend that you use the Amazon Web Services SDKs to initiate and manage
|
||||
// requests to the CreateSession API. For more information, see Performance
|
||||
// guidelines and design patterns (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication)
|
||||
// in the Amazon S3 User Guide.
|
||||
// requests to the CreateSession API. For more information, see [Performance guidelines and design patterns]in the Amazon S3
|
||||
// User Guide.
|
||||
//
|
||||
// - You must make requests for this API operation to the Zonal endpoint. These
|
||||
// endpoints support virtual-hosted-style requests in the format
|
||||
// https://bucket_name.s3express-az_id.region.amazonaws.com . Path-style requests
|
||||
// are not supported. For more information, see Regional and Zonal endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// are not supported. For more information, see [Regional and Zonal endpoints]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - CopyObject API operation - Unlike other Zonal endpoint APIs, the CopyObject
|
||||
// API operation doesn't use the temporary security credentials returned from the
|
||||
// CreateSession API operation for authentication and authorization. For
|
||||
// information about authentication and authorization of the CopyObject API
|
||||
// operation on directory buckets, see CopyObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html)
|
||||
// .
|
||||
// operation on directory buckets, see [CopyObject].
|
||||
//
|
||||
// - HeadBucket API operation - Unlike other Zonal endpoint APIs, the HeadBucket
|
||||
// API operation doesn't use the temporary security credentials returned from the
|
||||
// CreateSession API operation for authentication and authorization. For
|
||||
// information about authentication and authorization of the HeadBucket API
|
||||
// operation on directory buckets, see HeadBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html)
|
||||
// .
|
||||
// operation on directory buckets, see [HeadBucket].
|
||||
//
|
||||
// Permissions To obtain temporary security credentials, you must create a bucket
|
||||
// policy or an IAM identity-based policy that grants s3express:CreateSession
|
||||
// permission to the bucket. In a policy, you can have the s3express:SessionMode
|
||||
// condition key to control who can create a ReadWrite or ReadOnly session. For
|
||||
// more information about ReadWrite or ReadOnly sessions, see
|
||||
// x-amz-create-session-mode (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters)
|
||||
// . For example policies, see Example bucket policies for S3 Express One Zone (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html)
|
||||
// and Amazon Web Services Identity and Access Management (IAM) identity-based
|
||||
// policies for S3 Express One Zone (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html)
|
||||
// in the Amazon S3 User Guide. To grant cross-account access to Zonal endpoint
|
||||
// APIs, the bucket policy should also grant both accounts the
|
||||
// s3express:CreateSession permission. HTTP Host header syntax Directory buckets -
|
||||
// The HTTP Host header syntax is Bucket_name.s3express-az_id.region.amazonaws.com .
|
||||
// more information about ReadWrite or ReadOnly sessions, see [x-amz-create-session-mode]
|
||||
// x-amz-create-session-mode . For example policies, see [Example bucket policies for S3 Express One Zone] and [Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 Express One Zone] in the Amazon S3
|
||||
// User Guide.
|
||||
//
|
||||
// To grant cross-account access to Zonal endpoint APIs, the bucket policy should
|
||||
// also grant both accounts the s3express:CreateSession permission.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// Bucket_name.s3express-az_id.region.amazonaws.com .
|
||||
//
|
||||
// [Amazon Web Services Identity and Access Management (IAM) identity-based policies for S3 Express One Zone]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-identity-policies.html
|
||||
// [Performance guidelines and design patterns]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-optimizing-performance-guidelines-design-patterns.html#s3-express-optimizing-performance-session-authentication
|
||||
// [Example bucket policies for S3 Express One Zone]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam-example-bucket-policies.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [CopyObject]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html
|
||||
// [x-amz-create-session-mode]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateSession.html#API_CreateSession_RequestParameters
|
||||
// [S3 Express One Zone APIs]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-APIs.html
|
||||
// [HeadBucket]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadBucket.html
|
||||
func (c *Client) CreateSession(ctx context.Context, params *CreateSessionInput, optFns ...func(*Options)) (*CreateSessionOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateSessionInput{}
|
||||
|
|
@ -107,13 +117,14 @@ type CreateSessionInput struct {
|
|||
}
|
||||
|
||||
func (in *CreateSessionInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.DisableS3ExpressSessionAuth = ptr.Bool(true)
|
||||
}
|
||||
|
||||
type CreateSessionOutput struct {
|
||||
|
||||
// The established temporary security credentials for the created session..
|
||||
// The established temporary security credentials for the created session.
|
||||
//
|
||||
// This member is required.
|
||||
Credentials *types.SessionCredentials
|
||||
|
|
@ -182,6 +193,15 @@ func (c *Client) addOperationCreateSessionMiddlewares(stack *middleware.Stack, o
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateSessionValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
67
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucket.go
generated
vendored
67
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucket.go
generated
vendored
|
|
@ -15,33 +15,43 @@ import (
|
|||
|
||||
// Deletes the S3 bucket. All objects (including all object versions and delete
|
||||
// markers) in the bucket must be deleted before the bucket itself can be deleted.
|
||||
//
|
||||
// - Directory buckets - If multipart uploads in a directory bucket are in
|
||||
// progress, you can't delete the bucket until all the in-progress multipart
|
||||
// uploads are aborted or completed.
|
||||
//
|
||||
// - Directory buckets - For directory buckets, you must make requests for this
|
||||
// API operation to the Regional endpoint. These endpoints support path-style
|
||||
// requests in the format
|
||||
// https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. For more information, see
|
||||
// Regional and Zonal endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// Virtual-hosted-style requests aren't supported. For more information, see [Regional and Zonal endpoints]in
|
||||
// the Amazon S3 User Guide.
|
||||
//
|
||||
// Permissions
|
||||
//
|
||||
// - General purpose bucket permissions - You must have the s3:DeleteBucket
|
||||
// permission on the specified bucket in a policy.
|
||||
//
|
||||
// - Directory bucket permissions - You must have the s3express:DeleteBucket
|
||||
// permission in an IAM identity-based policy instead of a bucket policy.
|
||||
// Cross-account access to this API operation isn't supported. This operation can
|
||||
// only be performed by the Amazon Web Services account that owns the resource. For
|
||||
// more information about directory bucket policies and permissions, see Amazon
|
||||
// Web Services Identity and Access Management (IAM) for S3 Express One Zone (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// more information about directory bucket policies and permissions, see [Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone]in the
|
||||
// Amazon S3 User Guide.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// s3express-control.region.amazonaws.com . The following operations are related to
|
||||
// DeleteBucket :
|
||||
// - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html)
|
||||
// - DeleteObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html)
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// s3express-control.region.amazonaws.com .
|
||||
//
|
||||
// The following operations are related to DeleteBucket :
|
||||
//
|
||||
// [CreateBucket]
|
||||
//
|
||||
// [DeleteObject]
|
||||
//
|
||||
// [DeleteObject]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [CreateBucket]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html
|
||||
// [Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
||||
func (c *Client) DeleteBucket(ctx context.Context, params *DeleteBucketInput, optFns ...func(*Options)) (*DeleteBucketOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketInput{}
|
||||
|
|
@ -59,30 +69,36 @@ func (c *Client) DeleteBucket(ctx context.Context, params *DeleteBucketInput, op
|
|||
|
||||
type DeleteBucketInput struct {
|
||||
|
||||
// Specifies the bucket being deleted. Directory buckets - When you use this
|
||||
// operation with a directory bucket, you must use path-style requests in the
|
||||
// format https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Specifies the bucket being deleted.
|
||||
//
|
||||
// Directory buckets - When you use this operation with a directory bucket, you
|
||||
// must use path-style requests in the format
|
||||
// https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. Directory bucket names must be
|
||||
// unique in the chosen Availability Zone. Bucket names must also follow the format
|
||||
// bucket_base_name--az_id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az2--x-s3
|
||||
// ). For information about bucket naming restrictions, see Directory bucket
|
||||
// naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html)
|
||||
// in the Amazon S3 User Guide
|
||||
// bucket_base_name--az_id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3
|
||||
// ). For information about bucket naming restrictions, see [Directory bucket naming rules]in the Amazon S3 User
|
||||
// Guide
|
||||
//
|
||||
// [Directory bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
|
||||
//
|
||||
// This member is required.
|
||||
Bucket *string
|
||||
|
||||
// The account ID of the expected bucket owner. If the account ID that you provide
|
||||
// does not match the actual owner of the bucket, the request fails with the HTTP
|
||||
// status code 403 Forbidden (access denied). For directory buckets, this header
|
||||
// is not supported in this API operation. If you specify this header, the request
|
||||
// fails with the HTTP status code 501 Not Implemented .
|
||||
// status code 403 Forbidden (access denied).
|
||||
//
|
||||
// For directory buckets, this header is not supported in this API operation. If
|
||||
// you specify this header, the request fails with the HTTP status code 501 Not
|
||||
// Implemented .
|
||||
ExpectedBucketOwner *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (in *DeleteBucketInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -152,6 +168,15 @@ func (c *Client) addOperationDeleteBucketMiddlewares(stack *middleware.Stack, op
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,20 +13,32 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Deletes an analytics
|
||||
// configuration for the bucket (specified by the analytics configuration ID). To
|
||||
// use this operation, you must have permissions to perform the
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Deletes an analytics configuration for the bucket (specified by the analytics
|
||||
// configuration ID).
|
||||
//
|
||||
// To use this operation, you must have permissions to perform the
|
||||
// s3:PutAnalyticsConfiguration action. The bucket owner has this permission by
|
||||
// default. The bucket owner can grant this permission to others. For more
|
||||
// information about permissions, see Permissions Related to Bucket Subresource
|
||||
// Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
|
||||
// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html)
|
||||
// . For information about the Amazon S3 analytics feature, see Amazon S3
|
||||
// Analytics – Storage Class Analysis (https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html)
|
||||
// . The following operations are related to DeleteBucketAnalyticsConfiguration :
|
||||
// - GetBucketAnalyticsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAnalyticsConfiguration.html)
|
||||
// - ListBucketAnalyticsConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html)
|
||||
// - PutBucketAnalyticsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAnalyticsConfiguration.html)
|
||||
// information about permissions, see [Permissions Related to Bucket Subresource Operations]and [Managing Access Permissions to Your Amazon S3 Resources].
|
||||
//
|
||||
// For information about the Amazon S3 analytics feature, see [Amazon S3 Analytics – Storage Class Analysis].
|
||||
//
|
||||
// The following operations are related to DeleteBucketAnalyticsConfiguration :
|
||||
//
|
||||
// [GetBucketAnalyticsConfiguration]
|
||||
//
|
||||
// [ListBucketAnalyticsConfigurations]
|
||||
//
|
||||
// [PutBucketAnalyticsConfiguration]
|
||||
//
|
||||
// [Amazon S3 Analytics – Storage Class Analysis]: https://docs.aws.amazon.com/AmazonS3/latest/dev/analytics-storage-class.html
|
||||
// [Permissions Related to Bucket Subresource Operations]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources
|
||||
// [GetBucketAnalyticsConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketAnalyticsConfiguration.html
|
||||
// [ListBucketAnalyticsConfigurations]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketAnalyticsConfigurations.html
|
||||
// [PutBucketAnalyticsConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketAnalyticsConfiguration.html
|
||||
// [Managing Access Permissions to Your Amazon S3 Resources]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
||||
func (c *Client) DeleteBucketAnalyticsConfiguration(ctx context.Context, params *DeleteBucketAnalyticsConfigurationInput, optFns ...func(*Options)) (*DeleteBucketAnalyticsConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketAnalyticsConfigurationInput{}
|
||||
|
|
@ -63,6 +75,7 @@ type DeleteBucketAnalyticsConfigurationInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketAnalyticsConfigurationInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -132,6 +145,15 @@ func (c *Client) addOperationDeleteBucketAnalyticsConfigurationMiddlewares(stack
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketAnalyticsConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
37
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketCors.go
generated
vendored
37
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketCors.go
generated
vendored
|
|
@ -13,14 +13,25 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Deletes the cors
|
||||
// configuration information set for the bucket. To use this operation, you must
|
||||
// have permission to perform the s3:PutBucketCORS action. The bucket owner has
|
||||
// this permission by default and can grant this permission to others. For
|
||||
// information about cors , see Enabling Cross-Origin Resource Sharing (https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html)
|
||||
// in the Amazon S3 User Guide. Related Resources
|
||||
// - PutBucketCors (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html)
|
||||
// - RESTOPTIONSobject (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html)
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Deletes the cors configuration information set for the bucket.
|
||||
//
|
||||
// To use this operation, you must have permission to perform the s3:PutBucketCORS
|
||||
// action. The bucket owner has this permission by default and can grant this
|
||||
// permission to others.
|
||||
//
|
||||
// For information about cors , see [Enabling Cross-Origin Resource Sharing] in the Amazon S3 User Guide.
|
||||
//
|
||||
// # Related Resources
|
||||
//
|
||||
// [PutBucketCors]
|
||||
//
|
||||
// [RESTOPTIONSobject]
|
||||
//
|
||||
// [PutBucketCors]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketCors.html
|
||||
// [Enabling Cross-Origin Resource Sharing]: https://docs.aws.amazon.com/AmazonS3/latest/dev/cors.html
|
||||
// [RESTOPTIONSobject]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTOPTIONSobject.html
|
||||
func (c *Client) DeleteBucketCors(ctx context.Context, params *DeleteBucketCorsInput, optFns ...func(*Options)) (*DeleteBucketCorsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketCorsInput{}
|
||||
|
|
@ -52,6 +63,7 @@ type DeleteBucketCorsInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketCorsInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -121,6 +133,15 @@ func (c *Client) addOperationDeleteBucketCorsMiddlewares(stack *middleware.Stack
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketCorsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
47
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketEncryption.go
generated
vendored
47
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketEncryption.go
generated
vendored
|
|
@ -13,20 +13,29 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. This implementation of
|
||||
// the DELETE action resets the default encryption for the bucket as server-side
|
||||
// encryption with Amazon S3 managed keys (SSE-S3). For information about the
|
||||
// bucket default encryption feature, see Amazon S3 Bucket Default Encryption (https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html)
|
||||
// in the Amazon S3 User Guide. To use this operation, you must have permissions to
|
||||
// perform the s3:PutEncryptionConfiguration action. The bucket owner has this
|
||||
// permission by default. The bucket owner can grant this permission to others. For
|
||||
// more information about permissions, see Permissions Related to Bucket
|
||||
// Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
|
||||
// and Managing Access Permissions to your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html)
|
||||
// in the Amazon S3 User Guide. The following operations are related to
|
||||
// DeleteBucketEncryption :
|
||||
// - PutBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html)
|
||||
// - GetBucketEncryption (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html)
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// This implementation of the DELETE action resets the default encryption for the
|
||||
// bucket as server-side encryption with Amazon S3 managed keys (SSE-S3). For
|
||||
// information about the bucket default encryption feature, see [Amazon S3 Bucket Default Encryption]in the Amazon S3
|
||||
// User Guide.
|
||||
//
|
||||
// To use this operation, you must have permissions to perform the
|
||||
// s3:PutEncryptionConfiguration action. The bucket owner has this permission by
|
||||
// default. The bucket owner can grant this permission to others. For more
|
||||
// information about permissions, see [Permissions Related to Bucket Subresource Operations]and [Managing Access Permissions to your Amazon S3 Resources] in the Amazon S3 User Guide.
|
||||
//
|
||||
// The following operations are related to DeleteBucketEncryption :
|
||||
//
|
||||
// [PutBucketEncryption]
|
||||
//
|
||||
// [GetBucketEncryption]
|
||||
//
|
||||
// [GetBucketEncryption]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html
|
||||
// [PutBucketEncryption]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html
|
||||
// [Permissions Related to Bucket Subresource Operations]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources
|
||||
// [Managing Access Permissions to your Amazon S3 Resources]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
||||
// [Amazon S3 Bucket Default Encryption]: https://docs.aws.amazon.com/AmazonS3/latest/dev/bucket-encryption.html
|
||||
func (c *Client) DeleteBucketEncryption(ctx context.Context, params *DeleteBucketEncryptionInput, optFns ...func(*Options)) (*DeleteBucketEncryptionOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketEncryptionInput{}
|
||||
|
|
@ -59,6 +68,7 @@ type DeleteBucketEncryptionInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketEncryptionInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -128,6 +138,15 @@ func (c *Client) addOperationDeleteBucketEncryptionMiddlewares(stack *middleware
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketEncryptionValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,25 +13,38 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Deletes the S3
|
||||
// Intelligent-Tiering configuration from the specified bucket. The S3
|
||||
// Intelligent-Tiering storage class is designed to optimize storage costs by
|
||||
// automatically moving data to the most cost-effective storage access tier,
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Deletes the S3 Intelligent-Tiering configuration from the specified bucket.
|
||||
//
|
||||
// The S3 Intelligent-Tiering storage class is designed to optimize storage costs
|
||||
// by automatically moving data to the most cost-effective storage access tier,
|
||||
// without performance impact or operational overhead. S3 Intelligent-Tiering
|
||||
// delivers automatic cost savings in three low latency and high throughput access
|
||||
// tiers. To get the lowest storage cost on data that can be accessed in minutes to
|
||||
// hours, you can choose to activate additional archiving capabilities. The S3
|
||||
// Intelligent-Tiering storage class is the ideal storage class for data with
|
||||
// unknown, changing, or unpredictable access patterns, independent of object size
|
||||
// or retention period. If the size of an object is less than 128 KB, it is not
|
||||
// monitored and not eligible for auto-tiering. Smaller objects can be stored, but
|
||||
// they are always charged at the Frequent Access tier rates in the S3
|
||||
// Intelligent-Tiering storage class. For more information, see Storage class for
|
||||
// automatically optimizing frequently and infrequently accessed objects (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access)
|
||||
// . Operations related to DeleteBucketIntelligentTieringConfiguration include:
|
||||
// - GetBucketIntelligentTieringConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketIntelligentTieringConfiguration.html)
|
||||
// - PutBucketIntelligentTieringConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketIntelligentTieringConfiguration.html)
|
||||
// - ListBucketIntelligentTieringConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketIntelligentTieringConfigurations.html)
|
||||
// hours, you can choose to activate additional archiving capabilities.
|
||||
//
|
||||
// The S3 Intelligent-Tiering storage class is the ideal storage class for data
|
||||
// with unknown, changing, or unpredictable access patterns, independent of object
|
||||
// size or retention period. If the size of an object is less than 128 KB, it is
|
||||
// not monitored and not eligible for auto-tiering. Smaller objects can be stored,
|
||||
// but they are always charged at the Frequent Access tier rates in the S3
|
||||
// Intelligent-Tiering storage class.
|
||||
//
|
||||
// For more information, see [Storage class for automatically optimizing frequently and infrequently accessed objects].
|
||||
//
|
||||
// Operations related to DeleteBucketIntelligentTieringConfiguration include:
|
||||
//
|
||||
// [GetBucketIntelligentTieringConfiguration]
|
||||
//
|
||||
// [PutBucketIntelligentTieringConfiguration]
|
||||
//
|
||||
// [ListBucketIntelligentTieringConfigurations]
|
||||
//
|
||||
// [ListBucketIntelligentTieringConfigurations]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketIntelligentTieringConfigurations.html
|
||||
// [GetBucketIntelligentTieringConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketIntelligentTieringConfiguration.html
|
||||
// [PutBucketIntelligentTieringConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketIntelligentTieringConfiguration.html
|
||||
// [Storage class for automatically optimizing frequently and infrequently accessed objects]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html#sc-dynamic-data-access
|
||||
func (c *Client) DeleteBucketIntelligentTieringConfiguration(ctx context.Context, params *DeleteBucketIntelligentTieringConfigurationInput, optFns ...func(*Options)) (*DeleteBucketIntelligentTieringConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketIntelligentTieringConfigurationInput{}
|
||||
|
|
@ -64,6 +77,7 @@ type DeleteBucketIntelligentTieringConfigurationInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketIntelligentTieringConfigurationInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -133,6 +147,15 @@ func (c *Client) addOperationDeleteBucketIntelligentTieringConfigurationMiddlewa
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketIntelligentTieringConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,18 +13,32 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Deletes an inventory
|
||||
// configuration (identified by the inventory ID) from the bucket. To use this
|
||||
// operation, you must have permissions to perform the s3:PutInventoryConfiguration
|
||||
// action. The bucket owner has this permission by default. The bucket owner can
|
||||
// grant this permission to others. For more information about permissions, see
|
||||
// Permissions Related to Bucket Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
|
||||
// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html)
|
||||
// . For information about the Amazon S3 inventory feature, see Amazon S3 Inventory (https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html)
|
||||
// . Operations related to DeleteBucketInventoryConfiguration include:
|
||||
// - GetBucketInventoryConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketInventoryConfiguration.html)
|
||||
// - PutBucketInventoryConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketInventoryConfiguration.html)
|
||||
// - ListBucketInventoryConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketInventoryConfigurations.html)
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Deletes an inventory configuration (identified by the inventory ID) from the
|
||||
// bucket.
|
||||
//
|
||||
// To use this operation, you must have permissions to perform the
|
||||
// s3:PutInventoryConfiguration action. The bucket owner has this permission by
|
||||
// default. The bucket owner can grant this permission to others. For more
|
||||
// information about permissions, see [Permissions Related to Bucket Subresource Operations]and [Managing Access Permissions to Your Amazon S3 Resources].
|
||||
//
|
||||
// For information about the Amazon S3 inventory feature, see [Amazon S3 Inventory].
|
||||
//
|
||||
// Operations related to DeleteBucketInventoryConfiguration include:
|
||||
//
|
||||
// [GetBucketInventoryConfiguration]
|
||||
//
|
||||
// [PutBucketInventoryConfiguration]
|
||||
//
|
||||
// [ListBucketInventoryConfigurations]
|
||||
//
|
||||
// [Amazon S3 Inventory]: https://docs.aws.amazon.com/AmazonS3/latest/dev/storage-inventory.html
|
||||
// [ListBucketInventoryConfigurations]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketInventoryConfigurations.html
|
||||
// [Permissions Related to Bucket Subresource Operations]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources
|
||||
// [Managing Access Permissions to Your Amazon S3 Resources]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
||||
// [PutBucketInventoryConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketInventoryConfiguration.html
|
||||
// [GetBucketInventoryConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketInventoryConfiguration.html
|
||||
func (c *Client) DeleteBucketInventoryConfiguration(ctx context.Context, params *DeleteBucketInventoryConfigurationInput, optFns ...func(*Options)) (*DeleteBucketInventoryConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketInventoryConfigurationInput{}
|
||||
|
|
@ -61,6 +75,7 @@ type DeleteBucketInventoryConfigurationInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketInventoryConfigurationInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -130,6 +145,15 @@ func (c *Client) addOperationDeleteBucketInventoryConfigurationMiddlewares(stack
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketInventoryConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
46
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketLifecycle.go
generated
vendored
46
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketLifecycle.go
generated
vendored
|
|
@ -13,20 +13,32 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Deletes the lifecycle
|
||||
// configuration from the specified bucket. Amazon S3 removes all the lifecycle
|
||||
// configuration rules in the lifecycle subresource associated with the bucket.
|
||||
// Your objects never expire, and Amazon S3 no longer automatically deletes any
|
||||
// objects on the basis of rules contained in the deleted lifecycle configuration.
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Deletes the lifecycle configuration from the specified bucket. Amazon S3
|
||||
// removes all the lifecycle configuration rules in the lifecycle subresource
|
||||
// associated with the bucket. Your objects never expire, and Amazon S3 no longer
|
||||
// automatically deletes any objects on the basis of rules contained in the deleted
|
||||
// lifecycle configuration.
|
||||
//
|
||||
// To use this operation, you must have permission to perform the
|
||||
// s3:PutLifecycleConfiguration action. By default, the bucket owner has this
|
||||
// permission and the bucket owner can grant this permission to others. There is
|
||||
// usually some time lag before lifecycle configuration deletion is fully
|
||||
// propagated to all the Amazon S3 systems. For more information about the object
|
||||
// expiration, see Elements to Describe Lifecycle Actions (https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions)
|
||||
// . Related actions include:
|
||||
// - PutBucketLifecycleConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html)
|
||||
// - GetBucketLifecycleConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html)
|
||||
// permission and the bucket owner can grant this permission to others.
|
||||
//
|
||||
// There is usually some time lag before lifecycle configuration deletion is fully
|
||||
// propagated to all the Amazon S3 systems.
|
||||
//
|
||||
// For more information about the object expiration, see [Elements to Describe Lifecycle Actions].
|
||||
//
|
||||
// Related actions include:
|
||||
//
|
||||
// [PutBucketLifecycleConfiguration]
|
||||
//
|
||||
// [GetBucketLifecycleConfiguration]
|
||||
//
|
||||
// [PutBucketLifecycleConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html
|
||||
// [Elements to Describe Lifecycle Actions]: https://docs.aws.amazon.com/AmazonS3/latest/dev/intro-lifecycle-rules.html#intro-lifecycle-rules-actions
|
||||
// [GetBucketLifecycleConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLifecycleConfiguration.html
|
||||
func (c *Client) DeleteBucketLifecycle(ctx context.Context, params *DeleteBucketLifecycleInput, optFns ...func(*Options)) (*DeleteBucketLifecycleOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketLifecycleInput{}
|
||||
|
|
@ -58,6 +70,7 @@ type DeleteBucketLifecycleInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketLifecycleInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -127,6 +140,15 @@ func (c *Client) addOperationDeleteBucketLifecycleMiddlewares(stack *middleware.
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketLifecycleValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,22 +13,35 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Deletes a metrics
|
||||
// configuration for the Amazon CloudWatch request metrics (specified by the
|
||||
// metrics configuration ID) from the bucket. Note that this doesn't include the
|
||||
// daily storage metrics. To use this operation, you must have permissions to
|
||||
// perform the s3:PutMetricsConfiguration action. The bucket owner has this
|
||||
// permission by default. The bucket owner can grant this permission to others. For
|
||||
// more information about permissions, see Permissions Related to Bucket
|
||||
// Subresource Operations (https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources)
|
||||
// and Managing Access Permissions to Your Amazon S3 Resources (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html)
|
||||
// . For information about CloudWatch request metrics for Amazon S3, see
|
||||
// Monitoring Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html)
|
||||
// . The following operations are related to DeleteBucketMetricsConfiguration :
|
||||
// - GetBucketMetricsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetricsConfiguration.html)
|
||||
// - PutBucketMetricsConfiguration (https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketMetricsConfiguration.html)
|
||||
// - ListBucketMetricsConfigurations (https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketMetricsConfigurations.html)
|
||||
// - Monitoring Metrics with Amazon CloudWatch (https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html)
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Deletes a metrics configuration for the Amazon CloudWatch request metrics
|
||||
// (specified by the metrics configuration ID) from the bucket. Note that this
|
||||
// doesn't include the daily storage metrics.
|
||||
//
|
||||
// To use this operation, you must have permissions to perform the
|
||||
// s3:PutMetricsConfiguration action. The bucket owner has this permission by
|
||||
// default. The bucket owner can grant this permission to others. For more
|
||||
// information about permissions, see [Permissions Related to Bucket Subresource Operations]and [Managing Access Permissions to Your Amazon S3 Resources].
|
||||
//
|
||||
// For information about CloudWatch request metrics for Amazon S3, see [Monitoring Metrics with Amazon CloudWatch].
|
||||
//
|
||||
// The following operations are related to DeleteBucketMetricsConfiguration :
|
||||
//
|
||||
// [GetBucketMetricsConfiguration]
|
||||
//
|
||||
// [PutBucketMetricsConfiguration]
|
||||
//
|
||||
// [ListBucketMetricsConfigurations]
|
||||
//
|
||||
// [Monitoring Metrics with Amazon CloudWatch]
|
||||
//
|
||||
// [Permissions Related to Bucket Subresource Operations]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-with-s3-actions.html#using-with-s3-actions-related-to-bucket-subresources
|
||||
// [Monitoring Metrics with Amazon CloudWatch]: https://docs.aws.amazon.com/AmazonS3/latest/dev/cloudwatch-monitoring.html
|
||||
// [GetBucketMetricsConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetricsConfiguration.html
|
||||
// [ListBucketMetricsConfigurations]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBucketMetricsConfigurations.html
|
||||
// [PutBucketMetricsConfiguration]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketMetricsConfiguration.html
|
||||
// [Managing Access Permissions to Your Amazon S3 Resources]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-access-control.html
|
||||
func (c *Client) DeleteBucketMetricsConfiguration(ctx context.Context, params *DeleteBucketMetricsConfigurationInput, optFns ...func(*Options)) (*DeleteBucketMetricsConfigurationOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketMetricsConfigurationInput{}
|
||||
|
|
@ -66,6 +79,7 @@ type DeleteBucketMetricsConfigurationInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketMetricsConfigurationInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -135,6 +149,15 @@ func (c *Client) addOperationDeleteBucketMetricsConfigurationMiddlewares(stack *
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketMetricsConfigurationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
34
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketOwnershipControls.go
generated
vendored
34
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketOwnershipControls.go
generated
vendored
|
|
@ -13,14 +13,22 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// This operation is not supported by directory buckets. Removes OwnershipControls
|
||||
// for an Amazon S3 bucket. To use this operation, you must have the
|
||||
// s3:PutBucketOwnershipControls permission. For more information about Amazon S3
|
||||
// permissions, see Specifying Permissions in a Policy (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html)
|
||||
// . For information about Amazon S3 Object Ownership, see Using Object Ownership (https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html)
|
||||
// . The following operations are related to DeleteBucketOwnershipControls :
|
||||
// - GetBucketOwnershipControls
|
||||
// - PutBucketOwnershipControls
|
||||
// This operation is not supported by directory buckets.
|
||||
//
|
||||
// Removes OwnershipControls for an Amazon S3 bucket. To use this operation, you
|
||||
// must have the s3:PutBucketOwnershipControls permission. For more information
|
||||
// about Amazon S3 permissions, see [Specifying Permissions in a Policy].
|
||||
//
|
||||
// For information about Amazon S3 Object Ownership, see [Using Object Ownership].
|
||||
//
|
||||
// The following operations are related to DeleteBucketOwnershipControls :
|
||||
//
|
||||
// # GetBucketOwnershipControls
|
||||
//
|
||||
// # PutBucketOwnershipControls
|
||||
//
|
||||
// [Using Object Ownership]: https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
|
||||
// [Specifying Permissions in a Policy]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html
|
||||
func (c *Client) DeleteBucketOwnershipControls(ctx context.Context, params *DeleteBucketOwnershipControlsInput, optFns ...func(*Options)) (*DeleteBucketOwnershipControlsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketOwnershipControlsInput{}
|
||||
|
|
@ -52,6 +60,7 @@ type DeleteBucketOwnershipControlsInput struct {
|
|||
}
|
||||
|
||||
func (in *DeleteBucketOwnershipControlsInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -121,6 +130,15 @@ func (c *Client) addOperationDeleteBucketOwnershipControlsMiddlewares(stack *mid
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketOwnershipControlsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
106
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketPolicy.go
generated
vendored
106
vendor/github.com/aws/aws-sdk-go-v2/service/s3/api_op_DeleteBucketPolicy.go
generated
vendored
|
|
@ -13,44 +13,57 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
// Deletes the policy of a specified bucket. Directory buckets - For directory
|
||||
// buckets, you must make requests for this API operation to the Regional endpoint.
|
||||
// These endpoints support path-style requests in the format
|
||||
// https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. For more information, see
|
||||
// Regional and Zonal endpoints (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html)
|
||||
// in the Amazon S3 User Guide. Permissions If you are using an identity other than
|
||||
// the root user of the Amazon Web Services account that owns the bucket, the
|
||||
// calling identity must both have the DeleteBucketPolicy permissions on the
|
||||
// specified bucket and belong to the bucket owner's account in order to use this
|
||||
// operation. If you don't have DeleteBucketPolicy permissions, Amazon S3 returns
|
||||
// a 403 Access Denied error. If you have the correct permissions, but you're not
|
||||
// using an identity that belongs to the bucket owner's account, Amazon S3 returns
|
||||
// a 405 Method Not Allowed error. To ensure that bucket owners don't
|
||||
// inadvertently lock themselves out of their own buckets, the root principal in a
|
||||
// bucket owner's Amazon Web Services account can perform the GetBucketPolicy ,
|
||||
// PutBucketPolicy , and DeleteBucketPolicy API actions, even if their bucket
|
||||
// policy explicitly denies the root principal's access. Bucket owner root
|
||||
// principals can only be blocked from performing these API actions by VPC endpoint
|
||||
// policies and Amazon Web Services Organizations policies.
|
||||
// Deletes the policy of a specified bucket.
|
||||
//
|
||||
// Directory buckets - For directory buckets, you must make requests for this API
|
||||
// operation to the Regional endpoint. These endpoints support path-style requests
|
||||
// in the format https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. For more information, see [Regional and Zonal endpoints]in
|
||||
// the Amazon S3 User Guide.
|
||||
//
|
||||
// Permissions If you are using an identity other than the root user of the Amazon
|
||||
// Web Services account that owns the bucket, the calling identity must both have
|
||||
// the DeleteBucketPolicy permissions on the specified bucket and belong to the
|
||||
// bucket owner's account in order to use this operation.
|
||||
//
|
||||
// If you don't have DeleteBucketPolicy permissions, Amazon S3 returns a 403
|
||||
// Access Denied error. If you have the correct permissions, but you're not using
|
||||
// an identity that belongs to the bucket owner's account, Amazon S3 returns a 405
|
||||
// Method Not Allowed error.
|
||||
//
|
||||
// To ensure that bucket owners don't inadvertently lock themselves out of their
|
||||
// own buckets, the root principal in a bucket owner's Amazon Web Services account
|
||||
// can perform the GetBucketPolicy , PutBucketPolicy , and DeleteBucketPolicy API
|
||||
// actions, even if their bucket policy explicitly denies the root principal's
|
||||
// access. Bucket owner root principals can only be blocked from performing these
|
||||
// API actions by VPC endpoint policies and Amazon Web Services Organizations
|
||||
// policies.
|
||||
//
|
||||
// - General purpose bucket permissions - The s3:DeleteBucketPolicy permission is
|
||||
// required in a policy. For more information about general purpose buckets bucket
|
||||
// policies, see Using Bucket Policies and User Policies (https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// policies, see [Using Bucket Policies and User Policies]in the Amazon S3 User Guide.
|
||||
//
|
||||
// - Directory bucket permissions - To grant access to this API operation, you
|
||||
// must have the s3express:DeleteBucketPolicy permission in an IAM identity-based
|
||||
// policy instead of a bucket policy. Cross-account access to this API operation
|
||||
// isn't supported. This operation can only be performed by the Amazon Web Services
|
||||
// account that owns the resource. For more information about directory bucket
|
||||
// policies and permissions, see Amazon Web Services Identity and Access
|
||||
// Management (IAM) for S3 Express One Zone (https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html)
|
||||
// in the Amazon S3 User Guide.
|
||||
// policies and permissions, see [Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone]in the Amazon S3 User Guide.
|
||||
//
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// s3express-control.region.amazonaws.com . The following operations are related to
|
||||
// DeleteBucketPolicy
|
||||
// - CreateBucket (https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html)
|
||||
// - DeleteObject (https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html)
|
||||
// HTTP Host header syntax Directory buckets - The HTTP Host header syntax is
|
||||
// s3express-control.region.amazonaws.com .
|
||||
//
|
||||
// # The following operations are related to DeleteBucketPolicy
|
||||
//
|
||||
// [CreateBucket]
|
||||
//
|
||||
// [DeleteObject]
|
||||
//
|
||||
// [DeleteObject]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html
|
||||
// [Regional and Zonal endpoints]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-Regions-and-Zones.html
|
||||
// [Using Bucket Policies and User Policies]: https://docs.aws.amazon.com/AmazonS3/latest/dev/using-iam-policies.html
|
||||
// [CreateBucket]: https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html
|
||||
// [Amazon Web Services Identity and Access Management (IAM) for S3 Express One Zone]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-express-security-iam.html
|
||||
func (c *Client) DeleteBucketPolicy(ctx context.Context, params *DeleteBucketPolicyInput, optFns ...func(*Options)) (*DeleteBucketPolicyOutput, error) {
|
||||
if params == nil {
|
||||
params = &DeleteBucketPolicyInput{}
|
||||
|
|
@ -68,30 +81,36 @@ func (c *Client) DeleteBucketPolicy(ctx context.Context, params *DeleteBucketPol
|
|||
|
||||
type DeleteBucketPolicyInput struct {
|
||||
|
||||
// The bucket name. Directory buckets - When you use this operation with a
|
||||
// directory bucket, you must use path-style requests in the format
|
||||
// The bucket name.
|
||||
//
|
||||
// Directory buckets - When you use this operation with a directory bucket, you
|
||||
// must use path-style requests in the format
|
||||
// https://s3express-control.region_code.amazonaws.com/bucket-name .
|
||||
// Virtual-hosted-style requests aren't supported. Directory bucket names must be
|
||||
// unique in the chosen Availability Zone. Bucket names must also follow the format
|
||||
// bucket_base_name--az_id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az2--x-s3
|
||||
// ). For information about bucket naming restrictions, see Directory bucket
|
||||
// naming rules (https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html)
|
||||
// in the Amazon S3 User Guide
|
||||
// bucket_base_name--az_id--x-s3 (for example, DOC-EXAMPLE-BUCKET--usw2-az1--x-s3
|
||||
// ). For information about bucket naming restrictions, see [Directory bucket naming rules]in the Amazon S3 User
|
||||
// Guide
|
||||
//
|
||||
// [Directory bucket naming rules]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html
|
||||
//
|
||||
// This member is required.
|
||||
Bucket *string
|
||||
|
||||
// The account ID of the expected bucket owner. If the account ID that you provide
|
||||
// does not match the actual owner of the bucket, the request fails with the HTTP
|
||||
// status code 403 Forbidden (access denied). For directory buckets, this header
|
||||
// is not supported in this API operation. If you specify this header, the request
|
||||
// fails with the HTTP status code 501 Not Implemented .
|
||||
// status code 403 Forbidden (access denied).
|
||||
//
|
||||
// For directory buckets, this header is not supported in this API operation. If
|
||||
// you specify this header, the request fails with the HTTP status code 501 Not
|
||||
// Implemented .
|
||||
ExpectedBucketOwner *string
|
||||
|
||||
noSmithyDocumentSerde
|
||||
}
|
||||
|
||||
func (in *DeleteBucketPolicyInput) bindEndpointParams(p *EndpointParameters) {
|
||||
|
||||
p.Bucket = in.Bucket
|
||||
p.UseS3ExpressControlEndpoint = ptr.Bool(true)
|
||||
}
|
||||
|
|
@ -161,6 +180,15 @@ func (c *Client) addOperationDeleteBucketPolicyMiddlewares(stack *middleware.Sta
|
|||
if err = addPutBucketContextMiddleware(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 = addIsExpressUserAgent(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBucketPolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue