From e102656d5c90490c8335a355604d06b873ee8d01 Mon Sep 17 00:00:00 2001 From: AWS SDK for Go v2 automation user Date: Tue, 14 Feb 2023 19:11:58 +0000 Subject: [PATCH] Regenerated Clients --- .../1d36648926654ec685524363fb48f54c.json | 8 +++ .../38afb82fa8804062b26338fe0e232b5e.json | 8 +++ .../d5989d1b11f747099ac73668d0c82ccb.json | 8 +++ ...api_op_CreateHostedConfigurationVersion.go | 8 +++ .../api_op_GetHostedConfigurationVersion.go | 3 + .../api_op_ListHostedConfigurationVersions.go | 6 ++ service/appconfig/api_op_StartDeployment.go | 4 +- service/appconfig/deserializers.go | 19 +++++ service/appconfig/serializers.go | 9 +++ service/appconfig/types/types.go | 3 + .../datasync/api_op_CreateLocationFsxOntap.go | 14 ++-- service/datasync/api_op_CreateLocationS3.go | 3 +- service/datasync/api_op_CreateLocationSmb.go | 71 ++++++++++--------- service/datasync/api_op_DescribeAgent.go | 9 ++- service/datasync/api_op_ListAgents.go | 39 ++++++---- service/datasync/api_op_UpdateLocationSmb.go | 3 +- service/datasync/types/enums.go | 4 ++ service/datasync/types/types.go | 52 ++++++++++---- service/ec2/api_op_AllocateHosts.go | 6 ++ service/ec2/api_op_ModifyHosts.go | 6 ++ service/ec2/deserializers.go | 13 ++++ service/ec2/serializers.go | 10 +++ service/ec2/types/enums.go | 18 +++++ service/ec2/types/types.go | 4 ++ 24 files changed, 252 insertions(+), 76 deletions(-) create mode 100644 .changelog/1d36648926654ec685524363fb48f54c.json create mode 100644 .changelog/38afb82fa8804062b26338fe0e232b5e.json create mode 100644 .changelog/d5989d1b11f747099ac73668d0c82ccb.json diff --git a/.changelog/1d36648926654ec685524363fb48f54c.json b/.changelog/1d36648926654ec685524363fb48f54c.json new file mode 100644 index 00000000000..c0d091d4936 --- /dev/null +++ b/.changelog/1d36648926654ec685524363fb48f54c.json @@ -0,0 +1,8 @@ +{ + "id": "1d366489-2665-4ec6-8552-4363fb48f54c", + "type": "feature", + "description": "AWS AppConfig now offers the option to set a version label on hosted configuration versions. Version labels allow you to identify specific hosted configuration versions based on an alternate versioning scheme that you define.", + "modules": [ + "service/appconfig" + ] +} \ No newline at end of file diff --git a/.changelog/38afb82fa8804062b26338fe0e232b5e.json b/.changelog/38afb82fa8804062b26338fe0e232b5e.json new file mode 100644 index 00000000000..95ad14e609d --- /dev/null +++ b/.changelog/38afb82fa8804062b26338fe0e232b5e.json @@ -0,0 +1,8 @@ +{ + "id": "38afb82f-a880-4062-b263-38fe0e232b5e", + "type": "feature", + "description": "With this launch, we are giving customers the ability to use older SMB protocol versions, enabling them to use DataSync to copy data to and from their legacy storage arrays.", + "modules": [ + "service/datasync" + ] +} \ No newline at end of file diff --git a/.changelog/d5989d1b11f747099ac73668d0c82ccb.json b/.changelog/d5989d1b11f747099ac73668d0c82ccb.json new file mode 100644 index 00000000000..c4709d74b15 --- /dev/null +++ b/.changelog/d5989d1b11f747099ac73668d0c82ccb.json @@ -0,0 +1,8 @@ +{ + "id": "d5989d1b-11f7-4709-9ac7-3668d0c82ccb", + "type": "feature", + "description": "With this release customers can turn host maintenance on or off when allocating or modifying a supported dedicated host. Host maintenance is turned on by default for supported hosts.", + "modules": [ + "service/ec2" + ] +} \ No newline at end of file diff --git a/service/appconfig/api_op_CreateHostedConfigurationVersion.go b/service/appconfig/api_op_CreateHostedConfigurationVersion.go index a98bfcee284..862d5b7700d 100644 --- a/service/appconfig/api_op_CreateHostedConfigurationVersion.go +++ b/service/appconfig/api_op_CreateHostedConfigurationVersion.go @@ -60,6 +60,11 @@ type CreateHostedConfigurationVersionInput struct { // version. LatestVersionNumber *int32 + // An optional, user-defined label for the AppConfig hosted configuration version. + // This value must contain at least one non-numeric character. For example, + // "v2.2.0". + VersionLabel *string + noSmithyDocumentSerde } @@ -82,6 +87,9 @@ type CreateHostedConfigurationVersionOutput struct { // A description of the configuration. Description *string + // A user-defined label for an AppConfig hosted configuration version. + VersionLabel *string + // The configuration version. VersionNumber int32 diff --git a/service/appconfig/api_op_GetHostedConfigurationVersion.go b/service/appconfig/api_op_GetHostedConfigurationVersion.go index 925b8e94b0f..be3374119e3 100644 --- a/service/appconfig/api_op_GetHostedConfigurationVersion.go +++ b/service/appconfig/api_op_GetHostedConfigurationVersion.go @@ -65,6 +65,9 @@ type GetHostedConfigurationVersionOutput struct { // A description of the configuration. Description *string + // A user-defined label for an AppConfig hosted configuration version. + VersionLabel *string + // The configuration version. VersionNumber int32 diff --git a/service/appconfig/api_op_ListHostedConfigurationVersions.go b/service/appconfig/api_op_ListHostedConfigurationVersions.go index 5b96d5b69c0..41408ce841d 100644 --- a/service/appconfig/api_op_ListHostedConfigurationVersions.go +++ b/service/appconfig/api_op_ListHostedConfigurationVersions.go @@ -48,6 +48,12 @@ type ListHostedConfigurationVersionsInput struct { // A token to start the list. Use this token to get the next set of results. NextToken *string + // An optional filter that can be used to specify the version label of an AppConfig + // hosted configuration version. This parameter supports filtering by prefix using + // a wildcard, for example "v2*". If you don't specify an asterisk at the end of + // the value, only an exact match is returned. + VersionLabel *string + noSmithyDocumentSerde } diff --git a/service/appconfig/api_op_StartDeployment.go b/service/appconfig/api_op_StartDeployment.go index d218419d988..f84459ae916 100644 --- a/service/appconfig/api_op_StartDeployment.go +++ b/service/appconfig/api_op_StartDeployment.go @@ -40,7 +40,9 @@ type StartDeploymentInput struct { // This member is required. ConfigurationProfileId *string - // The configuration version to deploy. + // The configuration version to deploy. If deploying an AppConfig hosted + // configuration version, you can specify either the version number or version + // label. // // This member is required. ConfigurationVersion *string diff --git a/service/appconfig/deserializers.go b/service/appconfig/deserializers.go index de78573ca1f..ee8a81a3681 100644 --- a/service/appconfig/deserializers.go +++ b/service/appconfig/deserializers.go @@ -1406,6 +1406,11 @@ func awsRestjson1_deserializeOpHttpBindingsCreateHostedConfigurationVersionOutpu v.Description = ptr.String(headerValues[0]) } + if headerValues := response.Header.Values("VersionLabel"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.VersionLabel = ptr.String(headerValues[0]) + } + if headerValues := response.Header.Values("Version-Number"); len(headerValues) != 0 { headerValues[0] = strings.TrimSpace(headerValues[0]) vv, err := strconv.ParseInt(headerValues[0], 0, 32) @@ -4022,6 +4027,11 @@ func awsRestjson1_deserializeOpHttpBindingsGetHostedConfigurationVersionOutput(v v.Description = ptr.String(headerValues[0]) } + if headerValues := response.Header.Values("VersionLabel"); len(headerValues) != 0 { + headerValues[0] = strings.TrimSpace(headerValues[0]) + v.VersionLabel = ptr.String(headerValues[0]) + } + if headerValues := response.Header.Values("Version-Number"); len(headerValues) != 0 { headerValues[0] = strings.TrimSpace(headerValues[0]) vv, err := strconv.ParseInt(headerValues[0], 0, 32) @@ -9644,6 +9654,15 @@ func awsRestjson1_deserializeDocumentHostedConfigurationVersionSummary(v **types sv.Description = ptr.String(jtv) } + case "VersionLabel": + if value != nil { + jtv, ok := value.(string) + if !ok { + return fmt.Errorf("expected VersionLabel to be of type string, got %T instead", value) + } + sv.VersionLabel = ptr.String(jtv) + } + case "VersionNumber": if value != nil { jtv, ok := value.(json.Number) diff --git a/service/appconfig/serializers.go b/service/appconfig/serializers.go index 969281f729e..7cadef65159 100644 --- a/service/appconfig/serializers.go +++ b/service/appconfig/serializers.go @@ -714,6 +714,11 @@ func awsRestjson1_serializeOpHttpBindingsCreateHostedConfigurationVersionInput(v encoder.SetHeader(locationName).Integer(*v.LatestVersionNumber) } + if v.VersionLabel != nil && len(*v.VersionLabel) > 0 { + locationName := "Versionlabel" + encoder.SetHeader(locationName).String(*v.VersionLabel) + } + return nil } @@ -2290,6 +2295,10 @@ func awsRestjson1_serializeOpHttpBindingsListHostedConfigurationVersionsInput(v encoder.SetQuery("next_token").String(*v.NextToken) } + if v.VersionLabel != nil { + encoder.SetQuery("version_label").String(*v.VersionLabel) + } + return nil } diff --git a/service/appconfig/types/types.go b/service/appconfig/types/types.go index b81000c60c7..108ebe79ce5 100644 --- a/service/appconfig/types/types.go +++ b/service/appconfig/types/types.go @@ -343,6 +343,9 @@ type HostedConfigurationVersionSummary struct { // A description of the configuration. Description *string + // A user-defined label for an AppConfig hosted configuration version. + VersionLabel *string + // The configuration version. VersionNumber int32 diff --git a/service/datasync/api_op_CreateLocationFsxOntap.go b/service/datasync/api_op_CreateLocationFsxOntap.go index f9856f6f939..8f7df47786d 100644 --- a/service/datasync/api_op_CreateLocationFsxOntap.go +++ b/service/datasync/api_op_CreateLocationFsxOntap.go @@ -54,16 +54,18 @@ type CreateLocationFsxOntapInput struct { // This member is required. SecurityGroupArns []string - // Specifies the ARN of the storage virtual machine (SVM) on your file system where - // you're copying data to or from. + // Specifies the ARN of the storage virtual machine (SVM) in your file system where + // you want to copy data to or from. // // This member is required. StorageVirtualMachineArn *string - // Specifies the junction path (also known as a mount point) in the SVM volume - // where you're copying data to or from (for example, /vol1). Don't specify a - // junction path in the SVM's root volume. For more information, see Managing FSx - // for ONTAP storage virtual machines + // Specifies a path to the file share in the SVM where you'll copy your data. You + // can specify a junction path (also known as a mount point), qtree path (for NFS + // file shares), or share name (for SMB file shares). For example, your mount path + // might be /vol1, /vol1/tree1, or /share1. Don't specify a junction path in the + // SVM's root volume. For more information, see Managing FSx for ONTAP storage + // virtual machines // (https://docs.aws.amazon.com/fsx/latest/ONTAPGuide/managing-svms.html) in the // Amazon FSx for NetApp ONTAP User Guide. Subdirectory *string diff --git a/service/datasync/api_op_CreateLocationS3.go b/service/datasync/api_op_CreateLocationS3.go index 14d0ba92f12..a89a49a6b69 100644 --- a/service/datasync/api_op_CreateLocationS3.go +++ b/service/datasync/api_op_CreateLocationS3.go @@ -13,8 +13,7 @@ import ( // Creates an endpoint for an Amazon S3 bucket that DataSync can access for a // transfer. For more information, see Create an Amazon S3 location -// (https://docs.aws.amazon.com/datasync/latest/userguide/create-locations-cli.html#create-location-s3-cli) -// in the DataSync User Guide. +// (https://docs.aws.amazon.com/datasync/latest/userguide/create-locations-cli.html#create-location-s3-cli). func (c *Client) CreateLocationS3(ctx context.Context, params *CreateLocationS3Input, optFns ...func(*Options)) (*CreateLocationS3Output, error) { if params == nil { params = &CreateLocationS3Input{} diff --git a/service/datasync/api_op_CreateLocationSmb.go b/service/datasync/api_op_CreateLocationSmb.go index 5fcfbb11e21..6b8f92bf820 100644 --- a/service/datasync/api_op_CreateLocationSmb.go +++ b/service/datasync/api_op_CreateLocationSmb.go @@ -11,8 +11,9 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Defines a file system on a Server Message Block (SMB) server that can be read -// from or written to. +// Creates an endpoint for a Server Message Block (SMB) file server that DataSync +// can access for a transfer. For more information, see Creating an SMB location +// (https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html). func (c *Client) CreateLocationSmb(ctx context.Context, params *CreateLocationSmbInput, optFns ...func(*Options)) (*CreateLocationSmbOutput, error) { if params == nil { params = &CreateLocationSmbInput{} @@ -31,60 +32,63 @@ func (c *Client) CreateLocationSmb(ctx context.Context, params *CreateLocationSm // CreateLocationSmbRequest type CreateLocationSmbInput struct { - // The Amazon Resource Names (ARNs) of agents to use for a Simple Message Block - // (SMB) location. + // Specifies the DataSync agent (or agents) which you want to connect to your SMB + // file server. You specify an agent by using its Amazon Resource Name (ARN). // // This member is required. AgentArns []string - // The password of the user who can mount the share, has the permissions to access - // files and folders in the SMB share. + // Specifies the password of the user who can mount your SMB file server and has + // permission to access the files and folders involved in your transfer. For more + // information, see required permissions + // (https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions) + // for SMB locations. // // This member is required. Password *string - // The name of the SMB server. This value is the IP address or Domain Name Service - // (DNS) name of the SMB server. An agent that is installed on-premises uses this - // hostname to mount the SMB server in a network. This name must either be - // DNS-compliant or must be an IP version 4 (IPv4) address. + // Specifies the Domain Name Service (DNS) name or IP address of the SMB file + // server that your DataSync agent will mount. You can't specify an IP version 6 + // (IPv6) address. // // This member is required. ServerHostname *string - // The subdirectory in the SMB file system that is used to read data from the SMB - // source location or write data to the SMB destination. The SMB path should be a - // path that's exported by the SMB server, or a subdirectory of that path. The path - // should be such that it can be mounted by other SMB clients in your network. - // Subdirectory must be specified with forward slashes. For example, - // /path/to/folder. To transfer all the data in the folder you specified, DataSync - // needs to have permissions to mount the SMB share, as well as to access all the - // data in that share. To ensure this, either ensure that the user/password - // specified belongs to the user who can mount the share, and who has the - // appropriate permissions for all of the files and directories that you want - // DataSync to access, or use credentials of a member of the Backup Operators group - // to mount the share. Doing either enables the agent to access the data. For the - // agent to access directories, you must additionally enable all execute access. + // Specifies the name of the share exported by your SMB file server where DataSync + // will read or write data. You can include a subdirectory in the share path (for + // example, /path/to/subdirectory). Make sure that other SMB clients in your + // network can also mount this path. To copy all data in the specified + // subdirectory, DataSync must be able to mount the SMB share and access all of its + // data. For more information, see required permissions + // (https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions) + // for SMB locations. // // This member is required. Subdirectory *string - // The user who can mount the share, has the permissions to access files and - // folders in the SMB share. For information about choosing a user name that - // ensures sufficient permissions to files, folders, and metadata, see the User - // setting for SMB locations. + // Specifies the user name that can mount your SMB file server and has permission + // to access the files and folders involved in your transfer. For information about + // choosing a user with the right level of access for your transfer, see required + // permissions + // (https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions) + // for SMB locations. // // This member is required. User *string - // The name of the Windows domain that the SMB server belongs to. + // Specifies the Windows domain name that your SMB file server belongs to. For more + // information, see required permissions + // (https://docs.aws.amazon.com/datasync/latest/userguide/create-smb-location.html#configuring-smb-permissions) + // for SMB locations. Domain *string - // The mount options used by DataSync to access the SMB server. + // Specifies the version of the SMB protocol that DataSync uses to access your SMB + // file server. MountOptions *types.SmbMountOptions - // The key-value pair that represents the tag that you want to add to the location. - // The value can be an empty string. We recommend using tags to name your - // resources. + // Specifies labels that help you categorize, filter, and search for your Amazon + // Web Services resources. We recommend creating at least a name tag for your + // location. Tags []types.TagListEntry noSmithyDocumentSerde @@ -93,8 +97,7 @@ type CreateLocationSmbInput struct { // CreateLocationSmbResponse type CreateLocationSmbOutput struct { - // The Amazon Resource Name (ARN) of the source SMB file system location that is - // created. + // The ARN of the SMB location that you created. LocationArn *string // Metadata pertaining to the operation's result. diff --git a/service/datasync/api_op_DescribeAgent.go b/service/datasync/api_op_DescribeAgent.go index fcd20145961..2870a60c004 100644 --- a/service/datasync/api_op_DescribeAgent.go +++ b/service/datasync/api_op_DescribeAgent.go @@ -12,9 +12,8 @@ import ( "time" ) -// Returns metadata such as the name, the network interfaces, and the status (that -// is, whether the agent is running or not) for an agent. To specify which agent to -// describe, use the Amazon Resource Name (ARN) of the agent in your request. +// Returns metadata about an DataSync agent, such as its name, endpoint type, and +// status. func (c *Client) DescribeAgent(ctx context.Context, params *DescribeAgentInput, optFns ...func(*Options)) (*DescribeAgentOutput, error) { if params == nil { params = &DescribeAgentInput{} @@ -33,7 +32,7 @@ func (c *Client) DescribeAgent(ctx context.Context, params *DescribeAgentInput, // DescribeAgent type DescribeAgentInput struct { - // The Amazon Resource Name (ARN) of the agent to describe. + // Specifies the Amazon Resource Name (ARN) of the DataSync agent to describe. // // This member is required. AgentArn *string @@ -44,7 +43,7 @@ type DescribeAgentInput struct { // DescribeAgentResponse type DescribeAgentOutput struct { - // The Amazon Resource Name (ARN) of the agent. + // The ARN of the agent. AgentArn *string // The time that the agent was activated (that is, created in your account). diff --git a/service/datasync/api_op_ListAgents.go b/service/datasync/api_op_ListAgents.go index 681d47cf9ba..901d1444bab 100644 --- a/service/datasync/api_op_ListAgents.go +++ b/service/datasync/api_op_ListAgents.go @@ -12,14 +12,19 @@ import ( smithyhttp "github.com/aws/smithy-go/transport/http" ) -// Returns a list of agents owned by an Amazon Web Services account in the Amazon -// Web Services Region specified in the request. The returned list is ordered by -// agent Amazon Resource Name (ARN). By default, this operation returns a maximum -// of 100 agents. This operation supports pagination that enables you to optionally -// reduce the number of agents returned in a response. If you have more agents than -// are returned in a response (that is, the response returns only a truncated list -// of your agents), the response contains a marker that you can specify in your -// next request to fetch the next page of agents. +// Returns a list of DataSync agents that belong to an Amazon Web Services account +// in the Amazon Web Services Region specified in the request. With pagination, you +// can reduce the number of agents returned in a response. If you get a truncated +// list of agents in a response, the response contains a marker that you can +// specify in your next request to fetch the next page of agents. ListAgents is +// eventually consistent. This means the result of running the operation might not +// reflect that you just created or deleted an agent. For example, if you create an +// agent with CreateAgent +// (https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateAgent.html) and +// then immediately run ListAgents, that agent might not show up in the list right +// away. In situations like this, you can always confirm whether an agent has been +// created (or deleted) by using DescribeAgent +// (https://docs.aws.amazon.com/datasync/latest/userguide/API_DescribeAgent.html). func (c *Client) ListAgents(ctx context.Context, params *ListAgentsInput, optFns ...func(*Options)) (*ListAgentsOutput, error) { if params == nil { params = &ListAgentsInput{} @@ -38,11 +43,12 @@ func (c *Client) ListAgents(ctx context.Context, params *ListAgentsInput, optFns // ListAgentsRequest type ListAgentsInput struct { - // The maximum number of agents to list. + // Specifies the maximum number of DataSync agents to list in a response. By + // default, a response shows a maximum of 100 agents. MaxResults *int32 - // An opaque string that indicates the position at which to begin the next list of - // agents. + // Specifies an opaque string that indicates the position to begin the next list of + // results in the response. NextToken *string noSmithyDocumentSerde @@ -51,11 +57,13 @@ type ListAgentsInput struct { // ListAgentsResponse type ListAgentsOutput struct { - // A list of agents in your account. + // A list of DataSync agents in your Amazon Web Services account in the Amazon Web + // Services Region specified in the request. The list is ordered by the agents' + // Amazon Resource Names (ARNs). Agents []types.AgentListEntry - // An opaque string that indicates the position at which to begin returning the - // next list of agents. + // The opaque string that indicates the position to begin the next list of results + // in the response. NextToken *string // Metadata pertaining to the operation's result. @@ -133,7 +141,8 @@ var _ ListAgentsAPIClient = (*Client)(nil) // ListAgentsPaginatorOptions is the paginator options for ListAgents type ListAgentsPaginatorOptions struct { - // The maximum number of agents to list. + // Specifies the maximum number of DataSync agents to list in a response. By + // default, a response shows a maximum of 100 agents. Limit int32 // Set to true if pagination should stop if the service returns a pagination token diff --git a/service/datasync/api_op_UpdateLocationSmb.go b/service/datasync/api_op_UpdateLocationSmb.go index 8afad027188..06aa49d1a7a 100644 --- a/service/datasync/api_op_UpdateLocationSmb.go +++ b/service/datasync/api_op_UpdateLocationSmb.go @@ -44,7 +44,8 @@ type UpdateLocationSmbInput struct { // The name of the Windows domain that the SMB server belongs to. Domain *string - // Specifies how DataSync can access a location using the SMB protocol. + // Specifies the version of the Server Message Block (SMB) protocol that DataSync + // uses to access an SMB file server. MountOptions *types.SmbMountOptions // The password of the user who can mount the share has the permissions to access diff --git a/service/datasync/types/enums.go b/service/datasync/types/enums.go index cf8ba729c2c..283226c9c0f 100644 --- a/service/datasync/types/enums.go +++ b/service/datasync/types/enums.go @@ -476,6 +476,8 @@ const ( SmbVersionAutomatic SmbVersion = "AUTOMATIC" SmbVersionSmb2 SmbVersion = "SMB2" SmbVersionSmb3 SmbVersion = "SMB3" + SmbVersionSmb1 SmbVersion = "SMB1" + SmbVersionSmb20 SmbVersion = "SMB2_0" ) // Values returns all known values for SmbVersion. Note that this can be expanded @@ -486,6 +488,8 @@ func (SmbVersion) Values() []SmbVersion { "AUTOMATIC", "SMB2", "SMB3", + "SMB1", + "SMB2_0", } } diff --git a/service/datasync/types/types.go b/service/datasync/types/types.go index 91fef311ed3..56dc41a69b6 100644 --- a/service/datasync/types/types.go +++ b/service/datasync/types/types.go @@ -6,19 +6,20 @@ import ( smithydocument "github.com/aws/smithy-go/document" ) -// Represents a single entry in a list of agents. AgentListEntry returns an array -// that contains a list of agents when the ListAgents +// Represents a single entry in a list (or array) of DataSync agents when you call +// the ListAgents // (https://docs.aws.amazon.com/datasync/latest/userguide/API_ListAgents.html) -// operation is called. +// operation. type AgentListEntry struct { - // The Amazon Resource Name (ARN) of the agent. + // The Amazon Resource Name (ARN) of a DataSync agent. AgentArn *string - // The name of the agent. + // The name of an agent. Name *string - // The status of the agent. + // The status of an agent. For more information, see DataSync agent statuses + // (https://docs.aws.amazon.com/datasync/latest/userguide/understand-agent-statuses.html). Status AgentStatus noSmithyDocumentSerde @@ -141,7 +142,8 @@ type FsxProtocolSmb struct { // Directory that your storage virtual machine (SVM) belongs to. Domain *string - // Specifies how DataSync can access a location using the SMB protocol. + // Specifies the version of the Server Message Block (SMB) protocol that DataSync + // uses to access an SMB file server. MountOptions *SmbMountOptions noSmithyDocumentSerde @@ -341,7 +343,10 @@ type Options struct { // working with Amazon S3 storage classes in DataSync // (https://docs.aws.amazon.com/datasync/latest/userguide/create-s3-location.html#using-storage-classes). // Default value: PRESERVEPRESERVE: Ignore such destination files (recommended). - // REMOVE: Delete destination files that aren’t present in the source. + // REMOVE: Delete destination files that aren’t present in the source. If you set + // this parameter to REMOVE, you can't set TransferMode to ALL. When you transfer + // all data, DataSync doesn't scan your destination location and doesn't know what + // to delete. PreserveDeletedFiles PreserveDeletedFiles // Specifies whether DataSync should preserve the metadata of block and character @@ -492,12 +497,35 @@ type S3Config struct { noSmithyDocumentSerde } -// Specifies how DataSync can access a location using the SMB protocol. +// Specifies the version of the Server Message Block (SMB) protocol that DataSync +// uses to access an SMB file server. type SmbMountOptions struct { - // Specifies the SMB version that you want DataSync to use when mounting your SMB - // share. If you don't specify a version, DataSync defaults to AUTOMATIC and - // chooses a version based on negotiation with the SMB server. + // By default, DataSync automatically chooses an SMB protocol version based on + // negotiation with your SMB file server. You also can configure DataSync to use a + // specific SMB version, but we recommend doing this only if DataSync has trouble + // negotiating with the SMB file server automatically. These are the following + // options for configuring the SMB version: + // + // * AUTOMATIC (default): DataSync and + // the SMB file server negotiate a protocol version that they mutually support. + // (DataSync supports SMB versions 1.0 and later.) This is the recommended option. + // If you instead choose a specific version that your file server doesn't support, + // you may get an Operation Not Supported error. + // + // * SMB3: Restricts the protocol + // negotiation to only SMB version 3.0.2. + // + // * SMB2: Restricts the protocol + // negotiation to only SMB version 2.1. + // + // * SMB2_0: Restricts the protocol + // negotiation to only SMB version 2.0. + // + // * SMB1: Restricts the protocol negotiation + // to only SMB version 1.0. The SMB1 option isn't available when creating an Amazon + // FSx for NetApp ONTAP location + // (https://docs.aws.amazon.com/datasync/latest/userguide/API_CreateLocationFsxOntap.html). Version SmbVersion noSmithyDocumentSerde diff --git a/service/ec2/api_op_AllocateHosts.go b/service/ec2/api_op_AllocateHosts.go index 5d6187ca89c..b59161f1460 100644 --- a/service/ec2/api_op_AllocateHosts.go +++ b/service/ec2/api_op_AllocateHosts.go @@ -54,6 +54,12 @@ type AllocateHostsInput struct { // (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html). ClientToken *string + // Indicates whether to enable or disable host maintenance for the Dedicated Host. + // For more information, see Host maintenance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html) + // in the Amazon EC2 User Guide. Default: on + HostMaintenance types.HostMaintenance + // Indicates whether to enable or disable host recovery for the Dedicated Host. // Host recovery is disabled by default. For more information, see Host recovery // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) diff --git a/service/ec2/api_op_ModifyHosts.go b/service/ec2/api_op_ModifyHosts.go index 8f374231e07..b16d66d5313 100644 --- a/service/ec2/api_op_ModifyHosts.go +++ b/service/ec2/api_op_ModifyHosts.go @@ -45,6 +45,12 @@ type ModifyHostsInput struct { // Specify whether to enable or disable auto-placement. AutoPlacement types.AutoPlacement + // Indicates whether to enable or disable host maintenance for the Dedicated Host. + // For more information, see Host maintenance + // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-maintenance.html) + // in the Amazon EC2 User Guide. + HostMaintenance types.HostMaintenance + // Indicates whether to enable or disable host recovery for the Dedicated Host. For // more information, see Host recovery // (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/dedicated-hosts-recovery.html) diff --git a/service/ec2/deserializers.go b/service/ec2/deserializers.go index e88b0728a5b..f1e66cc2f89 100644 --- a/service/ec2/deserializers.go +++ b/service/ec2/deserializers.go @@ -73717,6 +73717,19 @@ func awsEc2query_deserializeDocumentHost(v **types.Host, decoder smithyxml.NodeD sv.HostId = ptr.String(xtv) } + case strings.EqualFold("hostMaintenance", t.Name.Local): + val, err := decoder.Value() + if err != nil { + return err + } + if val == nil { + break + } + { + xtv := string(val) + sv.HostMaintenance = types.HostMaintenance(xtv) + } + case strings.EqualFold("hostProperties", t.Name.Local): nodeDecoder := smithyxml.WrapNodeDecoder(decoder.Decoder, t) if err := awsEc2query_deserializeDocumentHostProperties(&sv.HostProperties, nodeDecoder); err != nil { diff --git a/service/ec2/serializers.go b/service/ec2/serializers.go index 7d019214006..13e16ca70f2 100644 --- a/service/ec2/serializers.go +++ b/service/ec2/serializers.go @@ -46684,6 +46684,11 @@ func awsEc2query_serializeOpDocumentAllocateHostsInput(v *AllocateHostsInput, va objectKey.String(*v.ClientToken) } + if len(v.HostMaintenance) > 0 { + objectKey := object.Key("HostMaintenance") + objectKey.String(string(v.HostMaintenance)) + } + if len(v.HostRecovery) > 0 { objectKey := object.Key("HostRecovery") objectKey.String(string(v.HostRecovery)) @@ -61012,6 +61017,11 @@ func awsEc2query_serializeOpDocumentModifyHostsInput(v *ModifyHostsInput, value } } + if len(v.HostMaintenance) > 0 { + objectKey := object.Key("HostMaintenance") + objectKey.String(string(v.HostMaintenance)) + } + if len(v.HostRecovery) > 0 { objectKey := object.Key("HostRecovery") objectKey.String(string(v.HostRecovery)) diff --git a/service/ec2/types/enums.go b/service/ec2/types/enums.go index a3b4307b998..aff69209383 100644 --- a/service/ec2/types/enums.go +++ b/service/ec2/types/enums.go @@ -2150,6 +2150,24 @@ func (GatewayType) Values() []GatewayType { } } +type HostMaintenance string + +// Enum values for HostMaintenance +const ( + HostMaintenanceOn HostMaintenance = "on" + HostMaintenanceOff HostMaintenance = "off" +) + +// Values returns all known values for HostMaintenance. 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 (HostMaintenance) Values() []HostMaintenance { + return []HostMaintenance{ + "on", + "off", + } +} + type HostnameType string // Enum values for HostnameType diff --git a/service/ec2/types/types.go b/service/ec2/types/types.go index 84baf09d37f..760006162e7 100644 --- a/service/ec2/types/types.go +++ b/service/ec2/types/types.go @@ -4711,6 +4711,10 @@ type Host struct { // The ID of the Dedicated Host. HostId *string + // Indicates whether host maintenance is enabled or disabled for the Dedicated + // Host. + HostMaintenance HostMaintenance + // The hardware specifications of the Dedicated Host. HostProperties *HostProperties