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
This property is required. 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
This property is required. 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
This property is required. 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
This property is required. 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
This property is required. String - The unique name of the resource.
- args
This property is required. 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
- Auth
Type This property is required. ApiAuthentication Type - Cognito
Config ApiCognito Config - Api
Lambda Authorizer Config - Open
Id ApiConnect Config Open Id Connect Config
- auth
Type This property is required. ApiAuthentication Type - cognito
Config ApiCognito Config - Api
Lambda Authorizer Config - open
Id ApiConnect Config Open Id Connect Config
- auth
Type This property is required. ApiAuthentication Type - cognito
Config ApiCognito Config - Api
Lambda Authorizer Config - open
Id ApiConnect Config Open Id Connect Config
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 This property is required. string - User
Pool Id This property is required. string - App
Id stringClient Regex
- Aws
Region This property is required. string - User
Pool Id This property is required. string - App
Id stringClient Regex
- aws
Region This property is required. String - user
Pool Id This property is required. String - app
Id StringClient Regex
- aws
Region This property is required. string - user
Pool Id This property is required. string - app
Id stringClient Regex
- aws_
region This property is required. str - user_
pool_ id This property is required. str - app_
id_ strclient_ regex
- aws
Region This property is required. String - user
Pool Id This property is required. String - app
Id StringClient Regex
ApiDnsMap, ApiDnsMapArgs
ApiEventConfig, ApiEventConfigArgs
- Auth
Providers This property is required. List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Provider> - A list of authorization providers.
- Connection
Auth Modes This property is required. List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API connections.
- Default
Publish Auth Modes This property is required. List<Pulumi.Aws Native. App Sync. Inputs. Api Auth Mode> - A list of valid authorization modes for the Event API publishing.
- Default
Subscribe Auth Modes This property is required. List<Pulumi.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 This property is required. []ApiAuth Provider - A list of authorization providers.
- Connection
Auth Modes This property is required. []ApiAuth Mode - A list of valid authorization modes for the Event API connections.
- Default
Publish Auth Modes This property is required. []ApiAuth Mode - A list of valid authorization modes for the Event API publishing.
- Default
Subscribe Auth Modes This property is required. []ApiAuth 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 This property is required. List<ApiAuth Provider> - A list of authorization providers.
- connection
Auth Modes This property is required. List<ApiAuth Mode> - A list of valid authorization modes for the Event API connections.
- default
Publish Auth Modes This property is required. List<ApiAuth Mode> - A list of valid authorization modes for the Event API publishing.
- default
Subscribe Auth Modes This property is required. List<ApiAuth 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 This property is required. ApiAuth Provider[] - A list of authorization providers.
- connection
Auth Modes This property is required. ApiAuth Mode[] - A list of valid authorization modes for the Event API connections.
- default
Publish Auth Modes This property is required. ApiAuth Mode[] - A list of valid authorization modes for the Event API publishing.
- default
Subscribe Auth Modes This property is required. ApiAuth 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 This property is required. Sequence[ApiAuth Provider] - A list of authorization providers.
- connection_
auth_ modes This property is required. Sequence[ApiAuth Mode] - A list of valid authorization modes for the Event API connections.
- default_
publish_ auth_ modes This property is required. Sequence[ApiAuth Mode] - A list of valid authorization modes for the Event API publishing.
- default_
subscribe_ auth_ modes This property is required. Sequence[ApiAuth 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 This property is required. List<Property Map> - A list of authorization providers.
- connection
Auth Modes This property is required. List<Property Map> - A list of valid authorization modes for the Event API connections.
- default
Publish Auth Modes This property is required. List<Property Map> - A list of valid authorization modes for the Event API publishing.
- default
Subscribe Auth Modes This property is required. List<Property Map> - 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 Logs Role Arn This property is required. string - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- Log
Level This property is required. Pulumi.Aws Native. App Sync. Api Event Log Level - The type of information to log for the Event API.
- Cloud
Watch Logs Role Arn This property is required. string - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- Log
Level This property is required. ApiEvent Log Level - The type of information to log for the Event API.
- cloud
Watch Logs Role Arn This property is required. String - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level This property is required. ApiEvent Log Level - The type of information to log for the Event API.
- cloud
Watch Logs Role Arn This property is required. string - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level This property is required. ApiEvent Log Level - The type of information to log for the Event API.
- cloud_
watch_ logs_ role_ arn This property is required. str - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log_
level This property is required. ApiEvent Log Level - The type of information to log for the Event API.
- cloud
Watch Logs Role Arn This property is required. String - The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
- log
Level This property is required. "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
This property is required. string- int
- Identity
Validation stringExpression
This property is required. string- int
- Identity
Validation stringExpression
This property is required. String- Integer
- identity
Validation StringExpression
This property is required. string- number
- identity
Validation stringExpression
This property is required. str- int
- identity_
validation_ strexpression
This property is required. 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.