{ "swagger": "2.0", "info": { "title": "Microsoft.AwsConnector", "version": "2024-12-01", "description": "Microsoft.AwsConnector Resource Provider management API.", "x-typespec-generated": [ { "emitter": "@azure-tools/typespec-autorest" } ] }, "schemes": [ "https" ], "host": "management.azure.com", "produces": [ "application/json" ], "consumes": [ "application/json" ], "security": [ { "azure_auth": [ "user_impersonation" ] } ], "securityDefinitions": { "azure_auth": { "type": "oauth2", "description": "Azure Active Directory OAuth2 Flow.", "flow": "implicit", "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", "scopes": { "user_impersonation": "impersonate your user account" } } }, "tags": [ { "name": "AppSyncGraphqlApis" } ], "paths": { "/subscriptions/{subscriptionId}/providers/Microsoft.AwsConnector/appSyncGraphqlApis": { "get": { "operationId": "AppSyncGraphqlApis_ListBySubscription", "tags": [ "AppSyncGraphqlApis" ], "description": "List AppSyncGraphqlApi resources by subscription ID", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AppSyncGraphqlApiListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AppSyncGraphqlApis_ListBySubscription": { "$ref": "./examples/AppSyncGraphqlApis_ListBySubscription.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/appSyncGraphqlApis": { "get": { "operationId": "AppSyncGraphqlApis_ListByResourceGroup", "tags": [ "AppSyncGraphqlApis" ], "description": "List AppSyncGraphqlApi resources by resource group", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AppSyncGraphqlApiListResult" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AppSyncGraphqlApis_ListByResourceGroup": { "$ref": "./examples/AppSyncGraphqlApis_ListByResourceGroup.json" } }, "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AwsConnector/appSyncGraphqlApis/{name}": { "get": { "operationId": "AppSyncGraphqlApis_Get", "tags": [ "AppSyncGraphqlApis" ], "description": "Get a AppSyncGraphqlApi", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", "description": "Name of AppSyncGraphqlApi", "required": true, "type": "string", "pattern": "^(?=.{0,259}[^\\s.]$)(?!.*[<>%&\\?/#])" } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AppSyncGraphqlApi" } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AppSyncGraphqlApis_Get": { "$ref": "./examples/AppSyncGraphqlApis_Get.json" } } }, "put": { "operationId": "AppSyncGraphqlApis_CreateOrReplace", "tags": [ "AppSyncGraphqlApis" ], "description": "Create a AppSyncGraphqlApi. Please note that end user resource creation is currently restricted, but it will be enabled in the future.", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", "description": "Name of AppSyncGraphqlApi", "required": true, "type": "string", "pattern": "^(?=.{0,259}[^\\s.]$)(?!.*[<>%&\\?/#])" }, { "name": "resource", "in": "body", "description": "Resource create parameters.", "required": true, "schema": { "$ref": "#/definitions/AppSyncGraphqlApi" } } ], "responses": { "200": { "description": "Resource 'AppSyncGraphqlApi' update operation succeeded", "schema": { "$ref": "#/definitions/AppSyncGraphqlApi" } }, "201": { "description": "Resource 'AppSyncGraphqlApi' create operation succeeded", "schema": { "$ref": "#/definitions/AppSyncGraphqlApi" }, "headers": { "Azure-AsyncOperation": { "type": "string", "description": "A link to the status monitor" }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AppSyncGraphqlApis_CreateOrReplace": { "$ref": "./examples/AppSyncGraphqlApis_CreateOrReplace.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" }, "x-ms-long-running-operation": true }, "patch": { "operationId": "AppSyncGraphqlApis_Update", "tags": [ "AppSyncGraphqlApis" ], "description": "Update a AppSyncGraphqlApi", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", "description": "Name of AppSyncGraphqlApi", "required": true, "type": "string", "pattern": "^(?=.{0,259}[^\\s.]$)(?!.*[<>%&\\?/#])" }, { "name": "properties", "in": "body", "description": "The resource properties to be updated.", "required": true, "schema": { "$ref": "#/definitions/AppSyncGraphqlApiTagsUpdate" } } ], "responses": { "200": { "description": "Azure operation completed successfully.", "schema": { "$ref": "#/definitions/AppSyncGraphqlApi" } }, "202": { "description": "Resource update request accepted.", "headers": { "Location": { "type": "string", "description": "The Location header contains the URL where the status of the long running operation can be checked." }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } } }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AppSyncGraphqlApis_Update": { "$ref": "./examples/AppSyncGraphqlApis_Update.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true }, "delete": { "operationId": "AppSyncGraphqlApis_Delete", "tags": [ "AppSyncGraphqlApis" ], "description": "Delete a AppSyncGraphqlApi", "parameters": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter" }, { "$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter" }, { "name": "name", "in": "path", "description": "Name of AppSyncGraphqlApi", "required": true, "type": "string", "pattern": "^(?=.{0,259}[^\\s.]$)(?!.*[<>%&\\?/#])" } ], "responses": { "202": { "description": "Resource deletion accepted.", "headers": { "Location": { "type": "string", "description": "The Location header contains the URL where the status of the long running operation can be checked." }, "Retry-After": { "type": "integer", "format": "int32", "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." } } }, "204": { "description": "Resource does not exist." }, "default": { "description": "An unexpected error response.", "schema": { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse" } } }, "x-ms-examples": { "AppSyncGraphqlApis_Delete": { "$ref": "./examples/AppSyncGraphqlApis_Delete.json" } }, "x-ms-long-running-operation-options": { "final-state-via": "location" }, "x-ms-long-running-operation": true } } }, "definitions": { "AdditionalAuthenticationProvider": { "type": "object", "description": "Definition of AdditionalAuthenticationProvider", "properties": { "authenticationType": { "$ref": "#/definitions/AuthenticationTypeEnumValue", "description": "
The authentication type: API key, Identity and Access Management (IAM), OpenID Connect (OIDC), Amazon Cognito user pools, or Lambda.
" }, "lambdaAuthorizerConfig": { "$ref": "#/definitions/LambdaAuthorizerConfig", "description": "Configuration for Lambda function authorization.
" }, "openIDConnectConfig": { "$ref": "#/definitions/OpenIDConnectConfig", "description": "The OIDC configuration.
" }, "userPoolConfig": { "$ref": "#/definitions/CognitoUserPoolConfig", "description": "The Amazon Cognito user pool configuration.
" } } }, "AppSyncGraphqlApi": { "type": "object", "description": "A Microsoft.AwsConnector resource", "properties": { "properties": { "$ref": "#/definitions/AppSyncGraphqlApiProperties", "description": "The resource-specific properties for this resource." } }, "allOf": [ { "$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource" } ] }, "AppSyncGraphqlApiListResult": { "type": "object", "description": "The response of a AppSyncGraphqlApi list operation.", "properties": { "value": { "type": "array", "description": "The AppSyncGraphqlApi items on this page", "items": { "$ref": "#/definitions/AppSyncGraphqlApi" } }, "nextLink": { "type": "string", "format": "uri", "description": "The link to the next page of items" } }, "required": [ "value" ] }, "AppSyncGraphqlApiProperties": { "type": "object", "description": "Definition of AppSyncGraphqlApi", "properties": { "awsProperties": { "$ref": "#/definitions/AwsAppSyncGraphqlApiProperties", "description": "AWS Properties" }, "publicCloudConnectorsResourceId": { "type": "string", "description": "Public Cloud Connectors Resource ID" }, "awsAccountId": { "type": "string", "description": "AWS Account ID" }, "arn": { "type": "string", "description": "Amazon Resource Name (ARN)" }, "publicCloudResourceName": { "type": "string", "description": "Public Cloud Resource Name" }, "awsSourceSchema": { "type": "string", "description": "AWS Source Schema" }, "awsRegion": { "type": "string", "description": "AWS Region" }, "awsTags": { "type": "object", "description": "AWS Tags", "additionalProperties": { "type": "string" } }, "provisioningState": { "$ref": "#/definitions/ProvisioningState", "description": "The status of the last operation.", "readOnly": true } } }, "AppSyncGraphqlApiTagsUpdate": { "type": "object", "description": "The type used for updating tags in AppSyncGraphqlApi resources.", "properties": { "tags": { "type": "object", "description": "Resource tags.", "additionalProperties": { "type": "string" } } } }, "AuthenticationType": { "type": "string", "description": "AuthenticationType enum", "enum": [ "AMAZON_COGNITO_USER_POOLS", "API_KEY", "AWS_IAM", "AWS_LAMBDA", "OPENID_CONNECT" ], "x-ms-enum": { "name": "AuthenticationType", "modelAsString": true, "values": [ { "name": "AMAZON_COGNITO_USER_POOLS", "value": "AMAZON_COGNITO_USER_POOLS", "description": "AuthenticationType enum AMAZON_COGNITO_USER_POOLS" }, { "name": "API_KEY", "value": "API_KEY", "description": "AuthenticationType enum API_KEY" }, { "name": "AWS_IAM", "value": "AWS_IAM", "description": "AuthenticationType enum AWS_IAM" }, { "name": "AWS_LAMBDA", "value": "AWS_LAMBDA", "description": "AuthenticationType enum AWS_LAMBDA" }, { "name": "OPENID_CONNECT", "value": "OPENID_CONNECT", "description": "AuthenticationType enum OPENID_CONNECT" } ] } }, "AuthenticationTypeEnumValue": { "type": "object", "description": "Definition of AuthenticationTypeEnumValue", "properties": { "value": { "$ref": "#/definitions/AuthenticationType", "description": "Property value" } } }, "AwsAppSyncGraphqlApiProperties": { "type": "object", "description": "Definition of awsAppSyncGraphqlApi", "properties": { "additionalAuthenticationProviders": { "type": "array", "description": "A list of additional authentication providers for the GraphqlApi API.
The API ID.
" }, "apiType": { "$ref": "#/definitions/GraphQLApiTypeEnumValue", "description": "The value that indicates whether the GraphQL API is a standard API (GRAPHQL) or merged API (MERGED).
The Amazon Resource Name (ARN).
" }, "authenticationType": { "$ref": "#/definitions/AuthenticationTypeEnumValue", "description": "The authentication type.
" }, "dns": { "type": "object", "description": "The DNS records for the API.
", "additionalProperties": { "type": "string" } }, "enhancedMetricsConfig": { "$ref": "#/definitions/EnhancedMetricsConfig", "description": "The enhancedMetricsConfig object.
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 to ENABLED by 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.
" }, "lambdaAuthorizerConfig": { "$ref": "#/definitions/LambdaAuthorizerConfig", "description": "Configuration for Lambda function authorization.
" }, "logConfig": { "$ref": "#/definitions/LogConfig", "description": "The Amazon CloudWatch Logs configuration.
" }, "mergedApiExecutionRoleArn": { "type": "string", "description": "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_MERGE to update the merged API endpoint with the source API changes automatically.
The API name.
" }, "openIDConnectConfig": { "$ref": "#/definitions/OpenIDConnectConfig", "description": "The OpenID Connect configuration.
" }, "owner": { "type": "string", "description": "The account owner of the GraphQL API.
" }, "ownerContact": { "type": "string", "description": "The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
" }, "queryDepthLimit": { "type": "integer", "format": "int32", "description": "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 between 1 and 75 nested 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.
" }, "resolverCountLimit": { "type": "integer", "format": "int32", "description": "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 to 10000. When specified, the limit value can be between 1 and 10000. This field will produce a limit error if the operation falls out of bounds.
The tags.
", "additionalProperties": { "type": "string" } }, "uris": { "type": "object", "description": "The URIs.
", "additionalProperties": { "type": "string" } }, "userPoolConfig": { "$ref": "#/definitions/UserPoolConfig", "description": "The Amazon Cognito user pool configuration.
" }, "visibility": { "$ref": "#/definitions/GraphQLApiVisibilityEnumValue", "description": "Sets the value of the GraphQL API to public (GLOBAL) or private (PRIVATE). If no value is provided, the visibility will be set to GLOBAL by default. This value cannot be changed once the API has been created.
The ARN of the WAF access control list (ACL) associated with this GraphqlApi, if one exists.
A flag indicating whether to use X-Ray tracing for this GraphqlApi.
A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.
" }, "awsRegion": { "type": "string", "description": "The Amazon Web Services Region in which the user pool was created.
" }, "userPoolId": { "type": "string", "description": "The user pool ID.
" } } }, "DataSourceLevelMetricsBehavior": { "type": "string", "description": "DataSourceLevelMetricsBehavior enum", "enum": [ "FULL_REQUEST_DATA_SOURCE_METRICS", "PER_DATA_SOURCE_METRICS" ], "x-ms-enum": { "name": "DataSourceLevelMetricsBehavior", "modelAsString": true, "values": [ { "name": "FULL_REQUEST_DATA_SOURCE_METRICS", "value": "FULL_REQUEST_DATA_SOURCE_METRICS", "description": "DataSourceLevelMetricsBehavior enum FULL_REQUEST_DATA_SOURCE_METRICS" }, { "name": "PER_DATA_SOURCE_METRICS", "value": "PER_DATA_SOURCE_METRICS", "description": "DataSourceLevelMetricsBehavior enum PER_DATA_SOURCE_METRICS" } ] } }, "DataSourceLevelMetricsBehaviorEnumValue": { "type": "object", "description": "Definition of DataSourceLevelMetricsBehaviorEnumValue", "properties": { "value": { "$ref": "#/definitions/DataSourceLevelMetricsBehavior", "description": "Property value" } } }, "DefaultAction": { "type": "string", "description": "DefaultAction enum", "enum": [ "ALLOW", "DENY" ], "x-ms-enum": { "name": "DefaultAction", "modelAsString": true, "values": [ { "name": "ALLOW", "value": "ALLOW", "description": "DefaultAction enum ALLOW" }, { "name": "DENY", "value": "DENY", "description": "DefaultAction enum DENY" } ] } }, "DefaultActionEnumValue": { "type": "object", "description": "Definition of DefaultActionEnumValue", "properties": { "value": { "$ref": "#/definitions/DefaultAction", "description": "Property value" } } }, "EnhancedMetricsConfig": { "type": "object", "description": "Definition of EnhancedMetricsConfig", "properties": { "dataSourceLevelMetricsBehavior": { "$ref": "#/definitions/DataSourceLevelMetricsBehaviorEnumValue", "description": "Controls how data source metrics will be emitted to CloudWatch. Data source metrics include:
Requests: The number of invocations that occured during a request.
Latency: The time to complete a data source invocation.
Errors: The number of errors that occurred during a data source invocation.
These metrics can be emitted to CloudWatch per data source or for all data sources in the request. Metrics will be recorded by API ID and data source name. dataSourceLevelMetricsBehavior accepts one of these values at a time:
FULL_REQUEST_DATA_SOURCE_METRICS: Records and emits metric data for all data sources in the request.
PER_DATA_SOURCE_METRICS: Records and emits metric data for data sources that have the metricsConfig value set to ENABLED.
Controls how operation metrics will be emitted to CloudWatch. Operation metrics include:
Requests: The number of times a specified GraphQL operation was called.
GraphQL errors: The number of GraphQL errors that occurred during a specified GraphQL operation.
Metrics will be recorded by API ID and operation name. You can set the value to ENABLED or DISABLED.
Controls how resolver metrics will be emitted to CloudWatch. Resolver metrics include:
GraphQL errors: The number of GraphQL errors that occurred.
Requests: The number of invocations that occurred during a request.
Latency: The time to complete a resolver invocation.
Cache hits: The number of cache hits during a request.
Cache misses: The number of cache misses during a request.
These metrics can be emitted to CloudWatch per resolver or for all resolvers in the request. Metrics will be recorded by API ID and resolver name. resolverLevelMetricsBehavior accepts one of these values at a time:
FULL_REQUEST_RESOLVER_METRICS: Records and emits metric data for all resolvers in the request.
PER_RESOLVER_METRICS: Records and emits metric data for resolvers that have the metricsConfig value set to ENABLED.
The number of seconds a response should be cached for. The default is 0 seconds, which disables caching. If you don't specify a value for authorizerResultTtlInSeconds, the default value is used. The maximum value is one hour (3600 seconds). The Lambda function can override this by returning a ttlOverride key in its response.
The Amazon Resource Name (ARN) of the Lambda function to be called for authorization. This can be a standard Lambda ARN, a version ARN (.../v3), or an alias ARN.
Note: This Lambda function must have the following resource-based policy assigned to it. When configuring Lambda authorizers in the console, this is done for you. To use the Command Line Interface (CLI), run the following:
aws lambda add-permission --function-name 'arn:aws:lambda:us-east-2:111122223333:function:my-function' --statement-id 'appsync' --principal appsync.amazonaws.com --action lambda:InvokeFunction
A regular expression for validation of tokens before the Lambda function is called.
" } } }, "LogConfig": { "type": "object", "description": "Definition of LogConfig", "properties": { "cloudWatchLogsRoleArn": { "type": "string", "description": "The service role that AppSync assumes to publish to CloudWatch logs in your account.
" }, "excludeVerboseContent": { "type": "boolean", "description": "Set to TRUE to exclude sections that contain information such as headers, context, and evaluated mapping templates, regardless of logging level.
" }, "fieldLogLevel": { "$ref": "#/definitions/FieldLogLevelEnumValue", "description": "The field logging level. Values can be NONE, ERROR, or ALL.
NONE: No field-level logs are captured.
ERROR: Logs the following information only for the fields that are in error:
The error section in the server response.
Field-level errors.
The generated request/response functions that got resolved for error fields.
ALL: The following information is logged for all fields in the query:
Field-level tracing information.
The generated request/response functions that got resolved for each field.
The number of milliseconds that a token is valid after being authenticated.
" }, "clientId": { "type": "string", "description": "The client identifier of the relying party at the OpenID identity provider. This identifier is typically obtained when the relying party is registered with the OpenID identity provider. You can specify a regular expression so that AppSync can validate against multiple client identifiers at a time.
" }, "iatTTL": { "type": "integer", "format": "int64", "description": "The number of milliseconds that a token is valid after it's issued to a user.
" }, "issuer": { "type": "string", "description": "The issuer for the OIDC configuration. The issuer returned by discovery must exactly match the value of iss in the ID token.
A regular expression for validating the incoming Amazon Cognito user pool app client ID. If this value isn't set, no filtering is applied.
" }, "awsRegion": { "type": "string", "description": "The Amazon Web Services Region in which the user pool was created.
" }, "defaultAction": { "$ref": "#/definitions/DefaultActionEnumValue", "description": "The action that you want your GraphQL API to take when a request that uses Amazon Cognito user pool authentication doesn't match the Amazon Cognito user pool configuration.
" }, "userPoolId": { "type": "string", "description": "The user pool ID.
" } } } }, "parameters": {} }