From 6eeae205640f21da95da886073fe8445e9dec26c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 1 Nov 2024 02:09:22 +0000 Subject: [PATCH] Update services based on release-2024-10-31 of AWS Go SDK Reference: https://github.com/aws/aws-sdk-go-v2/releases/tag/release-2024-10-31 --- .latest-tag-aws-sdk-go | 2 +- lib/aws/generated/amp.ex | 103 ++++-- lib/aws/generated/auto_scaling.ex | 1 + lib/aws/generated/batch.ex | 2 + lib/aws/generated/elastic_load_balancingv2.ex | 8 +- lib/aws/generated/glue.ex | 293 ++++++++++++++++++ lib/aws/generated/sage_maker.ex | 74 +++++ lib/aws/generated/sesv2.ex | 1 + 8 files changed, 459 insertions(+), 25 deletions(-) diff --git a/.latest-tag-aws-sdk-go b/.latest-tag-aws-sdk-go index 29ef02ea..073b7c2c 100644 --- a/.latest-tag-aws-sdk-go +++ b/.latest-tag-aws-sdk-go @@ -1 +1 @@ -release-2024-10-30 +release-2024-10-31 diff --git a/lib/aws/generated/amp.ex b/lib/aws/generated/amp.ex index dfcf2ada..0de9340d 100644 --- a/lib/aws/generated/amp.ex +++ b/lib/aws/generated/amp.ex @@ -61,6 +61,20 @@ defmodule AWS.Amp do @typedoc """ + ## Example: + + update_scraper_request() :: %{ + optional("alias") => String.t(), + optional("clientToken") => String.t(), + optional("destination") => list(), + optional("scrapeConfiguration") => list() + } + + """ + @type update_scraper_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: list_rule_groups_namespaces_response() :: %{ @@ -277,6 +291,20 @@ defmodule AWS.Amp do @typedoc """ + ## Example: + + update_scraper_response() :: %{ + "arn" => String.t(), + "scraperId" => String.t(), + "status" => scraper_status(), + "tags" => map() + } + + """ + @type update_scraper_response() :: %{String.t() => any()} + + @typedoc """ + ## Example: update_workspace_alias_request() :: %{ @@ -1082,6 +1110,15 @@ defmodule AWS.Amp do | resource_not_found_exception() | conflict_exception() + @type update_scraper_errors() :: + throttling_exception() + | validation_exception() + | access_denied_exception() + | internal_server_exception() + | service_quota_exceeded_exception() + | resource_not_found_exception() + | conflict_exception() + @type update_workspace_alias_errors() :: throttling_exception() | validation_exception() @@ -1226,26 +1263,25 @@ defmodule AWS.Amp do A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. - You can configure the - scraper to control what metrics are collected, and what transformations are - applied - prior to sending them to your workspace. - - If needed, an IAM role will be created for you that gives Amazon Managed Service - for Prometheus access to the metrics in your cluster. For more information, see - [Using roles for scraping metrics from EKS](https://docs.aws.amazon.com/prometheus/latest/userguide/using-service-linked-roles.html#using-service-linked-roles-prom-scraper) - in the *Amazon Managed Service for Prometheus User - Guide*. - - You cannot update a scraper. If you want to change the configuration of the - scraper, - create a new scraper and delete the old one. - - The `scrapeConfiguration` parameter contains the base64-encoded version of - the YAML configuration file. + Scrapers are + flexible, and can be configured to control what metrics are collected, the + frequency of collection, what transformations are applied to the metrics, and + more. + + An IAM role will be created for you that Amazon Managed Service for Prometheus + uses + to access the metrics in your cluster. You must configure this role with a + policy that + allows it to scrape metrics from your cluster. For more information, see + [Configuring your Amazon EKS cluster](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-eks-setup) + in the *Amazon Managed Service for Prometheus User Guide*. + + The `scrapeConfiguration` parameter contains the base-64 encoded YAML + configuration for the scraper. For more information about collectors, including what metrics are collected, and - how to configure the scraper, see [Amazon Web Services managed collectors](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector.html) + how to configure the scraper, see [Using an Amazon Web Services managed + collector](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html) in the *Amazon Managed Service for Prometheus User Guide*. """ @@ -1703,7 +1739,7 @@ defmodule AWS.Amp do with an Amazon Managed Service for Prometheus resource. Currently, the only resources that can be - tagged are workspaces and rule groups namespaces. + tagged are scrapers, workspaces, and rule groups namespaces. """ @spec list_tags_for_resource(map(), String.t(), list()) :: {:ok, list_tags_for_resource_response(), any()} @@ -1835,8 +1871,8 @@ defmodule AWS.Amp do Prometheus resource. - The only resources that can be tagged are workspaces and rule groups - namespaces. + The only resources that can be tagged are rule groups namespaces, scrapers, + and workspaces. If you specify a new tag key for the resource, this tag is appended to the list of @@ -1844,7 +1880,7 @@ defmodule AWS.Amp do associated with the resource, the new tag value that you specify replaces the previous value for - that tag. + that tag. To remove a tag, use `UntagResource`. """ @spec tag_resource(map(), String.t(), tag_resource_request(), list()) :: {:ok, tag_resource_response(), any()} @@ -1875,7 +1911,7 @@ defmodule AWS.Amp do resource. The only resources - that can be tagged are workspaces and rule groups namespaces. + that can be tagged are rule groups namespaces, scrapers, and workspaces. """ @spec untag_resource(map(), String.t(), untag_resource_request(), list()) :: {:ok, untag_resource_response(), any()} @@ -1929,6 +1965,27 @@ defmodule AWS.Amp do Request.request_rest(client, meta, :put, url_path, query_params, headers, input, options, 202) end + @doc """ + Updates an existing scraper. + + You can't use this function to update the source from which the scraper is + collecting metrics. To change the source, delete the scraper and create a new + one. + """ + @spec update_scraper(map(), String.t(), update_scraper_request(), list()) :: + {:ok, update_scraper_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, update_scraper_errors()} + def update_scraper(%Client{} = client, scraper_id, input, options \\ []) do + url_path = "/scrapers/#{AWS.Util.encode_uri(scraper_id)}" + headers = [] + query_params = [] + + meta = metadata() + + Request.request_rest(client, meta, :put, url_path, query_params, headers, input, options, 202) + end + @doc """ Updates the alias of an existing workspace. """ diff --git a/lib/aws/generated/auto_scaling.ex b/lib/aws/generated/auto_scaling.ex index 35282882..6c27ab60 100644 --- a/lib/aws/generated/auto_scaling.ex +++ b/lib/aws/generated/auto_scaling.ex @@ -1956,6 +1956,7 @@ defmodule AWS.AutoScaling do refresh_preferences() :: %{ "AlarmSpecification" => alarm_specification(), "AutoRollback" => boolean(), + "BakeTime" => integer(), "CheckpointDelay" => integer(), "CheckpointPercentages" => list(integer()()), "InstanceWarmup" => integer(), diff --git a/lib/aws/generated/batch.ex b/lib/aws/generated/batch.ex index 6faa2068..4e111d9d 100644 --- a/lib/aws/generated/batch.ex +++ b/lib/aws/generated/batch.ex @@ -1090,6 +1090,7 @@ defmodule AWS.Batch do "initContainers" => list(eks_attempt_container_detail()()), "nodeName" => String.t(), "podName" => String.t(), + "podNamespace" => String.t(), "startedAt" => float(), "statusReason" => String.t(), "stoppedAt" => float() @@ -1418,6 +1419,7 @@ defmodule AWS.Batch do ## Example: eks_attempt_container_detail() :: %{ + "containerID" => String.t(), "exitCode" => integer(), "name" => String.t(), "reason" => String.t() diff --git a/lib/aws/generated/elastic_load_balancingv2.ex b/lib/aws/generated/elastic_load_balancingv2.ex index 4255158a..adaa51bc 100644 --- a/lib/aws/generated/elastic_load_balancingv2.ex +++ b/lib/aws/generated/elastic_load_balancingv2.ex @@ -132,6 +132,7 @@ defmodule AWS.ElasticLoadBalancingv2 do availability_zone() :: %{ "LoadBalancerAddresses" => list(load_balancer_address()()), "OutpostId" => String.t(), + "SourceNatIpv6Prefixes" => list(String.t()()), "SubnetId" => String.t(), "ZoneName" => String.t() } @@ -364,6 +365,7 @@ defmodule AWS.ElasticLoadBalancingv2 do ## Example: set_subnets_input() :: %{ + optional("EnablePrefixForIpv6SourceNat") => list(any()), optional("IpAddressType") => list(any()), optional("SubnetMappings") => list(subnet_mapping()()), optional("Subnets") => list(String.t()()), @@ -381,6 +383,7 @@ defmodule AWS.ElasticLoadBalancingv2 do "AllocationId" => String.t(), "IPv6Address" => String.t(), "PrivateIPv4Address" => String.t(), + "SourceNatIpv6Prefix" => String.t(), "SubnetId" => String.t() } @@ -982,6 +985,7 @@ defmodule AWS.ElasticLoadBalancingv2 do set_subnets_output() :: %{ "AvailabilityZones" => list(availability_zone()()), + "EnablePrefixForIpv6SourceNat" => list(any()), "IpAddressType" => list(any()) } @@ -1706,6 +1710,7 @@ defmodule AWS.ElasticLoadBalancingv2 do create_load_balancer_input() :: %{ optional("CustomerOwnedIpv4Pool") => String.t(), + optional("EnablePrefixForIpv6SourceNat") => list(any()), optional("IpAddressType") => list(any()), optional("Scheme") => list(any()), optional("SecurityGroups") => list(String.t()()), @@ -1790,6 +1795,7 @@ defmodule AWS.ElasticLoadBalancingv2 do "CreatedTime" => non_neg_integer(), "CustomerOwnedIpv4Pool" => String.t(), "DNSName" => String.t(), + "EnablePrefixForIpv6SourceNat" => list(any()), "EnforceSecurityGroupInboundRulesOnPrivateLinkTraffic" => String.t(), "IpAddressType" => list(any()), "LoadBalancerArn" => String.t(), @@ -3529,7 +3535,7 @@ defmodule AWS.ElasticLoadBalancingv2 do target group multiple times using different ports. - With a Network Load Balancer, you cannot register instances by instance ID if + With a Network Load Balancer, you can't register instances by instance ID if they have the following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2, M3, diff --git a/lib/aws/generated/glue.ex b/lib/aws/generated/glue.ex index 31f663da..0d593b15 100644 --- a/lib/aws/generated/glue.ex +++ b/lib/aws/generated/glue.ex @@ -416,6 +416,15 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + delete_column_statistics_task_settings_response() :: %{} + + """ + @type delete_column_statistics_task_settings_response() :: %{} + + @typedoc """ + ## Example: job_bookmarks_encryption() :: %{ @@ -2807,6 +2816,18 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + delete_column_statistics_task_settings_request() :: %{ + required("DatabaseName") => String.t(), + required("TableName") => String.t() + } + + """ + @type delete_column_statistics_task_settings_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: batch_get_jobs_request() :: %{ @@ -3627,6 +3648,15 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + update_column_statistics_task_settings_response() :: %{} + + """ + @type update_column_statistics_task_settings_response() :: %{} + + @typedoc """ + ## Example: resource_number_limit_exceeded_exception() :: %{ @@ -4334,6 +4364,18 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + stop_column_statistics_task_run_schedule_request() :: %{ + required("DatabaseName") => String.t(), + required("TableName") => String.t() + } + + """ + @type stop_column_statistics_task_run_schedule_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: put_workflow_run_properties_response() :: %{} @@ -7054,6 +7096,7 @@ defmodule AWS.Glue do "CatalogID" => String.t(), "ColumnNameList" => list(String.t()()), "ColumnStatisticsTaskRunId" => String.t(), + "ComputationType" => list(any()), "CreationTime" => non_neg_integer(), "CustomerId" => String.t(), "DPUSeconds" => float(), @@ -7606,6 +7649,15 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + create_column_statistics_task_settings_response() :: %{} + + """ + @type create_column_statistics_task_settings_response() :: %{} + + @typedoc """ + ## Example: test_connection_input() :: %{ @@ -7656,6 +7708,18 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + get_column_statistics_task_settings_request() :: %{ + required("DatabaseName") => String.t(), + required("TableName") => String.t() + } + + """ + @type get_column_statistics_task_settings_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: action() :: %{ @@ -8138,6 +8202,25 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + create_column_statistics_task_settings_request() :: %{ + optional("CatalogID") => String.t(), + optional("ColumnNameList") => list(String.t()()), + optional("SampleSize") => float(), + optional("Schedule") => String.t(), + optional("SecurityConfiguration") => String.t(), + optional("Tags") => map(), + required("DatabaseName") => String.t(), + required("Role") => String.t(), + required("TableName") => String.t() + } + + """ + @type create_column_statistics_task_settings_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: get_ml_task_runs_response() :: %{ @@ -8791,6 +8874,18 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + start_column_statistics_task_run_schedule_request() :: %{ + required("DatabaseName") => String.t(), + required("TableName") => String.t() + } + + """ + @type start_column_statistics_task_run_schedule_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: s3_catalog_source() :: %{ @@ -8897,6 +8992,15 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + start_column_statistics_task_run_schedule_response() :: %{} + + """ + @type start_column_statistics_task_run_schedule_response() :: %{} + + @typedoc """ + ## Example: get_job_request() :: %{ @@ -9113,6 +9217,15 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + stop_column_statistics_task_run_schedule_response() :: %{} + + """ + @type stop_column_statistics_task_run_schedule_response() :: %{} + + @typedoc """ + ## Example: other_metadata_value_list_item() :: %{ @@ -10727,6 +10840,24 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + column_statistics_task_settings() :: %{ + "CatalogID" => String.t(), + "ColumnNameList" => list(String.t()()), + "DatabaseName" => String.t(), + "Role" => String.t(), + "SampleSize" => float(), + "Schedule" => schedule(), + "SecurityConfiguration" => String.t(), + "TableName" => String.t() + } + + """ + @type column_statistics_task_settings() :: %{String.t() => any()} + + @typedoc """ + ## Example: create_database_request() :: %{ @@ -11075,6 +11206,24 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + update_column_statistics_task_settings_request() :: %{ + optional("CatalogID") => String.t(), + optional("ColumnNameList") => list(String.t()()), + optional("Role") => String.t(), + optional("SampleSize") => float(), + optional("Schedule") => String.t(), + optional("SecurityConfiguration") => String.t(), + required("DatabaseName") => String.t(), + required("TableName") => String.t() + } + + """ + @type update_column_statistics_task_settings_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: start_ml_labeling_set_generation_task_run_request() :: %{ @@ -11161,6 +11310,17 @@ defmodule AWS.Glue do @typedoc """ + ## Example: + + get_column_statistics_task_settings_response() :: %{ + "ColumnStatisticsTaskSettings" => column_statistics_task_settings() + } + + """ + @type get_column_statistics_task_settings_response() :: %{String.t() => any()} + + @typedoc """ + ## Example: string_column_statistics_data() :: %{ @@ -11391,6 +11551,15 @@ defmodule AWS.Glue do @type create_classifier_errors() :: invalid_input_exception() | already_exists_exception() | operation_timeout_exception() + @type create_column_statistics_task_settings_errors() :: + column_statistics_task_running_exception() + | access_denied_exception() + | invalid_input_exception() + | resource_number_limit_exceeded_exception() + | already_exists_exception() + | operation_timeout_exception() + | entity_not_found_exception() + @type create_connection_errors() :: glue_encryption_exception() | invalid_input_exception() @@ -11587,6 +11756,9 @@ defmodule AWS.Glue do | operation_timeout_exception() | entity_not_found_exception() + @type delete_column_statistics_task_settings_errors() :: + invalid_input_exception() | operation_timeout_exception() | entity_not_found_exception() + @type delete_connection_errors() :: operation_timeout_exception() | entity_not_found_exception() @type delete_crawler_errors() :: @@ -11771,6 +11943,9 @@ defmodule AWS.Glue do @type get_column_statistics_task_runs_errors() :: operation_timeout_exception() + @type get_column_statistics_task_settings_errors() :: + invalid_input_exception() | operation_timeout_exception() | entity_not_found_exception() + @type get_connection_errors() :: glue_encryption_exception() | invalid_input_exception() @@ -12350,6 +12525,12 @@ defmodule AWS.Glue do | operation_timeout_exception() | entity_not_found_exception() + @type start_column_statistics_task_run_schedule_errors() :: + access_denied_exception() + | invalid_input_exception() + | operation_timeout_exception() + | entity_not_found_exception() + @type start_crawler_errors() :: crawler_running_exception() | operation_timeout_exception() @@ -12433,6 +12614,9 @@ defmodule AWS.Glue do | entity_not_found_exception() | column_statistics_task_stopping_exception() + @type stop_column_statistics_task_run_schedule_errors() :: + invalid_input_exception() | operation_timeout_exception() | entity_not_found_exception() + @type stop_crawler_errors() :: crawler_not_running_exception() | crawler_stopping_exception() @@ -12518,6 +12702,13 @@ defmodule AWS.Glue do | operation_timeout_exception() | entity_not_found_exception() + @type update_column_statistics_task_settings_errors() :: + access_denied_exception() + | invalid_input_exception() + | version_mismatch_exception() + | operation_timeout_exception() + | entity_not_found_exception() + @type update_connection_errors() :: glue_encryption_exception() | invalid_input_exception() @@ -13065,6 +13256,23 @@ defmodule AWS.Glue do Request.request_post(client, meta, "CreateClassifier", input, options) end + @doc """ + Creates settings for a column statistics task. + """ + @spec create_column_statistics_task_settings( + map(), + create_column_statistics_task_settings_request(), + list() + ) :: + {:ok, create_column_statistics_task_settings_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, create_column_statistics_task_settings_errors()} + def create_column_statistics_task_settings(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "CreateColumnStatisticsTaskSettings", input, options) + end + @doc """ Creates a connection definition in the Data Catalog. @@ -13458,6 +13666,23 @@ defmodule AWS.Glue do Request.request_post(client, meta, "DeleteColumnStatisticsForTable", input, options) end + @doc """ + Deletes settings for a column statistics task. + """ + @spec delete_column_statistics_task_settings( + map(), + delete_column_statistics_task_settings_request(), + list() + ) :: + {:ok, delete_column_statistics_task_settings_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, delete_column_statistics_task_settings_errors()} + def delete_column_statistics_task_settings(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "DeleteColumnStatisticsTaskSettings", input, options) + end + @doc """ Deletes a connection from the Data Catalog. """ @@ -13972,6 +14197,23 @@ defmodule AWS.Glue do Request.request_post(client, meta, "GetColumnStatisticsTaskRuns", input, options) end + @doc """ + Gets settings for a column statistics task. + """ + @spec get_column_statistics_task_settings( + map(), + get_column_statistics_task_settings_request(), + list() + ) :: + {:ok, get_column_statistics_task_settings_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, get_column_statistics_task_settings_errors()} + def get_column_statistics_task_settings(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "GetColumnStatisticsTaskSettings", input, options) + end + @doc """ Retrieves a connection definition from the Data Catalog. """ @@ -15543,6 +15785,23 @@ defmodule AWS.Glue do Request.request_post(client, meta, "StartColumnStatisticsTaskRun", input, options) end + @doc """ + Starts a column statistics task run schedule. + """ + @spec start_column_statistics_task_run_schedule( + map(), + start_column_statistics_task_run_schedule_request(), + list() + ) :: + {:ok, start_column_statistics_task_run_schedule_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, start_column_statistics_task_run_schedule_errors()} + def start_column_statistics_task_run_schedule(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "StartColumnStatisticsTaskRunSchedule", input, options) + end + @doc """ Starts a crawl using the specified crawler, regardless of what is scheduled. @@ -15804,6 +16063,23 @@ defmodule AWS.Glue do Request.request_post(client, meta, "StopColumnStatisticsTaskRun", input, options) end + @doc """ + Stops a column statistics task run schedule. + """ + @spec stop_column_statistics_task_run_schedule( + map(), + stop_column_statistics_task_run_schedule_request(), + list() + ) :: + {:ok, stop_column_statistics_task_run_schedule_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, stop_column_statistics_task_run_schedule_errors()} + def stop_column_statistics_task_run_schedule(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "StopColumnStatisticsTaskRunSchedule", input, options) + end + @doc """ If the specified crawler is running, stops the crawl. """ @@ -15989,6 +16265,23 @@ defmodule AWS.Glue do Request.request_post(client, meta, "UpdateColumnStatisticsForTable", input, options) end + @doc """ + Updates settings for a column statistics task. + """ + @spec update_column_statistics_task_settings( + map(), + update_column_statistics_task_settings_request(), + list() + ) :: + {:ok, update_column_statistics_task_settings_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, update_column_statistics_task_settings_errors()} + def update_column_statistics_task_settings(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "UpdateColumnStatisticsTaskSettings", input, options) + end + @doc """ Updates a connection definition in the Data Catalog. """ diff --git a/lib/aws/generated/sage_maker.ex b/lib/aws/generated/sage_maker.ex index e70f8166..26f2aedf 100644 --- a/lib/aws/generated/sage_maker.ex +++ b/lib/aws/generated/sage_maker.ex @@ -10743,6 +10743,7 @@ defmodule AWS.SageMaker do training_job_summary() :: %{ "CreationTime" => non_neg_integer(), "LastModifiedTime" => non_neg_integer(), + "SecondaryStatus" => list(any()), "TrainingEndTime" => non_neg_integer(), "TrainingJobArn" => String.t(), "TrainingJobName" => String.t(), @@ -12179,6 +12180,19 @@ defmodule AWS.SageMaker do @typedoc """ + ## Example: + + batch_delete_cluster_nodes_error() :: %{ + "Code" => list(any()), + "Message" => String.t(), + "NodeId" => String.t() + } + + """ + @type batch_delete_cluster_nodes_error() :: %{String.t() => any()} + + @typedoc """ + ## Example: multi_model_config() :: %{ @@ -13717,6 +13731,18 @@ defmodule AWS.SageMaker do @typedoc """ + ## Example: + + batch_delete_cluster_nodes_response() :: %{ + "Failed" => list(batch_delete_cluster_nodes_error()()), + "Successful" => list(String.t()()) + } + + """ + @type batch_delete_cluster_nodes_response() :: %{String.t() => any()} + + @typedoc """ + ## Example: put_model_package_group_policy_output() :: %{ @@ -13741,6 +13767,18 @@ defmodule AWS.SageMaker do @typedoc """ + ## Example: + + batch_delete_cluster_nodes_request() :: %{ + required("ClusterName") => String.t(), + required("NodeIds") => list(String.t()()) + } + + """ + @type batch_delete_cluster_nodes_request() :: %{String.t() => any()} + + @typedoc """ + ## Example: cluster_life_cycle_config() :: %{ @@ -17144,6 +17182,8 @@ defmodule AWS.SageMaker do @type associate_trial_component_errors() :: resource_limit_exceeded() | resource_not_found() + @type batch_delete_cluster_nodes_errors() :: resource_not_found() + @type create_action_errors() :: resource_limit_exceeded() @type create_app_errors() :: resource_limit_exceeded() | resource_in_use() @@ -17738,6 +17778,35 @@ defmodule AWS.SageMaker do Request.request_post(client, meta, "AssociateTrialComponent", input, options) end + @doc """ + Deletes specific nodes within a SageMaker HyperPod cluster. + + `BatchDeleteClusterNodes` + accepts a cluster name and a list of node IDs. + + + To safeguard your work, back up your data to Amazon S3 or an FSx for + Lustre file system before invoking the API on a worker node group. This will + help + prevent any potential data loss from the instance root volume. For more + information about backup, see [Use the backup script provided by SageMaker HyperPod](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-operate-cli-command.html#sagemaker-hyperpod-operate-cli-command-update-cluster-software-backup). + + + If you want to invoke this API on an existing cluster, you'll first need to + patch the cluster by running the [UpdateClusterSoftware API](https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_UpdateClusterSoftware.html). + For more information about patching a + cluster, see [Update the SageMaker HyperPod platform software of a cluster](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-operate-cli-command.html#sagemaker-hyperpod-operate-cli-command-update-cluster-software). + """ + @spec batch_delete_cluster_nodes(map(), batch_delete_cluster_nodes_request(), list()) :: + {:ok, batch_delete_cluster_nodes_response(), any()} + | {:error, {:unexpected_response, any()}} + | {:error, batch_delete_cluster_nodes_errors()} + def batch_delete_cluster_nodes(%Client{} = client, input, options \\ []) do + meta = metadata() + + Request.request_post(client, meta, "BatchDeleteClusterNodes", input, options) + end + @doc """ This action batch describes a list of versioned model packages """ @@ -23206,6 +23275,11 @@ defmodule AWS.SageMaker do To learn how to use this API, see [Update the SageMaker HyperPod platform software of a cluster](https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-operate.html#sagemaker-hyperpod-operate-cli-command-update-cluster-software). + + The `UpgradeClusterSoftware` API call may impact your SageMaker HyperPod cluster + uptime and availability. Plan accordingly to mitigate potential disruptions to + your + workloads. """ @spec update_cluster_software(map(), update_cluster_software_request(), list()) :: {:ok, update_cluster_software_response(), any()} diff --git a/lib/aws/generated/sesv2.ex b/lib/aws/generated/sesv2.ex index 8a5fdb6c..861db00d 100644 --- a/lib/aws/generated/sesv2.ex +++ b/lib/aws/generated/sesv2.ex @@ -2927,6 +2927,7 @@ defmodule AWS.SESv2 do template() :: %{ "Headers" => list(message_header()()), "TemplateArn" => String.t(), + "TemplateContent" => email_template_content(), "TemplateData" => String.t(), "TemplateName" => String.t() }