We recommend new projects start with resources from the AWS provider.
aws-native.appsync.getApi
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
Resource schema for AppSync Api
Using getApi
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getApi(args: GetApiArgs, opts?: InvokeOptions): Promise<GetApiResult>
function getApiOutput(args: GetApiOutputArgs, opts?: InvokeOptions): Output<GetApiResult>
def get_api(api_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApiResult
def get_api_output(api_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApiResult]
func LookupApi(ctx *Context, args *LookupApiArgs, opts ...InvokeOption) (*LookupApiResult, error)
func LookupApiOutput(ctx *Context, args *LookupApiOutputArgs, opts ...InvokeOption) LookupApiResultOutput
> Note: This function is named LookupApi
in the Go SDK.
public static class GetApi
{
public static Task<GetApiResult> InvokeAsync(GetApiArgs args, InvokeOptions? opts = null)
public static Output<GetApiResult> Invoke(GetApiInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApiResult> getApi(GetApiArgs args, InvokeOptions options)
public static Output<GetApiResult> getApi(GetApiArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:appsync:getApi
arguments:
# arguments dictionary
The following arguments are supported:
- Api
Arn This property is required. string - The Amazon Resource Name (ARN) of the AppSync Api
- Api
Arn This property is required. string - The Amazon Resource Name (ARN) of the AppSync Api
- api
Arn This property is required. String - The Amazon Resource Name (ARN) of the AppSync Api
- api
Arn This property is required. string - The Amazon Resource Name (ARN) of the AppSync Api
- api_
arn This property is required. str - The Amazon Resource Name (ARN) of the AppSync Api
- api
Arn This property is required. String - The Amazon Resource Name (ARN) of the AppSync Api
getApi Result
The following output properties are available:
- 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 - Event
Config Pulumi.Aws Native. App Sync. Outputs. 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. Outputs. Tag> - A set of tags (key-value pairs) for this API.
- 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
Api
Dns Map - 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.
- 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
Api
Dns Map - 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.
- 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
Api
Dns Map - 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.
- api_
arn str - The Amazon Resource Name (ARN) of the AppSync Api
- api_
id str - The unique identifier for the AppSync Api generated by the service
- dns
Api
Dns Map - event_
config ApiEvent Config - 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[root_Tag]
- A set of tags (key-value pairs) for this API.
- 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
- 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.
Supporting Types
ApiAuthMode
ApiAuthProvider
- 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
ApiCognitoConfig
- 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
ApiEventConfig
- 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
- 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
ApiLambdaAuthorizerConfig
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
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.