package types

import "github.com/aws/aws-sdk-go-v2/service/appsync/types"

Index

Types

type AccessDeniedException

type AccessDeniedException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You don't have access to perform this operation on this resource.

func (*AccessDeniedException) Error

func (e *AccessDeniedException) Error() string

func (*AccessDeniedException) ErrorCode

func (e *AccessDeniedException) ErrorCode() string

func (*AccessDeniedException) ErrorFault

func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault

func (*AccessDeniedException) ErrorMessage

func (e *AccessDeniedException) ErrorMessage() string

type AdditionalAuthenticationProvider

type AdditionalAuthenticationProvider struct {

	// The authentication type: API key, Identity and Access Management (IAM), OpenID
	// Connect (OIDC), Amazon Cognito user pools, or Lambda.
	AuthenticationType AuthenticationType

	// Configuration for Lambda function authorization.
	LambdaAuthorizerConfig *LambdaAuthorizerConfig

	// The OIDC configuration.
	OpenIDConnectConfig *OpenIDConnectConfig

	// The Amazon Cognito user pool configuration.
	UserPoolConfig *CognitoUserPoolConfig
	// contains filtered or unexported fields
}

Describes an additional authentication provider.

type ApiAssociation

type ApiAssociation struct {

	// The API ID.
	ApiId *string

	// Identifies the status of an association.
	//
	// * PROCESSING: The API association is
	// being created. You cannot modify association requests during processing.
	//
	// *
	// SUCCESS: The API association was successful. You can modify associations after
	// success.
	//
	// * FAILED: The API association has failed. You can modify associations
	// after failure.
	AssociationStatus AssociationStatus

	// Details about the last deployment status.
	DeploymentDetail *string

	// The domain name.
	DomainName *string
	// contains filtered or unexported fields
}

Describes an ApiAssociation object.

type ApiCache

type ApiCache struct {

	// Caching behavior.
	//
	// * FULL_REQUEST_CACHING: All requests are fully cached.
	//
	// *
	// PER_RESOLVER_CACHING: Individual resolvers that you specify are cached.
	ApiCachingBehavior ApiCachingBehavior

	// At-rest encryption flag for cache. You cannot update this setting after
	// creation.
	AtRestEncryptionEnabled bool

	// The cache instance status.
	//
	// * AVAILABLE: The instance is available for use.
	//
	// *
	// CREATING: The instance is currently creating.
	//
	// * DELETING: The instance is
	// currently deleting.
	//
	// * MODIFYING: The instance is currently modifying.
	//
	// *
	// FAILED: The instance has failed creation.
	Status ApiCacheStatus

	// Transit encryption flag when connecting to cache. You cannot update this setting
	// after creation.
	TransitEncryptionEnabled bool

	// TTL in seconds for cache entries. Valid values are 1–3,600 seconds.
	Ttl int64

	// The cache instance type. Valid values are
	//
	// * SMALL
	//
	// * MEDIUM
	//
	// * LARGE
	//
	// *
	// XLARGE
	//
	// * LARGE_2X
	//
	// * LARGE_4X
	//
	// * LARGE_8X (not available in all regions)
	//
	// *
	// LARGE_12X
	//
	// Historically, instance types were identified by an EC2-style value.
	// As of July 2020, this is deprecated, and the generic identifiers above should be
	// used. The following legacy instance types are available, but their use is
	// discouraged:
	//
	// * T2_SMALL: A t2.small instance type.
	//
	// * T2_MEDIUM: A t2.medium
	// instance type.
	//
	// * R4_LARGE: A r4.large instance type.
	//
	// * R4_XLARGE: A r4.xlarge
	// instance type.
	//
	// * R4_2XLARGE: A r4.2xlarge instance type.
	//
	// * R4_4XLARGE: A
	// r4.4xlarge instance type.
	//
	// * R4_8XLARGE: A r4.8xlarge instance type.
	Type ApiCacheType
	// contains filtered or unexported fields
}

The ApiCache object.

type ApiCacheStatus

type ApiCacheStatus string
const (
	ApiCacheStatusAvailable ApiCacheStatus = "AVAILABLE"
	ApiCacheStatusCreating  ApiCacheStatus = "CREATING"
	ApiCacheStatusDeleting  ApiCacheStatus = "DELETING"
	ApiCacheStatusModifying ApiCacheStatus = "MODIFYING"
	ApiCacheStatusFailed    ApiCacheStatus = "FAILED"
)

Enum values for ApiCacheStatus

func (ApiCacheStatus) Values

func (ApiCacheStatus) Values() []ApiCacheStatus

Values returns all known values for ApiCacheStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ApiCacheType

