在指定了 AWS::Serverless::GraphQLApi 的情况下生成的 Amazon CloudFormation 资源 - Amazon Serverless Application Model
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

在指定了 AWS::Serverless::GraphQLApi 的情况下生成的 Amazon CloudFormation 资源

如果您在 Amazon Serverless Application Model (Amazon SAM) 模板中指定了 AWS::Serverless::GraphQLApi 资源,Amazon SAM 总是会创建以下基本 Amazon CloudFormation 资源。

AWS::AppSync::DataSource

LogicalId: <graphqlapi-LogicalId><datasource-RelativeId><datasource-Type>DataSource

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::FunctionConfiguration

LogicalId: <graphqlapi-LogicalId><function-RelativeId>

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::GraphQLApi

LogicalId: <graphqlapi-LogicalId>

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::GraphQLSchema

LogicalId: <graphqlapi-LogicalId>Schema

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::Resolver

LogicalId: <graphqlapi-LogicalId><OperationType><resolver-RelativeId>

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

除了这些 Amazon CloudFormation 资源外,如果指定了 AWS::Serverless::GraphQLApi,Amazon SAM 还可以生成以下 Amazon CloudFormation 资源。

AWS::AppSync::ApiCache

LogicalId: <graphqlapi-LogicalId>ApiCache

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::ApiKey

LogicalId: <graphqlapi-LogicalId><apikey-RelativeId>

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::DomainName

LogicalId: <graphqlapi-LogicalId>DomainName

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

AWS::AppSync::DomainNameApiAssociation

LogicalId: <graphqlapi-LogicalId>DomainNameApiAssociation

可引用属性:不适用(必须使用 LogicalId 才能引用这种 Amazon CloudFormation 资源)

Amazon SAM 也可以使用 AWS::Serverless::Connector 资源来配置权限。有关更多信息,请参阅 在指定了 AWS::Serverless::Connector 的情况下生成的 Amazon CloudFormation 资源