Skip to content

Commit

Permalink
Update services based on release-2024-10-07 of AWS Go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
web-flow committed Oct 8, 2024
1 parent e5abe0d commit 81960fd
Show file tree
Hide file tree
Showing 4 changed files with 1,604 additions and 59 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-04
release-2024-10-07
76 changes: 74 additions & 2 deletions src/aws_deadline.erl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@
list_job_members/4,
list_job_members/6,
list_job_members/7,
list_job_parameter_definitions/4,
list_job_parameter_definitions/6,
list_job_parameter_definitions/7,
list_jobs/3,
list_jobs/5,
list_jobs/6,
Expand Down Expand Up @@ -975,10 +978,11 @@
%% <<"maxRetriesPerTask">> => integer(),
%% <<"parameters">> => map(),
%% <<"priority">> := integer(),
%% <<"sourceJobId">> => string(),
%% <<"storageProfileId">> => string(),
%% <<"targetTaskRunStatus">> => list(any()),
%% <<"template">> := string(),
%% <<"templateType">> := list(any())
%% <<"template">> => string(),
%% <<"templateType">> => list(any())
%% }
-type create_job_request() :: #{binary() => any()}.

Expand Down Expand Up @@ -1320,6 +1324,7 @@
%% <<"maxRetriesPerTask">> => integer(),
%% <<"name">> => string(),
%% <<"priority">> => integer(),
%% <<"sourceJobId">> => string(),
%% <<"startedAt">> => non_neg_integer(),
%% <<"targetTaskRunStatus">> => list(any()),
%% <<"taskRunStatus">> => list(any()),
Expand All @@ -1338,6 +1343,14 @@
-type update_farm_request() :: #{binary() => any()}.


%% Example:
%% list_job_parameter_definitions_response() :: #{
%% <<"jobParameterDefinitions">> => list(any()()),
%% <<"nextToken">> => string()
%% }
-type list_job_parameter_definitions_response() :: #{binary() => any()}.


%% Example:
%% search_jobs_request() :: #{
%% <<"filterExpressions">> => search_grouped_filter_expressions(),
Expand Down Expand Up @@ -2305,6 +2318,7 @@
%% <<"name">> => string(),
%% <<"parameters">> => map(),
%% <<"priority">> => integer(),
%% <<"sourceJobId">> => string(),
%% <<"startedAt">> => non_neg_integer(),
%% <<"storageProfileId">> => string(),
%% <<"targetTaskRunStatus">> => list(any()),
Expand Down Expand Up @@ -2590,6 +2604,7 @@
%% <<"name">> => string(),
%% <<"priority">> => integer(),
%% <<"queueId">> => string(),
%% <<"sourceJobId">> => string(),
%% <<"startedAt">> => non_neg_integer(),
%% <<"targetTaskRunStatus">> => list(any()),
%% <<"taskRunStatus">> => list(any()),
Expand Down Expand Up @@ -2796,6 +2811,14 @@
-type worker_session_summary() :: #{binary() => any()}.


%% Example:
%% list_job_parameter_definitions_request() :: #{
%% <<"maxResults">> => integer(),
%% <<"nextToken">> => string()
%% }
-type list_job_parameter_definitions_request() :: #{binary() => any()}.


%% Example:
%% step_consumer() :: #{
%% <<"status">> => list(any()),
Expand Down Expand Up @@ -3459,6 +3482,13 @@
access_denied_exception() |
resource_not_found_exception().

-type list_job_parameter_definitions_errors() ::
throttling_exception() |
internal_server_error_exception() |
validation_exception() |
access_denied_exception() |
resource_not_found_exception().