type ApiCacheType string
const (
	ApiCacheTypeT2Small   ApiCacheType = "T2_SMALL"
	ApiCacheTypeT2Medium  ApiCacheType = "T2_MEDIUM"
	ApiCacheTypeR4Large   ApiCacheType = "R4_LARGE"
	ApiCacheTypeR4Xlarge  ApiCacheType = "R4_XLARGE"
	ApiCacheTypeR42xlarge ApiCacheType = "R4_2XLARGE"
	ApiCacheTypeR44xlarge ApiCacheType = "R4_4XLARGE"
	ApiCacheTypeR48xlarge ApiCacheType = "R4_8XLARGE"
	ApiCacheTypeSmall     ApiCacheType = "SMALL"
	ApiCacheTypeMedium    ApiCacheType = "MEDIUM"
	ApiCacheTypeLarge     ApiCacheType = "LARGE"
	ApiCacheTypeXlarge    ApiCacheType = "XLARGE"
	ApiCacheTypeLarge2x   ApiCacheType = "LARGE_2X"
	ApiCacheTypeLarge4x   ApiCacheType = "LARGE_4X"
	ApiCacheTypeLarge8x   ApiCacheType = "LARGE_8X"
	ApiCacheTypeLarge12x  ApiCacheType = "LARGE_12X"
)

Enum values for ApiCacheType

func (ApiCacheType) Values

func (ApiCacheType) Values() []ApiCacheType

Values returns all known values for ApiCacheType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ApiCachingBehavior

type ApiCachingBehavior string
const (
	ApiCachingBehaviorFullRequestCaching ApiCachingBehavior = "FULL_REQUEST_CACHING"
	ApiCachingBehaviorPerResolverCaching ApiCachingBehavior = "PER_RESOLVER_CACHING"
)

Enum values for ApiCachingBehavior

func (ApiCachingBehavior) Values

Values returns all known values for ApiCachingBehavior. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ApiKey

type ApiKey struct {

	// The time after which the API key is deleted. The date is represented as seconds
	// since the epoch, rounded down to the nearest hour.
	Deletes int64

	// A description of the purpose of the API key.
	Description *string

	// The time after which the API key expires. The date is represented as seconds
	// since the epoch, rounded down to the nearest hour.
	Expires int64

	// The API key ID.
	Id *string
	// contains filtered or unexported fields
}

Describes an API key. Customers invoke AppSync GraphQL API operations with API keys as an identity mechanism. There are two key versions: da1: We introduced this version at launch in November 2017. These keys always expire after 7 days. Amazon DynamoDB TTL manages key expiration. These keys ceased to be valid after February 21, 2018, and they should no longer be used.

* ListApiKeys returns the expiration time in milliseconds.

* CreateApiKey returns the expiration time in milliseconds.

* UpdateApiKey is not available for this key version.

* DeleteApiKey deletes the item from the table.

* Expiration is stored in DynamoDB as milliseconds. This results in a bug where keys are not automatically deleted because DynamoDB expects the TTL to be stored in seconds. As a one-time action, we deleted these keys from the table on February 21, 2018.

da2: We introduced this version in February 2018 when AppSync added support to extend key expiration.

* ListApiKeys returns the expiration time and deletion time in seconds.

* CreateApiKey returns the expiration time and deletion time in seconds and accepts a user-provided expiration time in seconds.

* UpdateApiKey returns the expiration time and and deletion time in seconds and accepts a user-provided expiration time in seconds. Expired API keys are kept for 60 days after the expiration time. You can update the key expiration time as long as the key isn't deleted.

* DeleteApiKey deletes the item from the table.

* Expiration is stored in DynamoDB as seconds. After the expiration time, using the key to authenticate will fail. However, you can reinstate the key before deletion.

* Deletion is stored in DynamoDB as seconds. The key is deleted after deletion time.

type ApiKeyLimitExceededException

type ApiKeyLimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The API key exceeded a limit. Try your request again.

func (*ApiKeyLimitExceededException) Error

func (*ApiKeyLimitExceededException) ErrorCode

func (e *ApiKeyLimitExceededException) ErrorCode() string

func (*ApiKeyLimitExceededException) ErrorFault

func (*ApiKeyLimitExceededException) ErrorMessage

func (e *ApiKeyLimitExceededException) ErrorMessage() string

type ApiKeyValidityOutOfBoundsException

type ApiKeyValidityOutOfBoundsException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The API key expiration must be set to a value between 1 and 365 days from creation (for CreateApiKey) or from update (for UpdateApiKey).

func (*ApiKeyValidityOutOfBoundsException) Error

func (*ApiKeyValidityOutOfBoundsException) ErrorCode

func (*ApiKeyValidityOutOfBoundsException) ErrorFault

func (*ApiKeyValidityOutOfBoundsException) ErrorMessage

func (e *ApiKeyValidityOutOfBoundsException) ErrorMessage() string

type ApiLimitExceededException

type ApiLimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The GraphQL API exceeded a limit. Try your request again.

func (*ApiLimitExceededException) Error

func (e *ApiLimitExceededException) Error() string

func (*ApiLimitExceededException) ErrorCode

func (e *ApiLimitExceededException) ErrorCode() string

func (*ApiLimitExceededException) ErrorFault

func (*ApiLimitExceededException) ErrorMessage

func (e *ApiLimitExceededException) ErrorMessage() string

type AppSyncRuntime

