customerprofilesiface

package
v0.0.0-...-148ffa3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package customerprofilesiface provides an interface to enable mocking the Amazon Connect Customer Profiles service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerProfilesAPI

type CustomerProfilesAPI interface {
	AddProfileKey(*customerprofiles.AddProfileKeyInput) (*customerprofiles.AddProfileKeyOutput, error)
	AddProfileKeyWithContext(aws.Context, *customerprofiles.AddProfileKeyInput, ...request.Option) (*customerprofiles.AddProfileKeyOutput, error)
	AddProfileKeyRequest(*customerprofiles.AddProfileKeyInput) (*request.Request, *customerprofiles.AddProfileKeyOutput)

	CreateCalculatedAttributeDefinition(*customerprofiles.CreateCalculatedAttributeDefinitionInput) (*customerprofiles.CreateCalculatedAttributeDefinitionOutput, error)
	CreateCalculatedAttributeDefinitionWithContext(aws.Context, *customerprofiles.CreateCalculatedAttributeDefinitionInput, ...request.Option) (*customerprofiles.CreateCalculatedAttributeDefinitionOutput, error)
	CreateCalculatedAttributeDefinitionRequest(*customerprofiles.CreateCalculatedAttributeDefinitionInput) (*request.Request, *customerprofiles.CreateCalculatedAttributeDefinitionOutput)

	CreateDomain(*customerprofiles.CreateDomainInput) (*customerprofiles.CreateDomainOutput, error)
	CreateDomainWithContext(aws.Context, *customerprofiles.CreateDomainInput, ...request.Option) (*customerprofiles.CreateDomainOutput, error)
	CreateDomainRequest(*customerprofiles.CreateDomainInput) (*request.Request, *customerprofiles.CreateDomainOutput)

	CreateEventStream(*customerprofiles.CreateEventStreamInput) (*customerprofiles.CreateEventStreamOutput, error)
	CreateEventStreamWithContext(aws.Context, *customerprofiles.CreateEventStreamInput, ...request.Option) (*customerprofiles.CreateEventStreamOutput, error)
	CreateEventStreamRequest(*customerprofiles.CreateEventStreamInput) (*request.Request, *customerprofiles.CreateEventStreamOutput)

	CreateIntegrationWorkflow(*customerprofiles.CreateIntegrationWorkflowInput) (*customerprofiles.CreateIntegrationWorkflowOutput, error)
	CreateIntegrationWorkflowWithContext(aws.Context, *customerprofiles.CreateIntegrationWorkflowInput, ...request.Option) (*customerprofiles.CreateIntegrationWorkflowOutput, error)
	CreateIntegrationWorkflowRequest(*customerprofiles.CreateIntegrationWorkflowInput) (*request.Request, *customerprofiles.CreateIntegrationWorkflowOutput)

	CreateProfile(*customerprofiles.CreateProfileInput) (*customerprofiles.CreateProfileOutput, error)
	CreateProfileWithContext(aws.Context, *customerprofiles.CreateProfileInput, ...request.Option) (*customerprofiles.CreateProfileOutput, error)
	CreateProfileRequest(*customerprofiles.CreateProfileInput) (*request.Request, *customerprofiles.CreateProfileOutput)

	DeleteCalculatedAttributeDefinition(*customerprofiles.DeleteCalculatedAttributeDefinitionInput) (*customerprofiles.DeleteCalculatedAttributeDefinitionOutput, error)
	DeleteCalculatedAttributeDefinitionWithContext(aws.Context, *customerprofiles.DeleteCalculatedAttributeDefinitionInput, ...request.Option) (*customerprofiles.DeleteCalculatedAttributeDefinitionOutput, error)
	DeleteCalculatedAttributeDefinitionRequest(*customerprofiles.DeleteCalculatedAttributeDefinitionInput) (*request.Request, *customerprofiles.DeleteCalculatedAttributeDefinitionOutput)

	DeleteDomain(*customerprofiles.DeleteDomainInput) (*customerprofiles.DeleteDomainOutput, error)
	DeleteDomainWithContext(aws.Context, *customerprofiles.DeleteDomainInput, ...request.Option) (*customerprofiles.DeleteDomainOutput, error)
	DeleteDomainRequest(*customerprofiles.DeleteDomainInput) (*request.Request, *customerprofiles.DeleteDomainOutput)

	DeleteEventStream(*customerprofiles.DeleteEventStreamInput) (*customerprofiles.DeleteEventStreamOutput, error)
	DeleteEventStreamWithContext(aws.Context, *customerprofiles.DeleteEventStreamInput, ...request.Option) (*customerprofiles.DeleteEventStreamOutput, error)
	DeleteEventStreamRequest(*customerprofiles.DeleteEventStreamInput) (*request.Request, *customerprofiles.DeleteEventStreamOutput)

	DeleteIntegration(*customerprofiles.DeleteIntegrationInput) (*customerprofiles.DeleteIntegrationOutput, error)
	DeleteIntegrationWithContext(aws.Context, *customerprofiles.DeleteIntegrationInput, ...request.Option) (*customerprofiles.DeleteIntegrationOutput, error)
	DeleteIntegrationRequest(*customerprofiles.DeleteIntegrationInput) (*request.Request, *customerprofiles.DeleteIntegrationOutput)

	DeleteProfile(*customerprofiles.DeleteProfileInput) (*customerprofiles.DeleteProfileOutput, error)
	DeleteProfileWithContext(aws.Context, *customerprofiles.DeleteProfileInput, ...request.Option) (*customerprofiles.DeleteProfileOutput, error)
	DeleteProfileRequest(*customerprofiles.DeleteProfileInput) (*request.Request, *customerprofiles.DeleteProfileOutput)

	DeleteProfileKey(*customerprofiles.DeleteProfileKeyInput) (*customerprofiles.DeleteProfileKeyOutput, error)
	DeleteProfileKeyWithContext(aws.Context, *customerprofiles.DeleteProfileKeyInput, ...request.Option) (*customerprofiles.DeleteProfileKeyOutput, error)
	DeleteProfileKeyRequest(*customerprofiles.DeleteProfileKeyInput) (*request.Request, *customerprofiles.DeleteProfileKeyOutput)

	DeleteProfileObject(*customerprofiles.DeleteProfileObjectInput) (*customerprofiles.DeleteProfileObjectOutput, error)
	DeleteProfileObjectWithContext(aws.Context, *customerprofiles.DeleteProfileObjectInput, ...request.Option) (*customerprofiles.DeleteProfileObjectOutput, error)
	DeleteProfileObjectRequest(*customerprofiles.DeleteProfileObjectInput) (*request.Request, *customerprofiles.DeleteProfileObjectOutput)

	DeleteProfileObjectType(*customerprofiles.DeleteProfileObjectTypeInput) (*customerprofiles.DeleteProfileObjectTypeOutput, error)
	DeleteProfileObjectTypeWithContext(aws.Context, *customerprofiles.DeleteProfileObjectTypeInput, ...request.Option) (*customerprofiles.DeleteProfileObjectTypeOutput, error)
	DeleteProfileObjectTypeRequest(*customerprofiles.DeleteProfileObjectTypeInput) (*request.Request, *customerprofiles.DeleteProfileObjectTypeOutput)

	DeleteWorkflow(*customerprofiles.DeleteWorkflowInput) (*customerprofiles.DeleteWorkflowOutput, error)
	DeleteWorkflowWithContext(aws.Context, *customerprofiles.DeleteWorkflowInput, ...request.Option) (*customerprofiles.DeleteWorkflowOutput, error)
	DeleteWorkflowRequest(*customerprofiles.DeleteWorkflowInput) (*request.Request, *customerprofiles.DeleteWorkflowOutput)

	DetectProfileObjectType(*customerprofiles.DetectProfileObjectTypeInput) (*customerprofiles.DetectProfileObjectTypeOutput, error)
	DetectProfileObjectTypeWithContext(aws.Context, *customerprofiles.DetectProfileObjectTypeInput, ...request.Option) (*customerprofiles.DetectProfileObjectTypeOutput, error)
	DetectProfileObjectTypeRequest(*customerprofiles.DetectProfileObjectTypeInput) (*request.Request, *customerprofiles.DetectProfileObjectTypeOutput)

	GetAutoMergingPreview(*customerprofiles.GetAutoMergingPreviewInput) (*customerprofiles.GetAutoMergingPreviewOutput, error)
	GetAutoMergingPreviewWithContext(aws.Context, *customerprofiles.GetAutoMergingPreviewInput, ...request.Option) (*customerprofiles.GetAutoMergingPreviewOutput, error)
	GetAutoMergingPreviewRequest(*customerprofiles.GetAutoMergingPreviewInput) (*request.Request, *customerprofiles.GetAutoMergingPreviewOutput)

	GetCalculatedAttributeDefinition(*customerprofiles.GetCalculatedAttributeDefinitionInput) (*customerprofiles.GetCalculatedAttributeDefinitionOutput, error)
	GetCalculatedAttributeDefinitionWithContext(aws.Context, *customerprofiles.GetCalculatedAttributeDefinitionInput, ...request.Option) (*customerprofiles.GetCalculatedAttributeDefinitionOutput, error)
	GetCalculatedAttributeDefinitionRequest(*customerprofiles.GetCalculatedAttributeDefinitionInput) (*request.Request, *customerprofiles.GetCalculatedAttributeDefinitionOutput)

	GetCalculatedAttributeForProfile(*customerprofiles.GetCalculatedAttributeForProfileInput) (*customerprofiles.GetCalculatedAttributeForProfileOutput, error)
	GetCalculatedAttributeForProfileWithContext(aws.Context, *customerprofiles.GetCalculatedAttributeForProfileInput, ...request.Option) (*customerprofiles.GetCalculatedAttributeForProfileOutput, error)
	GetCalculatedAttributeForProfileRequest(*customerprofiles.GetCalculatedAttributeForProfileInput) (*request.Request, *customerprofiles.GetCalculatedAttributeForProfileOutput)

	GetDomain(*customerprofiles.GetDomainInput) (*customerprofiles.GetDomainOutput, error)
	GetDomainWithContext(aws.Context, *customerprofiles.GetDomainInput, ...request.Option) (*customerprofiles.GetDomainOutput, error)
	GetDomainRequest(*customerprofiles.GetDomainInput) (*request.Request, *customerprofiles.GetDomainOutput)

	GetEventStream(*customerprofiles.GetEventStreamInput) (*customerprofiles.GetEventStreamOutput, error)
	GetEventStreamWithContext(aws.Context, *customerprofiles.GetEventStreamInput, ...request.Option) (*customerprofiles.GetEventStreamOutput, error)
	GetEventStreamRequest(*customerprofiles.GetEventStreamInput) (*request.Request, *customerprofiles.GetEventStreamOutput)

	GetIdentityResolutionJob(*customerprofiles.GetIdentityResolutionJobInput) (*customerprofiles.GetIdentityResolutionJobOutput, error)
	GetIdentityResolutionJobWithContext(aws.Context, *customerprofiles.GetIdentityResolutionJobInput, ...request.Option) (*customerprofiles.GetIdentityResolutionJobOutput, error)
	GetIdentityResolutionJobRequest(*customerprofiles.GetIdentityResolutionJobInput) (*request.Request, *customerprofiles.GetIdentityResolutionJobOutput)

	GetIntegration(*customerprofiles.GetIntegrationInput) (*customerprofiles.GetIntegrationOutput, error)
	GetIntegrationWithContext(aws.Context, *customerprofiles.GetIntegrationInput, ...request.Option) (*customerprofiles.GetIntegrationOutput, error)
	GetIntegrationRequest(*customerprofiles.GetIntegrationInput) (*request.Request, *customerprofiles.GetIntegrationOutput)

	GetMatches(*customerprofiles.GetMatchesInput) (*customerprofiles.GetMatchesOutput, error)
	GetMatchesWithContext(aws.Context, *customerprofiles.GetMatchesInput, ...request.Option) (*customerprofiles.GetMatchesOutput, error)
	GetMatchesRequest(*customerprofiles.GetMatchesInput) (*request.Request, *customerprofiles.GetMatchesOutput)

	GetProfileObjectType(*customerprofiles.GetProfileObjectTypeInput) (*customerprofiles.GetProfileObjectTypeOutput, error)
	GetProfileObjectTypeWithContext(aws.Context, *customerprofiles.GetProfileObjectTypeInput, ...request.Option) (*customerprofiles.GetProfileObjectTypeOutput, error)
	GetProfileObjectTypeRequest(*customerprofiles.GetProfileObjectTypeInput) (*request.Request, *customerprofiles.GetProfileObjectTypeOutput)

	GetProfileObjectTypeTemplate(*customerprofiles.GetProfileObjectTypeTemplateInput) (*customerprofiles.GetProfileObjectTypeTemplateOutput, error)
	GetProfileObjectTypeTemplateWithContext(aws.Context, *customerprofiles.GetProfileObjectTypeTemplateInput, ...request.Option) (*customerprofiles.GetProfileObjectTypeTemplateOutput, error)
	GetProfileObjectTypeTemplateRequest(*customerprofiles.GetProfileObjectTypeTemplateInput) (*request.Request, *customerprofiles.GetProfileObjectTypeTemplateOutput)

	GetSimilarProfiles(*customerprofiles.GetSimilarProfilesInput) (*customerprofiles.GetSimilarProfilesOutput, error)
	GetSimilarProfilesWithContext(aws.Context, *customerprofiles.GetSimilarProfilesInput, ...request.Option) (*customerprofiles.GetSimilarProfilesOutput, error)
	GetSimilarProfilesRequest(*customerprofiles.GetSimilarProfilesInput) (*request.Request, *customerprofiles.GetSimilarProfilesOutput)

	GetWorkflow(*customerprofiles.GetWorkflowInput) (*customerprofiles.GetWorkflowOutput, error)
	GetWorkflowWithContext(aws.Context, *customerprofiles.GetWorkflowInput, ...request.Option) (*customerprofiles.GetWorkflowOutput, error)
	GetWorkflowRequest(*customerprofiles.GetWorkflowInput) (*request.Request, *customerprofiles.GetWorkflowOutput)

	GetWorkflowSteps(*customerprofiles.GetWorkflowStepsInput) (*customerprofiles.GetWorkflowStepsOutput, error)
	GetWorkflowStepsWithContext(aws.Context, *customerprofiles.GetWorkflowStepsInput, ...request.Option) (*customerprofiles.GetWorkflowStepsOutput, error)
	GetWorkflowStepsRequest(*customerprofiles.GetWorkflowStepsInput) (*request.Request, *customerprofiles.GetWorkflowStepsOutput)

	ListAccountIntegrations(*customerprofiles.ListAccountIntegrationsInput) (*customerprofiles.ListAccountIntegrationsOutput, error)
	ListAccountIntegrationsWithContext(aws.Context, *customerprofiles.ListAccountIntegrationsInput, ...request.Option) (*customerprofiles.ListAccountIntegrationsOutput, error)
	ListAccountIntegrationsRequest(*customerprofiles.ListAccountIntegrationsInput) (*request.Request, *customerprofiles.ListAccountIntegrationsOutput)

	ListCalculatedAttributeDefinitions(*customerprofiles.ListCalculatedAttributeDefinitionsInput) (*customerprofiles.ListCalculatedAttributeDefinitionsOutput, error)
	ListCalculatedAttributeDefinitionsWithContext(aws.Context, *customerprofiles.ListCalculatedAttributeDefinitionsInput, ...request.Option) (*customerprofiles.ListCalculatedAttributeDefinitionsOutput, error)
	ListCalculatedAttributeDefinitionsRequest(*customerprofiles.ListCalculatedAttributeDefinitionsInput) (*request.Request, *customerprofiles.ListCalculatedAttributeDefinitionsOutput)

	ListCalculatedAttributesForProfile(*customerprofiles.ListCalculatedAttributesForProfileInput) (*customerprofiles.ListCalculatedAttributesForProfileOutput, error)
	ListCalculatedAttributesForProfileWithContext(aws.Context, *customerprofiles.ListCalculatedAttributesForProfileInput, ...request.Option) (*customerprofiles.ListCalculatedAttributesForProfileOutput, error)
	ListCalculatedAttributesForProfileRequest(*customerprofiles.ListCalculatedAttributesForProfileInput) (*request.Request, *customerprofiles.ListCalculatedAttributesForProfileOutput)

	ListDomains(*customerprofiles.ListDomainsInput) (*customerprofiles.ListDomainsOutput, error)
	ListDomainsWithContext(aws.Context, *customerprofiles.ListDomainsInput, ...request.Option) (*customerprofiles.ListDomainsOutput, error)
	ListDomainsRequest(*customerprofiles.ListDomainsInput) (*request.Request, *customerprofiles.ListDomainsOutput)

	ListEventStreams(*customerprofiles.ListEventStreamsInput) (*customerprofiles.ListEventStreamsOutput, error)
	ListEventStreamsWithContext(aws.Context, *customerprofiles.ListEventStreamsInput, ...request.Option) (*customerprofiles.ListEventStreamsOutput, error)
	ListEventStreamsRequest(*customerprofiles.ListEventStreamsInput) (*request.Request, *customerprofiles.ListEventStreamsOutput)

	ListEventStreamsPages(*customerprofiles.ListEventStreamsInput, func(*customerprofiles.ListEventStreamsOutput, bool) bool) error
	ListEventStreamsPagesWithContext(aws.Context, *customerprofiles.ListEventStreamsInput, func(*customerprofiles.ListEventStreamsOutput, bool) bool, ...request.Option) error

	ListIdentityResolutionJobs(*customerprofiles.ListIdentityResolutionJobsInput) (*customerprofiles.ListIdentityResolutionJobsOutput, error)
	ListIdentityResolutionJobsWithContext(aws.Context, *customerprofiles.ListIdentityResolutionJobsInput, ...request.Option) (*customerprofiles.ListIdentityResolutionJobsOutput, error)
	ListIdentityResolutionJobsRequest(*customerprofiles.ListIdentityResolutionJobsInput) (*request.Request, *customerprofiles.ListIdentityResolutionJobsOutput)

	ListIntegrations(*customerprofiles.ListIntegrationsInput) (*customerprofiles.ListIntegrationsOutput, error)
	ListIntegrationsWithContext(aws.Context, *customerprofiles.ListIntegrationsInput, ...request.Option) (*customerprofiles.ListIntegrationsOutput, error)
	ListIntegrationsRequest(*customerprofiles.ListIntegrationsInput) (*request.Request, *customerprofiles.ListIntegrationsOutput)

	ListProfileObjectTypeTemplates(*customerprofiles.ListProfileObjectTypeTemplatesInput) (*customerprofiles.ListProfileObjectTypeTemplatesOutput, error)
	ListProfileObjectTypeTemplatesWithContext(aws.Context, *customerprofiles.ListProfileObjectTypeTemplatesInput, ...request.Option) (*customerprofiles.ListProfileObjectTypeTemplatesOutput, error)
	ListProfileObjectTypeTemplatesRequest(*customerprofiles.ListProfileObjectTypeTemplatesInput) (*request.Request, *customerprofiles.ListProfileObjectTypeTemplatesOutput)

	ListProfileObjectTypes(*customerprofiles.ListProfileObjectTypesInput) (*customerprofiles.ListProfileObjectTypesOutput, error)
	ListProfileObjectTypesWithContext(aws.Context, *customerprofiles.ListProfileObjectTypesInput, ...request.Option) (*customerprofiles.ListProfileObjectTypesOutput, error)
	ListProfileObjectTypesRequest(*customerprofiles.ListProfileObjectTypesInput) (*request.Request, *customerprofiles.ListProfileObjectTypesOutput)

	ListProfileObjects(*customerprofiles.ListProfileObjectsInput) (*customerprofiles.ListProfileObjectsOutput, error)
	ListProfileObjectsWithContext(aws.Context, *customerprofiles.ListProfileObjectsInput, ...request.Option) (*customerprofiles.ListProfileObjectsOutput, error)
	ListProfileObjectsRequest(*customerprofiles.ListProfileObjectsInput) (*request.Request, *customerprofiles.ListProfileObjectsOutput)

	ListRuleBasedMatches(*customerprofiles.ListRuleBasedMatchesInput) (*customerprofiles.ListRuleBasedMatchesOutput, error)
	ListRuleBasedMatchesWithContext(aws.Context, *customerprofiles.ListRuleBasedMatchesInput, ...request.Option) (*customerprofiles.ListRuleBasedMatchesOutput, error)
	ListRuleBasedMatchesRequest(*customerprofiles.ListRuleBasedMatchesInput) (*request.Request, *customerprofiles.ListRuleBasedMatchesOutput)

	ListTagsForResource(*customerprofiles.ListTagsForResourceInput) (*customerprofiles.ListTagsForResourceOutput, error)
	ListTagsForResourceWithContext(aws.Context, *customerprofiles.ListTagsForResourceInput, ...request.Option) (*customerprofiles.ListTagsForResourceOutput, error)
	ListTagsForResourceRequest(*customerprofiles.ListTagsForResourceInput) (*request.Request, *customerprofiles.ListTagsForResourceOutput)

	ListWorkflows(*customerprofiles.ListWorkflowsInput) (*customerprofiles.ListWorkflowsOutput, error)
	ListWorkflowsWithContext(aws.Context, *customerprofiles.ListWorkflowsInput, ...request.Option) (*customerprofiles.ListWorkflowsOutput, error)
	ListWorkflowsRequest(*customerprofiles.ListWorkflowsInput) (*request.Request, *customerprofiles.ListWorkflowsOutput)

	MergeProfiles(*customerprofiles.MergeProfilesInput) (*customerprofiles.MergeProfilesOutput, error)
	MergeProfilesWithContext(aws.Context, *customerprofiles.MergeProfilesInput, ...request.Option) (*customerprofiles.MergeProfilesOutput, error)
	MergeProfilesRequest(*customerprofiles.MergeProfilesInput) (*request.Request, *customerprofiles.MergeProfilesOutput)

	PutIntegration(*customerprofiles.PutIntegrationInput) (*customerprofiles.PutIntegrationOutput, error)
	PutIntegrationWithContext(aws.Context, *customerprofiles.PutIntegrationInput, ...request.Option) (*customerprofiles.PutIntegrationOutput, error)
	PutIntegrationRequest(*customerprofiles.PutIntegrationInput) (*request.Request, *customerprofiles.PutIntegrationOutput)

	PutProfileObject(*customerprofiles.PutProfileObjectInput) (*customerprofiles.PutProfileObjectOutput, error)
	PutProfileObjectWithContext(aws.Context, *customerprofiles.PutProfileObjectInput, ...request.Option) (*customerprofiles.PutProfileObjectOutput, error)
	PutProfileObjectRequest(*customerprofiles.PutProfileObjectInput) (*request.Request, *customerprofiles.PutProfileObjectOutput)

	PutProfileObjectType(*customerprofiles.PutProfileObjectTypeInput) (*customerprofiles.PutProfileObjectTypeOutput, error)
	PutProfileObjectTypeWithContext(aws.Context, *customerprofiles.PutProfileObjectTypeInput, ...request.Option) (*customerprofiles.PutProfileObjectTypeOutput, error)
	PutProfileObjectTypeRequest(*customerprofiles.PutProfileObjectTypeInput) (*request.Request, *customerprofiles.PutProfileObjectTypeOutput)

	SearchProfiles(*customerprofiles.SearchProfilesInput) (*customerprofiles.SearchProfilesOutput, error)
	SearchProfilesWithContext(aws.Context, *customerprofiles.SearchProfilesInput, ...request.Option) (*customerprofiles.SearchProfilesOutput, error)
	SearchProfilesRequest(*customerprofiles.SearchProfilesInput) (*request.Request, *customerprofiles.SearchProfilesOutput)

	TagResource(*customerprofiles.TagResourceInput) (*customerprofiles.TagResourceOutput, error)
	TagResourceWithContext(aws.Context, *customerprofiles.TagResourceInput, ...request.Option) (*customerprofiles.TagResourceOutput, error)
	TagResourceRequest(*customerprofiles.TagResourceInput) (*request.Request, *customerprofiles.TagResourceOutput)

	UntagResource(*customerprofiles.UntagResourceInput) (*customerprofiles.UntagResourceOutput, error)
	UntagResourceWithContext(aws.Context, *customerprofiles.UntagResourceInput, ...request.Option) (*customerprofiles.UntagResourceOutput, error)
	UntagResourceRequest(*customerprofiles.UntagResourceInput) (*request.Request, *customerprofiles.UntagResourceOutput)

	UpdateCalculatedAttributeDefinition(*customerprofiles.UpdateCalculatedAttributeDefinitionInput) (*customerprofiles.UpdateCalculatedAttributeDefinitionOutput, error)
	UpdateCalculatedAttributeDefinitionWithContext(aws.Context, *customerprofiles.UpdateCalculatedAttributeDefinitionInput, ...request.Option) (*customerprofiles.UpdateCalculatedAttributeDefinitionOutput, error)
	UpdateCalculatedAttributeDefinitionRequest(*customerprofiles.UpdateCalculatedAttributeDefinitionInput) (*request.Request, *customerprofiles.UpdateCalculatedAttributeDefinitionOutput)

	UpdateDomain(*customerprofiles.UpdateDomainInput) (*customerprofiles.UpdateDomainOutput, error)
	UpdateDomainWithContext(aws.Context, *customerprofiles.UpdateDomainInput, ...request.Option) (*customerprofiles.UpdateDomainOutput, error)
	UpdateDomainRequest(*customerprofiles.UpdateDomainInput) (*request.Request, *customerprofiles.UpdateDomainOutput)

	UpdateProfile(*customerprofiles.UpdateProfileInput) (*customerprofiles.UpdateProfileOutput, error)
	UpdateProfileWithContext(aws.Context, *customerprofiles.UpdateProfileInput, ...request.Option) (*customerprofiles.UpdateProfileOutput, error)
	UpdateProfileRequest(*customerprofiles.UpdateProfileInput) (*request.Request, *customerprofiles.UpdateProfileOutput)
}

