本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
Amazon CloudFormation 指定时AWS::Serverless::GraphQLApi生成的资源
在 Amazon Serverless Application Model
(Amazon SAM) 模板中指定AWS::Serverless::GraphQLApi
资源时, Amazon SAM 始终会创建以下基础 Amazon CloudFormation 资源。
AWS::AppSync::DataSource
-
LogicalId
:<graphqlapi-LogicalId><datasource-RelativeId><datasource-Type>
DataSource可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::FunctionConfiguration
-
LogicalId
:<graphqlapi-LogicalId><function-RelativeId>
可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::GraphQLApi
-
LogicalId
:<graphqlapi-LogicalId>
可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::GraphQLSchema
-
LogicalId
:<graphqlapi-LogicalId>
Schema可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::Resolver
-
LogicalId
:<graphqlapi-LogicalId><OperationType><resolver-RelativeId>
可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源)
除了这些 Amazon CloudFormation 资源之外,AWS::Serverless::GraphQLApi
如果指定了这些资源,还 Amazon SAM 可能生成以下 Amazon CloudFormation 资源。
AWS::AppSync::ApiCache
-
LogicalId
:<graphqlapi-LogicalId>
ApiCache可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::ApiKey
-
LogicalId
:<graphqlapi-LogicalId><apikey-RelativeId>
可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::DomainName
-
LogicalId
:<graphqlapi-LogicalId>
DomainName可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源) AWS::AppSync::DomainNameApiAssociation
-
LogicalId
:<graphqlapi-LogicalId>
DomainNameApiAssociation可引用的属性:N/A(必须使用
LogicalId
来引用此 Amazon CloudFormation 资源)
Amazon SAM 也可以使用该AWS::Serverless::Connector
资源来配置权限。有关更多信息,请参阅 在指定了 AWS::Serverless::Connector 的情况下生成的 Amazon CloudFormation 资源。