elementalinference

package module
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 47 Imported by: 3

Documentation

Overview

Package elementalinference provides the API client, operations, and parameter types for AWS Elemental Inference.

This is the AWS Elemental Inference REST API Reference. It provides information on the URL, request contents, and response contents of each AWS Elemental Inference REST operation.

We assume that you have the IAM permissions that you need to use AWS Elemental Inference via the REST API. We also assume that you are familiar with the features and operations of AWS Elemental Inference as described in AWS Elemental Inference User Guide.

Index

Constants

View Source
const ServiceAPIVersion = "2018-11-14"
View Source
const ServiceID = "ElementalInference"

Variables

This section is empty.

Functions

func NewDefaultEndpointResolver

func NewDefaultEndpointResolver() *internalendpoints.Resolver

NewDefaultEndpointResolver constructs a new service endpoint resolver

func WithAPIOptions

func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)

WithAPIOptions returns a functional option for setting the Client's APIOptions option.

func WithEndpointResolver deprecated

func WithEndpointResolver(v EndpointResolver) func(*Options)

Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.

To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.

func WithEndpointResolverV2

func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)

WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.

func WithSigV4SigningName

func WithSigV4SigningName(name string) func(*Options)

WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.

This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.

func WithSigV4SigningRegion

func WithSigV4SigningRegion(region string) func(*Options)

WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.

This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.

Types

type AssociateFeedInput

type AssociateFeedInput struct {

	// An identifier for the resource. This name must not resemble an ARN.
	//
	// The resource is the source media that the feed will process. The name you
	// assign should help you to later identify the source media that belongs to the
	// feed. In this way, you will know which source media to push to the feed (using
	// PutMedia).
	//
	// This member is required.
	AssociatedResourceName *string

	// The ID of the feed.
	//
	// This member is required.
	Id *string

	// An array of one or more outputs that you want to add to this feed now, to
	// supplement any outputs that you specified when you created or updated the feed.
	//
	// This member is required.
	Outputs []types.CreateOutput

	// Set to true if you want to do a dry run of the associate action.
	//
	// Elemental Inference will validate that the real request would succeed without
	// actually making any changes. A dry run catches errors such as missing IAM
	// permissions, quota limits exceeded, conflicting outputs, and so on. If the dry
	// run fails, the action returns a 4xx error code. After you've fixed the errors,
	// resubmit the request.
	DryRun bool
	// contains filtered or unexported fields
}

type AssociateFeedOutput