type AppSyncRuntime struct {

	// The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.
	//
	// This member is required.
	Name RuntimeName

	// The version of the runtime to use. Currently, the only allowed version is 1.0.0.
	//
	// This member is required.
	RuntimeVersion *string
	// contains filtered or unexported fields
}

Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or Amazon Web Services AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.

type AssociationStatus

type AssociationStatus string
const (
	AssociationStatusProcessing AssociationStatus = "PROCESSING"
	AssociationStatusFailed     AssociationStatus = "FAILED"
	AssociationStatusSuccess    AssociationStatus = "SUCCESS"
)

Enum values for AssociationStatus

func (AssociationStatus) Values

Values returns all known values for AssociationStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type AuthenticationType

type AuthenticationType string
const (
	AuthenticationTypeApiKey                 AuthenticationType = "API_KEY"
	AuthenticationTypeAwsIam                 AuthenticationType = "AWS_IAM"
	AuthenticationTypeAmazonCognitoUserPools AuthenticationType = "AMAZON_COGNITO_USER_POOLS"
	AuthenticationTypeOpenidConnect          AuthenticationType = "OPENID_CONNECT"
	AuthenticationTypeAwsLambda              AuthenticationType = "AWS_LAMBDA"
)

Enum values for AuthenticationType

func (AuthenticationType) Values

Values returns all known values for AuthenticationType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type AuthorizationConfig

type AuthorizationConfig struct {

	// The authorization type that the HTTP endpoint requires.
	//
	// * AWS_IAM: The
	// authorization type is Signature Version 4 (SigV4).
	//
	// This member is required.
	AuthorizationType AuthorizationType

	// The Identity and Access Management (IAM) settings.
	AwsIamConfig *AwsIamConfig
	// contains filtered or unexported fields
}

The authorization configuration in case the HTTP endpoint requires authorization.

type AuthorizationType

type AuthorizationType string
const (
	AuthorizationTypeAwsIam AuthorizationType = "AWS_IAM"
)

Enum values for AuthorizationType

func (AuthorizationType) Values

Values returns all known values for AuthorizationType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type AwsIamConfig

type AwsIamConfig struct {

	// The signing Amazon Web Services Region for IAM authorization.
	SigningRegion *string

	// The signing service name for IAM authorization.
	SigningServiceName *string
	// contains filtered or unexported fields
}

The Identity and Access Management (IAM) configuration.

type BadRequestDetail

type BadRequestDetail struct {

	// Contains the list of errors in the request.
	CodeErrors []CodeError
	// contains filtered or unexported fields
}

Provides further details for the reason behind the bad request. For reason type CODE_ERROR, the detail will contain a list of code errors.

type BadRequestException

type BadRequestException struct {
	Message *string

	ErrorCodeOverride *string

	Reason BadRequestReason
	Detail *BadRequestDetail
	// contains filtered or unexported fields
}

The request is not well formed. For example, a value is invalid or a required field is missing. Check the field values, and then try again.

func (*BadRequestException) Error

func (e *BadRequestException) Error() string

func (*BadRequestException) ErrorCode

func (e *BadRequestException) ErrorCode() string

func (*BadRequestException) ErrorFault

func (e *BadRequestException) ErrorFault() smithy.ErrorFault

func (*BadRequestException) ErrorMessage

func (e *BadRequestException) ErrorMessage() string

type BadRequestReason

type BadRequestReason string
const (
	BadRequestReasonCodeError BadRequestReason = "CODE_ERROR"
)

Enum values for BadRequestReason

func (BadRequestReason) Values

Values returns all known values for BadRequestReason. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type CachingConfig

type CachingConfig struct {

	// The TTL in seconds for a resolver that has caching activated. Valid values are
	// 1–3,600 seconds.
	//
	// This member is required.
	Ttl int64

	// The caching keys for a resolver that has caching activated. Valid values are
	// entries from the $context.arguments, $context.source, and $context.identity
	// maps.
	CachingKeys []string
	// contains filtered or unexported fields
}

The caching configuration for a resolver that has caching activated.

type CodeError

type CodeError struct {

	// The type of code error. Examples include, but aren't limited to: LINT_ERROR,
	// PARSER_ERROR.
	ErrorType *string

	// The line, column, and span location of the error in the code.
	Location *CodeErrorLocation

	// A user presentable error. Examples include, but aren't limited to: Parsing
	// error: Unterminated string literal.
	Value *string
	// contains filtered or unexported fields
}

Describes an AppSync error.

type CodeErrorLocation

type CodeErrorLocation struct {

	// The column number in the code. Defaults to 0 if unknown.
	Column int32

	// The line number in the code. Defaults to 0 if unknown.
	Line int32

	// The span/length of the error. Defaults to -1 if unknown.
	Span int32
	// contains filtered or unexported fields
}

Describes the location of the error in a code sample.

type CognitoUserPoolConfig

type CognitoUserPoolConfig struct {

	// The Amazon Web Services Region in which the user pool was created.
	//
	// This member is required.
	AwsRegion *string

	// The user pool ID.
	//
	// This member is required.
	UserPoolId *string

	// A regular expression for validating the incoming Amazon Cognito user pool app
	// client ID. If this value isn't set, no filtering is applied.
	AppIdClientRegex *string
	// contains filtered or unexported fields
}

