Skip to content

Commit

Permalink
Update services based on v1.46.1 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 21, 2023
1 parent f737069 commit 66f567b
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 53 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.46.0
v1.46.1
34 changes: 34 additions & 0 deletions lib/aws/generated/application_discovery.ex
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ defmodule AWS.ApplicationDiscovery do
Request.request_post(client, meta, "AssociateConfigurationItemsToApplication", input, options)
end

@doc """
Deletes one or more agents or collectors as specified by ID.
Deleting an agent or collector does not delete the previously discovered data.
To delete the data collected, use `StartBatchDeleteConfigurationTask`.
"""
def batch_delete_agents(%Client{} = client, input, options \\ []) do
meta = metadata()

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

@doc """
Deletes one or more import tasks, each identified by their import ID.
Expand Down Expand Up @@ -188,6 +200,16 @@ defmodule AWS.ApplicationDiscovery do
Request.request_post(client, meta, "DescribeAgents", input, options)
end

@doc """
Takes a unique deletion task identifier as input and returns metadata about a
configuration deletion task.
"""
def describe_batch_delete_configuration_task(%Client{} = client, input, options \\ []) do
meta = metadata()

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

@doc """
Retrieves attributes for a list of configuration item IDs.
Expand Down Expand Up @@ -350,6 +372,18 @@ defmodule AWS.ApplicationDiscovery do
Request.request_post(client, meta, "ListServerNeighbors", input, options)
end

@doc """
Takes a list of configurationId as input and starts an asynchronous deletion
task to remove the configurationItems.
Returns a unique deletion task identifier.
"""
def start_batch_delete_configuration_task(%Client{} = client, input, options \\ []) do
meta = metadata()

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

@doc """
Start the continuous flow of agent's discovered data into Amazon Athena.
"""
Expand Down
91 changes: 85 additions & 6 deletions lib/aws/generated/connect.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule AWS.Connect do
There are limits to the number of Amazon Connect resources that you can create.
There are also limits to the number of requests that you can make per second.
For more information, see [Amazon Connect Service Quotas](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html)
For more information, seeP98941055 [Amazon Connect Service Quotas](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html)
in the *Amazon Connect Administrator Guide*.
You can connect programmatically to an Amazon Web Services service by using an
Expand Down Expand Up @@ -636,7 +636,7 @@ defmodule AWS.Connect do
Creates a traffic distribution group given an Amazon Connect instance that has
been replicated.
You can change the `SignInConfig` distribution only for a default
The `SignInConfig` distribution is available only on a default
`TrafficDistributionGroup` (see the `IsDefault` parameter in the
[TrafficDistributionGroup](https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html) data type). If you call `UpdateTrafficDistribution` with a modified
`SignInConfig` and a non-default `TrafficDistributionGroup`, an
Expand Down Expand Up @@ -681,8 +681,14 @@ defmodule AWS.Connect do
@doc """
Creates a user account for the specified Amazon Connect instance.
Certain
[UserIdentityInfo](https://docs.aws.amazon.com/connect/latest/APIReference/API_UserIdentityInfo.html) parameters are required in some situations. For example, `Email` is required if
you are using SAML for identity management. `FirstName` and `LastName` are
required if you are using Amazon Connect or SAML for identity management.
For information about how to create user accounts using the Amazon Connect
console, see [Add Users](https://docs.aws.amazon.com/connect/latest/adminguide/user-management.html)
console, see [Add
Users](https://docs.aws.amazon.com/connect/latest/adminguide/user-management.html)
in the *Amazon Connect Administrator Guide*.
"""
def create_user(%Client{} = client, instance_id, input, options \\ []) do
Expand Down Expand Up @@ -2299,7 +2305,14 @@ defmodule AWS.Connect do
end

