Skip to content

Commit

Permalink
Update services based on release-2024-10-31 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Nov 1, 2024
1 parent a0df423 commit 6eeae20
Show file tree
Hide file tree
Showing 8 changed files with 459 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release-2024-10-30
release-2024-10-31
103 changes: 80 additions & 23 deletions lib/aws/generated/amp.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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() :: %{
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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*.
"""
Expand Down Expand Up @@ -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()}
Expand Down Expand Up @@ -1835,16 +1871,16 @@ 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
tags associated with the resource. If you specify a tag key that is already
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()}
Expand Down Expand Up @@ -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()}
Expand Down Expand Up @@ -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.
"""
Expand Down
1 change: 1 addition & 0 deletions lib/aws/generated/auto_scaling.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1956,6 +1956,7 @@ defmodule AWS.AutoScaling do
refresh_preferences() :: %{
"AlarmSpecification" => alarm_specification(),
"AutoRollback" => boolean(),
"BakeTime" => integer(),
"CheckpointDelay" => integer(),
"CheckpointPercentages" => list(integer()()),
"InstanceWarmup" => integer(),
Expand Down
2 changes: 2 additions & 0 deletions lib/aws/generated/batch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -1418,6 +1419,7 @@ defmodule AWS.Batch do
## Example:
eks_attempt_container_detail() :: %{
"containerID" => String.t(),
"exitCode" => integer(),
"name" => String.t(),
"reason" => String.t()
Expand Down
8 changes: 7 additions & 1 deletion lib/aws/generated/elastic_load_balancingv2.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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()()),
Expand All @@ -381,6 +383,7 @@ defmodule AWS.ElasticLoadBalancingv2 do
"AllocationId" => String.t(),
"IPv6Address" => String.t(),
"PrivateIPv4Address" => String.t(),
"SourceNatIpv6Prefix" => String.t(),
"SubnetId" => String.t()
}
Expand Down Expand Up @@ -982,6 +985,7 @@ defmodule AWS.ElasticLoadBalancingv2 do
set_subnets_output() :: %{
"AvailabilityZones" => list(availability_zone()()),
"EnablePrefixForIpv6SourceNat" => list(any()),
"IpAddressType" => list(any())
}
Expand Down Expand Up @@ -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()()),
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
Expand Down
Loading

0 comments on commit 6eeae20

Please sign in to comment.