|
208 | 208 | get_identity_provider_by_identifier/3, |
209 | 209 | get_log_delivery_configuration/2, |
210 | 210 | get_log_delivery_configuration/3, |
| 211 | + get_provisioned_limit/2, |
| 212 | + get_provisioned_limit/3, |
211 | 213 | get_signing_certificate/2, |
212 | 214 | get_signing_certificate/3, |
213 | 215 | get_tokens_from_refresh_token/2, |
|
294 | 296 | update_identity_provider/3, |
295 | 297 | update_managed_login_branding/2, |
296 | 298 | update_managed_login_branding/3, |
| 299 | + update_provisioned_limit/2, |
| 300 | + update_provisioned_limit/3, |
297 | 301 | update_resource_server/2, |
298 | 302 | update_resource_server/3, |
299 | 303 | update_terms/2, |
|
594 | 598 | %% } |
595 | 599 | -type describe_identity_provider_request() :: #{binary() => any()}. |
596 | 600 |
|
| 601 | +%% Example: |
| 602 | +%% limit_definition_type() :: #{ |
| 603 | +%% <<"Attributes">> => map(), |
| 604 | +%% <<"LimitClass">> => list(any()) |
| 605 | +%% } |
| 606 | +-type limit_definition_type() :: #{binary() => any()}. |
| 607 | + |
597 | 608 | %% Example: |
598 | 609 | %% unsupported_user_state_exception() :: #{ |
599 | 610 | %% <<"message">> => string() |
|
940 | 951 | %% } |
941 | 952 | -type describe_user_pool_domain_request() :: #{binary() => any()}. |
942 | 953 |
|
| 954 | +%% Example: |
| 955 | +%% get_provisioned_limit_response() :: #{ |
| 956 | +%% <<"Limit">> => limit_type() |
| 957 | +%% } |
| 958 | +-type get_provisioned_limit_response() :: #{binary() => any()}. |
| 959 | + |
943 | 960 | %% Example: |
944 | 961 | %% compromised_credentials_actions_type() :: #{ |
945 | 962 | %% <<"EventAction">> => list(any()) |
|
1684 | 1701 | %% } |
1685 | 1702 | -type create_user_pool_client_response() :: #{binary() => any()}. |
1686 | 1703 |
|
| 1704 | +%% Example: |
| 1705 | +%% service_quota_exceeded_exception() :: #{ |
| 1706 | +%% <<"message">> => string() |
| 1707 | +%% } |
| 1708 | +-type service_quota_exceeded_exception() :: #{binary() => any()}. |
| 1709 | + |
1687 | 1710 | %% Example: |
1688 | 1711 | %% client_secret_descriptor_type() :: #{ |
1689 | 1712 | %% <<"ClientSecretCreateDate">> => non_neg_integer(), |
|
1867 | 1890 | %% } |
1868 | 1891 | -type password_policy_type() :: #{binary() => any()}. |
1869 | 1892 |
|
| 1893 | +%% Example: |
| 1894 | +%% get_provisioned_limit_request() :: #{ |
| 1895 | +%% <<"LimitDefinition">> := limit_definition_type() |
| 1896 | +%% } |
| 1897 | +-type get_provisioned_limit_request() :: #{binary() => any()}. |
| 1898 | + |
1870 | 1899 | %% Example: |
1871 | 1900 | %% admin_confirm_sign_up_request() :: #{ |
1872 | 1901 | %% <<"ClientMetadata">> => map(), |
|
1996 | 2025 | %% } |
1997 | 2026 | -type sms_mfa_settings_type() :: #{binary() => any()}. |
1998 | 2027 |
|
| 2028 | +%% Example: |
| 2029 | +%% limit_type() :: #{ |
| 2030 | +%% <<"FreeLimitValue">> => integer(), |
| 2031 | +%% <<"LimitDefinition">> => limit_definition_type(), |
| 2032 | +%% <<"ProvisionedLimitValue">> => integer() |
| 2033 | +%% } |
| 2034 | +-type limit_type() :: #{binary() => any()}. |
| 2035 | + |
1999 | 2036 | %% Example: |
2000 | 2037 | %% add_custom_attributes_request() :: #{ |
2001 | 2038 | %% <<"CustomAttributes">> := list(schema_attribute_type()), |
|
2378 | 2415 | %% } |
2379 | 2416 | -type user_pool_add_on_not_enabled_exception() :: #{binary() => any()}. |
2380 | 2417 |
|
| 2418 | +%% Example: |
| 2419 | +%% update_provisioned_limit_request() :: #{ |
| 2420 | +%% <<"LimitDefinition">> := limit_definition_type(), |
| 2421 | +%% <<"RequestedLimitValue">> := integer() |
| 2422 | +%% } |
| 2423 | +-type update_provisioned_limit_request() :: #{binary() => any()}. |
| 2424 | + |
2381 | 2425 | %% Example: |
2382 | 2426 | %% auth_event_type() :: #{ |
2383 | 2427 | %% <<"ChallengeResponses">> => list(challenge_response_type()), |
|
2885 | 2929 | %% } |
2886 | 2930 | -type mfa_option_type() :: #{binary() => any()}. |
2887 | 2931 |
|
| 2932 | +%% Example: |
| 2933 | +%% update_provisioned_limit_response() :: #{ |
| 2934 | +%% <<"Limit">> => limit_type() |
| 2935 | +%% } |
| 2936 | +-type update_provisioned_limit_response() :: #{binary() => any()}. |
| 2937 | + |
2888 | 2938 | %% Example: |
2889 | 2939 | %% code_delivery_failure_exception() :: #{ |
2890 | 2940 | %% <<"message">> => string() |
|
4147 | 4197 | resource_not_found_exception() | |
4148 | 4198 | too_many_requests_exception(). |
4149 | 4199 |
|
| 4200 | +-type get_provisioned_limit_errors() :: |
| 4201 | + internal_error_exception() | |
| 4202 | + invalid_parameter_exception() | |
| 4203 | + not_authorized_exception() | |
| 4204 | + resource_not_found_exception() | |
| 4205 | + too_many_requests_exception(). |
| 4206 | + |
4150 | 4207 | -type get_signing_certificate_errors() :: |
4151 | 4208 | internal_error_exception() | |
4152 | 4209 | invalid_parameter_exception() | |
|
4601 | 4658 | resource_not_found_exception() | |
4602 | 4659 | too_many_requests_exception(). |
4603 | 4660 |
|
| 4661 | +-type update_provisioned_limit_errors() :: |
| 4662 | + internal_error_exception() | |
| 4663 | + invalid_parameter_exception() | |
| 4664 | + not_authorized_exception() | |
| 4665 | + service_quota_exceeded_exception() | |
| 4666 | + resource_not_found_exception() | |
| 4667 | + too_many_requests_exception(). |
| 4668 | + |
4604 | 4669 | -type update_resource_server_errors() :: |
4605 | 4670 | internal_error_exception() | |
4606 | 4671 | invalid_parameter_exception() | |
@@ -7706,6 +7771,37 @@ get_log_delivery_configuration(Client, Input, Options) |
7706 | 7771 | when is_map(Client), is_map(Input), is_list(Options) -> |
7707 | 7772 | request(Client, <<"GetLogDeliveryConfiguration">>, Input, Options). |
7708 | 7773 |
|
| 7774 | +%% @doc Returns the current provisioned limit for a specific API category. |
| 7775 | +%% |
| 7776 | +%% Amazon Cognito evaluates Identity and Access Management (IAM) policies in |
| 7777 | +%% requests for this API operation. For |
| 7778 | +%% this operation, you must use IAM credentials to authorize requests, and |
| 7779 | +%% you must |
| 7780 | +%% grant yourself the corresponding IAM permission in a policy. |
| 7781 | +%% |
| 7782 | +%% == Learn more == |
| 7783 | +%% |
| 7784 | +%% Signing Amazon Web Services API Requests: |
| 7785 | +%% https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html |
| 7786 | +%% |
| 7787 | +%% Using the Amazon Cognito user pools API and user pool endpoints: |
| 7788 | +%% https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html |
| 7789 | +-spec get_provisioned_limit(aws_client:aws_client(), get_provisioned_limit_request()) -> |
| 7790 | + {ok, get_provisioned_limit_response(), tuple()} | |
| 7791 | + {error, any()} | |
| 7792 | + {error, get_provisioned_limit_errors(), tuple()}. |
| 7793 | +get_provisioned_limit(Client, Input) |
| 7794 | + when is_map(Client), is_map(Input) -> |
| 7795 | + get_provisioned_limit(Client, Input, []). |
| 7796 | + |
| 7797 | +-spec get_provisioned_limit(aws_client:aws_client(), get_provisioned_limit_request(), proplists:proplist()) -> |
| 7798 | + {ok, get_provisioned_limit_response(), tuple()} | |
| 7799 | + {error, any()} | |
| 7800 | + {error, get_provisioned_limit_errors(), tuple()}. |
| 7801 | +get_provisioned_limit(Client, Input, Options) |
| 7802 | + when is_map(Client), is_map(Input), is_list(Options) -> |
| 7803 | + request(Client, <<"GetProvisionedLimit">>, Input, Options). |
| 7804 | + |
7709 | 7805 | %% @doc Given a user pool ID, returns the signing certificate for SAML 2.0 |
7710 | 7806 | %% federation. |
7711 | 7807 | %% |
@@ -9419,6 +9515,44 @@ update_managed_login_branding(Client, Input, Options) |
9419 | 9515 | when is_map(Client), is_map(Input), is_list(Options) -> |
9420 | 9516 | request(Client, <<"UpdateManagedLoginBranding">>, Input, Options). |
9421 | 9517 |
|
| 9518 | +%% @doc Sets the provisioned limit for a specific API category. |
| 9519 | +%% |
| 9520 | +%% The value must be between the |
| 9521 | +%% default limit and your account-level maximum limit in Service Quotas. |
| 9522 | +%% |
| 9523 | +%% Managed login user pools don't support adjustments to the |
| 9524 | +%% `UserAuthentication' or `UserFederation' categories. To |
| 9525 | +%% increase these limits, submit a Service Quotas increase request. |
| 9526 | +%% |
| 9527 | +%% Amazon Cognito evaluates Identity and Access Management (IAM) policies in |
| 9528 | +%% requests for this API operation. For |
| 9529 | +%% this operation, you must use IAM credentials to authorize requests, and |
| 9530 | +%% you must |
| 9531 | +%% grant yourself the corresponding IAM permission in a policy. |
| 9532 | +%% |
| 9533 | +%% == Learn more == |
| 9534 | +%% |
| 9535 | +%% Signing Amazon Web Services API Requests: |
| 9536 | +%% https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-signing.html |
| 9537 | +%% |
| 9538 | +%% Using the Amazon Cognito user pools API and user pool endpoints: |
| 9539 | +%% https://docs.aws.amazon.com/cognito/latest/developerguide/user-pools-API-operations.html |
| 9540 | +-spec update_provisioned_limit(aws_client:aws_client(), update_provisioned_limit_request()) -> |
| 9541 | + {ok, update_provisioned_limit_response(), tuple()} | |
| 9542 | + {error, any()} | |
| 9543 | + {error, update_provisioned_limit_errors(), tuple()}. |
| 9544 | +update_provisioned_limit(Client, Input) |
| 9545 | + when is_map(Client), is_map(Input) -> |
| 9546 | + update_provisioned_limit(Client, Input, []). |
| 9547 | + |
| 9548 | +-spec update_provisioned_limit(aws_client:aws_client(), update_provisioned_limit_request(), proplists:proplist()) -> |
| 9549 | + {ok, update_provisioned_limit_response(), tuple()} | |
| 9550 | + {error, any()} | |
| 9551 | + {error, update_provisioned_limit_errors(), tuple()}. |
| 9552 | +update_provisioned_limit(Client, Input, Options) |
| 9553 | + when is_map(Client), is_map(Input), is_list(Options) -> |
| 9554 | + request(Client, <<"UpdateProvisionedLimit">>, Input, Options). |
| 9555 | + |
9422 | 9556 | %% @doc Updates the name and scopes of a resource server. |
9423 | 9557 | %% |
9424 | 9558 | %% All other fields are read-only. For |
|
0 commit comments