We recommend new projects start with resources from the AWS provider.
aws-native.appsync.Api
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AppSync Api
Create Api Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Api(name: string, args?: ApiArgs, opts?: CustomResourceOptions);@overload
def Api(resource_name: str,
        args: Optional[ApiArgs] = None,
        opts: Optional[ResourceOptions] = None)
@overload
def Api(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        event_config: Optional[ApiEventConfigArgs] = None,
        name: Optional[str] = None,
        owner_contact: Optional[str] = None,
        tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewApi(ctx *Context, name string, args *ApiArgs, opts ...ResourceOption) (*Api, error)public Api(string name, ApiArgs? args = null, CustomResourceOptions? opts = null)type: aws-native:appsync:Api
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Api Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Api resource accepts the following input properties:
- EventConfig Pulumi.Aws Native. App Sync. Inputs. Api Event Config 
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- Name string
- The name of the Api.
- OwnerContact string
- The owner contact information for an API resource. - This field accepts any string input with a length of 0 - 256 characters. 
- 
List<Pulumi.Aws Native. Inputs. Tag> 
- A set of tags (key-value pairs) for this API.
- EventConfig ApiEvent Config Args 
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- Name string
- The name of the Api.
- OwnerContact string
- The owner contact information for an API resource. - This field accepts any string input with a length of 0 - 256 characters. 
- 
TagArgs 
- A set of tags (key-value pairs) for this API.
- eventConfig ApiEvent Config 
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name String
- The name of the Api.
- ownerContact String
- The owner contact information for an API resource. - This field accepts any string input with a length of 0 - 256 characters. 
- List<Tag>
- A set of tags (key-value pairs) for this API.
- eventConfig ApiEvent Config 
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name string
- The name of the Api.
- ownerContact string
- The owner contact information for an API resource. - This field accepts any string input with a length of 0 - 256 characters. 
- Tag[]
- A set of tags (key-value pairs) for this API.
- event_config ApiEvent Config Args 
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name str
- The name of the Api.
- owner_contact str
- The owner contact information for an API resource. - This field accepts any string input with a length of 0 - 256 characters. 
- 
Sequence[TagArgs] 
- A set of tags (key-value pairs) for this API.
- eventConfig Property Map
- Describes the authorization configuration for connections, message publishing, message subscriptions, and logging for an Event API.
- name String
- The name of the Api.
- ownerContact String
- The owner contact information for an API resource. - This field accepts any string input with a length of 0 - 256 characters. 
- List<Property Map>
- A set of tags (key-value pairs) for this API.
Outputs
All input properties are implicitly available as output properties. Additionally, the Api resource produces the following output properties:
- ApiArn string
- The Amazon Resource Name (ARN) of the AppSync Api
- ApiId string
- The unique identifier for the AppSync Api generated by the service
- Dns
Pulumi.Aws Native. App Sync. Outputs. Api Dns Map 
- Id string
- The provider-assigned unique ID for this managed resource.
- apiArn String
- The Amazon Resource Name (ARN) of the AppSync Api
- apiId String
- The unique identifier for the AppSync Api generated by the service
- dns Property Map
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ApiAuthMode, ApiAuthModeArgs      
ApiAuthProvider, ApiAuthProviderArgs      
ApiAuthenticationType, ApiAuthenticationTypeArgs      
- AmazonCognito User Pools 
- AMAZON_COGNITO_USER_POOLS
- AwsIam 
- AWS_IAM
- ApiKey 
- API_KEY
- OpenidConnect 
- OPENID_CONNECT
- AwsLambda 
- AWS_LAMBDA
- ApiAuthentication Type Amazon Cognito User Pools 
- AMAZON_COGNITO_USER_POOLS
- ApiAuthentication Type Aws Iam 
- AWS_IAM
- ApiAuthentication Type Api Key 
- API_KEY
- ApiAuthentication Type Openid Connect 
- OPENID_CONNECT
- ApiAuthentication Type Aws Lambda 
- AWS_LAMBDA
- AmazonCognito User Pools 
- AMAZON_COGNITO_USER_POOLS
- AwsIam 
- AWS_IAM
- ApiKey 
- API_KEY
- OpenidConnect 
- OPENID_CONNECT
- AwsLambda 
- AWS_LAMBDA
- AmazonCognito User Pools 
- AMAZON_COGNITO_USER_POOLS
- AwsIam 
- AWS_IAM
- ApiKey 
- API_KEY
- OpenidConnect 
- OPENID_CONNECT
- AwsLambda 
- AWS_LAMBDA
- AMAZON_COGNITO_USER_POOLS
- AMAZON_COGNITO_USER_POOLS
- AWS_IAM
- AWS_IAM
- API_KEY
- API_KEY
- OPENID_CONNECT
- OPENID_CONNECT
- AWS_LAMBDA
- AWS_LAMBDA
- "AMAZON_COGNITO_USER_POOLS"
- AMAZON_COGNITO_USER_POOLS
- "AWS_IAM"
- AWS_IAM
- "API_KEY"
- API_KEY
- "OPENID_CONNECT"
- OPENID_CONNECT
- "AWS_LAMBDA"
- AWS_LAMBDA
ApiCognitoConfig, ApiCognitoConfigArgs      
- AwsRegion string
- UserPool stringId 
- AppId stringClient Regex 
- AwsRegion string
- UserPool stringId 
- AppId stringClient Regex 
- awsRegion String
- userPool StringId 
- appId StringClient Regex 
- awsRegion string
- userPool stringId 
- appId stringClient Regex 
- aws_region str
- user_pool_ strid 
- app_id_ strclient_ regex 
- awsRegion String
- userPool StringId 
- appId StringClient Regex 
ApiDnsMap, ApiDnsMapArgs      
ApiEventConfig, ApiEventConfigArgs      
- AuthProviders List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Provider> 
- A list of authorization providers.
- ConnectionAuth List<Pulumi.Modes Aws Native. App Sync. Inputs. Api Auth Mode> 
- A list of valid authorization modes for the Event API connections.
- DefaultPublish List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> 
- A list of valid authorization modes for the Event API publishing.
- DefaultSubscribe List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> 
- A list of valid authorization modes for the Event API subscriptions.
- LogConfig Pulumi.Aws Native. App Sync. Inputs. Api Event Log Config 
- The CloudWatch Logs configuration for the Event API.
- AuthProviders []ApiAuth Provider 
- A list of authorization providers.
- ConnectionAuth []ApiModes Auth Mode 
- A list of valid authorization modes for the Event API connections.
- DefaultPublish []ApiAuth Modes Auth Mode 
- A list of valid authorization modes for the Event API publishing.
- DefaultSubscribe []ApiAuth Modes Auth Mode 
- A list of valid authorization modes for the Event API subscriptions.
- LogConfig ApiEvent Log Config 
- The CloudWatch Logs configuration for the Event API.
- authProviders List<ApiAuth Provider> 
- A list of authorization providers.
- connectionAuth List<ApiModes Auth Mode> 
- A list of valid authorization modes for the Event API connections.
- defaultPublish List<ApiAuth Modes Auth Mode> 
- A list of valid authorization modes for the Event API publishing.
- defaultSubscribe List<ApiAuth Modes Auth Mode> 
- A list of valid authorization modes for the Event API subscriptions.
- logConfig ApiEvent Log Config 
- The CloudWatch Logs configuration for the Event API.
- authProviders ApiAuth Provider[] 
- A list of authorization providers.
- connectionAuth ApiModes Auth Mode[] 
- A list of valid authorization modes for the Event API connections.
- defaultPublish ApiAuth Modes Auth Mode[] 
- A list of valid authorization modes for the Event API publishing.
- defaultSubscribe ApiAuth Modes Auth Mode[] 
- A list of valid authorization modes for the Event API subscriptions.
- logConfig ApiEvent Log Config 
- The CloudWatch Logs configuration for the Event API.
- auth_providers Sequence[ApiAuth Provider] 
- A list of authorization providers.
- connection_auth_ Sequence[Apimodes Auth Mode] 
- A list of valid authorization modes for the Event API connections.
- default_publish_ Sequence[Apiauth_ modes Auth Mode] 
- A list of valid authorization modes for the Event API publishing.
- default_subscribe_ Sequence[Apiauth_ modes Auth Mode] 
- A list of valid authorization modes for the Event API subscriptions.
- log_config ApiEvent Log Config 
- The CloudWatch Logs configuration for the Event API.
- authProviders List<Property Map>
- A list of authorization providers.
- connectionAuth List<Property Map>Modes 
- A list of valid authorization modes for the Event API connections.
- defaultPublish List<Property Map>Auth Modes 
- A list of valid authorization modes for the Event API publishing.
- defaultSubscribe List<Property Map>Auth Modes 
- A list of valid authorization modes for the Event API subscriptions.
- logConfig Property Map
- The CloudWatch Logs configuration for the Event API.
ApiEventLogConfig, ApiEventLogConfigArgs        
- CloudWatch stringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- LogLevel Pulumi.Aws Native. App Sync. Api Event Log Level 
- The type of information to log for the Event API.
- CloudWatch stringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- LogLevel ApiEvent Log Level 
- The type of information to log for the Event API.
- cloudWatch StringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- logLevel ApiEvent Log Level 
- The type of information to log for the Event API.
- cloudWatch stringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- logLevel ApiEvent Log Level 
- The type of information to log for the Event API.
- cloud_watch_ strlogs_ role_ arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log_level ApiEvent Log Level 
- The type of information to log for the Event API.
- cloudWatch StringLogs Role Arn 
- The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- logLevel "NONE" | "ERROR" | "ALL" | "INFO" | "DEBUG"
- The type of information to log for the Event API.
ApiEventLogLevel, ApiEventLogLevelArgs        
- None
- NONE
- Error
- ERROR
- All
- ALL
- Info
- INFO
- Debug
- DEBUG
- ApiEvent Log Level None 
- NONE
- ApiEvent Log Level Error 
- ERROR
- ApiEvent Log Level All 
- ALL
- ApiEvent Log Level Info 
- INFO
- ApiEvent Log Level Debug 
- DEBUG
- None
- NONE
- Error
- ERROR
- All
- ALL
- Info
- INFO
- Debug
- DEBUG
- None
- NONE
- Error
- ERROR
- All
- ALL
- Info
- INFO
- Debug
- DEBUG
- NONE
- NONE
- ERROR
- ERROR
- ALL
- ALL
- INFO
- INFO
- DEBUG
- DEBUG
- "NONE"
- NONE
- "ERROR"
- ERROR
- "ALL"
- ALL
- "INFO"
- INFO
- "DEBUG"
- DEBUG
ApiLambdaAuthorizerConfig, ApiLambdaAuthorizerConfigArgs        
- string
- int
- IdentityValidation stringExpression 
- string
- int
- IdentityValidation stringExpression 
- String
- Integer
- identityValidation StringExpression 
- string
- number
- identityValidation stringExpression 
- str
- int
- identity_validation_ strexpression 
- String
- Number
- identityValidation StringExpression 
ApiOpenIdConnectConfig, ApiOpenIdConnectConfigArgs          
Tag, TagArgs  
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.