type AssociateFeedOutput struct {

	// The ARN of the feed.
	//
	// This member is required.
	Arn *string

	// The ID of the feed.
	//
	// This member is required.
	Id *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type AuthResolverParameters

type AuthResolverParameters struct {
	// The name of the operation being invoked.
	Operation string

	// The region in which the operation is being invoked.
	Region string
}

AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.

type AuthSchemeResolver

type AuthSchemeResolver interface {
	ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}

AuthSchemeResolver returns a set of possible authentication options for an operation.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides the API client to make operations call for AWS Elemental Inference.

func New

func New(options Options, optFns ...func(*Options)) *Client

New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.

func NewFromConfig

func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client

NewFromConfig returns a new client from the provided config.

func (*Client) AssociateFeed

func (c *Client) AssociateFeed(ctx context.Context, params *AssociateFeedInput, optFns ...func(*Options)) (*AssociateFeedOutput, error)

Associates a resource with the feed. The resource provides the input that Elemental Inference needs in order to perform an Elemental Inference feature, such as cropping video. You always provide the resource by associating it with a feed. You can associate only one resource with each feed. With an association, a specific source media is claiming ownership of the feed.

AssociateFeed is a PATCH operation, which means that you can include only parameters that you want to change. Parameters that you don't include will not be affected by the operation.

Specifically:

  • You can add more outputs to the existing outputs. New outputs will be appended.

  • You can't modify an existing output (for example to change its name). Instead, use UpdateFeed.

  • You can't delete an existing output. Instead, use UpdateFeed.

Also note that you can't change the feed name with AssociateFeed. Instead, use UpdateFeed.

func (*Client) CreateDictionary added in v1.1.0

func (c *Client) CreateDictionary(ctx context.Context, params *CreateDictionaryInput, optFns ...func(*Options)) (*CreateDictionaryOutput, error)

Creates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.

func (*Client) CreateFeed

func (c *Client) CreateFeed(ctx context.Context, params *CreateFeedInput, optFns ...func(*Options)) (*CreateFeedOutput, error)

Creates a feed. The feed is the target for the live media stream that is being sent by the calling application. An example of a calling application is AWS Elemental MediaLive.

The key contents of the feed is an array of outputs. Each output represents an Elemental Inference feature. After you create the feed, you must associate a resource with the feed. At that point, you will have a useable feed: resource - feed - output or outputs.

func (*Client) DeleteDictionary added in v1.1.0

func (c *Client) DeleteDictionary(ctx context.Context, params *DeleteDictionaryInput, optFns ...func(*Options)) (*DeleteDictionaryOutput, error)

Deletes the specified dictionary. You cannot delete a dictionary that is referenced by a feed. You must first remove the dictionary reference from the feed's subtitling configuration.

func (*Client) DeleteFeed

func (c *Client) DeleteFeed(ctx context.Context, params *DeleteFeedInput, optFns ...func(*Options)) (*DeleteFeedOutput, error)

Deletes the specified feed. You can delete the feed at any time. Elemental Inference doesn't block you from deleting a feed when the calling application is calling PutMedia or GetMetadata on that feed, although both these calls will start to fail. For more information about managing inactive feeds, see the Elemental Inference User Guide.

func (*Client) DisassociateFeed

func (c *Client) DisassociateFeed(ctx context.Context, params *DisassociateFeedInput, optFns ...func(*Options)) (*DisassociateFeedOutput, error)

Releases the resource (the source media) that is associated with this feed. The outputs in the feed become DISABLED.

func (*Client) ExportDictionaryEntries added in v1.1.0

func (c *Client) ExportDictionaryEntries(ctx context.Context, params *ExportDictionaryEntriesInput, optFns ...func(*Options)) (*ExportDictionaryEntriesOutput, error)

Exports the entries from the specified dictionary.

func (*Client) GetDictionary added in v1.1.0

func (c *Client) GetDictionary(ctx context.Context, params *GetDictionaryInput, optFns ...func(*Options)) (*GetDictionaryOutput, error)

Retrieves information about the specified dictionary.

func (*Client) GetFeed

func (c *Client) GetFeed(ctx context.Context, params *GetFeedInput, optFns ...func(*Options)) (*GetFeedOutput, error)

Retrieves information about the specified feed.

func (*Client) ListDictionaries added in v1.1.0

func (c *Client) ListDictionaries(ctx context.Context, params *ListDictionariesInput, optFns ...func(*Options)) (*ListDictionariesOutput, error)

Lists the dictionaries in your account.

func (*Client) ListFeeds

func (c *Client) ListFeeds(ctx context.Context, params *ListFeedsInput, optFns ...func(*Options)) (*ListFeedsOutput, error)

Displays a list of feeds that belong to this AWS account.

func (*Client) ListTagsForResource

func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)

List all tags that are on an Elemental Inference resource in the current region.

func (*Client) Options

func (c *Client) Options() Options

Options returns a copy of the client configuration.

Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.

func (*Client) TagResource

func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)

Associates the specified tags to the resource identified by the specified resourceArn in the current region. If existing tags on a resource are not specified in the request parameters, they are not changed. When a resource is deleted, the tags associated with that resource are also deleted.

func (*Client) UntagResource

func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)

Deletes specified tags from the specified resource in the current region.

func (*Client) UpdateDictionary added in v1.1.0

func (c *Client) UpdateDictionary(ctx context.Context, params *UpdateDictionaryInput, optFns ...func(*Options)) (*UpdateDictionaryOutput, error)

Updates the specified dictionary.

func (*Client) UpdateFeed

func (c *Client) UpdateFeed(ctx context.Context, params *UpdateFeedInput, optFns ...func(*Options)) (*UpdateFeedOutput, error)

Updates the name and/or outputs in a feed.

UpdateFeed is a PUT operation, which means that the payload that you specify completely overwrites the existing payload.

This means that if you want to touch the array of outputs, you must pass in the full new list. So you must omit outputs you want to delete, and include outputs you want to add or modify.

If you want to patch the array of outputs to make selective additions, use AssociateFeed.

type CreateDictionaryInput added in v1.1.0