-type list_jobs_errors() ::
throttling_exception() |
internal_server_error_exception() |
Expand Down Expand Up @@ -6051,6 +6081,48 @@ list_job_members(Client, FarmId, JobId, QueueId, QueryMap, HeadersMap, Options0)

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Lists parameter definitions of a job.
-spec list_job_parameter_definitions(aws_client:aws_client(), binary() | list(), binary() | list(), binary() | list()) ->
{ok, list_job_parameter_definitions_response(), tuple()} |
{error, any()} |
{error, list_job_parameter_definitions_errors(), tuple()}.
list_job_parameter_definitions(Client, FarmId, JobId, QueueId)
when is_map(Client) ->
list_job_parameter_definitions(Client, FarmId, JobId, QueueId, #{}, #{}).

-spec list_job_parameter_definitions(aws_client:aws_client(), binary() | list(), binary() | list(), binary() | list(), map(), map()) ->
{ok, list_job_parameter_definitions_response(), tuple()} |
{error, any()} |
{error, list_job_parameter_definitions_errors(), tuple()}.
list_job_parameter_definitions(Client, FarmId, JobId, QueueId, QueryMap, HeadersMap)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap) ->
list_job_parameter_definitions(Client, FarmId, JobId, QueueId, QueryMap, HeadersMap, []).

-spec list_job_parameter_definitions(aws_client:aws_client(), binary() | list(), binary() | list(), binary() | list(), map(), map(), proplists:proplist()) ->
{ok, list_job_parameter_definitions_response(), tuple()} |
{error, any()} |
{error, list_job_parameter_definitions_errors(), tuple()}.
list_job_parameter_definitions(Client, FarmId, JobId, QueueId, QueryMap, HeadersMap, Options0)
when is_map(Client), is_map(QueryMap), is_map(HeadersMap), is_list(Options0) ->
Path = ["/2023-10-12/farms/", aws_util:encode_uri(FarmId), "/queues/", aws_util:encode_uri(QueueId), "/jobs/", aws_util:encode_uri(JobId), "/parameter-definitions"],
SuccessStatusCode = 200,
{SendBodyAsBinary, Options1} = proplists_take(send_body_as_binary, Options0, false),
{ReceiveBodyAsBinary, Options2} = proplists_take(receive_body_as_binary, Options1, false),
Options = [{send_body_as_binary, SendBodyAsBinary},
{receive_body_as_binary, ReceiveBodyAsBinary}
| Options2],

Headers = [],

Query0_ =
[
{<<"maxResults">>, maps:get(<<"maxResults">>, QueryMap, undefined)},
{<<"nextToken">>, maps:get(<<"nextToken">>, QueryMap, undefined)}
],
Query_ = [H || {_, V} = H <- Query0_, V =/= undefined],

request(Client, get, Path, Query_, Headers, undefined, Options, SuccessStatusCode).

%% @doc Lists jobs.
-spec list_jobs(aws_client:aws_client(), binary() | list(), binary() | list()) ->
{ok, list_jobs_response(), tuple()} |
Expand Down
99 changes: 60 additions & 39 deletions src/aws_marketplace_reporting.erl
Original file line number Diff line number Diff line change
@@ -1,67 +1,83 @@
%% WARNING: DO NOT EDIT, AUTO-GENERATED CODE!
%% See https://github.com/aws-beam/aws-codegen for more details.