Describes an Amazon Cognito user pool configuration.

type ConcurrentModificationException

type ConcurrentModificationException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

Another modification is in progress at this time and it must complete before you can make your change.

func (*ConcurrentModificationException) Error

func (*ConcurrentModificationException) ErrorCode

func (e *ConcurrentModificationException) ErrorCode() string

func (*ConcurrentModificationException) ErrorFault

func (*ConcurrentModificationException) ErrorMessage

func (e *ConcurrentModificationException) ErrorMessage() string

type ConflictDetectionType

type ConflictDetectionType string
const (
	ConflictDetectionTypeVersion ConflictDetectionType = "VERSION"
	ConflictDetectionTypeNone    ConflictDetectionType = "NONE"
)

Enum values for ConflictDetectionType

func (ConflictDetectionType) Values

Values returns all known values for ConflictDetectionType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ConflictHandlerType

type ConflictHandlerType string
const (
	ConflictHandlerTypeOptimisticConcurrency ConflictHandlerType = "OPTIMISTIC_CONCURRENCY"
	ConflictHandlerTypeLambda                ConflictHandlerType = "LAMBDA"
	ConflictHandlerTypeAutomerge             ConflictHandlerType = "AUTOMERGE"
	ConflictHandlerTypeNone                  ConflictHandlerType = "NONE"
)

Enum values for ConflictHandlerType

func (ConflictHandlerType) Values

Values returns all known values for ConflictHandlerType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type DataSource

type DataSource struct {

	// The data source Amazon Resource Name (ARN).
	DataSourceArn *string

	// The description of the data source.
	Description *string

	// DynamoDB settings.
	DynamodbConfig *DynamodbDataSourceConfig

	// Amazon OpenSearch Service settings.
	ElasticsearchConfig *ElasticsearchDataSourceConfig

	// Amazon EventBridge settings.
	EventBridgeConfig *EventBridgeDataSourceConfig

	// HTTP endpoint settings.
	HttpConfig *HttpDataSourceConfig

	// Lambda settings.
	LambdaConfig *LambdaDataSourceConfig

	// The name of the data source.
	Name *string

	// Amazon OpenSearch Service settings.
	OpenSearchServiceConfig *OpenSearchServiceDataSourceConfig

	// Relational database settings.
	RelationalDatabaseConfig *RelationalDatabaseDataSourceConfig

	// The Identity and Access Management (IAM) service role Amazon Resource Name (ARN)
	// for the data source. The system assumes this role when accessing the data
	// source.
	ServiceRoleArn *string

	// The type of the data source.
	//
	// * AWS_LAMBDA: The data source is an Lambda
	// function.
	//
	// * AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.
	//
	// *
	// AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain.
	//
	// *
	// AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service
	// domain.
	//
	// * AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge
	// configuration.
	//
	// * NONE: There is no data source. Use this type when you want to
	// invoke a GraphQL operation without connecting to a data source, such as when
	// you're performing data transformation with resolvers or invoking a subscription
	// from a mutation.
	//
	// * HTTP: The data source is an HTTP endpoint.
	//
	// *
	// RELATIONAL_DATABASE: The data source is a relational database.
	Type DataSourceType
	// contains filtered or unexported fields
}

Describes a data source.

type DataSourceType

type DataSourceType string
const (
	DataSourceTypeAwsLambda               DataSourceType = "AWS_LAMBDA"
	DataSourceTypeAmazonDynamodb          DataSourceType = "AMAZON_DYNAMODB"
	DataSourceTypeAmazonElasticsearch     DataSourceType = "AMAZON_ELASTICSEARCH"
	DataSourceTypeNone                    DataSourceType = "NONE"
	DataSourceTypeHttp                    DataSourceType = "HTTP"
	DataSourceTypeRelationalDatabase      DataSourceType = "RELATIONAL_DATABASE"
	DataSourceTypeAmazonOpensearchService DataSourceType = "AMAZON_OPENSEARCH_SERVICE"
	DataSourceTypeAmazonEventbridge       DataSourceType = "AMAZON_EVENTBRIDGE"
)

Enum values for DataSourceType

func (DataSourceType) Values

func (DataSourceType) Values() []DataSourceType

Values returns all known values for DataSourceType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type DefaultAction

type DefaultAction string
const (
	DefaultActionAllow DefaultAction = "ALLOW"
	DefaultActionDeny  DefaultAction = "DENY"
)

Enum values for DefaultAction

func (DefaultAction) Values

func (DefaultAction) Values() []DefaultAction

Values returns all known values for DefaultAction. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type DeltaSyncConfig

type DeltaSyncConfig struct {

	// The number of minutes that an Item is stored in the data source.
	BaseTableTTL int64

	// The Delta Sync table name.
	DeltaSyncTableName *string

	// The number of minutes that a Delta Sync log entry is stored in the Delta Sync
	// table.
	DeltaSyncTableTTL int64
	// contains filtered or unexported fields
}

Describes a Delta Sync configuration.

type DomainNameConfig