CustomerProfilesAPI provides an interface to enable mocking the customerprofiles.CustomerProfiles service client's API operation, paginators, and waiters. This make unit testing your code that calls out to the SDK's service client's calls easier.

The best way to use this interface is so the SDK's service client's calls can be stubbed out for unit testing your code with the SDK without needing to inject custom request handlers into the SDK's request pipeline.

// myFunc uses an SDK service client to make a request to
// Amazon Connect Customer Profiles.
func myFunc(svc customerprofilesiface.CustomerProfilesAPI) bool {
    // Make svc.AddProfileKey request
}

func main() {
    sess := session.New()
    svc := customerprofiles.New(sess)

    myFunc(svc)
}

In your _test.go file:

// Define a mock struct to be used in your unit tests of myFunc.
type mockCustomerProfilesClient struct {
    customerprofilesiface.CustomerProfilesAPI
}
func (m *mockCustomerProfilesClient) AddProfileKey(input *customerprofiles.AddProfileKeyInput) (*customerprofiles.AddProfileKeyOutput, error) {
    // mock response/functionality
}

func TestMyFunc(t *testing.T) {
    // Setup Test
    mockSvc := &mockCustomerProfilesClient{}

    myfunc(mockSvc)

    // Verify myFunc's functionality
}

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters. Its suggested to use the pattern above for testing, or using tooling to generate mocks to satisfy the interfaces.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL