Skip to content

Commit

Permalink
Update services based on release-2024-06-07 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Jun 8, 2024
1 parent 367ad0c commit 73a7824
Show file tree
Hide file tree
Showing 6 changed files with 331 additions and 43 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-06-06
release-2024-06-07
66 changes: 57 additions & 9 deletions lib/aws/generated/audit_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ defmodule AWS.AuditManager do
"lastUpdatedAt" => non_neg_integer(),
"lastUpdatedBy" => String.t(),
"name" => String.t(),
"state" => list(any()),
"tags" => map(),
"testingInformation" => String.t(),
"type" => list(any())
Expand Down Expand Up @@ -1260,6 +1261,7 @@ defmodule AWS.AuditManager do
## Example:
list_controls_request() :: %{
optional("controlCatalogId") => String.t(),
optional("maxResults") => integer(),
optional("nextToken") => String.t(),
required("controlType") => list(any())
Expand Down Expand Up @@ -2407,7 +2409,8 @@ defmodule AWS.AuditManager do
| resource_not_found_exception()

@type create_assessment_errors() ::
validation_exception()
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()
| service_quota_exceeded_exception()
Expand Down Expand Up @@ -2645,7 +2648,8 @@ defmodule AWS.AuditManager do
validation_exception() | internal_server_exception() | resource_not_found_exception()

@type update_assessment_errors() ::
validation_exception()
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()
| resource_not_found_exception()
Expand Down Expand Up @@ -3910,13 +3914,22 @@ defmodule AWS.AuditManager do
end

@doc """
Gets a list of all of the Amazon Web Services that you can choose to include in
your assessment.
Gets a list of the Amazon Web Services from which Audit Manager can collect
evidence.
Audit Manager defines which Amazon Web Services are in scope for an
assessment. Audit Manager infers this scope by examining the assessment’s
controls and
their data sources, and then mapping this information to one or more of the
corresponding
Amazon Web Services that are in this list.
When you [create an assessment](https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_CreateAssessment.html),
specify which of these services you want to include to
narrow the assessment's
[scope](https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_Scope.html).
For information about why it's no longer possible to specify services in scope
manually, see
[I can't edit the services in scope for my assessment](https://docs.aws.amazon.com/audit-manager/latest/userguide/evidence-collection-issues.html#unable-to-edit-services)
in
the *Troubleshooting* section of the Audit Manager user
guide.
"""
@spec get_services_in_scope(map(), list()) ::
{:ok, get_services_in_scope_response(), any()}
Expand Down Expand Up @@ -4198,6 +4211,16 @@ defmodule AWS.AuditManager do
Lists the latest analytics data for control domains across all of your active
assessments.
Audit Manager supports the control domains that are provided by Amazon Web
Services
Control Catalog. For information about how to find a list of available control
domains, see
[
`ListDomains`
](https://docs.aws.amazon.com/controlcatalog/latest/APIReference/API_ListDomains.html)
in the Amazon Web Services Control
Catalog API Reference.
A control domain is listed only if at least one of the controls within that
domain
collected evidence on the `lastUpdated` date of
Expand Down Expand Up @@ -4240,6 +4263,16 @@ defmodule AWS.AuditManager do
@doc """
Lists analytics data for control domains within a specified active assessment.
Audit Manager supports the control domains that are provided by Amazon Web
Services
Control Catalog. For information about how to find a list of available control
domains, see
[
`ListDomains`
](https://docs.aws.amazon.com/controlcatalog/latest/APIReference/API_ListDomains.html)
in the Amazon Web Services Control
Catalog API Reference.
A control domain is listed only if at least one of the controls within that
domain
collected evidence on the `lastUpdated` date of
Expand Down Expand Up @@ -4354,12 +4387,20 @@ defmodule AWS.AuditManager do
@doc """
Returns a list of controls from Audit Manager.
"""
@spec list_controls(map(), String.t(), String.t() | nil, String.t() | nil, list()) ::
@spec list_controls(
map(),
String.t() | nil,
String.t(),
String.t() | nil,
String.t() | nil,
list()
) ::
{:ok, list_controls_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, list_controls_errors()}
def list_controls(
%Client{} = client,
control_catalog_id \\ nil,
control_type,
max_results \\ nil,
next_token \\ nil,
Expand Down Expand Up @@ -4390,6 +4431,13 @@ defmodule AWS.AuditManager do
query_params
end

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

meta = metadata()

Request.request_rest(client, meta, :get, url_path, query_params, headers, nil, options, 200)
Expand Down
24 changes: 23 additions & 1 deletion lib/aws/generated/b2bi.ex
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ defmodule AWS.B2bi do
## Example:
create_partnership_request() :: %{
optional("capabilities") => list(String.t()()),
optional("clientToken") => [String.t()],
optional("phone") => String.t(),
optional("tags") => list(tag()()),
required("capabilities") => list(String.t()()),
required("email") => String.t(),
required("name") => String.t(),
required("profileId") => String.t()
Expand Down Expand Up @@ -990,22 +990,41 @@ defmodule AWS.B2bi do
| internal_server_exception()
| resource_not_found_exception()

@type list_capabilities_errors() ::
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()

@type list_partnerships_errors() ::
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()
| resource_not_found_exception()

@type list_profiles_errors() ::
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()

@type list_tags_for_resource_errors() ::
validation_exception() | internal_server_exception() | resource_not_found_exception()

@type list_transformers_errors() ::
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()

@type start_transformer_job_errors() ::
throttling_exception()
| validation_exception()
| access_denied_exception()
| internal_server_exception()
| resource_not_found_exception()
| conflict_exception()

@type tag_resource_errors() ::
throttling_exception()
Expand Down Expand Up @@ -1306,6 +1325,7 @@ defmodule AWS.B2bi do
@spec list_capabilities(map(), list_capabilities_request(), list()) ::
{:ok, list_capabilities_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, list_capabilities_errors()}
def list_capabilities(%Client{} = client, input, options \\ []) do
meta = metadata()

Expand Down Expand Up @@ -1340,6 +1360,7 @@ defmodule AWS.B2bi do
@spec list_profiles(map(), list_profiles_request(), list()) ::
{:ok, list_profiles_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, list_profiles_errors()}
def list_profiles(%Client{} = client, input, options \\ []) do
meta = metadata()

Expand Down Expand Up @@ -1372,6 +1393,7 @@ defmodule AWS.B2bi do
@spec list_transformers(map(), list_transformers_request(), list()) ::
{:ok, list_transformers_response(), any()}
| {:error, {:unexpected_response, any()}}
| {:error, list_transformers_errors()}
def list_transformers(%Client{} = client, input, options \\ []) do
meta = metadata()

Expand Down
6 changes: 6 additions & 0 deletions lib/aws/generated/code_pipeline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3173,6 +3173,12 @@ defmodule AWS.CodePipeline do

@doc """
Gets a summary of the most recent executions for a pipeline.
When applying the filter for pipeline executions that have succeeded in the
stage,
the operation returns all executions in the current pipeline version beginning
on
February 1, 2024.
"""
@spec list_pipeline_executions(map(), list_pipeline_executions_input(), list()) ::
{:ok, list_pipeline_executions_output(), any()}
Expand Down
1 change: 1 addition & 0 deletions lib/aws/generated/sage_maker.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7902,6 +7902,7 @@ defmodule AWS.SageMaker do
"ContainerStartupHealthCheckTimeoutInSeconds" => integer(),
"CoreDumpConfig" => production_variant_core_dump_config(),
"EnableSSMAccess" => boolean(),
"InferenceAmiVersion" => list(any()),
"InitialInstanceCount" => integer(),
"InitialVariantWeight" => float(),
"InstanceType" => list(any()),
Expand Down
Loading

0 comments on commit 73a7824

Please sign in to comment.