update_graphql_api
¶
update_graphql_api(
api_id: String,
name: String,
authentication_type: AuthenticationType,
*,
config_overrides: Optional[AppSyncClientConfig] = None,
log_config: Optional[LogConfig] = None,
user_pool_config: Optional[UserPoolConfig] = None,
open_id_connect_config: Optional[OpenIDConnectConfig] = None,
additional_authentication_providers: Optional[
AdditionalAuthenticationProviders
] = None,
xray_enabled: Optional[Boolean] = None,
lambda_authorizer_config: Optional[LambdaAuthorizerConfig] = None,
merged_api_execution_role_arn: Optional[String] = None,
owner_contact: Optional[String] = None,
introspection_config: Optional[GraphQLApiIntrospectionConfig] = None,
query_depth_limit: Optional[QueryDepthLimit] = None,
resolver_count_limit: Optional[ResolverCountLimit] = None,
enhanced_metrics_config: Optional[EnhancedMetricsConfig] = None,
) -> UpdateGraphqlApiResponse
Updates a GraphqlApi object.
Parameters:
-
api_id(String) –The API ID.
-
name(String) –The new name for the
GraphqlApiobject. -
log_config(Optional[LogConfig], default:None) –The Amazon CloudWatch Logs configuration for the
GraphqlApiobject. -
authentication_type(AuthenticationType) –The new authentication type for the
GraphqlApiobject. -
user_pool_config(Optional[UserPoolConfig], default:None) –The new Amazon Cognito user pool configuration for the
~GraphqlApiobject. -
open_id_connect_config(Optional[OpenIDConnectConfig], default:None) –The OpenID Connect configuration for the
GraphqlApiobject. -
additional_authentication_providers(Optional[AdditionalAuthenticationProviders], default:None) –A list of additional authentication providers for the
GraphqlApiAPI. -
xray_enabled(Optional[Boolean], default:None) –A flag indicating whether to use X-Ray tracing for the
GraphqlApi. -
lambda_authorizer_config(Optional[LambdaAuthorizerConfig], default:None) –Configuration for Lambda function authorization.
-
merged_api_execution_role_arn(Optional[String], default:None) –The Identity and Access Management service role ARN for a merged API. The AppSync service assumes this role on behalf of the Merged API to validate access to source APIs at runtime and to prompt the
AUTO_MERGEto update the merged API endpoint with the source API changes automatically. -
owner_contact(Optional[String], default:None) –The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
-
introspection_config(Optional[GraphQLApiIntrospectionConfig], default:None) –Sets the value of the GraphQL API to enable (
ENABLED) or disable (DISABLED) introspection. If no value is provided, the introspection configuration will be set toENABLEDby default. This field will produce an error if the operation attempts to use the introspection feature while this field is disabled.For more information about introspection, see GraphQL introspection.
-
query_depth_limit(Optional[QueryDepthLimit], default:None) –The maximum depth a query can have in a single request. Depth refers to the amount of nested levels allowed in the body of query. The default value is
0(or unspecified), which indicates there's no depth limit. If you set a limit, it can be between1and75nested levels. This field will produce a limit error if the operation falls out of bounds.Note that fields can still be set to nullable or non-nullable. If a non-nullable field produces an error, the error will be thrown upwards to the first nullable field available.
-
resolver_count_limit(Optional[ResolverCountLimit], default:None) –The maximum number of resolvers that can be invoked in a single request. The default value is
0(or unspecified), which will set the limit to10000. When specified, the limit value can be between1and10000. This field will produce a limit error if the operation falls out of bounds. -
enhanced_metrics_config(Optional[EnhancedMetricsConfig], default:None) –The
enhancedMetricsConfigobject.
Raises:
-
AccessDeniedException–You don't have access to perform this operation on this resource.
-
BadRequestException–The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.
-
ConcurrentModificationException–Another modification is in progress at this time and it must complete before you can make your change.
-
InternalFailureException–An internal AppSync error occurred. Try your request again.
-
NotFoundException–The resource specified in the request was not found. Check the resource, and then try again.
-
UnauthorizedException–You aren't authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_appsync/_services/app_sync.py
4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 | |