type CreateDictionaryInput struct {

	// The language of the dictionary entries. Specify the language using an ISO
	// 639-2/T three-letter code. Supported values: eng, fra, ita, deu, spa, por.
	//
	// This member is required.
	Language types.DictionaryLanguage

	// A user-friendly name for this dictionary.
	//
	// This member is required.
	Name *string

	// The dictionary entries payload. Contains the custom words and phrases for the
	// dictionary. Maximum size is 40,960 characters.
	Entries *string

	// Optional tags to associate with the dictionary.
	Tags map[string]string
	// contains filtered or unexported fields
}

type CreateDictionaryOutput added in v1.1.0

type CreateDictionaryOutput struct {

	// The ARN of the dictionary.
	//
	// This member is required.
	Arn *string

	// A unique ID that Elemental Inference assigns to the dictionary.
	//
	// This member is required.
	Id *string

	// The language of the dictionary.
	//
	// This member is required.
	Language types.DictionaryLanguage

	// The name that you specified in the request.
	//
	// This member is required.
	Name *string

	// The current status of the dictionary. After creation succeeds, the status will
	// be AVAILABLE.
	//
	// This member is required.
	Status types.DictionaryStatus

	// A list of feed IDs that reference this dictionary.
	References []string

	// Any tags that you included when you created the dictionary.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type CreateFeedInput

type CreateFeedInput struct {

	// A user-friendly name for this feed.
	//
	// This member is required.
	Name *string

	// An array of outputs for this feed. Each output represents a specific Elemental
	// Inference feature. For example, there is one output type for the smart crop
	// feature. You must specify at least one output, but you can later add outputs
	// using AssociateFeed, or add, modify, and delete outputs using UpdateFeed.
	//
	// This member is required.
	Outputs []types.CreateOutput

	// Optional tags. You can also add tags later, using TagResource.
	Tags map[string]string
	// contains filtered or unexported fields
}

type CreateFeedOutput

type CreateFeedOutput struct {

	// A unique ARN that Elemental Inference assigns to the feed.
	//
	// This member is required.
	Arn *string

	// An array of endpoints for the feed. Typically, there is only one endpoint. The
	// feed receives source media at this endpoint (when the calling application calls
	// PutMedia) and returns the resulting metadata to this endpoint (when the calling
	// application calls GetMetadata).
	//
	// This member is required.
	DataEndpoints []string

	// A unique ID that Elemental Inference assigns to the feed.
	//
	// This member is required.
	Id *string

	// The name that you specified in the request.
	//
	// This member is required.
	Name *string

	// Repeats the outputs that you specified in the request.
	//
	// This member is required.
	Outputs []types.GetOutput

	// The current status of the feed. After creation of the feed has succeeded, the
	// status will be AVAILABLE.
	//
	// This member is required.
	Status types.FeedStatus

	// The association for this feed. When you create the feed, this property is
	// empty. You must associate a resource with the feed using AssociateFeed or
	// UpdateFeed.
	Association *types.FeedAssociation

	// Any tags that you included when you created the feed.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteDictionaryInput added in v1.1.0

type DeleteDictionaryInput struct {

	// The ID of the dictionary to delete.
	//
	// This member is required.
	Id *string
	// contains filtered or unexported fields
}

type DeleteDictionaryOutput added in v1.1.0

type DeleteDictionaryOutput struct {

	// The ARN of the deleted dictionary.
	//
	// This member is required.
	Arn *string

	// The ID of the deleted dictionary.
	//
	// This member is required.
	Id *string

	// The status of the dictionary after deletion.
	//
	// This member is required.
	Status types.DictionaryStatus

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DeleteFeedInput

type DeleteFeedInput struct {

	// The ID of the feed.
	//
	// This member is required.
	Id *string
	// contains filtered or unexported fields
}

type DeleteFeedOutput

type DeleteFeedOutput struct {

	// The ARN of the deleted feed.
	//
	// This member is required.
	Arn *string

	// The ID of the deleted feed.
	//
	// This member is required.
	Id *string

	// The current status of the feed. When deletion of the feed has succeeded, the
	// status will be DELETED.
	//
	// This member is required.
	Status types.FeedStatus

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type DisassociateFeedInput

type DisassociateFeedInput struct {

	// The name of the resource currently associated with the feed.
	//
	// This member is required.
	AssociatedResourceName *string

	// The ID of the feed where you want to release the resource.
	//
	// This member is required.
	Id *string

	// Set to true if you want to do a dry run of the disassociate action.
	//
	// Elemental Inference will validate that the real request would succeed without
	// actually making any changes. A dry run catches errors such as missing IAM
	// permissions. If the dry run fails, the action returns a 4xx error code.
	DryRun bool
	// contains filtered or unexported fields
}

type DisassociateFeedOutput

type DisassociateFeedOutput struct {

	// The ARN of the feed.
	//
	// This member is required.
	Arn *string

	// The ID of the feed.
	//
	// This member is required.
	Id *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type EndpointParameters

type EndpointParameters struct {
	// The AWS region used to dispatch the request.
	//
	// Parameter is
	// required.
	//
	// AWS::Region
	Region *string

	// When true, use the dual-stack endpoint. If the configured endpoint does not
	// support dual-stack, dispatching the request MAY return an error.
	//
	// Defaults to
	// false if no value is provided.
	//
	// AWS::UseDualStack
	UseDualStack *bool

	// When true, send this request to the FIPS-compliant regional endpoint. If the
	// configured endpoint does not have a FIPS compliant endpoint, dispatching the
	// request will return an error.
	//
	// Defaults to false if no value is
	// provided.
	//
	// AWS::UseFIPS
	UseFIPS *bool

	// Override the endpoint used to send this request
	//
	// Parameter is
	// required.
	//
	// SDK::Endpoint
	Endpoint *string
}

EndpointParameters provides the parameters that influence how endpoints are resolved.

func (EndpointParameters) ValidateRequired

func (p EndpointParameters) ValidateRequired() error

ValidateRequired validates required parameters are set.

func (EndpointParameters) WithDefaults

func (p EndpointParameters) WithDefaults() EndpointParameters

WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.

type EndpointResolver

type EndpointResolver interface {
	ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}

EndpointResolver interface for resolving service endpoints.

func EndpointResolverFromURL

func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver

EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.

type EndpointResolverFunc

type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)

EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.

func (EndpointResolverFunc) ResolveEndpoint

func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)

type EndpointResolverOptions

type EndpointResolverOptions = internalendpoints.Options

EndpointResolverOptions is the service endpoint resolver options

type EndpointResolverV2

type EndpointResolverV2 interface {
	ResolveEndpoint(ctx context.Context, params EndpointParameters) (
		smithyendpoints.Endpoint, error,
	)
}

EndpointResolverV2 provides the interface for resolving service endpoints.

func NewDefaultEndpointResolverV2

func NewDefaultEndpointResolverV2() EndpointResolverV2

type ExportDictionaryEntriesInput added in v1.1.0

type ExportDictionaryEntriesInput struct {

	// The ID of the dictionary whose entries you want to export.
	//
	// This member is required.
	Id *string
	// contains filtered or unexported fields
}

type ExportDictionaryEntriesOutput added in v1.1.0

type ExportDictionaryEntriesOutput struct {

	// The dictionary entries payload.
	Entries *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type FeedDeletedWaiter

type FeedDeletedWaiter struct {
	// contains filtered or unexported fields
}

FeedDeletedWaiter defines the waiters for FeedDeleted

func NewFeedDeletedWaiter

func NewFeedDeletedWaiter(client GetFeedAPIClient, optFns ...func(*FeedDeletedWaiterOptions)) *FeedDeletedWaiter

NewFeedDeletedWaiter constructs a FeedDeletedWaiter.

func (*FeedDeletedWaiter) Wait

func (w *FeedDeletedWaiter) Wait(ctx context.Context, params *GetFeedInput, maxWaitDur time.Duration, optFns ...func(*FeedDeletedWaiterOptions)) error

Wait calls the waiter function for FeedDeleted waiter. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.

func (*FeedDeletedWaiter) WaitForOutput

func (w *FeedDeletedWaiter) WaitForOutput(ctx context.Context, params *GetFeedInput, maxWaitDur time.Duration, optFns ...func(*FeedDeletedWaiterOptions)) (*GetFeedOutput, error)

WaitForOutput calls the waiter function for FeedDeleted waiter and returns the output of the successful operation. The maxWaitDur is the maximum wait duration the waiter will wait. The maxWaitDur is required and must be greater than zero.

type FeedDeletedWaiterOptions

type FeedDeletedWaiterOptions struct {

	// Set of options to modify how an operation is invoked. These apply to all
	// operations invoked for this client. Use functional options on operation call to
	// modify this list for per operation behavior.
	//
	// Passing options here is functionally equivalent to passing values to this
	// config's ClientOptions field that extend the inner client's APIOptions directly.
	APIOptions []func(*middleware.Stack) error

	// Functional options to be passed to all operations invoked by this client.
	//
	// Function values that modify the inner APIOptions are applied after the waiter
	// config's own APIOptions modifiers.
	ClientOptions []func(*Options)

	// MinDelay is the minimum amount of time to delay between retries. If unset,
	// FeedDeletedWaiter will use default minimum delay of 3 seconds. Note that
	// MinDelay must resolve to a value lesser than or equal to the MaxDelay.
	MinDelay time.Duration

	// MaxDelay is the maximum amount of time to delay between retries. If unset or
	// set to zero, FeedDeletedWaiter will use default max delay of 120 seconds. Note
	// that MaxDelay must resolve to value greater than or equal to the MinDelay.
	MaxDelay time.Duration

	// LogWaitAttempts is used to enable logging for waiter retry attempts
	LogWaitAttempts bool

	// Retryable is function that can be used to override the service defined
	// waiter-behavior based on operation output, or returned error. This function is
	// used by the waiter to decide if a state is retryable or a terminal state.
	//
	// By default service-modeled logic will populate this option. This option can
	// thus be used to define a custom waiter state with fall-back to service-modeled
	// waiter state mutators.The function returns an error in case of a failure state.
	// In case of retry state, this function returns a bool value of true and nil
	// error, while in case of success it returns a bool value of false and nil error.
	Retryable func(context.Context, *GetFeedInput, *GetFeedOutput, error) (bool, error)
}

FeedDeletedWaiterOptions are waiter options for FeedDeletedWaiter

type GetDictionaryInput added in v1.1.0

type GetDictionaryInput struct {

	// The ID of the dictionary to retrieve.
	//
	// This member is required.
	Id *string
	// contains filtered or unexported fields
}

type GetDictionaryOutput added in v1.1.0

type GetDictionaryOutput struct {

	// The ARN of the dictionary.
	//
	// This member is required.
	Arn *string

	// The ID of the dictionary.
	//
	// This member is required.
	Id *string

	// The language of the dictionary.
	//
	// This member is required.
	Language types.DictionaryLanguage

	// The name of the dictionary.
	//
	// This member is required.
	Name *string

	// The current status of the dictionary.
	//
	// This member is required.
	Status types.DictionaryStatus

	// A list of feed IDs that reference this dictionary.
	References []string

	// The tags associated with the dictionary.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type GetFeedAPIClient

type GetFeedAPIClient interface {
	GetFeed(context.Context, *GetFeedInput, ...func(*Options)) (*GetFeedOutput, error)
}

GetFeedAPIClient is a client that implements the GetFeed operation.

type GetFeedInput

type GetFeedInput struct {

	// The ID of the feed to query.
	//
	// This member is required.
	Id *string
	// contains filtered or unexported fields
}

type GetFeedOutput

type GetFeedOutput struct {

	// The ARN of the feed.
	//
	// This member is required.
	Arn *string

	// The dataEndpoints of the feed.
	//
	// This member is required.
	DataEndpoints []string

	// The ID of the feed.
	//
	// This member is required.
	Id *string

	// The name of the feed.
	//
	// This member is required.
	Name *string

	// An array of the outputs in the feed.
	//
	// This member is required.
	Outputs []types.GetOutput

	// The status of the feed.
	//
	// This member is required.
	Status types.FeedStatus

	// Information about the resource that is associated with the feed. It's possible
	// that there is no associated resource. This is not an error.
	Association *types.FeedAssociation

	// A list of the tags, if any, for the feed.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type HTTPClient

type HTTPClient interface {
	Do(*http.Request) (*http.Response, error)
}

type HTTPSignerV4

type HTTPSignerV4 interface {
	SignHTTP(ctx context.Context, credentials aws.Credentials, r *http.Request, payloadHash string, service string, region string, signingTime time.Time, optFns ...func(*v4.SignerOptions)) error
}

type IdempotencyTokenProvider

type IdempotencyTokenProvider interface {
	GetIdempotencyToken() (string, error)
}

IdempotencyTokenProvider interface for providing idempotency token

type ListDictionariesAPIClient added in v1.1.0

type ListDictionariesAPIClient interface {
	ListDictionaries(context.Context, *ListDictionariesInput, ...func(*Options)) (*ListDictionariesOutput, error)
}

ListDictionariesAPIClient is a client that implements the ListDictionaries operation.

type ListDictionariesInput added in v1.1.0

type ListDictionariesInput struct {

	// The maximum number of results to return per API request. Valid range: 1 to 100.
	MaxResults *int32

	// The token that identifies the next batch of results to return.
	NextToken *string
	// contains filtered or unexported fields
}

type ListDictionariesOutput added in v1.1.0

type ListDictionariesOutput struct {

	// A list of DictionarySummary objects.
	//
	// This member is required.
	Dictionaries []types.DictionarySummary

	// The token to use to retrieve the next batch of results.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type ListDictionariesPaginator added in v1.1.0

type ListDictionariesPaginator struct {
	// contains filtered or unexported fields
}

ListDictionariesPaginator is a paginator for ListDictionaries

func NewListDictionariesPaginator added in v1.1.0

func NewListDictionariesPaginator(client ListDictionariesAPIClient, params *ListDictionariesInput, optFns ...func(*ListDictionariesPaginatorOptions)) *ListDictionariesPaginator

NewListDictionariesPaginator returns a new ListDictionariesPaginator

func (*ListDictionariesPaginator) HasMorePages added in v1.1.0

func (p *ListDictionariesPaginator) HasMorePages() bool

HasMorePages returns a boolean indicating whether more pages are available

func (*ListDictionariesPaginator) NextPage added in v1.1.0

func (p *ListDictionariesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListDictionariesOutput, error)

NextPage retrieves the next ListDictionaries page.

type ListDictionariesPaginatorOptions added in v1.1.0

type ListDictionariesPaginatorOptions struct {
	// The maximum number of results to return per API request. Valid range: 1 to 100.
	Limit int32

	// Set to true if pagination should stop if the service returns a pagination token
	// that matches the most recent token provided to the service.
	StopOnDuplicateToken bool
}

ListDictionariesPaginatorOptions is the paginator options for ListDictionaries

type ListFeedsAPIClient

type ListFeedsAPIClient interface {
	ListFeeds(context.Context, *ListFeedsInput, ...func(*Options)) (*ListFeedsOutput, error)
}

ListFeedsAPIClient is a client that implements the ListFeeds operation.

type ListFeedsInput

type ListFeedsInput struct {

	// The maximum number of results to return per API request.
	//
	// For example, you submit a list request with MaxResults set at 5. Although 20
	// items match your request, the service returns no more than the first 5 items.
	// (The service also returns a NextToken value that you can use to fetch the next
	// batch of results.)
	//
	// The service might return fewer results than the MaxResults value. If MaxResults
	// is not included in the request, the service defaults to pagination with a
	// maximum of 10 results per page.
	//
	// Valid Range: Minimum value of 1. Maximum value of 1000.
	MaxResults *int32

	// The token that identifies the batch of results that you want to see.
	//
	// For example, you submit a ListFeeds request with MaxResults set at 5. The
	// service returns the first batch of results (up to 5) and a NextToken value. To
	// see the next batch of results, you can submit the ListFeeds request a second
	// time and specify the NextToken value.
	NextToken *string
	// contains filtered or unexported fields
}

type ListFeedsOutput

type ListFeedsOutput struct {

	// A list of FeedSummary objects.
	//
	// This member is required.
	Feeds []types.FeedSummary

	// The token that identifies the batch of results that you want to see. For
	// example, you submit a list request with MaxResults set at 5. The service returns
	// the first batch of results (up to 5) and a NextToken value. To see the next
	// batch of results, you can submit the list request a second time and specify the
	// NextToken value.
	NextToken *string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type ListFeedsPaginator

type ListFeedsPaginator struct {
	// contains filtered or unexported fields
}

ListFeedsPaginator is a paginator for ListFeeds

func NewListFeedsPaginator

func NewListFeedsPaginator(client ListFeedsAPIClient, params *ListFeedsInput, optFns ...func(*ListFeedsPaginatorOptions)) *ListFeedsPaginator

NewListFeedsPaginator returns a new ListFeedsPaginator

func (*ListFeedsPaginator) HasMorePages

func (p *ListFeedsPaginator) HasMorePages() bool

HasMorePages returns a boolean indicating whether more pages are available

func (*ListFeedsPaginator) NextPage

func (p *ListFeedsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListFeedsOutput, error)

NextPage retrieves the next ListFeeds page.

type ListFeedsPaginatorOptions

type ListFeedsPaginatorOptions struct {
	// The maximum number of results to return per API request.
	//
	// For example, you submit a list request with MaxResults set at 5. Although 20
	// items match your request, the service returns no more than the first 5 items.
	// (The service also returns a NextToken value that you can use to fetch the next
	// batch of results.)
	//
	// The service might return fewer results than the MaxResults value. If MaxResults
	// is not included in the request, the service defaults to pagination with a
	// maximum of 10 results per page.
	//
	// Valid Range: Minimum value of 1. Maximum value of 1000.
	Limit int32

	// Set to true if pagination should stop if the service returns a pagination token
	// that matches the most recent token provided to the service.
	StopOnDuplicateToken bool
}

ListFeedsPaginatorOptions is the paginator options for ListFeeds

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

	// The ARN of the resource whose tags you want to query.
	//
	// This member is required.
	ResourceArn *string
	// contains filtered or unexported fields
}

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {

	// A list of the tags that belong to this resource.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type Options

type Options struct {
	// Set of options to modify how an operation is invoked. These apply to all
	// operations invoked for this client. Use functional options on operation call to
	// modify this list for per operation behavior.
	APIOptions []func(*middleware.Stack) error

	// The optional application specific identifier appended to the User-Agent header.
	AppID string

	// This endpoint will be given as input to an EndpointResolverV2. It is used for
	// providing a custom base endpoint that is subject to modifications by the
	// processing EndpointResolverV2.
	BaseEndpoint *string

	// Configures the events that will be sent to the configured logger.
	ClientLogMode aws.ClientLogMode

	// The credentials object to use when signing requests.
	Credentials aws.CredentialsProvider

	// The configuration DefaultsMode that the SDK should use when constructing the
	// clients initial default settings.
	DefaultsMode aws.DefaultsMode

	// Disables SDK clock skew correction. When set, the SDK will not adjust request
	// signing timestamps to compensate for clock drift between the client and the
	// service.
	DisableClockSkewCorrection bool

	// The endpoint options to be used when attempting to resolve an endpoint.
	EndpointOptions EndpointResolverOptions

	// The service endpoint resolver.
	//
	// Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a
	// value for this field will likely prevent you from using any endpoint-related
	// service features released after the introduction of EndpointResolverV2 and
	// BaseEndpoint.
	//
	// To migrate an EndpointResolver implementation that uses a custom endpoint, set
	// the client option BaseEndpoint instead.
	EndpointResolver EndpointResolver

	// Resolves the endpoint used for a particular service operation.
	EndpointResolverV2 EndpointResolverV2

	// Signature Version 4 (SigV4) Signer
	HTTPSignerV4 HTTPSignerV4

	// Provides idempotency tokens values that will be automatically populated into
	// idempotent API operations.
	IdempotencyTokenProvider IdempotencyTokenProvider

	// The logger writer interface to write logging messages to.
	Logger logging.Logger

	// The client meter provider.
	MeterProvider metrics.MeterProvider

	// The region to send requests to. (Required)
	Region string

	// RetryMaxAttempts specifies the maximum number attempts an API client will call
	// an operation that fails with a retryable error. A value of 0 is ignored, and
	// will not be used to configure the API client created default retryer, or modify
	// per operation call's retry max attempts.
	//
	// If specified in an operation call's functional options with a value that is
	// different than the constructed client's Options, the Client's Retryer will be
	// wrapped to use the operation's specific RetryMaxAttempts value.
	RetryMaxAttempts int

	// RetryMode specifies the retry mode the API client will be created with, if
	// Retryer option is not also specified.
	//
	// When creating a new API Clients this member will only be used if the Retryer
	// Options member is nil. This value will be ignored if Retryer is not nil.
	//
	// Currently does not support per operation call overrides, may in the future.
	RetryMode aws.RetryMode

	// Retryer guides how HTTP requests should be retried in case of recoverable
	// failures. When nil the API client will use a default retryer. The kind of
	// default retry created by the API client can be changed with the RetryMode
	// option.
	Retryer aws.Retryer

	// The RuntimeEnvironment configuration, only populated if the DefaultsMode is set
	// to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You
	// should not populate this structure programmatically, or rely on the values here
	// within your applications.
	RuntimeEnvironment aws.RuntimeEnvironment

	// The client tracer provider.
	TracerProvider tracing.TracerProvider

	// The HTTP client to invoke API calls with. Defaults to client's default HTTP
	// implementation if nil.
	HTTPClient HTTPClient

	// Client registry of operation interceptors.
	Interceptors smithyhttp.InterceptorRegistry

	// The auth scheme resolver which determines how to authenticate for each
	// operation.
	AuthSchemeResolver AuthSchemeResolver

	// The list of auth schemes supported by the client.
	AuthSchemes []smithyhttp.AuthScheme

	// Priority list of preferred auth scheme names (e.g. sigv4a).
	AuthSchemePreference []string
	// contains filtered or unexported fields
}

func (Options) Copy

func (o Options) Copy() Options

Copy creates a clone where the APIOptions list is deep copied.

func (Options) GetIdentityResolver

func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver

type ResolveEndpoint

type ResolveEndpoint struct {
	Resolver EndpointResolver
	Options  EndpointResolverOptions
}

func (*ResolveEndpoint) HandleSerialize

func (*ResolveEndpoint) ID

func (*ResolveEndpoint) ID() string

type TagResourceInput

type TagResourceInput struct {

	// The ARN of the resource where you want to add tags.
	//
	// This member is required.
	ResourceArn *string

	// A list of tags to add to the resource.
	//
	// This member is required.
	Tags map[string]string
	// contains filtered or unexported fields
}

type TagResourceOutput

type TagResourceOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type UntagResourceInput

type UntagResourceInput struct {

	// The ARN of the resource where you want to delete one or more tags.
	//
	// This member is required.
	ResourceArn *string

	// The keys of the tags to delete.
	//
	// This member is required.
	TagKeys []string
	// contains filtered or unexported fields
}

type UntagResourceOutput

type UntagResourceOutput struct {
	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type UpdateDictionaryInput added in v1.1.0

type UpdateDictionaryInput struct {

	// The ID of the dictionary to update.
	//
	// This member is required.
	Id *string

	// New dictionary entries. If not specified, the entries are not changed.
	Entries *string

	// A new language for the dictionary. If not specified, the language is not
	// changed.
	Language types.DictionaryLanguage

	// A new name for the dictionary. If not specified, the name is not changed.
	Name *string
	// contains filtered or unexported fields
}

type UpdateDictionaryOutput added in v1.1.0

type UpdateDictionaryOutput struct {

	// The ARN of the dictionary.
	//
	// This member is required.
	Arn *string

	// The ID of the dictionary.
	//
	// This member is required.
	Id *string

	// The updated or original language of the dictionary.
	//
	// This member is required.
	Language types.DictionaryLanguage

	// The updated or original name of the dictionary.
	//
	// This member is required.
	Name *string

	// The current status of the dictionary.
	//
	// This member is required.
	Status types.DictionaryStatus

	// A list of feed IDs that reference this dictionary.
	References []string

	// Any tags associated with the dictionary.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

type UpdateFeedInput

type UpdateFeedInput struct {

	// The ID of the feed to update.
	//
	// This member is required.
	Id *string

	// Required. You can specify the existing name (to leave it unchanged) or a new
	// name.
	//
	// This member is required.
	Name *string

	// Required. You can specify the existing array of outputs (to leave outputs
	// unchanged) or you can specify a new array.
	//
	// This member is required.
	Outputs []types.UpdateOutput
	// contains filtered or unexported fields
}

type UpdateFeedOutput

type UpdateFeedOutput struct {

	// The ARN of the feed.
	//
	// This member is required.
	Arn *string

	// The data endpoints of the feed.
	//
	// This member is required.
	DataEndpoints []string

	// The ID of the feed.
	//
	// This member is required.
	Id *string

	// The updated or original name of the feed.
	//
	// This member is required.
	Name *string

	// The array of outputs in the feed. You might have left this array unchanged, or
	// you might have changed it.
	//
	// This member is required.
	Outputs []types.GetOutput

	// The status of the feed.
	//
	// This member is required.
	Status types.FeedStatus

	// Information about the resource that is associated with the feed, if any.
	Association *types.FeedAssociation

	// The tags associated with the feed.
	Tags map[string]string

	// Metadata pertaining to the operation's result.
	ResultMetadata middleware.Metadata
	// contains filtered or unexported fields
}

Directories

Path Synopsis
internal