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

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

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

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

AWS::AppSync::DataSource

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

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

AWS::AppSync::FunctionConfiguration

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

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

AWS::AppSync::GraphQLApi

LogicalId: <graphqlapi-LogicalId>

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

AWS::AppSync::GraphQLSchema

LogicalId: <graphqlapi-LogicalId>Schema

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

AWS::AppSync::Resolver

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

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

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

AWS::AppSync::ApiCache

LogicalId: <graphqlapi-LogicalId>ApiCache

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

AWS::AppSync::ApiKey

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

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

AWS::AppSync::DomainName

LogicalId: <graphqlapi-LogicalId>DomainName

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

AWS::AppSync::DomainNameApiAssociation

LogicalId: <graphqlapi-LogicalId>DomainNameApiAssociation

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

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