@doc """
Retrieves a token for federation.
Supports SAML sign-in for Amazon Connect.
Retrieves a token for federation. The token is for the Amazon Connect user which
corresponds to the IAM credentials that were used to invoke this action.
For more information about how SAML sign-in works in Amazon Connect, see
[Configure SAML with IAM for Amazon Connect in the *Amazon Connect Administrator Guide*.](https://docs.aws.amazon.com/connect/latest/adminguide/configure-saml.html
)
This API doesn't support root users. If you try to invoke GetFederationToken
with root credentials, an error message similar to the following one appears:
Expand All @@ -2322,6 +2335,15 @@ defmodule AWS.Connect do
For a description of each historical metric, see [Historical Metrics Definitions](https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html)
in the *Amazon Connect Administrator Guide*.
We recommend using the
[GetMetricDataV2](https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricDataV2.html)
API. It provides more flexibility, features, and the ability to query longer
time ranges than `GetMetricData`. Use it to retrieve historical agent and
contact metrics for the last 3 months, at varying intervals. You can also use it
to build custom dashboards to measure historical queue and agent performance.
For example, you can track the number of incoming contacts for the last 7 days,
with data split by day, to see how contact volume changed per day of the week.
"""
def get_metric_data(%Client{} = client, instance_id, input, options \\ []) do
url_path = "/metrics/historical/#{AWS.Util.encode_uri(instance_id)}"
Expand Down Expand Up @@ -4498,7 +4520,47 @@ defmodule AWS.Connect do
end

@doc """
Initiates a flow to start a new task.
Initiates a flow to start a new task contact.
For more information about task contacts, see [Concepts: Tasks in Amazon Connect](https://docs.aws.amazon.com/connect/latest/adminguide/tasks.html) in
the *Amazon Connect Administrator Guide*.
When using `PreviousContactId` and `RelatedContactId` input parameters, note the
following:
* `PreviousContactId`
* Any updates to user-defined task contact attributes on
any contact linked through the same `PreviousContactId` will affect every
contact in the chain.
* There can be a maximum of 12 linked task contacts in a
chain. That is, 12 task contacts can be created that share the same
`PreviousContactId`.
* `RelatedContactId`
* Copies contact attributes from the related task
contact to the new contact.
* Any update on attributes in a new task contact does
not update attributes on previous contact.
* There’s no limit on the number of task contacts that
can be created that use the same `RelatedContactId`.
In addition, when calling StartTaskContact include only one of these parameters:
`ContactFlowID`, `QuickConnectID`, or `TaskTemplateID`. Only one parameter is
required as long as the task template has a flow configured to run it. If more
than one parameter is specified, or only the `TaskTemplateID` is specified but
it does not have a flow configured, the request returns an error because Amazon
Connect cannot identify the unique flow to run when the task is created.
A `ServiceQuotaExceededException` occurs when the number of open tasks exceeds
the active tasks quota or there are already 12 tasks referencing the same
`PreviousContactId`. For more information about service quotas for task
contacts, see [Amazon Connect service quotas](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html)
in the *Amazon Connect Administrator Guide*.
"""
def start_task_contact(%Client{} = client, input, options \\ []) do
url_path = "/contact/task"
Expand Down Expand Up @@ -5281,6 +5343,23 @@ defmodule AWS.Connect do
Request.request_rest(client, meta, :put, url_path, query_params, headers, input, options, nil)
end

@doc """
Updates a phone number’s metadata.
To verify the status of a previous UpdatePhoneNumberMetadata operation, call the
[DescribePhoneNumber](https://docs.aws.amazon.com/connect/latest/APIReference/API_DescribePhoneNumber.html)
API.
"""
def update_phone_number_metadata(%Client{} = client, phone_number_id, input, options \\ []) do
url_path = "/phone-number/#{AWS.Util.encode_uri(phone_number_id)}/metadata"
headers = []
query_params = []

meta = metadata()

Request.request_rest(client, meta, :put, url_path, query_params, headers, input, options, nil)
end

@doc """
Updates a prompt.
"""
Expand Down Expand Up @@ -5783,7 +5862,7 @@ defmodule AWS.Connect do
@doc """
Updates the traffic distribution for a given traffic distribution group.
You can change the `SignInConfig` distribution only for a default
The `SignInConfig` distribution is available only on a default
`TrafficDistributionGroup` (see the `IsDefault` parameter in the
[TrafficDistributionGroup](https://docs.aws.amazon.com/connect/latest/APIReference/API_TrafficDistributionGroup.html) data type). If you call `UpdateTrafficDistribution` with a modified
`SignInConfig` and a non-default `TrafficDistributionGroup`, an
Expand Down
Loading

0 comments on commit 66f567b

Please sign in to comment.