Skip to content

Commit

Permalink
Update services based on v1.48.0 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Nov 18, 2023
1 parent ec9bed5 commit ff0dc20
Show file tree
Hide file tree
Showing 32 changed files with 3,199 additions and 316 deletions.
2 changes: 1 addition & 1 deletion .latest-tag-aws-sdk-go
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.47.11
v1.48.0
29 changes: 8 additions & 21 deletions lib/aws/generated/athena.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ defmodule AWS.Athena do
or later with the Amazon Athena API. Earlier version drivers do not support the
API. For more information and to download the driver, see [Accessing Amazon Athena with
JDBC](https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html).
For code samples using the Amazon Web Services SDK for Java, see [Examples and Code Samples](https://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in
the *Amazon Athena User Guide*.
"""

alias AWS.Client
Expand Down Expand Up @@ -128,9 +125,6 @@ defmodule AWS.Athena do
Creates a named query in the specified workgroup.
Requires that you have access to the workgroup.
For code samples using the Amazon Web Services SDK for Java, see [Examples and Code Samples](http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in
the *Amazon Athena User Guide*.
"""
def create_named_query(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down Expand Up @@ -209,9 +203,6 @@ defmodule AWS.Athena do
@doc """
Deletes the named query if you have access to the workgroup in which the query
was saved.
For code samples using the Amazon Web Services SDK for Java, see [Examples and Code Samples](http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in
the *Amazon Athena User Guide*.
"""
def delete_named_query(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down Expand Up @@ -533,9 +524,6 @@ defmodule AWS.Athena do
Requires that you have access to the specified workgroup. If a workgroup is not
specified, lists the saved queries for the primary workgroup.
For code samples using the Amazon Web Services SDK for Java, see [Examples and Code Samples](http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in
the *Amazon Athena User Guide*.
"""
def list_named_queries(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down Expand Up @@ -577,12 +565,9 @@ defmodule AWS.Athena do
Provides a list of available query execution IDs for the queries in the
specified workgroup.
If a workgroup is not specified, returns a list of query execution IDs for the
primary workgroup. Requires you to have access to the workgroup in which the
queries ran.
For code samples using the Amazon Web Services SDK for Java, see [Examples and Code Samples](http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in
the *Amazon Athena User Guide*.
Athena keeps a query history for 45 days. If a workgroup is not specified,
returns a list of query execution IDs for the primary workgroup. Requires you to
have access to the workgroup in which the queries ran.
"""
def list_query_executions(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down Expand Up @@ -646,6 +631,11 @@ defmodule AWS.Athena do
Submits calculations for execution within a session.
You can supply the code to run as an inline code block within the request.
The request syntax requires the `StartCalculationExecutionRequest$CodeBlock`
parameter or the `CalculationConfiguration$CodeBlock` parameter, but not both.
Because `CalculationConfiguration$CodeBlock` is deprecated, use the
`StartCalculationExecutionRequest$CodeBlock` parameter instead.
"""
def start_calculation_execution(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down Expand Up @@ -701,9 +691,6 @@ defmodule AWS.Athena do
Stops a query execution.
Requires you to have access to the workgroup in which the query ran.
For code samples using the Amazon Web Services SDK for Java, see [Examples and Code Samples](http://docs.aws.amazon.com/athena/latest/ug/code-samples.html) in
the *Amazon Athena User Guide*.
"""
def stop_query_execution(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down
5 changes: 0 additions & 5 deletions lib/aws/generated/auto_scaling.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1205,11 +1205,6 @@ defmodule AWS.AutoScaling do
@doc """
Starts an instance refresh.
During an instance refresh, Amazon EC2 Auto Scaling performs a rolling update of
instances in an Auto Scaling group. Instances are terminated first and then
replaced, which temporarily reduces the capacity available within your Auto
Scaling group.
This operation is part of the [instance refresh feature](https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html)
in Amazon EC2 Auto Scaling, which helps you update instances in your Auto
Scaling group. This feature is helpful, for example, when you have a new AMI or
Expand Down
4 changes: 2 additions & 2 deletions lib/aws/generated/cloud_formation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ defmodule AWS.CloudFormation do
will make if you execute the change set.
For more information, see [Updating Stacks Using Change Sets](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-changesets.html)
in the CloudFormation User Guide.
in the *CloudFormation User Guide*.
"""
def describe_change_set(%Client{} = client, input, options \\ []) do
meta = metadata()
Expand Down Expand Up @@ -404,7 +404,7 @@ defmodule AWS.CloudFormation do
For more information about a stack's event history, go to
[Stacks](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-stack.html)
in the CloudFormation User Guide.
in the *CloudFormation User Guide*.
You can list events for stacks that have failed to create or have been deleted
by specifying the unique stack identifier (stack ID).
Expand Down
5 changes: 3 additions & 2 deletions lib/aws/generated/cloud_trail.ex
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,9 @@ defmodule AWS.CloudTrail do
The required `EventDataStore` value is an ARN or the ID portion of the ARN.
Other parameters are optional, but at least one optional parameter must be
specified, or CloudTrail throws an error. `RetentionPeriod` is in days, and
valid values are integers between 90 and 2557. By default,
`TerminationProtection` is enabled.
valid values are integers between 7 and 3653 if the `BillingMode` is set to
`EXTENDABLE_RETENTION_PRICING`, or between 7 and 2557 if `BillingMode` is set to
`FIXED_RETENTION_PRICING`. By default, `TerminationProtection` is enabled.
For event data stores for CloudTrail events, `AdvancedEventSelectors` includes
or excludes management, data, or Insights events in your event data store. For
Expand Down
159 changes: 159 additions & 0 deletions lib/aws/generated/code_star_connections.ex
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,30 @@ defmodule AWS.CodeStarConnections do
Request.request_post(client, meta, "CreateHost", input, options)
end

@doc """
Creates a link to a specified external Git repository.
A repository link allows Git sync to monitor and sync changes to files in a
specified Git repository.
"""
def create_repository_link(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "CreateRepositoryLink", input, options)
end

@doc """
Creates a sync configuration which allows Amazon Web Services to sync content
from a Git repository to update a specified Amazon Web Services resource.
Parameters for the sync configuration are determined by the sync type.
"""
def create_sync_configuration(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "CreateSyncConfiguration", input, options)
end

@doc """
The connection to be deleted.
"""
Expand All @@ -143,6 +167,25 @@ defmodule AWS.CodeStarConnections do
Request.request_post(client, meta, "DeleteHost", input, options)
end

@doc """
Deletes the association between your connection and a specified external Git
repository.
"""
def delete_repository_link(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "DeleteRepositoryLink", input, options)
end

@doc """
Deletes the sync configuration for a specified repository and connection.
"""
def delete_sync_configuration(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "DeleteSyncConfiguration", input, options)
end

@doc """
Returns the connection ARN and details such as status, owner, and provider type.
"""
Expand All @@ -162,6 +205,62 @@ defmodule AWS.CodeStarConnections do
Request.request_post(client, meta, "GetHost", input, options)
end

@doc """
Returns details about a repository link.
A repository link allows Git sync to monitor and sync changes from files in a
specified Git repository.
"""
def get_repository_link(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "GetRepositoryLink", input, options)
end

@doc """
Returns details about the sync status for a repository.
A repository sync uses Git sync to push and pull changes from your remote
repository.
"""
def get_repository_sync_status(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "GetRepositorySyncStatus", input, options)
end

@doc """
Returns the status of the sync with the Git repository for a specific Amazon Web
Services resource.
"""
def get_resource_sync_status(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "GetResourceSyncStatus", input, options)
end

@doc """
Returns a list of the most recent sync blockers.
"""
def get_sync_blocker_summary(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "GetSyncBlockerSummary", input, options)
end

@doc """
Returns details about a sync configuration, including the sync type and resource
name.
A sync configuration allows the configuration to sync (push and pull) changes
from the remote repository for a specified branch in a Git repository.
"""
def get_sync_configuration(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "GetSyncConfiguration", input, options)
end

@doc """
Lists the connections associated with your account.
"""
Expand All @@ -180,6 +279,33 @@ defmodule AWS.CodeStarConnections do
Request.request_post(client, meta, "ListHosts", input, options)
end

@doc """
Lists the repository links created for connections in your account.
"""
def list_repository_links(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "ListRepositoryLinks", input, options)
end

@doc """
Lists the repository sync definitions for repository links in your account.
"""
def list_repository_sync_definitions(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "ListRepositorySyncDefinitions", input, options)
end

@doc """
Returns a list of sync configurations for a specified repository.
"""
def list_sync_configurations(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "ListSyncConfigurations", input, options)
end

@doc """
Gets the set of key-value pairs (metadata) that are used to manage the resource.
"""
Expand Down Expand Up @@ -217,4 +343,37 @@ defmodule AWS.CodeStarConnections do

Request.request_post(client, meta, "UpdateHost", input, options)
end

@doc """
Updates the association between your connection and a specified external Git
repository.
A repository link allows Git sync to monitor and sync changes to files in a
specified Git repository.
"""
def update_repository_link(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "UpdateRepositoryLink", input, options)
end

@doc """
Allows you to update the status of a sync blocker, resolving the blocker and
allowing syncing to continue.
"""
def update_sync_blocker(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "UpdateSyncBlocker", input, options)
end

@doc """
Updates the sync configuration for your connection and a specified external Git
repository.
"""
def update_sync_configuration(%Client{} = client, input, options \\ []) do
meta = metadata()

Request.request_post(client, meta, "UpdateSyncConfiguration", input, options)
end
end
32 changes: 27 additions & 5 deletions lib/aws/generated/dlm.ex
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,24 @@ defmodule AWS.DLM do
end

@doc """
Creates a policy to manage the lifecycle of the specified Amazon Web Services
resources.
Creates an Amazon Data Lifecycle Manager lifecycle policy.
You can create up to 100 lifecycle policies.
Amazon Data Lifecycle Manager supports the following policy types:
* Custom EBS snapshot policy
* Custom EBS-backed AMI policy
* Cross-account copy event policy
* Default policy for EBS snapshots
* Default policy for EBS-backed AMIs
For more information, see [ Default policies vs custom policies](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/policy-differences.html).
If you create a default policy, you can specify the request parameters either in
the request body, or in the PolicyDetails request structure, but not both.
"""
def create_lifecycle_policy(%Client{} = client, input, options \\ []) do
url_path = "/policies"
Expand Down Expand Up @@ -70,7 +84,7 @@ defmodule AWS.DLM do
For more information about deleting a policy, see [Delete lifecycle policies](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#delete).
"""
def delete_lifecycle_policy(%Client{} = client, policy_id, input, options \\ []) do
url_path = "/policies/#{AWS.Util.encode_uri(policy_id)}/"
url_path = "/policies/#{AWS.Util.encode_uri(policy_id)}"
headers = []
query_params = []

Expand All @@ -97,6 +111,7 @@ defmodule AWS.DLM do
"""
def get_lifecycle_policies(
%Client{} = client,
default_policy_type \\ nil,
policy_ids \\ nil,
resource_types \\ nil,
state \\ nil,
Expand Down Expand Up @@ -143,6 +158,13 @@ defmodule AWS.DLM do
query_params
end

query_params =
if !is_nil(default_policy_type) do
[{"defaultPolicyType", default_policy_type} | query_params]
else
query_params
end

meta = metadata()

Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, nil)
Expand All @@ -152,7 +174,7 @@ defmodule AWS.DLM do
Gets detailed information about the specified lifecycle policy.
"""
def get_lifecycle_policy(%Client{} = client, policy_id, options \\ []) do
url_path = "/policies/#{AWS.Util.encode_uri(policy_id)}/"
url_path = "/policies/#{AWS.Util.encode_uri(policy_id)}"
headers = []
query_params = []

Expand Down
Loading

0 comments on commit ff0dc20

Please sign in to comment.