type DomainNameConfig struct {

	// The domain name that AppSync provides.
	AppsyncDomainName *string

	// The Amazon Resource Name (ARN) of the certificate. This can be an Certificate
	// Manager (ACM) certificate or an Identity and Access Management (IAM) server
	// certificate.
	CertificateArn *string

	// A description of the DomainName configuration.
	Description *string

	// The domain name.
	DomainName *string

	// The ID of your Amazon Route 53 hosted zone.
	HostedZoneId *string
	// contains filtered or unexported fields
}

Describes a configuration for a custom domain.

type DynamodbDataSourceConfig

type DynamodbDataSourceConfig struct {

	// The Amazon Web Services Region.
	//
	// This member is required.
	AwsRegion *string

	// The table name.
	//
	// This member is required.
	TableName *string

	// The DeltaSyncConfig for a versioned data source.
	DeltaSyncConfig *DeltaSyncConfig

	// Set to TRUE to use Amazon Cognito credentials with this data source.
	UseCallerCredentials bool

	// Set to TRUE to use Conflict Detection and Resolution with this data source.
	Versioned bool
	// contains filtered or unexported fields
}

Describes an Amazon DynamoDB data source configuration.

type ElasticsearchDataSourceConfig

type ElasticsearchDataSourceConfig struct {

	// The Amazon Web Services Region.
	//
	// This member is required.
	AwsRegion *string

	// The endpoint.
	//
	// This member is required.
	Endpoint *string
	// contains filtered or unexported fields
}

Describes an OpenSearch data source configuration. As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use OpenSearchServiceDataSourceConfig to specify an OpenSearch data source.

type ErrorDetail

type ErrorDetail struct {

	// The error payload.
	Message *string
	// contains filtered or unexported fields
}

Contains the list of errors generated. When using JavaScript, this will apply to the request or response function evaluation.

type EvaluateCodeErrorDetail

type EvaluateCodeErrorDetail struct {

	// Contains the list of CodeError objects.
	CodeErrors []CodeError

	// The error payload.
	Message *string
	// contains filtered or unexported fields
}

Contains the list of errors from a code evaluation response.

type EventBridgeDataSourceConfig

type EventBridgeDataSourceConfig struct {

	// The ARN of the event bus. For more information about event buses, see Amazon
	// EventBridge event buses
	// (https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html).
	//
	// This member is required.
	EventBusArn *string
	// contains filtered or unexported fields
}

Describes an Amazon EventBridge bus data source configuration.

type FieldLogLevel

type FieldLogLevel string
const (
	FieldLogLevelNone  FieldLogLevel = "NONE"
	FieldLogLevelError FieldLogLevel = "ERROR"
	FieldLogLevelAll   FieldLogLevel = "ALL"
)

Enum values for FieldLogLevel

func (FieldLogLevel) Values

func (FieldLogLevel) Values() []FieldLogLevel

Values returns all known values for FieldLogLevel. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type FunctionConfiguration

type FunctionConfiguration struct {

	// The function code that contains the request and response functions. When code is
	// used, the runtime is required. The runtime value must be APPSYNC_JS.
	Code *string

	// The name of the DataSource.
	DataSourceName *string

	// The Function description.
	Description *string

	// The Amazon Resource Name (ARN) of the Function object.
	FunctionArn *string

	// A unique ID representing the Function object.
	FunctionId *string

	// The version of the request mapping template. Currently, only the 2018-05-29
	// version of the template is supported.
	FunctionVersion *string

	// The maximum batching size for a resolver.
	MaxBatchSize int32

	// The name of the Function object.
	Name *string

	// The Function request mapping template. Functions support only the 2018-05-29
	// version of the request mapping template.
	RequestMappingTemplate *string

	// The Function response mapping template.
	ResponseMappingTemplate *string

	// Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or
	// Amazon Web Services AppSync function. Specifies the name and version of the
	// runtime to use. Note that if a runtime is specified, code must also be
	// specified.
	Runtime *AppSyncRuntime

	// Describes a Sync configuration for a resolver. Specifies which Conflict
	// Detection strategy and Resolution strategy to use when the resolver is invoked.
	SyncConfig *SyncConfig
	// contains filtered or unexported fields
}

A function is a reusable entity. You can use multiple functions to compose the resolver logic.

type GraphQLSchemaException

type GraphQLSchemaException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The GraphQL schema is not valid.

func (*GraphQLSchemaException) Error

func (e *GraphQLSchemaException) Error() string

func (*GraphQLSchemaException) ErrorCode

func (e *GraphQLSchemaException) ErrorCode() string

func (*GraphQLSchemaException) ErrorFault

func (e *GraphQLSchemaException) ErrorFault() smithy.ErrorFault

func (*GraphQLSchemaException) ErrorMessage

func (e *GraphQLSchemaException) ErrorMessage() string

type GraphqlApi

