Show / Hide Table of Contents

Interface IEventApiProps

Properties for an AppSync Event API.

Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEventApiProps
Syntax (vb)
Public Interface IEventApiProps
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.Lambda;
            Function handler;


            var iamProvider = new AppSyncAuthProvider {
                AuthorizationType = AppSyncAuthorizationType.IAM
            };

            var apiKeyProvider = new AppSyncAuthProvider {
                AuthorizationType = AppSyncAuthorizationType.API_KEY
            };

            /* API with IAM and API Key providers.
             * Connection, default publish and default subscribe
             * can be done with either IAM and API Key.
             */
            var api = new EventApi(this, "api", new EventApiProps {
                ApiName = "api",
                AuthorizationConfig = new EventApiAuthConfig {
                    // set auth providers
                    AuthProviders = new [] { iamProvider, apiKeyProvider }
                }
            });

            api.AddChannelNamespace("default");

Synopsis

Properties

ApiName

the name of the Event API.

AuthorizationConfig

Optional authorization configuration.

DomainName

The domain name configuration for the Event API.

LogConfig

Logging configuration for this api.

OwnerContact

The owner contact information for an API resource.

Properties

ApiName

the name of the Event API.

string ApiName { get; }
Property Value

string

Remarks

ExampleMetadata: infused

AuthorizationConfig

Optional authorization configuration.

IEventApiAuthConfig? AuthorizationConfig { get; }
Property Value

IEventApiAuthConfig

Remarks

Default: - API Key authorization

DomainName

The domain name configuration for the Event API.

IAppSyncDomainOptions? DomainName { get; }
Property Value

IAppSyncDomainOptions

Remarks

The Route 53 hosted zone and CName DNS record must be configured in addition to this setting to enable custom domain URL

Default: - no domain name

LogConfig

Logging configuration for this api.

IAppSyncLogConfig? LogConfig { get; }
Property Value

IAppSyncLogConfig

Remarks

Default: - None

OwnerContact

The owner contact information for an API resource.

string? OwnerContact { get; }
Property Value

string

Remarks

This field accepts any string input with a length of 0 - 256 characters.

Default: - No owner contact.

Back to top Generated by DocFX