update_graphql_api
async
¶
update_graphql_api(
api_id: String,
name: String,
authentication_type: AuthenticationType,
*,
config_overrides: Optional[AsyncAppSyncClientConfig] = 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/async_app_sync.py
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 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 | |