Port osbuild/images v0.33.0 with dot-notation to composer
Update the osbuild/images to the version which introduces "dot notation" for distro release versions. - Replace all uses of distroregistry by distrofactory. - Delete local version of reporegistry and use the one from the osbuild/images. - Weldr: unify `createWeldrAPI()` and `createWeldrAPI2()` into a single `createTestWeldrAPI()` function`. - store/fixture: rework fixtures to allow overriding the host distro name and host architecture name. A cleanup function to restore the host distro and arch names is always part of the fixture struct. - Delete `distro_mock` package, since it is no longer used. - Bump the required version of osbuild to 98, because the OSCAP customization is using the 'compress_results' stage option, which is not available in older versions of osbuild. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
f6ff8c40dd
commit
625b1578fa
1166 changed files with 154457 additions and 5508 deletions
5
vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
generated
vendored
5
vendor/github.com/aws/aws-sdk-go/aws/ec2metadata/token_provider.go
generated
vendored
|
|
@ -2,6 +2,7 @@ package ec2metadata
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"net/http"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
|
@ -65,7 +66,9 @@ func (t *tokenProvider) fetchTokenHandler(r *request.Request) {
|
|||
switch requestFailureError.StatusCode() {
|
||||
case http.StatusForbidden, http.StatusNotFound, http.StatusMethodNotAllowed:
|
||||
atomic.StoreUint32(&t.disabled, 1)
|
||||
t.client.Config.Logger.Log(fmt.Sprintf("WARN: failed to get session token, falling back to IMDSv1: %v", requestFailureError))
|
||||
if t.client.Config.LogLevel.Matches(aws.LogDebugWithDeprecated) {
|
||||
t.client.Config.Logger.Log(fmt.Sprintf("WARN: failed to get session token, falling back to IMDSv1: %v", requestFailureError))
|
||||
}
|
||||
case http.StatusBadRequest:
|
||||
r.Error = requestFailureError
|
||||
}
|
||||
|
|
|
|||
133
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
133
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
|
|
@ -3450,6 +3450,9 @@ var awsPartition = partition{
|
|||
endpointKey{
|
||||
Region: "ap-southeast-3",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ap-southeast-4",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ca-central-1",
|
||||
}: endpoint{},
|
||||
|
|
@ -3477,6 +3480,9 @@ var awsPartition = partition{
|
|||
endpointKey{
|
||||
Region: "eu-west-3",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "il-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{},
|
||||
|
|
@ -19307,12 +19313,18 @@ var awsPartition = partition{
|
|||
},
|
||||
"m2": service{
|
||||
Endpoints: serviceEndpoints{
|
||||
endpointKey{
|
||||
Region: "af-south-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ap-northeast-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ap-northeast-2",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ap-northeast-3",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ap-south-1",
|
||||
}: endpoint{},
|
||||
|
|
@ -19332,6 +19344,12 @@ var awsPartition = partition{
|
|||
endpointKey{
|
||||
Region: "eu-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "eu-north-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "eu-south-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "eu-west-1",
|
||||
}: endpoint{},
|
||||
|
|
@ -21746,6 +21764,14 @@ var awsPartition = partition{
|
|||
Region: "il-central-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{
|
||||
Hostname: "oidc.me-central-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "me-central-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-south-1",
|
||||
}: endpoint{
|
||||
|
|
@ -22881,6 +22907,14 @@ var awsPartition = partition{
|
|||
Region: "il-central-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{
|
||||
Hostname: "portal.sso.me-central-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "me-central-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-south-1",
|
||||
}: endpoint{
|
||||
|
|
@ -27572,21 +27606,81 @@ var awsPartition = partition{
|
|||
endpointKey{
|
||||
Region: "eu-west-3",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "fips-us-east-1",
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-east-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-1",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "fips-us-east-2",
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-east-2.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "fips-us-west-1",
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-west-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-west-1",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "fips-us-west-2",
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-west-2.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-west-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "sa-east-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "us-east-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "us-east-1",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-east-1.amazonaws.com",
|
||||
},
|
||||
endpointKey{
|
||||
Region: "us-east-2",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "us-east-2",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-east-2.amazonaws.com",
|
||||
},
|
||||
endpointKey{
|
||||
Region: "us-west-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "us-west-1",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-west-1.amazonaws.com",
|
||||
},
|
||||
endpointKey{
|
||||
Region: "us-west-2",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "us-west-2",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "securitylake-fips.us-west-2.amazonaws.com",
|
||||
},
|
||||
},
|
||||
},
|
||||
"serverlessrepo": service{
|
||||
|
|
@ -30286,6 +30380,9 @@ var awsPartition = partition{
|
|||
endpointKey{
|
||||
Region: "il-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "me-south-1",
|
||||
}: endpoint{},
|
||||
|
|
@ -35413,6 +35510,29 @@ var awscnPartition = partition{
|
|||
}: endpoint{},
|
||||
},
|
||||
},
|
||||
"iottwinmaker": service{
|
||||
Endpoints: serviceEndpoints{
|
||||
endpointKey{
|
||||
Region: "api-cn-north-1",
|
||||
}: endpoint{
|
||||
Hostname: "api.iottwinmaker.cn-north-1.amazonaws.com.cn",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "cn-north-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "cn-north-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "data-cn-north-1",
|
||||
}: endpoint{
|
||||
Hostname: "data.iottwinmaker.cn-north-1.amazonaws.com.cn",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "cn-north-1",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"kafka": service{
|
||||
Endpoints: serviceEndpoints{
|
||||
endpointKey{
|
||||
|
|
@ -43626,6 +43746,19 @@ var awsisoPartition = partition{
|
|||
}: endpoint{},
|
||||
},
|
||||
},
|
||||
"guardduty": service{
|
||||
IsRegionalized: boxedTrue,
|
||||
Defaults: endpointDefaults{
|
||||
defaultKey{}: endpoint{
|
||||
Protocols: []string{"https"},
|
||||
},
|
||||
},
|
||||
Endpoints: serviceEndpoints{
|
||||
endpointKey{
|
||||
Region: "us-iso-east-1",
|
||||
}: endpoint{},
|
||||
},
|
||||
},
|
||||
"health": service{
|
||||
Endpoints: serviceEndpoints{
|
||||
endpointKey{
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
|
|
@ -5,4 +5,4 @@ package aws
|
|||
const SDKName = "aws-sdk-go"
|
||||
|
||||
// SDKVersion is the version of this SDK
|
||||
const SDKVersion = "1.49.13"
|
||||
const SDKVersion = "1.50.0"
|
||||
|
|
|
|||
202
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
202
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
|
|
@ -35610,6 +35610,10 @@ func (c *EC2) DetachVolumeRequest(input *DetachVolumeInput) (req *request.Reques
|
|||
// When a volume with an Amazon Web Services Marketplace product code is detached
|
||||
// from an instance, the product code is no longer associated with the instance.
|
||||
//
|
||||
// You can't detach or force detach volumes that are attached to Amazon ECS
|
||||
// or Fargate tasks. Attempting to do this results in the UnsupportedOperationException
|
||||
// exception with the Unable to detach volume attached to ECS tasks error message.
|
||||
//
|
||||
// For more information, see Detach an Amazon EBS volume (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-detaching-volume.html)
|
||||
// in the Amazon Elastic Compute Cloud User Guide.
|
||||
//
|
||||
|
|
@ -91802,10 +91806,9 @@ type DescribeCapacityBlockOfferingsInput struct {
|
|||
// InstanceType is a required field
|
||||
InstanceType *string `type:"string" required:"true"`
|
||||
|
||||
// The maximum number of results to return for the request in a single page.
|
||||
// The remaining results can be seen by sending another request with the returned
|
||||
// nextToken value. This value can be between 5 and 500. If maxResults is given
|
||||
// a larger value than 500, you receive an error.
|
||||
// The maximum number of items to return for this request. To get the next page
|
||||
// of items, make another request with the token returned in the output. For
|
||||
// more information, see Pagination (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination).
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// The token to use to retrieve the next page of results.
|
||||
|
|
@ -91970,10 +91973,9 @@ type DescribeCapacityReservationFleetsInput struct {
|
|||
// prioritized is supported.
|
||||
Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
|
||||
|
||||
// The maximum number of results to return for the request in a single page.
|
||||
// The remaining results can be seen by sending another request with the returned
|
||||
// nextToken value. This value can be between 5 and 500. If maxResults is given
|
||||
// a larger value than 500, you receive an error.
|
||||
// The maximum number of items to return for this request. To get the next page
|
||||
// of items, make another request with the token returned in the output. For
|
||||
// more information, see Pagination (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination).
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// The token to use to retrieve the next page of results.
|
||||
|
|
@ -92157,10 +92159,9 @@ type DescribeCapacityReservationsInput struct {
|
|||
// the Capacity Reservation was created.
|
||||
Filters []*Filter `locationName:"Filter" locationNameList:"Filter" type:"list"`
|
||||
|
||||
// The maximum number of results to return for the request in a single page.
|
||||
// The remaining results can be seen by sending another request with the returned
|
||||
// nextToken value. This value can be between 5 and 500. If maxResults is given
|
||||
// a larger value than 500, you receive an error.
|
||||
// The maximum number of items to return for this request. To get the next page
|
||||
// of items, make another request with the token returned in the output. For
|
||||
// more information, see Pagination (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination).
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// The token to use to retrieve the next page of results.
|
||||
|
|
@ -117035,6 +117036,9 @@ func (s *EbsInfo) SetNvmeSupport(v string) *EbsInfo {
|
|||
type EbsInstanceBlockDevice struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ARN of the Amazon ECS or Fargate task to which the volume is attached.
|
||||
AssociatedResource *string `locationName:"associatedResource" type:"string"`
|
||||
|
||||
// The time stamp when the attachment initiated.
|
||||
AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
|
||||
|
||||
|
|
@ -117046,6 +117050,12 @@ type EbsInstanceBlockDevice struct {
|
|||
|
||||
// The ID of the EBS volume.
|
||||
VolumeId *string `locationName:"volumeId" type:"string"`
|
||||
|
||||
// The ID of the Amazon Web Services account that owns the volume.
|
||||
//
|
||||
// This parameter is returned only for volumes that are attached to Fargate
|
||||
// tasks.
|
||||
VolumeOwnerId *string `locationName:"volumeOwnerId" type:"string"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
|
|
@ -117066,6 +117076,12 @@ func (s EbsInstanceBlockDevice) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// SetAssociatedResource sets the AssociatedResource field's value.
|
||||
func (s *EbsInstanceBlockDevice) SetAssociatedResource(v string) *EbsInstanceBlockDevice {
|
||||
s.AssociatedResource = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAttachTime sets the AttachTime field's value.
|
||||
func (s *EbsInstanceBlockDevice) SetAttachTime(v time.Time) *EbsInstanceBlockDevice {
|
||||
s.AttachTime = &v
|
||||
|
|
@ -117090,6 +117106,12 @@ func (s *EbsInstanceBlockDevice) SetVolumeId(v string) *EbsInstanceBlockDevice {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetVolumeOwnerId sets the VolumeOwnerId field's value.
|
||||
func (s *EbsInstanceBlockDevice) SetVolumeOwnerId(v string) *EbsInstanceBlockDevice {
|
||||
s.VolumeOwnerId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Describes information used to set up an EBS volume specified in a block device
|
||||
// mapping.
|
||||
type EbsInstanceBlockDeviceSpecification struct {
|
||||
|
|
@ -119410,6 +119432,8 @@ type EnableSnapshotBlockPublicAccessInput struct {
|
|||
// public sharing. However, snapshots that are already publicly shared, remain
|
||||
// publicly available.
|
||||
//
|
||||
// unblocked is not a valid value for EnableSnapshotBlockPublicAccess.
|
||||
//
|
||||
// State is a required field
|
||||
State *string `type:"string" required:"true" enum:"SnapshotBlockPublicAccessState"`
|
||||
}
|
||||
|
|
@ -124312,12 +124336,9 @@ type GetCapacityReservationUsageInput struct {
|
|||
// it is UnauthorizedOperation.
|
||||
DryRun *bool `type:"boolean"`
|
||||
|
||||
// The maximum number of results to return for the request in a single page.
|
||||
// The remaining results can be seen by sending another request with the returned
|
||||
// nextToken value. This value can be between 5 and 500. If maxResults is given
|
||||
// a larger value than 500, you receive an error.
|
||||
//
|
||||
// Valid range: Minimum value of 1. Maximum value of 1000.
|
||||
// The maximum number of items to return for this request. To get the next page
|
||||
// of items, make another request with the token returned in the output. For
|
||||
// more information, see Pagination (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination).
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// The token to use to retrieve the next page of results.
|
||||
|
|
@ -125239,10 +125260,9 @@ type GetGroupsForCapacityReservationInput struct {
|
|||
// it is UnauthorizedOperation.
|
||||
DryRun *bool `type:"boolean"`
|
||||
|
||||
// The maximum number of results to return for the request in a single page.
|
||||
// The remaining results can be seen by sending another request with the returned
|
||||
// nextToken value. This value can be between 5 and 500. If maxResults is given
|
||||
// a larger value than 500, you receive an error.
|
||||
// The maximum number of items to return for this request. To get the next page
|
||||
// of items, make another request with the token returned in the output. For
|
||||
// more information, see Pagination (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination).
|
||||
MaxResults *int64 `min:"1" type:"integer"`
|
||||
|
||||
// The token to use to retrieve the next page of results.
|
||||
|
|
@ -128047,8 +128067,6 @@ type GetSpotPlacementScoresInput struct {
|
|||
TargetCapacity *int64 `min:"1" type:"integer" required:"true"`
|
||||
|
||||
// The unit for the target capacity.
|
||||
//
|
||||
// Default: units (translates to number of instances)
|
||||
TargetCapacityUnitType *string `type:"string" enum:"TargetCapacityUnitType"`
|
||||
}
|
||||
|
||||
|
|
@ -135206,22 +135224,21 @@ type InstanceMetadataOptionsRequest struct {
|
|||
// Possible values: Integers from 1 to 64
|
||||
HttpPutResponseHopLimit *int64 `type:"integer"`
|
||||
|
||||
// IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to optional
|
||||
// (in other words, set the use of IMDSv2 to optional) or required (in other
|
||||
// words, set the use of IMDSv2 to required).
|
||||
// Indicates whether IMDSv2 is required.
|
||||
//
|
||||
// * optional - When IMDSv2 is optional, you can choose to retrieve instance
|
||||
// metadata with or without a session token in your request. If you retrieve
|
||||
// the IAM role credentials without a token, the IMDSv1 role credentials
|
||||
// are returned. If you retrieve the IAM role credentials using a valid session
|
||||
// token, the IMDSv2 role credentials are returned.
|
||||
// * optional - IMDSv2 is optional. You can choose whether to send a session
|
||||
// token in your instance metadata retrieval requests. If you retrieve IAM
|
||||
// role credentials without a session token, you receive the IMDSv1 role
|
||||
// credentials. If you retrieve IAM role credentials using a valid session
|
||||
// token, you receive the IMDSv2 role credentials.
|
||||
//
|
||||
// * required - When IMDSv2 is required, you must send a session token with
|
||||
// any instance metadata retrieval requests. In this state, retrieving the
|
||||
// * required - IMDSv2 is required. You must send a session token in your
|
||||
// instance metadata retrieval requests. With this option, retrieving the
|
||||
// IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials
|
||||
// are not available.
|
||||
//
|
||||
// Default: optional
|
||||
// Default: If the value of ImdsSupport for the Amazon Machine Image (AMI) for
|
||||
// your instance is v2.0, the default is required.
|
||||
HttpTokens *string `type:"string" enum:"HttpTokensState"`
|
||||
|
||||
// Set to enabled to allow access to instance tags from the instance metadata.
|
||||
|
|
@ -135303,22 +135320,18 @@ type InstanceMetadataOptionsResponse struct {
|
|||
// Possible values: Integers from 1 to 64
|
||||
HttpPutResponseHopLimit *int64 `locationName:"httpPutResponseHopLimit" type:"integer"`
|
||||
|
||||
// IMDSv2 uses token-backed sessions. Indicates whether the use of HTTP tokens
|
||||
// is optional (in other words, indicates whether the use of IMDSv2 is optional)
|
||||
// or required (in other words, indicates whether the use of IMDSv2 is required).
|
||||
// Indicates whether IMDSv2 is required.
|
||||
//
|
||||
// * optional - When IMDSv2 is optional, you can choose to retrieve instance
|
||||
// metadata with or without a session token in your request. If you retrieve
|
||||
// the IAM role credentials without a token, the IMDSv1 role credentials
|
||||
// are returned. If you retrieve the IAM role credentials using a valid session
|
||||
// token, the IMDSv2 role credentials are returned.
|
||||
// * optional - IMDSv2 is optional. You can choose whether to send a session
|
||||
// token in your instance metadata retrieval requests. If you retrieve IAM
|
||||
// role credentials without a session token, you receive the IMDSv1 role
|
||||
// credentials. If you retrieve IAM role credentials using a valid session
|
||||
// token, you receive the IMDSv2 role credentials.
|
||||
//
|
||||
// * required - When IMDSv2 is required, you must send a session token with
|
||||
// any instance metadata retrieval requests. In this state, retrieving the
|
||||
// * required - IMDSv2 is required. You must send a session token in your
|
||||
// instance metadata retrieval requests. With this option, retrieving the
|
||||
// IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials
|
||||
// are not available.
|
||||
//
|
||||
// Default: optional
|
||||
HttpTokens *string `locationName:"httpTokens" type:"string" enum:"HttpTokensState"`
|
||||
|
||||
// Indicates whether access to instance tags from the instance metadata is enabled
|
||||
|
|
@ -148257,7 +148270,8 @@ type ModifyInstanceAttributeInput struct {
|
|||
// Modifies the DeleteOnTermination attribute for volumes that are currently
|
||||
// attached. The volume must be owned by the caller. If no value is specified
|
||||
// for DeleteOnTermination, the default is true and the volume is deleted when
|
||||
// the instance is terminated.
|
||||
// the instance is terminated. You can't modify the DeleteOnTermination attribute
|
||||
// for volumes that are attached to Fargate tasks.
|
||||
//
|
||||
// To add instance store volumes to an Amazon EBS-backed instance, you must
|
||||
// add them when you launch the instance. For more information, see Update the
|
||||
|
|
@ -149117,22 +149131,21 @@ type ModifyInstanceMetadataOptionsInput struct {
|
|||
// Possible values: Integers from 1 to 64
|
||||
HttpPutResponseHopLimit *int64 `type:"integer"`
|
||||
|
||||
// IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to optional
|
||||
// (in other words, set the use of IMDSv2 to optional) or required (in other
|
||||
// words, set the use of IMDSv2 to required).
|
||||
// Indicates whether IMDSv2 is required.
|
||||
//
|
||||
// * optional - When IMDSv2 is optional, you can choose to retrieve instance
|
||||
// metadata with or without a session token in your request. If you retrieve
|
||||
// the IAM role credentials without a token, the IMDSv1 role credentials
|
||||
// are returned. If you retrieve the IAM role credentials using a valid session
|
||||
// token, the IMDSv2 role credentials are returned.
|
||||
// * optional - IMDSv2 is optional. You can choose whether to send a session
|
||||
// token in your instance metadata retrieval requests. If you retrieve IAM
|
||||
// role credentials without a session token, you receive the IMDSv1 role
|
||||
// credentials. If you retrieve IAM role credentials using a valid session
|
||||
// token, you receive the IMDSv2 role credentials.
|
||||
//
|
||||
// * required - When IMDSv2 is required, you must send a session token with
|
||||
// any instance metadata retrieval requests. In this state, retrieving the
|
||||
// * required - IMDSv2 is required. You must send a session token in your
|
||||
// instance metadata retrieval requests. With this option, retrieving the
|
||||
// IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials
|
||||
// are not available.
|
||||
//
|
||||
// Default: optional
|
||||
// Default: If the value of ImdsSupport for the Amazon Machine Image (AMI) for
|
||||
// your instance is v2.0, the default is required.
|
||||
HttpTokens *string `type:"string" enum:"HttpTokensState"`
|
||||
|
||||
// The ID of the instance.
|
||||
|
|
@ -172348,6 +172361,11 @@ type ScheduledInstancesNetworkInterface struct {
|
|||
// for eth0, and can only be assigned to a new network interface, not an existing
|
||||
// one. You cannot specify more than one network interface in the request. If
|
||||
// launching into a default subnet, the default value is true.
|
||||
//
|
||||
// Starting on February 1, 2024, Amazon Web Services will charge for all public
|
||||
// IPv4 addresses, including public IPv4 addresses associated with running instances
|
||||
// and Elastic IP addresses. For more information, see the Public IPv4 Address
|
||||
// tab on the Amazon VPC pricing page (http://aws.amazon.com/vpc/pricing/).
|
||||
AssociatePublicIpAddress *bool `type:"boolean"`
|
||||
|
||||
// Indicates whether to delete the interface when the instance is terminated.
|
||||
|
|
@ -175740,10 +175758,10 @@ type SpotFleetRequestConfigData struct {
|
|||
// TargetCapacity is a required field
|
||||
TargetCapacity *int64 `locationName:"targetCapacity" type:"integer" required:"true"`
|
||||
|
||||
// The unit for the target capacity. TargetCapacityUnitType can only be specified
|
||||
// when InstanceRequirements is specified.
|
||||
// The unit for the target capacity. You can specify this parameter only when
|
||||
// using attribute-based instance type selection.
|
||||
//
|
||||
// Default: units (translates to number of instances)
|
||||
// Default: units (the number of instances)
|
||||
TargetCapacityUnitType *string `locationName:"targetCapacityUnitType" type:"string" enum:"TargetCapacityUnitType"`
|
||||
|
||||
// Indicates whether running Spot Instances are terminated when the Spot Fleet
|
||||
|
|
@ -177618,8 +177636,8 @@ type StateReason struct {
|
|||
// the Spot price exceeded available capacity or because of an increase in
|
||||
// the Spot price.
|
||||
//
|
||||
// * Client.InstanceInitiatedShutdown: The instance was shut down using the
|
||||
// shutdown -h command from the instance.
|
||||
// * Client.InstanceInitiatedShutdown: The instance was shut down from the
|
||||
// operating system of the instance.
|
||||
//
|
||||
// * Client.InstanceTerminated: The instance was terminated or rebooted during
|
||||
// AMI creation.
|
||||
|
|
@ -178755,7 +178773,7 @@ func (s *TagSpecification) SetTags(v []*Tag) *TagSpecification {
|
|||
type TargetCapacitySpecification struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The default TotalTargetCapacity, which is either Spot or On-Demand.
|
||||
// The default target capacity type.
|
||||
DefaultTargetCapacityType *string `locationName:"defaultTargetCapacityType" type:"string" enum:"DefaultTargetCapacityType"`
|
||||
|
||||
// The number of On-Demand units to request. If you specify a target capacity
|
||||
|
|
@ -178766,13 +178784,10 @@ type TargetCapacitySpecification struct {
|
|||
// for On-Demand units, you cannot specify a target capacity for Spot units.
|
||||
SpotTargetCapacity *int64 `locationName:"spotTargetCapacity" type:"integer"`
|
||||
|
||||
// The unit for the target capacity. TargetCapacityUnitType can only be specified
|
||||
// when InstanceRequirements is specified.
|
||||
//
|
||||
// Default: units (translates to number of instances)
|
||||
// The unit for the target capacity.
|
||||
TargetCapacityUnitType *string `locationName:"targetCapacityUnitType" type:"string" enum:"TargetCapacityUnitType"`
|
||||
|
||||
// The number of units to request, filled using DefaultTargetCapacityType.
|
||||
// The number of units to request, filled the default target capacity type.
|
||||
TotalTargetCapacity *int64 `locationName:"totalTargetCapacity" type:"integer"`
|
||||
}
|
||||
|
||||
|
|
@ -178836,13 +178851,13 @@ func (s *TargetCapacitySpecification) SetTotalTargetCapacity(v int64) *TargetCap
|
|||
// On-Demand Instances and Spot Instances in your request, EC2 Fleet will launch
|
||||
// instances until it reaches the maximum amount that you're willing to pay.
|
||||
// When the maximum amount you're willing to pay is reached, the fleet stops
|
||||
// launching instances even if it hasn’t met the target capacity. The MaxTotalPrice
|
||||
// launching instances even if it hasn't met the target capacity. The MaxTotalPrice
|
||||
// parameters are located in OnDemandOptionsRequest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_OnDemandOptionsRequest)
|
||||
// and SpotOptionsRequest (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotOptionsRequest).
|
||||
type TargetCapacitySpecificationRequest struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The default TotalTargetCapacity, which is either Spot or On-Demand.
|
||||
// The default target capacity type.
|
||||
DefaultTargetCapacityType *string `type:"string" enum:"DefaultTargetCapacityType"`
|
||||
|
||||
// The number of On-Demand units to request.
|
||||
|
|
@ -178851,13 +178866,14 @@ type TargetCapacitySpecificationRequest struct {
|
|||
// The number of Spot units to request.
|
||||
SpotTargetCapacity *int64 `type:"integer"`
|
||||
|
||||
// The unit for the target capacity. TargetCapacityUnitType can only be specified
|
||||
// when InstanceRequirements is specified.
|
||||
// The unit for the target capacity. You can specify this parameter only when
|
||||
// using attributed-based instance type selection.
|
||||
//
|
||||
// Default: units (translates to number of instances)
|
||||
// Default: units (the number of instances)
|
||||
TargetCapacityUnitType *string `type:"string" enum:"TargetCapacityUnitType"`
|
||||
|
||||
// The number of units to request, filled using DefaultTargetCapacityType.
|
||||
// The number of units to request, filled using the default target capacity
|
||||
// type.
|
||||
//
|
||||
// TotalTargetCapacity is a required field
|
||||
TotalTargetCapacity *int64 `type:"integer" required:"true"`
|
||||
|
|
@ -186470,6 +186486,9 @@ func (s *Volume) SetVolumeType(v string) *Volume {
|
|||
type VolumeAttachment struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The ARN of the Amazon ECS or Fargate task to which the volume is attached.
|
||||
AssociatedResource *string `locationName:"associatedResource" type:"string"`
|
||||
|
||||
// The time stamp when the attachment initiated.
|
||||
AttachTime *time.Time `locationName:"attachTime" type:"timestamp"`
|
||||
|
||||
|
|
@ -186477,11 +186496,22 @@ type VolumeAttachment struct {
|
|||
DeleteOnTermination *bool `locationName:"deleteOnTermination" type:"boolean"`
|
||||
|
||||
// The device name.
|
||||
//
|
||||
// If the volume is attached to a Fargate task, this parameter returns null.
|
||||
Device *string `locationName:"device" type:"string"`
|
||||
|
||||
// The ID of the instance.
|
||||
//
|
||||
// If the volume is attached to a Fargate task, this parameter returns null.
|
||||
InstanceId *string `locationName:"instanceId" type:"string"`
|
||||
|
||||
// The service principal of Amazon Web Services service that owns the underlying
|
||||
// instance to which the volume is attached.
|
||||
//
|
||||
// This parameter is returned only for volumes that are attached to Fargate
|
||||
// tasks.
|
||||
InstanceOwningService *string `locationName:"instanceOwningService" type:"string"`
|
||||
|
||||
// The attachment state of the volume.
|
||||
State *string `locationName:"status" type:"string" enum:"VolumeAttachmentState"`
|
||||
|
||||
|
|
@ -186507,6 +186537,12 @@ func (s VolumeAttachment) GoString() string {
|
|||
return s.String()
|
||||
}
|
||||
|
||||
// SetAssociatedResource sets the AssociatedResource field's value.
|
||||
func (s *VolumeAttachment) SetAssociatedResource(v string) *VolumeAttachment {
|
||||
s.AssociatedResource = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAttachTime sets the AttachTime field's value.
|
||||
func (s *VolumeAttachment) SetAttachTime(v time.Time) *VolumeAttachment {
|
||||
s.AttachTime = &v
|
||||
|
|
@ -186531,6 +186567,12 @@ func (s *VolumeAttachment) SetInstanceId(v string) *VolumeAttachment {
|
|||
return s
|
||||
}
|
||||
|
||||
// SetInstanceOwningService sets the InstanceOwningService field's value.
|
||||
func (s *VolumeAttachment) SetInstanceOwningService(v string) *VolumeAttachment {
|
||||
s.InstanceOwningService = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetState sets the State field's value.
|
||||
func (s *VolumeAttachment) SetState(v string) *VolumeAttachment {
|
||||
s.State = &v
|
||||
|
|
@ -194445,6 +194487,12 @@ const (
|
|||
|
||||
// InstanceTypeR7iMetal48xl is a InstanceType enum value
|
||||
InstanceTypeR7iMetal48xl = "r7i.metal-48xl"
|
||||
|
||||
// InstanceTypeR7izMetal16xl is a InstanceType enum value
|
||||
InstanceTypeR7izMetal16xl = "r7iz.metal-16xl"
|
||||
|
||||
// InstanceTypeR7izMetal32xl is a InstanceType enum value
|
||||
InstanceTypeR7izMetal32xl = "r7iz.metal-32xl"
|
||||
)
|
||||
|
||||
// InstanceType_Values returns all elements of the InstanceType enum
|
||||
|
|
@ -195231,6 +195279,8 @@ func InstanceType_Values() []string {
|
|||
InstanceTypeM7iMetal48xl,
|
||||
InstanceTypeR7iMetal24xl,
|
||||
InstanceTypeR7iMetal48xl,
|
||||
InstanceTypeR7izMetal16xl,
|
||||
InstanceTypeR7izMetal32xl,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue