Skip to content

Commit

Permalink
Merge pull request #147 from aws-beam/update-aws-erlang-generated-code
Browse files Browse the repository at this point in the history
Update generated code to include improved docs
  • Loading branch information
onno-vos-dev authored Feb 28, 2024
2 parents 224e7de + a2bdddf commit 642ce2b
Show file tree
Hide file tree
Showing 301 changed files with 20,539 additions and 10,554 deletions.
27 changes: 19 additions & 8 deletions src/aws_accessanalyzer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
%%
%% This guide describes the IAM Access Analyzer operations that you can call
%% programmatically. For general information about IAM Access Analyzer, see
%% Identity and Access Management Access Analyzer in the IAM User Guide.
%% Identity and Access Management Access Analyzer:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/what-is-access-analyzer.html
%% in the IAM User Guide.
-module(aws_accessanalyzer).

-export([apply_archive_rule/2,
Expand Down Expand Up @@ -192,9 +194,10 @@ check_access_not_granted(Client, Input0, Options0) ->
%%
%% You can find examples for reference policies and learn how to set up and
%% run a custom policy check for new access in the IAM Access Analyzer custom
%% policy checks samples repository on GitHub. The reference policies in this
%% repository are meant to be passed to the `existingPolicyDocument'
%% request parameter.
%% policy checks samples:
%% https://github.com/aws-samples/iam-access-analyzer-custom-policy-check-samples
%% repository on GitHub. The reference policies in this repository are meant
%% to be passed to the `existingPolicyDocument' request parameter.
check_no_new_access(Client, Input) ->
check_no_new_access(Client, Input, []).
check_no_new_access(Client, Input0, Options0) ->
Expand Down Expand Up @@ -270,7 +273,9 @@ create_analyzer(Client, Input0, Options0) ->
%% you define when you create the rule.
%%
%% To learn about filter keys that you can use to create an archive rule, see
%% IAM Access Analyzer filter keys in the IAM User Guide.
%% IAM Access Analyzer filter keys:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html
%% in the IAM User Guide.
create_archive_rule(Client, AnalyzerName, Input) ->
create_archive_rule(Client, AnalyzerName, Input, []).
create_archive_rule(Client, AnalyzerName, Input0, Options0) ->
Expand Down Expand Up @@ -428,7 +433,9 @@ get_analyzer(Client, AnalyzerName, QueryMap, HeadersMap, Options0)
%% @doc Retrieves information about an archive rule.
%%
%% To learn about filter keys that you can use to create an archive rule, see
%% IAM Access Analyzer filter keys in the IAM User Guide.
%% IAM Access Analyzer filter keys:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html
%% in the IAM User Guide.
get_archive_rule(Client, AnalyzerName, RuleName)
when is_map(Client) ->
get_archive_rule(Client, AnalyzerName, RuleName, #{}, #{}).
Expand Down Expand Up @@ -673,7 +680,9 @@ list_archive_rules(Client, AnalyzerName, QueryMap, HeadersMap, Options0)
%% @doc Retrieves a list of findings generated by the specified analyzer.
%%
%% To learn about filter keys that you can use to retrieve a list of
%% findings, see IAM Access Analyzer filter keys in the IAM User Guide.
%% findings, see IAM Access Analyzer filter keys:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html
%% in the IAM User Guide.
list_findings(Client, Input) ->
list_findings(Client, Input, []).
list_findings(Client, Input0, Options0) ->
Expand All @@ -699,7 +708,9 @@ list_findings(Client, Input0, Options0) ->
%% @doc Retrieves a list of findings generated by the specified analyzer.
%%
%% To learn about filter keys that you can use to retrieve a list of
%% findings, see IAM Access Analyzer filter keys in the IAM User Guide.
%% findings, see IAM Access Analyzer filter keys:
%% https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-reference-filter-keys.html
%% in the IAM User Guide.
list_findings_v2(Client, Input) ->
list_findings_v2(Client, Input, []).
list_findings_v2(Client, Input0, Options0) ->
Expand Down
24 changes: 16 additions & 8 deletions src/aws_account.erl
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
%% account.
%%
%% For complete details about how to use the alternate contact operations,
%% see Access or updating the alternate contacts.
%% see Access or updating the alternate contacts:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
%%
%% Before you can update the alternate contact information for an Amazon Web
%% Services account that is managed by Organizations, you must first enable
%% integration between Amazon Web Services Account Management and
%% Organizations. For more information, see Enabling trusted access for
%% Amazon Web Services Account Management.
%% Amazon Web Services Account Management:
%% https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html.
delete_alternate_contact(Client, Input) ->
delete_alternate_contact(Client, Input, []).
delete_alternate_contact(Client, Input0, Options0) ->
Expand Down Expand Up @@ -112,13 +114,15 @@ enable_region(Client, Input0, Options0) ->
%% Services account.
%%
%% For complete details about how to use the alternate contact operations,
%% see Access or updating the alternate contacts.
%% see Access or updating the alternate contacts:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
%%
%% Before you can update the alternate contact information for an Amazon Web
%% Services account that is managed by Organizations, you must first enable
%% integration between Amazon Web Services Account Management and
%% Organizations. For more information, see Enabling trusted access for
%% Amazon Web Services Account Management.
%% Amazon Web Services Account Management:
%% https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html.
get_alternate_contact(Client, Input) ->
get_alternate_contact(Client, Input, []).
get_alternate_contact(Client, Input0, Options0) ->
Expand All @@ -145,7 +149,8 @@ get_alternate_contact(Client, Input0, Options0) ->
%% account.
%%
%% For complete details about how to use the primary contact operations, see
%% Update the primary and alternate contact information.
%% Update the primary and alternate contact information:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
get_contact_information(Client, Input) ->
get_contact_information(Client, Input, []).
get_contact_information(Client, Input0, Options0) ->
Expand Down Expand Up @@ -222,13 +227,15 @@ list_regions(Client, Input0, Options0) ->
%% Services account.
%%
%% For complete details about how to use the alternate contact operations,
%% see Access or updating the alternate contacts.
%% see Access or updating the alternate contacts:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
%%
%% Before you can update the alternate contact information for an Amazon Web
%% Services account that is managed by Organizations, you must first enable
%% integration between Amazon Web Services Account Management and
%% Organizations. For more information, see Enabling trusted access for
%% Amazon Web Services Account Management.
%% Amazon Web Services Account Management:
%% https://docs.aws.amazon.com/accounts/latest/reference/using-orgs-trusted-access.html.
put_alternate_contact(Client, Input) ->
put_alternate_contact(Client, Input, []).
put_alternate_contact(Client, Input0, Options0) ->
Expand All @@ -255,7 +262,8 @@ put_alternate_contact(Client, Input0, Options0) ->
%% account.
%%
%% For complete details about how to use the primary contact operations, see
%% Update the primary and alternate contact information.
%% Update the primary and alternate contact information:
%% https://docs.aws.amazon.com/accounts/latest/reference/manage-acct-update-contact.html.
put_contact_information(Client, Input) ->
put_contact_information(Client, Input, []).
put_contact_information(Client, Input0, Options0) ->
Expand Down
62 changes: 39 additions & 23 deletions src/aws_acm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%% your Amazon Web Services-based websites and applications.
%%
%% For more information about using ACM, see the Certificate Manager User
%% Guide.
%% Guide: https://docs.aws.amazon.com/acm/latest/userguide/.
-module(aws_acm).

-export([add_tags_to_certificate/2,
Expand Down Expand Up @@ -62,7 +62,7 @@
%% resources. For example, you can add the same tag to an ACM certificate and
%% an Elastic Load Balancing load balancer to indicate that they are both
%% used by the same website. For more information, see Tagging ACM
%% certificates.
%% certificates: https://docs.aws.amazon.com/acm/latest/userguide/tags.html.
%%
%% To remove one or more tags, use the `RemoveTagsFromCertificate'
%% action. To view all of the tags that have been applied to the certificate,
Expand Down Expand Up @@ -113,7 +113,8 @@ describe_certificate(Client, Input, Options)
%% for the private key when exporting it.
%%
%% For information about exporting and formatting a certificate using the ACM
%% console or CLI, see Export a Private Certificate.
%% console or CLI, see Export a Private Certificate:
%% https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html.
export_certificate(Client, Input)
when is_map(Client), is_map(Input) ->
export_certificate(Client, Input, []).
Expand All @@ -134,7 +135,8 @@ get_account_configuration(Client, Input, Options)
%%
%% The chain consists of the certificate of the issuing CA and the
%% intermediate certificates of any other subordinate CAs. All of the
%% certificates are base64 encoded. You can use OpenSSL to decode the
%% certificates are base64 encoded. You can use OpenSSL:
%% https://wiki.openssl.org/index.php/Command_Line_Utilities to decode the
%% certificates and inspect individual fields.
get_certificate(Client, Input)
when is_map(Client), is_map(Input) ->
Expand All @@ -146,14 +148,19 @@ get_certificate(Client, Input, Options)
%% @doc Imports a certificate into Certificate Manager (ACM) to use with
%% services that are integrated with ACM.
%%
%% Note that integrated services allow only certificate types and keys they
%% support to be associated with their resources. Further, their support
%% differs depending on whether the certificate is imported into IAM or into
%% ACM. For more information, see the documentation for each service. For
%% more information about importing certificates into ACM, see Importing
%% Certificates in the Certificate Manager User Guide.
%% Note that integrated services:
%% https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html allow
%% only certificate types and keys they support to be associated with their
%% resources. Further, their support differs depending on whether the
%% certificate is imported into IAM or into ACM. For more information, see
%% the documentation for each service. For more information about importing
%% certificates into ACM, see Importing Certificates:
%% https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html
%% in the Certificate Manager User Guide.
%%
%% ACM does not provide managed renewal for certificates that you import.
%% ACM does not provide managed renewal:
%% https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html for
%% certificates that you import.
%%
%% Note the following guidelines when importing third party certificates:
%%
Expand Down Expand Up @@ -201,8 +208,9 @@ get_certificate(Client, Input, Options)
%% match the algorithm of the signing CA. For example, if the signing CA key
%% type is RSA, then the certificate key type must also be RSA.
%%
%% </li> </ul> This operation returns the Amazon Resource Name (ARN) of the
%% imported certificate.
%% </li> </ul> This operation returns the Amazon Resource Name (ARN):
%% https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html
%% of the imported certificate.
import_certificate(Client, Input)
when is_map(Client), is_map(Input) ->
import_certificate(Client, Input, []).
Expand Down Expand Up @@ -272,7 +280,10 @@ remove_tags_from_certificate(Client, Input, Options)
%% At this time, only exported private certificates can be renewed with this
%% operation. In order to renew your Amazon Web Services Private CA
%% certificates with ACM, you must first grant the ACM service principal
%% permission to do so. For more information, see Testing Managed Renewal in
%% permission to do so:
%% https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html.
%% For more information, see Testing Managed Renewal:
%% https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html in
%% the ACM User Guide.
renew_certificate(Client, Input)
when is_map(Client), is_map(Input) ->
Expand All @@ -291,13 +302,17 @@ renew_certificate(Client, Input, Options)
%% If you are requesting a private certificate, domain validation is not
%% required. If you are requesting a public certificate, each domain name
%% that you specify must be validated to verify that you own or control the
%% domain. You can use DNS validation or email validation. We recommend that
%% you use DNS validation. ACM issues public certificates after receiving
%% approval from the domain owner.
%%
%% ACM behavior differs from the RFC 6125 specification of the certificate
%% validation process. ACM first checks for a Subject Alternative Name, and,
%% if it finds one, ignores the common name (CN).
%% domain. You can use DNS validation:
%% https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html
%% or email validation:
%% https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html.
%% We recommend that you use DNS validation. ACM issues public certificates
%% after receiving approval from the domain owner.
%%
%% ACM behavior differs from the RFC 6125:
%% https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2 specification
%% of the certificate validation process. ACM first checks for a Subject
%% Alternative Name, and, if it finds one, ignores the common name (CN).
%%
%% After successful completion of the `RequestCertificate' action, there
%% is a delay of several seconds before you can retrieve information about
Expand All @@ -321,7 +336,7 @@ request_certificate(Client, Input, Options)
%% your original request or since your last attempt to resend validation
%% mail, you must request a new certificate. For more information about
%% setting up your contact email addresses, see Configure Email for your
%% Domain.
%% Domain: https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html.
resend_validation_email(Client, Input)
when is_map(Client), is_map(Input) ->
resend_validation_email(Client, Input, []).
Expand All @@ -333,7 +348,8 @@ resend_validation_email(Client, Input, Options)
%%
%% Currently, you can use this function to specify whether to opt in to or
%% out of recording your certificate in a certificate transparency log. For
%% more information, see Opting Out of Certificate Transparency Logging.
%% more information, see Opting Out of Certificate Transparency Logging:
%% https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency.
update_certificate_options(Client, Input)
when is_map(Client), is_map(Input) ->
update_certificate_options(Client, Input, []).
Expand Down
Loading

0 comments on commit 642ce2b

Please sign in to comment.