type GraphqlApi struct {

	// A list of additional authentication providers for the GraphqlApi API.
	AdditionalAuthenticationProviders []AdditionalAuthenticationProvider

	// The API ID.
	ApiId *string

	// The Amazon Resource Name (ARN).
	Arn *string

	// The authentication type.
	AuthenticationType AuthenticationType

	// Configuration for Lambda function authorization.
	LambdaAuthorizerConfig *LambdaAuthorizerConfig

	// The Amazon CloudWatch Logs configuration.
	LogConfig *LogConfig

	// The API name.
	Name *string

	// The OpenID Connect configuration.
	OpenIDConnectConfig *OpenIDConnectConfig

	// The tags.
	Tags map[string]string

	// The URIs.
	Uris map[string]string

	// The Amazon Cognito user pool configuration.
	UserPoolConfig *UserPoolConfig

	// The ARN of the WAF access control list (ACL) associated with this GraphqlApi, if
	// one exists.
	WafWebAclArn *string

	// A flag indicating whether to use X-Ray tracing for this GraphqlApi.
	XrayEnabled bool
	// contains filtered or unexported fields
}

Describes a GraphQL API.

type HttpDataSourceConfig

type HttpDataSourceConfig struct {

	// The authorization configuration in case the HTTP endpoint requires
	// authorization.
	AuthorizationConfig *AuthorizationConfig

	// The HTTP URL endpoint. You can specify either the domain name or IP, and port
	// combination, and the URL scheme must be HTTP or HTTPS. If you don't specify the
	// port, AppSync uses the default port 80 for the HTTP endpoint and port 443 for
	// HTTPS endpoints.
	Endpoint *string
	// contains filtered or unexported fields
}

Describes an HTTP data source configuration.

type InternalFailureException

type InternalFailureException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

An internal AppSync error occurred. Try your request again.

func (*InternalFailureException) Error

func (e *InternalFailureException) Error() string

func (*InternalFailureException) ErrorCode

func (e *InternalFailureException) ErrorCode() string

func (*InternalFailureException) ErrorFault

func (e *InternalFailureException) ErrorFault() smithy.ErrorFault

func (*InternalFailureException) ErrorMessage

func (e *InternalFailureException) ErrorMessage() string

type LambdaAuthorizerConfig

type LambdaAuthorizerConfig struct {

	// The Amazon Resource Name (ARN) of the Lambda function to be called for
	// authorization. This can be a standard Lambda ARN, a version ARN (.../v3), or an
	// alias ARN. Note: This Lambda function must have the following resource-based
	// policy assigned to it. When configuring Lambda authorizers in the console, this
	// is done for you. To use the Command Line Interface (CLI), run the following: aws
	// lambda add-permission --function-name
	// "arn:aws:lambda:us-east-2:111122223333:function:my-function" --statement-id
	// "appsync" --principal appsync.amazonaws.com --action lambda:InvokeFunction
	//
	// This member is required.
	AuthorizerUri *string

	// The number of seconds a response should be cached for. The default is 5 minutes
	// (300 seconds). The Lambda function can override this by returning a ttlOverride
	// key in its response. A value of 0 disables caching of responses.
	AuthorizerResultTtlInSeconds int32

	// A regular expression for validation of tokens before the Lambda function is
	// called.
	IdentityValidationExpression *string
	// contains filtered or unexported fields
}

A LambdaAuthorizerConfig specifies how to authorize AppSync API access when using the AWS_LAMBDA authorizer mode. Be aware that an AppSync API can have only one Lambda authorizer configured at a time.

type LambdaConflictHandlerConfig

type LambdaConflictHandlerConfig struct {

	// The Amazon Resource Name (ARN) for the Lambda function to use as the Conflict
	// Handler.
	LambdaConflictHandlerArn *string
	// contains filtered or unexported fields
}

The LambdaConflictHandlerConfig object when configuring LAMBDA as the Conflict Handler.

type LambdaDataSourceConfig

type LambdaDataSourceConfig struct {

	// The Amazon Resource Name (ARN) for the Lambda function.
	//
	// This member is required.
	LambdaFunctionArn *string
	// contains filtered or unexported fields
}

Describes an Lambda data source configuration.

type LimitExceededException

type LimitExceededException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request exceeded a limit. Try your request again.

func (*LimitExceededException) Error

func (e *LimitExceededException) Error() string

func (*LimitExceededException) ErrorCode

func (e *LimitExceededException) ErrorCode() string

func (*LimitExceededException) ErrorFault

func (e *LimitExceededException) ErrorFault() smithy.ErrorFault

func (*LimitExceededException) ErrorMessage

func (e *LimitExceededException) ErrorMessage() string

type LogConfig

type LogConfig struct {

	// The service role that AppSync assumes to publish to CloudWatch logs in your
	// account.
	//
	// This member is required.
	CloudWatchLogsRoleArn *string

	// The field logging level. Values can be NONE, ERROR, or ALL.
	//
	// * NONE: No
	// field-level logs are captured.
	//
	// * ERROR: Logs the following information only for
	// the fields that are in error:
	//
	// * The error section in the server response.
	//
	// *
	// Field-level errors.
	//
	// * The generated request/response functions that got
	// resolved for error fields.
	//
	// * ALL: The following information is logged for all
	// fields in the query:
	//
	// * Field-level tracing information.
	//
	// * The generated
	// request/response functions that got resolved for each field.
	//
	// This member is required.
	FieldLogLevel FieldLogLevel

	// Set to TRUE to exclude sections that contain information such as headers,
	// context, and evaluated mapping templates, regardless of logging level.
	ExcludeVerboseContent bool
	// contains filtered or unexported fields
}

