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:
- Event
Config 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
. - Owner
Contact 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.
- Event
Config 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
. - Owner
Contact string The owner contact information for an API resource.
This field accepts any string input with a length of 0 - 256 characters.
- Tag
Args - A set of tags (key-value pairs) for this API.
- event
Config 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
. - owner
Contact 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.
- event
Config 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
. - owner
Contact 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[Tag
Args] - A set of tags (key-value pairs) for this API.
- event
Config 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
. - owner
Contact 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:
- Api
Arn string - The Amazon Resource Name (ARN) of the AppSync Api
- Api
Id 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.
- api
Arn String - The Amazon Resource Name (ARN) of the AppSync Api
- api
Id 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
- Amazon
Cognito User Pools - AMAZON_COGNITO_USER_POOLS
- Aws
Iam - AWS_IAM
- Api
Key - API_KEY
- Openid
Connect - OPENID_CONNECT
- Aws
Lambda - AWS_LAMBDA
- Api
Authentication Type Amazon Cognito User Pools - AMAZON_COGNITO_USER_POOLS
- Api
Authentication Type Aws Iam - AWS_IAM
- Api
Authentication Type Api Key - API_KEY
- Api
Authentication Type Openid Connect - OPENID_CONNECT
- Api
Authentication Type 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
- 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
- "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
- Aws
Region string - User
Pool stringId - App
Id stringClient Regex
- Aws
Region string - User
Pool stringId - App
Id stringClient Regex
- aws
Region String - user
Pool StringId - app
Id StringClient Regex
- aws
Region string - user
Pool stringId - app
Id stringClient Regex
- aws_
region str - user_
pool_ strid - app_
id_ strclient_ regex
- aws
Region String - user
Pool StringId - app
Id StringClient Regex
ApiDnsMap, ApiDnsMapArgs
ApiEventConfig, ApiEventConfigArgs
- Auth
Providers List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Provider> - A list of authorization providers.
- Connection
Auth List<Pulumi.Modes Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API connections.
- Default
Publish List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API publishing.
- Default
Subscribe List<Pulumi.Auth Modes Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API subscriptions.
- Log
Config Pulumi.Aws Native. App Sync. Inputs. Api Event Log Config - The CloudWatch Logs configuration for the Event API.
- Auth
Providers []ApiAuth Provider - A list of authorization providers.
- Connection
Auth []ApiModes Auth Mode - A list of valid authorization modes for the Event API connections.
- Default
Publish []ApiAuth Modes Auth Mode - A list of valid authorization modes for the Event API publishing.
- Default
Subscribe []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.
- auth
Providers List<ApiAuth Provider> - A list of authorization providers.
- connection
Auth List<ApiModes Auth Mode> - A list of valid authorization modes for the Event API connections.
- default
Publish List<ApiAuth Modes Auth Mode> - A list of valid authorization modes for the Event API publishing.
- default
Subscribe List<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.
- auth
Providers ApiAuth Provider[] - A list of authorization providers.
- connection
Auth ApiModes Auth Mode[] - A list of valid authorization modes for the Event API connections.
- default
Publish ApiAuth Modes Auth Mode[] - A list of valid authorization modes for the Event API publishing.
- default
Subscribe 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.
- 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.
- auth
Providers List<Property Map> - A list of authorization providers.
- connection
Auth List<Property Map>Modes - A list of valid authorization modes for the Event API connections.
- default
Publish List<Property Map>Auth Modes - A list of valid authorization modes for the Event API publishing.
- default
Subscribe List<Property Map>Auth Modes - A list of valid authorization modes for the Event API subscriptions.
- log
Config Property Map - The CloudWatch Logs configuration for the Event API.
ApiEventLogConfig, ApiEventLogConfigArgs
- Cloud
Watch stringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- Log
Level Pulumi.Aws Native. App Sync. Api Event Log Level - The type of information to log for the Event API.
- Cloud
Watch stringLogs 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.
- cloud
Watch StringLogs 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.
- cloud
Watch stringLogs 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.
- 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.
- cloud
Watch StringLogs Role Arn - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level "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
- Api
Event Log Level None - NONE
- Api
Event Log Level Error - ERROR
- Api
Event Log Level All - ALL
- Api
Event Log Level Info - INFO
- Api
Event 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
- Identity
Validation stringExpression
- string
- int
- Identity
Validation stringExpression
- String
- Integer
- identity
Validation StringExpression
- string
- number
- identity
Validation stringExpression
- str
- int
- identity_
validation_ strexpression
- String
- Number
- identity
Validation 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.