%% @doc The AWS Marketplace `GetBuyerDashboard' API enables you to get a
%% procurement insights dashboard
%% programmatically.
%% @doc The Amazon Web Services Marketplace `GetBuyerDashboard' API
%% enables you to get a procurement insights
%% dashboard programmatically.
%%
%% The API gets the agreement and cost analysis dashboards with data for all
%% of the Amazon Web Services accounts in your Amazon Web Services
%% organization.
%% The API gets the agreement and cost analysis dashboards with
%% data for all of the Amazon Web Services accounts in your Amazon Web
%% Services Organization.
%%
%% To use the API, you must complete the following prerequisites:
%% To use the Amazon Web Services Marketplace Reporting API, you must
%% complete the following prerequisites:
%%
%% Enable all features for your organization. For more information, see
%% Enabling all features for an organization with Amazon Web Services
%% Organizations:
%% Enabling all features for an organization with Organizations:
%% https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org_support-all-features.html,
%% in the Amazon Web Services Organizations User Guide.
%% in the
%% Organizations User Guide.
%%
%% Call the service as the Amazon Web Services Organizations management
%% account or an account registered as a delegated administrator for the
%% procurement insights service.
%% Users without management or delegated administrator accounts can use the
%% dashboard, but they only see data for their accounts.
%% Call the service as the Organizations management account or an account
%% registered
%% as a delegated administrator for the procurement insights service.
%%
%% For more information about management accounts, see
%% Tutorial: Creating and configuring an organization:
%% For more information about management accounts, see Tutorial:
%% Creating and configuring an organization:
%% https://docs.aws.amazon.com/organizations/latest/userguide/orgs_tutorials_basic.html
%% and Managing the management account with Amazon Web Services
%% Organizations:
%% and Managing the management account with Organizations:
%% https://docs.aws.amazon.com/organizations/latest/userguide/orgs-manage_accounts_management.html,
%% both in the Amazon Web Services Organizations User Guide.
%% both in the
%% Organizations User Guide.
%%
%% For more information about delegated administrators, see Using delegated
%% administrators:
%% For more information about delegated administrators, see Using
%% delegated administrators:
%% https://docs.aws.amazon.com/marketplace/latest/buyerguide/management-delegates.html,
%% in the AWS Marketplace Buyer Guide.
%% in the Amazon Web Services Marketplace Buyer
%% Guide.
%%
%% Create an IAM policy that enables the
%% `aws-marketplace:GetBuyerDashboard' and
%% `organizations:DescribeOrganization' permissions. In addition,
%% the management account requires the
%% `organizations:EnableAWSServiceAccess' and
%% `iam:CreateServiceLinkedRole' permissions to create
%% For more information about creating the policy, see
%% Policies and permissions in Amazon Web Services Identity and Access
%% Management:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html,
%% in the IAM User Guide.
%% `iam:CreateServiceLinkedRole' permissions to create. For more
%% information about creating the policy, see Policies and permissions in
%% Identity and Access Management:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html, in
%% the IAM User Guide.
%%
%% Access can be shared only by registering the desired linked account as a
%% delegated administrator. That requires
%% `organizations:RegisterDelegatedAdministrator'
%% `organizations:ListDelegatedAdministrators' and
%% `organizations:DeregisterDelegatedAdministrator'
%% permissions.
%%
%% Use the Amazon Web Services Marketplace console to create the
%% `AWSServiceRoleForProcurementInsightsPolicy' service-linked role.
%% The role enables AWS Marketplace procurement visibility integration. The
%% management account requires an IAM policy with the
%% The role enables Amazon Web Services Marketplace procurement visibility
%% integration. The management
%% account requires an IAM policy with the
%% `organizations:EnableAWSServiceAccess' and
%% `iam:CreateServiceLinkedRole' permissions
%% to create the service-linked role and enable the service access. For more
%% information, see
%% `iam:CreateServiceLinkedRole' permissions to create the
%% service-linked role and enable the service access. For more information,
%% see
%% Granting access to
%% Amazon Web Services Organizations:
%% https://docs.aws.amazon.com/marketplace/latest/buyerguide/orgs-access-slr.html,
%% and
%% Service-linked role to share procurement data:
%% https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-service-linked-role-procurement.html,
%% Organizations:
%% https://docs.aws.amazon.com/marketplace/latest/buyerguide/orgs-access-slr.html
%% and Service-linked role to share procurement data:
%% https://docs.aws.amazon.com/marketplace/latest/buyerguide/buyer-service-linked-role-procurement.html
%% in the
%% Amazon Web Services Marketplace Buyer Guide.
%%
%% After creating the service-linked role, you must enable trusted access
%% that
%% grants Amazon Web Services Marketplace permission to access data from your
%% Organizations. For more information,
%% see Granting access to
%% Organizations:
%% https://docs.aws.amazon.com/marketplace/latest/buyerguide/orgs-access-slr.html
%% in the Amazon Web Services Marketplace Buyer Guide.
-module(aws_marketplace_reporting).

Expand Down Expand Up @@ -129,6 +145,11 @@
%% @doc Generates an embedding URL for an Amazon QuickSight dashboard for an
%% anonymous user.
%%
%% This API is available only to Amazon Web Services Organization management
%% accounts or
%% delegated administrators registered for the procurement insights
%% (`procurement-insights.marketplace.amazonaws.com') feature.
%%
%% The following rules apply to a generated URL:
%%
%% It contains a temporary bearer token, valid for 5 minutes after it is
Expand Down
Loading

0 comments on commit 81960fd

Please sign in to comment.