The Amazon CloudWatch Logs configuration.

type NotFoundException

type NotFoundException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The resource specified in the request was not found. Check the resource, and then try again.

func (*NotFoundException) Error

func (e *NotFoundException) Error() string

func (*NotFoundException) ErrorCode

func (e *NotFoundException) ErrorCode() string

func (*NotFoundException) ErrorFault

func (e *NotFoundException) ErrorFault() smithy.ErrorFault

func (*NotFoundException) ErrorMessage

func (e *NotFoundException) ErrorMessage() string

type OpenIDConnectConfig

type OpenIDConnectConfig struct {

	// The issuer for the OIDC configuration. The issuer returned by discovery must
	// exactly match the value of iss in the ID token.
	//
	// This member is required.
	Issuer *string

	// The number of milliseconds that a token is valid after being authenticated.
	AuthTTL int64

	// The client identifier of the relying party at the OpenID identity provider. This
	// identifier is typically obtained when the relying party is registered with the
	// OpenID identity provider. You can specify a regular expression so that AppSync
	// can validate against multiple client identifiers at a time.
	ClientId *string

	// The number of milliseconds that a token is valid after it's issued to a user.
	IatTTL int64
	// contains filtered or unexported fields
}

Describes an OpenID Connect (OIDC) configuration.

type OpenSearchServiceDataSourceConfig

type OpenSearchServiceDataSourceConfig struct {

	// The Amazon Web Services Region.
	//
	// This member is required.
	AwsRegion *string

	// The endpoint.
	//
	// This member is required.
	Endpoint *string
	// contains filtered or unexported fields
}

Describes an OpenSearch data source configuration.

type OutputType

type OutputType string
const (
	OutputTypeSdl  OutputType = "SDL"
	OutputTypeJson OutputType = "JSON"
)

Enum values for OutputType

func (OutputType) Values

func (OutputType) Values() []OutputType

Values returns all known values for OutputType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type PipelineConfig

type PipelineConfig struct {

	// A list of Function objects.
	Functions []string
	// contains filtered or unexported fields
}

The pipeline configuration for a resolver of kind PIPELINE.

type RdsHttpEndpointConfig

type RdsHttpEndpointConfig struct {

	// Amazon Web Services Region for Amazon RDS HTTP endpoint.
	AwsRegion *string

	// Amazon Web Services secret store Amazon Resource Name (ARN) for database
	// credentials.
	AwsSecretStoreArn *string

	// Logical database name.
	DatabaseName *string

	// Amazon RDS cluster Amazon Resource Name (ARN).
	DbClusterIdentifier *string

	// Logical schema name.
	Schema *string
	// contains filtered or unexported fields
}

The Amazon Relational Database Service (Amazon RDS) HTTP endpoint configuration.

type RelationalDatabaseDataSourceConfig

type RelationalDatabaseDataSourceConfig struct {

	// Amazon RDS HTTP endpoint settings.
	RdsHttpEndpointConfig *RdsHttpEndpointConfig

	// Source type for the relational database.
	//
	// * RDS_HTTP_ENDPOINT: The relational
	// database source type is an Amazon Relational Database Service (Amazon RDS) HTTP
	// endpoint.
	RelationalDatabaseSourceType RelationalDatabaseSourceType
	// contains filtered or unexported fields
}

Describes a relational database data source configuration.

type RelationalDatabaseSourceType

type RelationalDatabaseSourceType string
const (
	RelationalDatabaseSourceTypeRdsHttpEndpoint RelationalDatabaseSourceType = "RDS_HTTP_ENDPOINT"
)

Enum values for RelationalDatabaseSourceType

func (RelationalDatabaseSourceType) Values

Values returns all known values for RelationalDatabaseSourceType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type Resolver

type Resolver struct {

	// The caching configuration for the resolver.
	CachingConfig *CachingConfig

	// The resolver code that contains the request and response functions. When code is
	// used, the runtime is required. The runtime value must be APPSYNC_JS.
	Code *string

	// The resolver data source name.
	DataSourceName *string

	// The resolver field name.
	FieldName *string

	// The resolver type.
	//
	// * UNIT: A UNIT resolver type. A UNIT resolver is the default
	// resolver type. You can use a UNIT resolver to run a GraphQL query against a
	// single data source.
	//
	// * PIPELINE: A PIPELINE resolver type. You can use a
	// PIPELINE resolver to invoke a series of Function objects in a serial manner. You
	// can use a pipeline resolver to run a GraphQL query against multiple data
	// sources.
	Kind ResolverKind

	// The maximum batching size for a resolver.
	MaxBatchSize int32

	// The PipelineConfig.
	PipelineConfig *PipelineConfig

	// The request mapping template.
	RequestMappingTemplate *string

	// The resolver Amazon Resource Name (ARN).
	ResolverArn *string

	// The response mapping template.
	ResponseMappingTemplate *string

	// Describes a runtime used by an Amazon Web Services AppSync pipeline resolver or
	// Amazon Web Services AppSync function. Specifies the name and version of the
	// runtime to use. Note that if a runtime is specified, code must also be
	// specified.
	Runtime *AppSyncRuntime

	// The SyncConfig for a resolver attached to a versioned data source.
	SyncConfig *SyncConfig

	// The resolver type name.
	TypeName *string
	// contains filtered or unexported fields
}

Describes a resolver.

type ResolverKind

type ResolverKind string
const (
	ResolverKindUnit     ResolverKind = "UNIT"
	ResolverKindPipeline ResolverKind = "PIPELINE"
)

Enum values for ResolverKind

func (ResolverKind) Values

func (ResolverKind) Values() []ResolverKind

Values returns all known values for ResolverKind. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type RuntimeName

type RuntimeName string
const (
	RuntimeNameAppsyncJs RuntimeName = "APPSYNC_JS"
)

Enum values for RuntimeName

func (RuntimeName) Values

func (RuntimeName) Values() []RuntimeName

Values returns all known values for RuntimeName. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type SchemaStatus

type SchemaStatus string
const (
	SchemaStatusProcessing    SchemaStatus = "PROCESSING"
	SchemaStatusActive        SchemaStatus = "ACTIVE"
	SchemaStatusDeleting      SchemaStatus = "DELETING"
	SchemaStatusFailed        SchemaStatus = "FAILED"
	SchemaStatusSuccess       SchemaStatus = "SUCCESS"
	SchemaStatusNotApplicable SchemaStatus = "NOT_APPLICABLE"
)

Enum values for SchemaStatus

func (SchemaStatus) Values

func (SchemaStatus) Values() []SchemaStatus

Values returns all known values for SchemaStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type SyncConfig

type SyncConfig struct {

	// The Conflict Detection strategy to use.
	//
	// * VERSION: Detect conflicts based on
	// object versions for this resolver.
	//
	// * NONE: Do not detect conflicts when
	// invoking this resolver.
	ConflictDetection ConflictDetectionType

	// The Conflict Resolution strategy to perform in the event of a conflict.
	//
	// *
	// OPTIMISTIC_CONCURRENCY: Resolve conflicts by rejecting mutations when versions
	// don't match the latest version at the server.
	//
	// * AUTOMERGE: Resolve conflicts
	// with the Automerge conflict resolution strategy.
	//
	// * LAMBDA: Resolve conflicts
	// with an Lambda function supplied in the LambdaConflictHandlerConfig.
	ConflictHandler ConflictHandlerType

	// The LambdaConflictHandlerConfig when configuring LAMBDA as the Conflict Handler.
	LambdaConflictHandlerConfig *LambdaConflictHandlerConfig
	// contains filtered or unexported fields
}

Describes a Sync configuration for a resolver. Specifies which Conflict Detection strategy and Resolution strategy to use when the resolver is invoked.

type Type

type Type struct {

	// The type Amazon Resource Name (ARN).
	Arn *string

	// The type definition.
	Definition *string

	// The type description.
	Description *string

	// The type format: SDL or JSON.
	Format TypeDefinitionFormat

	// The type name.
	Name *string
	// contains filtered or unexported fields
}

Describes a type.

type TypeDefinitionFormat

type TypeDefinitionFormat string
const (
	TypeDefinitionFormatSdl  TypeDefinitionFormat = "SDL"
	TypeDefinitionFormatJson TypeDefinitionFormat = "JSON"
)

Enum values for TypeDefinitionFormat

func (TypeDefinitionFormat) Values

Values returns all known values for TypeDefinitionFormat. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type UnauthorizedException

type UnauthorizedException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You aren't authorized to perform this operation.

func (*UnauthorizedException) Error

func (e *UnauthorizedException) Error() string

func (*UnauthorizedException) ErrorCode

func (e *UnauthorizedException) ErrorCode() string

func (*UnauthorizedException) ErrorFault

func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault

func (*UnauthorizedException) ErrorMessage

func (e *UnauthorizedException) ErrorMessage() string

type UserPoolConfig

type UserPoolConfig struct {

	// The Amazon Web Services Region in which the user pool was created.
	//
	// This member is required.
	AwsRegion *string

	// The action that you want your GraphQL API to take when a request that uses
	// Amazon Cognito user pool authentication doesn't match the Amazon Cognito user
	// pool configuration.
	//
	// This member is required.
	DefaultAction DefaultAction

	// The user pool ID.
	//
	// This member is required.
	UserPoolId *string

	// A regular expression for validating the incoming Amazon Cognito user pool app
	// client ID. If this value isn't set, no filtering is applied.
	AppIdClientRegex *string
	// contains filtered or unexported fields
}

Describes an Amazon Cognito user pool configuration.

Source Files

enums.go errors.go types.go

Version
v1.19.6
Published
Mar 21, 2023
Platform
js/wasm
Imports
3 packages
Last checked
6 hours ago

Tools for package owners.