b2bi

package
v0.0.0-...-c570f4e Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package b2bi provides the client and types for making API requests to AWS B2B Data Interchange.

This is the Amazon Web Services B2B Data Interchange API Reference. It provides descriptions, API request parameters, and the XML response for each of the B2BI API actions.

B2BI enables automated exchange of EDI (electronic data interchange) based business-critical transactions at cloud scale, with elasticity and pay-as-you-go pricing. Businesses use EDI documents to exchange transactional data with trading partners, such as suppliers and end customers, using standardized formats such as X12.

Rather than actually running a command, you can use the --generate-cli-skeleton parameter with any API call to generate and display a parameter template. You can then use the generated template to customize and use as input on a later command. For details, see Generate and use a parameter skeleton file (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-skeleton.html#cli-usage-skeleton-generate).

See https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23 for more information on this service.

See b2bi package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/b2bi/

Using the Client

To contact AWS B2B Data Interchange with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS B2B Data Interchange client B2bi for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/b2bi/#New

Index

Examples

Constants

View Source
const (
	// FileFormatXml is a FileFormat enum value
	FileFormatXml = "XML"

	// FileFormatJson is a FileFormat enum value
	FileFormatJson = "JSON"
)
View Source
const (
	// LoggingEnabled is a Logging enum value
	LoggingEnabled = "ENABLED"

	// LoggingDisabled is a Logging enum value
	LoggingDisabled = "DISABLED"
)
View Source
const (
	// TransformerJobStatusRunning is a TransformerJobStatus enum value
	TransformerJobStatusRunning = "running"

	// TransformerJobStatusSucceeded is a TransformerJobStatus enum value
	TransformerJobStatusSucceeded = "succeeded"

	// TransformerJobStatusFailed is a TransformerJobStatus enum value
	TransformerJobStatusFailed = "failed"
)
View Source
const (
	// TransformerStatusActive is a TransformerStatus enum value
	TransformerStatusActive = "active"

	// TransformerStatusInactive is a TransformerStatus enum value
	TransformerStatusInactive = "inactive"
)
View Source
const (
	// X12TransactionSetX12110 is a X12TransactionSet enum value
	X12TransactionSetX12110 = "X12_110"

	// X12TransactionSetX12180 is a X12TransactionSet enum value
	X12TransactionSetX12180 = "X12_180"

	// X12TransactionSetX12204 is a X12TransactionSet enum value
	X12TransactionSetX12204 = "X12_204"

	// X12TransactionSetX12210 is a X12TransactionSet enum value
	X12TransactionSetX12210 = "X12_210"

	// X12TransactionSetX12214 is a X12TransactionSet enum value
	X12TransactionSetX12214 = "X12_214"

	// X12TransactionSetX12215 is a X12TransactionSet enum value
	X12TransactionSetX12215 = "X12_215"

	// X12TransactionSetX12310 is a X12TransactionSet enum value
	X12TransactionSetX12310 = "X12_310"

	// X12TransactionSetX12315 is a X12TransactionSet enum value
	X12TransactionSetX12315 = "X12_315"

	// X12TransactionSetX12322 is a X12TransactionSet enum value
	X12TransactionSetX12322 = "X12_322"

	// X12TransactionSetX12404 is a X12TransactionSet enum value
	X12TransactionSetX12404 = "X12_404"

	// X12TransactionSetX12410 is a X12TransactionSet enum value
	X12TransactionSetX12410 = "X12_410"

	// X12TransactionSetX12820 is a X12TransactionSet enum value
	X12TransactionSetX12820 = "X12_820"

	// X12TransactionSetX12824 is a X12TransactionSet enum value
	X12TransactionSetX12824 = "X12_824"

	// X12TransactionSetX12830 is a X12TransactionSet enum value
	X12TransactionSetX12830 = "X12_830"

	// X12TransactionSetX12846 is a X12TransactionSet enum value
	X12TransactionSetX12846 = "X12_846"

	// X12TransactionSetX12850 is a X12TransactionSet enum value
	X12TransactionSetX12850 = "X12_850"

	// X12TransactionSetX12852 is a X12TransactionSet enum value
	X12TransactionSetX12852 = "X12_852"

	// X12TransactionSetX12855 is a X12TransactionSet enum value
	X12TransactionSetX12855 = "X12_855"

	// X12TransactionSetX12856 is a X12TransactionSet enum value
	X12TransactionSetX12856 = "X12_856"

	// X12TransactionSetX12860 is a X12TransactionSet enum value
	X12TransactionSetX12860 = "X12_860"

	// X12TransactionSetX12861 is a X12TransactionSet enum value
	X12TransactionSetX12861 = "X12_861"

	// X12TransactionSetX12864 is a X12TransactionSet enum value
	X12TransactionSetX12864 = "X12_864"

	// X12TransactionSetX12940 is a X12TransactionSet enum value
	X12TransactionSetX12940 = "X12_940"

	// X12TransactionSetX12990 is a X12TransactionSet enum value
	X12TransactionSetX12990 = "X12_990"

	// X12TransactionSetX12997 is a X12TransactionSet enum value
	X12TransactionSetX12997 = "X12_997"
)
View Source
const (
	// X12VersionVersion4010 is a X12Version enum value
	X12VersionVersion4010 = "VERSION_4010"

	// X12VersionVersion4030 is a X12Version enum value
	X12VersionVersion4030 = "VERSION_4030"

	// X12VersionVersion5010 is a X12Version enum value
	X12VersionVersion5010 = "VERSION_5010"
)
View Source
const (

	// ErrCodeAccessDeniedException for service response error code
	// "AccessDeniedException".
	//
	// You do not have sufficient access to perform this action.
	ErrCodeAccessDeniedException = "AccessDeniedException"

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// A conflict exception is thrown when you attempt to delete a resource (such
	// as a profile or a capability) that is being used by other resources.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// This exception is thrown when an error occurs in the Amazon Web Services
	// B2B Data Interchange service.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// Occurs when the requested resource does not exist, or cannot be found. In
	// some cases, the resource exists in a region other than the region specified
	// in the API call.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceQuotaExceededException for service response error code
	// "ServiceQuotaExceededException".
	//
	// Occurs when the calling command attempts to exceed one of the service quotas,
	// for example trying to create a capability when you already have the maximum
	// number of capabilities allowed.
	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// The request was denied due to throttling: the data speed and rendering may
	// be limited depending on various parameters and conditions.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// Occurs when a B2BI object cannot be validated against a request from another
	// object.
	ErrCodeValidationException = "ValidationException"
)
View Source
const (
	ServiceName = "b2bi"      // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "b2bi"      // ServiceID is a unique identifier of a specific service.
)

Service information constants

View Source
const (
	// CapabilityTypeEdi is a CapabilityType enum value
	CapabilityTypeEdi = "edi"
)

Variables

This section is empty.

Functions

func CapabilityType_Values

func CapabilityType_Values() []string

CapabilityType_Values returns all elements of the CapabilityType enum

func FileFormat_Values

func FileFormat_Values() []string

FileFormat_Values returns all elements of the FileFormat enum

func Logging_Values

func Logging_Values() []string

Logging_Values returns all elements of the Logging enum

func TransformerJobStatus_Values

func TransformerJobStatus_Values() []string

TransformerJobStatus_Values returns all elements of the TransformerJobStatus enum

func TransformerStatus_Values

func TransformerStatus_Values() []string

TransformerStatus_Values returns all elements of the TransformerStatus enum

func X12TransactionSet_Values

func X12TransactionSet_Values() []string

X12TransactionSet_Values returns all elements of the X12TransactionSet enum

func X12Version_Values

func X12Version_Values() []string

X12Version_Values returns all elements of the X12Version enum

Types

type AccessDeniedException

type AccessDeniedException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" min:"10" type:"string"`
	// contains filtered or unexported fields
}

You do not have sufficient access to perform this action.

func (*AccessDeniedException) Code

func (s *AccessDeniedException) Code() string

Code returns the exception type name.

func (*AccessDeniedException) Error

func (s *AccessDeniedException) Error() string

func (AccessDeniedException) GoString

func (s AccessDeniedException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*AccessDeniedException) Message

func (s *AccessDeniedException) Message() string

Message returns the exception's message.

func (*AccessDeniedException) OrigErr

func (s *AccessDeniedException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AccessDeniedException) RequestID

func (s *AccessDeniedException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AccessDeniedException) StatusCode

func (s *AccessDeniedException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AccessDeniedException) String

func (s AccessDeniedException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type B2bi

type B2bi struct {
	*client.Client
}

B2bi provides the API operation methods for making requests to AWS B2B Data Interchange. See this package's package overview docs for details on the service.

B2bi methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *B2bi

New creates a new instance of the B2bi client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a B2bi client from just a session.
svc := b2bi.New(mySession)

// Create a B2bi client with additional configuration
svc := b2bi.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*B2bi) CreateCapability

func (c *B2bi) CreateCapability(input *CreateCapabilityInput) (*CreateCapabilityOutput, error)

CreateCapability API operation for AWS B2B Data Interchange.

Instantiates a capability based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation CreateCapability for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateCapability

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.CreateCapabilityInput{
		ClientToken: aws.String("foo"),
		Configuration: &b2bi.CapabilityConfiguration{
			Edi: &b2bi.EdiConfiguration{
				InputLocation: &b2bi.S3Location{
					BucketName: aws.String("test-bucket"),
					Key:        aws.String("input/"),
				},
				OutputLocation: &b2bi.S3Location{
					BucketName: aws.String("test-bucket"),
					Key:        aws.String("output/"),
				},
				TransformerId: aws.String("tr-9a893cf536df4658b"),
				Type: &b2bi.EdiType{
					X12Details: &b2bi.X12Details{
						TransactionSet: aws.String("X12_110"),
						Version:        aws.String("VERSION_4010"),
					},
				},
			},
		},
		InstructionsDocuments: []*b2bi.S3Location{
			{
				BucketName: aws.String("test-bucket"),
				Key:        aws.String("instructiondoc.txt"),
			},
		},
		Name: aws.String("b2biexample"),
		Tags: []*b2bi.Tag{
			{
				Key:   aws.String("capabilityKey1"),
				Value: aws.String("capabilityValue1"),
			},
		},
		Type: aws.String("edi"),
	}

	result, err := svc.CreateCapability(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) CreateCapabilityRequest

func (c *B2bi) CreateCapabilityRequest(input *CreateCapabilityInput) (req *request.Request, output *CreateCapabilityOutput)

CreateCapabilityRequest generates a "aws/request.Request" representing the client's request for the CreateCapability operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateCapability for more information on using the CreateCapability API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateCapabilityRequest method.
req, resp := client.CreateCapabilityRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateCapability

func (*B2bi) CreateCapabilityWithContext

func (c *B2bi) CreateCapabilityWithContext(ctx aws.Context, input *CreateCapabilityInput, opts ...request.Option) (*CreateCapabilityOutput, error)

CreateCapabilityWithContext is the same as CreateCapability with the addition of the ability to pass a context and additional request options.

See CreateCapability for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) CreatePartnership

func (c *B2bi) CreatePartnership(input *CreatePartnershipInput) (*CreatePartnershipOutput, error)

CreatePartnership API operation for AWS B2B Data Interchange.

Creates a partnership between a customer and a trading partner, based on the supplied parameters. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation CreatePartnership for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreatePartnership

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.CreatePartnershipInput{
		Capabilities: []*string{
			aws.String("ca-963a8121e4fc4e348"),
		},
		ClientToken: aws.String("foo"),
		Email:       aws.String("john@example.com"),
		Name:        aws.String("b2bipartner"),
		Phone:       aws.String("5555555555"),
		ProfileId:   aws.String("p-60fbc37c87f04fce9"),
		Tags: []*b2bi.Tag{
			{
				Key:   aws.String("sampleKey1"),
				Value: aws.String("sampleValue1"),
			},
		},
	}

	result, err := svc.CreatePartnership(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) CreatePartnershipRequest

func (c *B2bi) CreatePartnershipRequest(input *CreatePartnershipInput) (req *request.Request, output *CreatePartnershipOutput)

CreatePartnershipRequest generates a "aws/request.Request" representing the client's request for the CreatePartnership operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreatePartnership for more information on using the CreatePartnership API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreatePartnershipRequest method.
req, resp := client.CreatePartnershipRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreatePartnership

func (*B2bi) CreatePartnershipWithContext

func (c *B2bi) CreatePartnershipWithContext(ctx aws.Context, input *CreatePartnershipInput, opts ...request.Option) (*CreatePartnershipOutput, error)

CreatePartnershipWithContext is the same as CreatePartnership with the addition of the ability to pass a context and additional request options.

See CreatePartnership for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) CreateProfile

func (c *B2bi) CreateProfile(input *CreateProfileInput) (*CreateProfileOutput, error)

CreateProfile API operation for AWS B2B Data Interchange.

Creates a customer profile. You can have up to five customer profiles, each representing a distinct private network. A profile is the mechanism used to create the concept of a private network.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation CreateProfile for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateProfile

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.CreateProfileInput{
		BusinessName: aws.String("John's Shipping"),
		ClientToken:  aws.String("foo"),
		Email:        aws.String("john@example.com"),
		Logging:      aws.String("ENABLED"),
		Name:         aws.String("Shipping Profile"),
		Phone:        aws.String("5555555555"),
		Tags: []*b2bi.Tag{
			{
				Key:   aws.String("sampleKey"),
				Value: aws.String("sampleValue"),
			},
		},
	}

	result, err := svc.CreateProfile(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) CreateProfileRequest

func (c *B2bi) CreateProfileRequest(input *CreateProfileInput) (req *request.Request, output *CreateProfileOutput)

CreateProfileRequest generates a "aws/request.Request" representing the client's request for the CreateProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateProfile for more information on using the CreateProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateProfileRequest method.
req, resp := client.CreateProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateProfile

func (*B2bi) CreateProfileWithContext

func (c *B2bi) CreateProfileWithContext(ctx aws.Context, input *CreateProfileInput, opts ...request.Option) (*CreateProfileOutput, error)

CreateProfileWithContext is the same as CreateProfile with the addition of the ability to pass a context and additional request options.

See CreateProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) CreateTransformer

func (c *B2bi) CreateTransformer(input *CreateTransformerInput) (*CreateTransformerOutput, error)

CreateTransformer API operation for AWS B2B Data Interchange.

Creates a transformer. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation CreateTransformer for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateTransformer

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.CreateTransformerInput{
		ClientToken: aws.String("foo"),
		EdiType: &b2bi.EdiType{
			X12Details: &b2bi.X12Details{
				TransactionSet: aws.String("X12_110"),
				Version:        aws.String("VERSION_4010"),
			},
		},
		FileFormat:      aws.String("JSON"),
		MappingTemplate: aws.String("{}"),
		Name:            aws.String("transformJSON"),
		SampleDocument:  aws.String("s3://test-bucket/sampleDoc.txt"),
		Tags: []*b2bi.Tag{
			{
				Key:   aws.String("sampleKey"),
				Value: aws.String("sampleValue"),
			},
		},
	}

	result, err := svc.CreateTransformer(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) CreateTransformerRequest

func (c *B2bi) CreateTransformerRequest(input *CreateTransformerInput) (req *request.Request, output *CreateTransformerOutput)

CreateTransformerRequest generates a "aws/request.Request" representing the client's request for the CreateTransformer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateTransformer for more information on using the CreateTransformer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateTransformerRequest method.
req, resp := client.CreateTransformerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/CreateTransformer

func (*B2bi) CreateTransformerWithContext

func (c *B2bi) CreateTransformerWithContext(ctx aws.Context, input *CreateTransformerInput, opts ...request.Option) (*CreateTransformerOutput, error)

CreateTransformerWithContext is the same as CreateTransformer with the addition of the ability to pass a context and additional request options.

See CreateTransformer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) DeleteCapability

func (c *B2bi) DeleteCapability(input *DeleteCapabilityInput) (*DeleteCapabilityOutput, error)

DeleteCapability API operation for AWS B2B Data Interchange.

Deletes the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation DeleteCapability for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeleteCapability

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.DeleteCapabilityInput{
		CapabilityId: aws.String("ca-963a8121e4fc4e348"),
	}

	result, err := svc.DeleteCapability(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) DeleteCapabilityRequest

func (c *B2bi) DeleteCapabilityRequest(input *DeleteCapabilityInput) (req *request.Request, output *DeleteCapabilityOutput)

DeleteCapabilityRequest generates a "aws/request.Request" representing the client's request for the DeleteCapability operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteCapability for more information on using the DeleteCapability API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteCapabilityRequest method.
req, resp := client.DeleteCapabilityRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeleteCapability

func (*B2bi) DeleteCapabilityWithContext

func (c *B2bi) DeleteCapabilityWithContext(ctx aws.Context, input *DeleteCapabilityInput, opts ...request.Option) (*DeleteCapabilityOutput, error)

DeleteCapabilityWithContext is the same as DeleteCapability with the addition of the ability to pass a context and additional request options.

See DeleteCapability for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) DeletePartnership

func (c *B2bi) DeletePartnership(input *DeletePartnershipInput) (*DeletePartnershipOutput, error)

DeletePartnership API operation for AWS B2B Data Interchange.

Deletes the specified partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation DeletePartnership for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeletePartnership

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.DeletePartnershipInput{
		PartnershipId: aws.String("ps-219fa02f5b4242af8"),
	}

	result, err := svc.DeletePartnership(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) DeletePartnershipRequest

func (c *B2bi) DeletePartnershipRequest(input *DeletePartnershipInput) (req *request.Request, output *DeletePartnershipOutput)

DeletePartnershipRequest generates a "aws/request.Request" representing the client's request for the DeletePartnership operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeletePartnership for more information on using the DeletePartnership API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeletePartnershipRequest method.
req, resp := client.DeletePartnershipRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeletePartnership

func (*B2bi) DeletePartnershipWithContext

func (c *B2bi) DeletePartnershipWithContext(ctx aws.Context, input *DeletePartnershipInput, opts ...request.Option) (*DeletePartnershipOutput, error)

DeletePartnershipWithContext is the same as DeletePartnership with the addition of the ability to pass a context and additional request options.

See DeletePartnership for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) DeleteProfile

func (c *B2bi) DeleteProfile(input *DeleteProfileInput) (*DeleteProfileOutput, error)

DeleteProfile API operation for AWS B2B Data Interchange.

Deletes the specified profile. A profile is the mechanism used to create the concept of a private network.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation DeleteProfile for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeleteProfile

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.DeleteProfileInput{
		ProfileId: aws.String("p-60fbc37c87f04fce9"),
	}

	result, err := svc.DeleteProfile(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) DeleteProfileRequest

func (c *B2bi) DeleteProfileRequest(input *DeleteProfileInput) (req *request.Request, output *DeleteProfileOutput)

DeleteProfileRequest generates a "aws/request.Request" representing the client's request for the DeleteProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteProfile for more information on using the DeleteProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteProfileRequest method.
req, resp := client.DeleteProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeleteProfile

func (*B2bi) DeleteProfileWithContext

func (c *B2bi) DeleteProfileWithContext(ctx aws.Context, input *DeleteProfileInput, opts ...request.Option) (*DeleteProfileOutput, error)

DeleteProfileWithContext is the same as DeleteProfile with the addition of the ability to pass a context and additional request options.

See DeleteProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) DeleteTransformer

func (c *B2bi) DeleteTransformer(input *DeleteTransformerInput) (*DeleteTransformerOutput, error)

DeleteTransformer API operation for AWS B2B Data Interchange.

Deletes the specified transformer. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation DeleteTransformer for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeleteTransformer

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.DeleteTransformerInput{
		TransformerId: aws.String("tr-974c129999f84d8c9"),
	}

	result, err := svc.DeleteTransformer(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) DeleteTransformerRequest

func (c *B2bi) DeleteTransformerRequest(input *DeleteTransformerInput) (req *request.Request, output *DeleteTransformerOutput)

DeleteTransformerRequest generates a "aws/request.Request" representing the client's request for the DeleteTransformer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteTransformer for more information on using the DeleteTransformer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteTransformerRequest method.
req, resp := client.DeleteTransformerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/DeleteTransformer

func (*B2bi) DeleteTransformerWithContext

func (c *B2bi) DeleteTransformerWithContext(ctx aws.Context, input *DeleteTransformerInput, opts ...request.Option) (*DeleteTransformerOutput, error)

DeleteTransformerWithContext is the same as DeleteTransformer with the addition of the ability to pass a context and additional request options.

See DeleteTransformer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) GetCapability

func (c *B2bi) GetCapability(input *GetCapabilityInput) (*GetCapabilityOutput, error)

GetCapability API operation for AWS B2B Data Interchange.

Retrieves the details for the specified capability. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation GetCapability for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetCapability

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.GetCapabilityInput{
		CapabilityId: aws.String("ca-963a8121e4fc4e348"),
	}

	result, err := svc.GetCapability(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) GetCapabilityRequest

func (c *B2bi) GetCapabilityRequest(input *GetCapabilityInput) (req *request.Request, output *GetCapabilityOutput)

GetCapabilityRequest generates a "aws/request.Request" representing the client's request for the GetCapability operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetCapability for more information on using the GetCapability API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetCapabilityRequest method.
req, resp := client.GetCapabilityRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetCapability

func (*B2bi) GetCapabilityWithContext

func (c *B2bi) GetCapabilityWithContext(ctx aws.Context, input *GetCapabilityInput, opts ...request.Option) (*GetCapabilityOutput, error)

GetCapabilityWithContext is the same as GetCapability with the addition of the ability to pass a context and additional request options.

See GetCapability for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) GetPartnership

func (c *B2bi) GetPartnership(input *GetPartnershipInput) (*GetPartnershipOutput, error)

GetPartnership API operation for AWS B2B Data Interchange.

Retrieves the details for a partnership, based on the partner and profile IDs specified. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation GetPartnership for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetPartnership

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.GetPartnershipInput{
		PartnershipId: aws.String("ps-219fa02f5b4242af8"),
	}

	result, err := svc.GetPartnership(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) GetPartnershipRequest

func (c *B2bi) GetPartnershipRequest(input *GetPartnershipInput) (req *request.Request, output *GetPartnershipOutput)

GetPartnershipRequest generates a "aws/request.Request" representing the client's request for the GetPartnership operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetPartnership for more information on using the GetPartnership API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetPartnershipRequest method.
req, resp := client.GetPartnershipRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetPartnership

func (*B2bi) GetPartnershipWithContext

func (c *B2bi) GetPartnershipWithContext(ctx aws.Context, input *GetPartnershipInput, opts ...request.Option) (*GetPartnershipOutput, error)

GetPartnershipWithContext is the same as GetPartnership with the addition of the ability to pass a context and additional request options.

See GetPartnership for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) GetProfile

func (c *B2bi) GetProfile(input *GetProfileInput) (*GetProfileOutput, error)

GetProfile API operation for AWS B2B Data Interchange.

Retrieves the details for the profile specified by the profile ID. A profile is the mechanism used to create the concept of a private network.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation GetProfile for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetProfile

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.GetProfileInput{
		ProfileId: aws.String("p-60fbc37c87f04fce9"),
	}

	result, err := svc.GetProfile(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) GetProfileRequest

func (c *B2bi) GetProfileRequest(input *GetProfileInput) (req *request.Request, output *GetProfileOutput)

GetProfileRequest generates a "aws/request.Request" representing the client's request for the GetProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetProfile for more information on using the GetProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetProfileRequest method.
req, resp := client.GetProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetProfile

func (*B2bi) GetProfileWithContext

func (c *B2bi) GetProfileWithContext(ctx aws.Context, input *GetProfileInput, opts ...request.Option) (*GetProfileOutput, error)

GetProfileWithContext is the same as GetProfile with the addition of the ability to pass a context and additional request options.

See GetProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) GetTransformer

func (c *B2bi) GetTransformer(input *GetTransformerInput) (*GetTransformerOutput, error)

GetTransformer API operation for AWS B2B Data Interchange.

Retrieves the details for the transformer specified by the transformer ID. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation GetTransformer for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetTransformer

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.GetTransformerInput{
		TransformerId: aws.String("tr-974c129999f84d8c9"),
	}

	result, err := svc.GetTransformer(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) GetTransformerJob

func (c *B2bi) GetTransformerJob(input *GetTransformerJobInput) (*GetTransformerJobOutput, error)

GetTransformerJob API operation for AWS B2B Data Interchange.

Returns the details of the transformer run, based on the Transformer job ID.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation GetTransformerJob for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetTransformerJob

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.GetTransformerJobInput{
		TransformerId:    aws.String("tr-974c129999f84d8c9"),
		TransformerJobId: aws.String("tj-vpYxfV7yQOqjMSYllEslLw"),
	}

	result, err := svc.GetTransformerJob(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) GetTransformerJobRequest

func (c *B2bi) GetTransformerJobRequest(input *GetTransformerJobInput) (req *request.Request, output *GetTransformerJobOutput)

GetTransformerJobRequest generates a "aws/request.Request" representing the client's request for the GetTransformerJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetTransformerJob for more information on using the GetTransformerJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetTransformerJobRequest method.
req, resp := client.GetTransformerJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetTransformerJob

func (*B2bi) GetTransformerJobWithContext

func (c *B2bi) GetTransformerJobWithContext(ctx aws.Context, input *GetTransformerJobInput, opts ...request.Option) (*GetTransformerJobOutput, error)

GetTransformerJobWithContext is the same as GetTransformerJob with the addition of the ability to pass a context and additional request options.

See GetTransformerJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) GetTransformerRequest

func (c *B2bi) GetTransformerRequest(input *GetTransformerInput) (req *request.Request, output *GetTransformerOutput)

GetTransformerRequest generates a "aws/request.Request" representing the client's request for the GetTransformer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetTransformer for more information on using the GetTransformer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetTransformerRequest method.
req, resp := client.GetTransformerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/GetTransformer

func (*B2bi) GetTransformerWithContext

func (c *B2bi) GetTransformerWithContext(ctx aws.Context, input *GetTransformerInput, opts ...request.Option) (*GetTransformerOutput, error)

GetTransformerWithContext is the same as GetTransformer with the addition of the ability to pass a context and additional request options.

See GetTransformer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListCapabilities

func (c *B2bi) ListCapabilities(input *ListCapabilitiesInput) (*ListCapabilitiesOutput, error)

ListCapabilities API operation for AWS B2B Data Interchange.

Lists the capabilities associated with your Amazon Web Services account for your current or specified region. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation ListCapabilities for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListCapabilities

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.ListCapabilitiesInput{
		MaxResults: aws.Int64(50),
		NextToken:  aws.String("foo"),
	}

	result, err := svc.ListCapabilities(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) ListCapabilitiesPages

func (c *B2bi) ListCapabilitiesPages(input *ListCapabilitiesInput, fn func(*ListCapabilitiesOutput, bool) bool) error

ListCapabilitiesPages iterates over the pages of a ListCapabilities operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListCapabilities method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListCapabilities operation.
pageNum := 0
err := client.ListCapabilitiesPages(params,
    func(page *b2bi.ListCapabilitiesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*B2bi) ListCapabilitiesPagesWithContext

func (c *B2bi) ListCapabilitiesPagesWithContext(ctx aws.Context, input *ListCapabilitiesInput, fn func(*ListCapabilitiesOutput, bool) bool, opts ...request.Option) error

ListCapabilitiesPagesWithContext same as ListCapabilitiesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListCapabilitiesRequest

func (c *B2bi) ListCapabilitiesRequest(input *ListCapabilitiesInput) (req *request.Request, output *ListCapabilitiesOutput)

ListCapabilitiesRequest generates a "aws/request.Request" representing the client's request for the ListCapabilities operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListCapabilities for more information on using the ListCapabilities API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListCapabilitiesRequest method.
req, resp := client.ListCapabilitiesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListCapabilities

func (*B2bi) ListCapabilitiesWithContext

func (c *B2bi) ListCapabilitiesWithContext(ctx aws.Context, input *ListCapabilitiesInput, opts ...request.Option) (*ListCapabilitiesOutput, error)

ListCapabilitiesWithContext is the same as ListCapabilities with the addition of the ability to pass a context and additional request options.

See ListCapabilities for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListPartnerships

func (c *B2bi) ListPartnerships(input *ListPartnershipsInput) (*ListPartnershipsOutput, error)

ListPartnerships API operation for AWS B2B Data Interchange.

Lists the partnerships associated with your Amazon Web Services account for your current or specified region. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation ListPartnerships for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListPartnerships

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.ListPartnershipsInput{
		MaxResults: aws.Int64(50),
		NextToken:  aws.String("foo"),
		ProfileId:  aws.String("p-60fbc37c87f04fce9"),
	}

	result, err := svc.ListPartnerships(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) ListPartnershipsPages

func (c *B2bi) ListPartnershipsPages(input *ListPartnershipsInput, fn func(*ListPartnershipsOutput, bool) bool) error

ListPartnershipsPages iterates over the pages of a ListPartnerships operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListPartnerships method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListPartnerships operation.
pageNum := 0
err := client.ListPartnershipsPages(params,
    func(page *b2bi.ListPartnershipsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*B2bi) ListPartnershipsPagesWithContext

func (c *B2bi) ListPartnershipsPagesWithContext(ctx aws.Context, input *ListPartnershipsInput, fn func(*ListPartnershipsOutput, bool) bool, opts ...request.Option) error

ListPartnershipsPagesWithContext same as ListPartnershipsPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListPartnershipsRequest

func (c *B2bi) ListPartnershipsRequest(input *ListPartnershipsInput) (req *request.Request, output *ListPartnershipsOutput)

ListPartnershipsRequest generates a "aws/request.Request" representing the client's request for the ListPartnerships operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListPartnerships for more information on using the ListPartnerships API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListPartnershipsRequest method.
req, resp := client.ListPartnershipsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListPartnerships

func (*B2bi) ListPartnershipsWithContext

func (c *B2bi) ListPartnershipsWithContext(ctx aws.Context, input *ListPartnershipsInput, opts ...request.Option) (*ListPartnershipsOutput, error)

ListPartnershipsWithContext is the same as ListPartnerships with the addition of the ability to pass a context and additional request options.

See ListPartnerships for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListProfiles

func (c *B2bi) ListProfiles(input *ListProfilesInput) (*ListProfilesOutput, error)

ListProfiles API operation for AWS B2B Data Interchange.

Lists the profiles associated with your Amazon Web Services account for your current or specified region. A profile is the mechanism used to create the concept of a private network.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation ListProfiles for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListProfiles

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.ListProfilesInput{
		MaxResults: aws.Int64(50),
		NextToken:  aws.String("foo"),
	}

	result, err := svc.ListProfiles(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) ListProfilesPages

func (c *B2bi) ListProfilesPages(input *ListProfilesInput, fn func(*ListProfilesOutput, bool) bool) error

ListProfilesPages iterates over the pages of a ListProfiles operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProfiles method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListProfiles operation.
pageNum := 0
err := client.ListProfilesPages(params,
    func(page *b2bi.ListProfilesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*B2bi) ListProfilesPagesWithContext

func (c *B2bi) ListProfilesPagesWithContext(ctx aws.Context, input *ListProfilesInput, fn func(*ListProfilesOutput, bool) bool, opts ...request.Option) error

ListProfilesPagesWithContext same as ListProfilesPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListProfilesRequest

func (c *B2bi) ListProfilesRequest(input *ListProfilesInput) (req *request.Request, output *ListProfilesOutput)

ListProfilesRequest generates a "aws/request.Request" representing the client's request for the ListProfiles operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListProfiles for more information on using the ListProfiles API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListProfilesRequest method.
req, resp := client.ListProfilesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListProfiles

func (*B2bi) ListProfilesWithContext

func (c *B2bi) ListProfilesWithContext(ctx aws.Context, input *ListProfilesInput, opts ...request.Option) (*ListProfilesOutput, error)

ListProfilesWithContext is the same as ListProfiles with the addition of the ability to pass a context and additional request options.

See ListProfiles for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListTagsForResource

func (c *B2bi) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

ListTagsForResource API operation for AWS B2B Data Interchange.

Lists all of the tags associated with the Amazon Resource Name (ARN) that you specify. The resource can be a capability, partnership, profile, or transformer.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation ListTagsForResource for usage and error information.

Returned Error Types:

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListTagsForResource

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.ListTagsForResourceInput{
		ResourceARN: aws.String("arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9"),
	}

	result, err := svc.ListTagsForResource(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) ListTagsForResourceRequest

func (c *B2bi) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTagsForResourceRequest method.
req, resp := client.ListTagsForResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListTagsForResource

func (*B2bi) ListTagsForResourceWithContext

func (c *B2bi) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)

ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.

See ListTagsForResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListTransformers

func (c *B2bi) ListTransformers(input *ListTransformersInput) (*ListTransformersOutput, error)

ListTransformers API operation for AWS B2B Data Interchange.

Lists the available transformers. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation ListTransformers for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListTransformers

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.ListTransformersInput{
		MaxResults: aws.Int64(50),
		NextToken:  aws.String("foo"),
	}

	result, err := svc.ListTransformers(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) ListTransformersPages

func (c *B2bi) ListTransformersPages(input *ListTransformersInput, fn func(*ListTransformersOutput, bool) bool) error

ListTransformersPages iterates over the pages of a ListTransformers operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListTransformers method for more information on how to use this operation.

Note: This operation can generate multiple requests to a service.

// Example iterating over at most 3 pages of a ListTransformers operation.
pageNum := 0
err := client.ListTransformersPages(params,
    func(page *b2bi.ListTransformersOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*B2bi) ListTransformersPagesWithContext

func (c *B2bi) ListTransformersPagesWithContext(ctx aws.Context, input *ListTransformersInput, fn func(*ListTransformersOutput, bool) bool, opts ...request.Option) error

ListTransformersPagesWithContext same as ListTransformersPages except it takes a Context and allows setting request options on the pages.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) ListTransformersRequest

func (c *B2bi) ListTransformersRequest(input *ListTransformersInput) (req *request.Request, output *ListTransformersOutput)

ListTransformersRequest generates a "aws/request.Request" representing the client's request for the ListTransformers operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListTransformers for more information on using the ListTransformers API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListTransformersRequest method.
req, resp := client.ListTransformersRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/ListTransformers

func (*B2bi) ListTransformersWithContext

func (c *B2bi) ListTransformersWithContext(ctx aws.Context, input *ListTransformersInput, opts ...request.Option) (*ListTransformersOutput, error)

ListTransformersWithContext is the same as ListTransformers with the addition of the ability to pass a context and additional request options.

See ListTransformers for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) StartTransformerJob

func (c *B2bi) StartTransformerJob(input *StartTransformerJobInput) (*StartTransformerJobOutput, error)

StartTransformerJob API operation for AWS B2B Data Interchange.

Runs a job, using a transformer, to parse input EDI (electronic data interchange) file into the output structures used by Amazon Web Services B2BI Data Interchange.

If you only want to transform EDI (electronic data interchange) documents, you don't need to create profiles, partnerships or capabilities. Just create and configure a transformer, and then run the StartTransformerJob API to process your files.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation StartTransformerJob for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/StartTransformerJob

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.StartTransformerJobInput{
		ClientToken: aws.String("foo"),
		InputFile: &b2bi.S3Location{
			BucketName: aws.String("test-bucket"),
			Key:        aws.String("input/inputFile.txt"),
		},
		OutputLocation: &b2bi.S3Location{
			BucketName: aws.String("test-bucket"),
			Key:        aws.String("output/"),
		},
		TransformerId: aws.String("tr-974c129999f84d8c9"),
	}

	result, err := svc.StartTransformerJob(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) StartTransformerJobRequest

func (c *B2bi) StartTransformerJobRequest(input *StartTransformerJobInput) (req *request.Request, output *StartTransformerJobOutput)

StartTransformerJobRequest generates a "aws/request.Request" representing the client's request for the StartTransformerJob operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See StartTransformerJob for more information on using the StartTransformerJob API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the StartTransformerJobRequest method.
req, resp := client.StartTransformerJobRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/StartTransformerJob

func (*B2bi) StartTransformerJobWithContext

func (c *B2bi) StartTransformerJobWithContext(ctx aws.Context, input *StartTransformerJobInput, opts ...request.Option) (*StartTransformerJobOutput, error)

StartTransformerJobWithContext is the same as StartTransformerJob with the addition of the ability to pass a context and additional request options.

See StartTransformerJob for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) TagResource

func (c *B2bi) TagResource(input *TagResourceInput) (*TagResourceOutput, error)

TagResource API operation for AWS B2B Data Interchange.

Attaches a key-value pair to a resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.

There is no response returned from this call.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation TagResource for usage and error information.

Returned Error Types:

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TagResource

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.TagResourceInput{
		ResourceARN: aws.String("arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9"),
		Tags: []*b2bi.Tag{
			{
				Key:   aws.String("sampleKey"),
				Value: aws.String("SampleValue"),
			},
		},
	}

	result, err := svc.TagResource(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) TagResourceRequest

func (c *B2bi) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)

TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TagResource for more information on using the TagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TagResourceRequest method.
req, resp := client.TagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TagResource

func (*B2bi) TagResourceWithContext

func (c *B2bi) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)

TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.

See TagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) TestMapping

func (c *B2bi) TestMapping(input *TestMappingInput) (*TestMappingOutput, error)

TestMapping API operation for AWS B2B Data Interchange.

Maps the input file according to the provided template file. The API call downloads the file contents from the Amazon S3 location, and passes the contents in as a string, to the inputFileContent parameter.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation TestMapping for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TestMapping

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.TestMappingInput{
		FileFormat:       aws.String("JSON"),
		InputFileContent: aws.String("Sample file content"),
		MappingTemplate:  aws.String("$"),
	}

	result, err := svc.TestMapping(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) TestMappingRequest

func (c *B2bi) TestMappingRequest(input *TestMappingInput) (req *request.Request, output *TestMappingOutput)

TestMappingRequest generates a "aws/request.Request" representing the client's request for the TestMapping operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TestMapping for more information on using the TestMapping API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TestMappingRequest method.
req, resp := client.TestMappingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TestMapping

func (*B2bi) TestMappingWithContext

func (c *B2bi) TestMappingWithContext(ctx aws.Context, input *TestMappingInput, opts ...request.Option) (*TestMappingOutput, error)

TestMappingWithContext is the same as TestMapping with the addition of the ability to pass a context and additional request options.

See TestMapping for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) TestParsing

func (c *B2bi) TestParsing(input *TestParsingInput) (*TestParsingOutput, error)

TestParsing API operation for AWS B2B Data Interchange.

Parses the input EDI (electronic data interchange) file.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation TestParsing for usage and error information.

Returned Error Types:

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TestParsing

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.TestParsingInput{
		EdiType: &b2bi.EdiType{
			X12Details: &b2bi.X12Details{
				TransactionSet: aws.String("X12_110"),
				Version:        aws.String("VERSION_4010"),
			},
		},
		FileFormat: aws.String("JSON"),
		InputFile: &b2bi.S3Location{
			BucketName: aws.String("test-bucket"),
			Key:        aws.String("sampleFile.txt"),
		},
	}

	result, err := svc.TestParsing(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) TestParsingRequest

func (c *B2bi) TestParsingRequest(input *TestParsingInput) (req *request.Request, output *TestParsingOutput)

TestParsingRequest generates a "aws/request.Request" representing the client's request for the TestParsing operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See TestParsing for more information on using the TestParsing API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the TestParsingRequest method.
req, resp := client.TestParsingRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/TestParsing

func (*B2bi) TestParsingWithContext

func (c *B2bi) TestParsingWithContext(ctx aws.Context, input *TestParsingInput, opts ...request.Option) (*TestParsingOutput, error)

TestParsingWithContext is the same as TestParsing with the addition of the ability to pass a context and additional request options.

See TestParsing for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) UntagResource

func (c *B2bi) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)

UntagResource API operation for AWS B2B Data Interchange.

Detaches a key-value pair from the specified resource, as identified by its Amazon Resource Name (ARN). Resources are capability, partnership, profile, transformers and other entities.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation UntagResource for usage and error information.

Returned Error Types:

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UntagResource

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.UntagResourceInput{
		ResourceARN: aws.String("arn:aws:b2bi:us-west-2:123456789012:profile/p-60fbc37c87f04fce9"),
		TagKeys: []*string{
			aws.String("sampleKey"),
		},
	}

	result, err := svc.UntagResource(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) UntagResourceRequest

func (c *B2bi) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)

UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UntagResource for more information on using the UntagResource API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UntagResourceRequest method.
req, resp := client.UntagResourceRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UntagResource

func (*B2bi) UntagResourceWithContext

func (c *B2bi) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)

UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.

See UntagResource for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) UpdateCapability

func (c *B2bi) UpdateCapability(input *UpdateCapabilityInput) (*UpdateCapabilityOutput, error)

UpdateCapability API operation for AWS B2B Data Interchange.

Updates some of the parameters for a capability, based on the specified parameters. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation UpdateCapability for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateCapability

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.UpdateCapabilityInput{
		CapabilityId: aws.String("ca-963a8121e4fc4e348"),
		Configuration: &b2bi.CapabilityConfiguration{
			Edi: &b2bi.EdiConfiguration{
				InputLocation: &b2bi.S3Location{
					BucketName: aws.String("test-bucket"),
					Key:        aws.String("input/"),
				},
				OutputLocation: &b2bi.S3Location{
					BucketName: aws.String("test-bucket"),
					Key:        aws.String("output/"),
				},
				TransformerId: aws.String("tr-9a893cf536df4658b"),
				Type: &b2bi.EdiType{
					X12Details: &b2bi.X12Details{
						TransactionSet: aws.String("X12_110"),
						Version:        aws.String("VERSION_4010"),
					},
				},
			},
		},
		InstructionsDocuments: []*b2bi.S3Location{
			{
				BucketName: aws.String("test-bucket"),
				Key:        aws.String("instructiondoc.txt"),
			},
		},
		Name: aws.String("b2biexample"),
	}

	result, err := svc.UpdateCapability(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) UpdateCapabilityRequest

func (c *B2bi) UpdateCapabilityRequest(input *UpdateCapabilityInput) (req *request.Request, output *UpdateCapabilityOutput)

UpdateCapabilityRequest generates a "aws/request.Request" representing the client's request for the UpdateCapability operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateCapability for more information on using the UpdateCapability API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateCapabilityRequest method.
req, resp := client.UpdateCapabilityRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateCapability

func (*B2bi) UpdateCapabilityWithContext

func (c *B2bi) UpdateCapabilityWithContext(ctx aws.Context, input *UpdateCapabilityInput, opts ...request.Option) (*UpdateCapabilityOutput, error)

UpdateCapabilityWithContext is the same as UpdateCapability with the addition of the ability to pass a context and additional request options.

See UpdateCapability for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) UpdatePartnership

func (c *B2bi) UpdatePartnership(input *UpdatePartnershipInput) (*UpdatePartnershipOutput, error)

UpdatePartnership API operation for AWS B2B Data Interchange.

Updates some of the parameters for a partnership between a customer and trading partner. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation UpdatePartnership for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdatePartnership

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.UpdatePartnershipInput{
		Capabilities: []*string{
			aws.String("ca-963a8121e4fc4e348"),
		},
		Name:          aws.String("b2bipartner"),
		PartnershipId: aws.String("ps-219fa02f5b4242af8"),
	}

	result, err := svc.UpdatePartnership(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) UpdatePartnershipRequest

func (c *B2bi) UpdatePartnershipRequest(input *UpdatePartnershipInput) (req *request.Request, output *UpdatePartnershipOutput)

UpdatePartnershipRequest generates a "aws/request.Request" representing the client's request for the UpdatePartnership operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdatePartnership for more information on using the UpdatePartnership API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdatePartnershipRequest method.
req, resp := client.UpdatePartnershipRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdatePartnership

func (*B2bi) UpdatePartnershipWithContext

func (c *B2bi) UpdatePartnershipWithContext(ctx aws.Context, input *UpdatePartnershipInput, opts ...request.Option) (*UpdatePartnershipOutput, error)

UpdatePartnershipWithContext is the same as UpdatePartnership with the addition of the ability to pass a context and additional request options.

See UpdatePartnership for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) UpdateProfile

func (c *B2bi) UpdateProfile(input *UpdateProfileInput) (*UpdateProfileOutput, error)

UpdateProfile API operation for AWS B2B Data Interchange.

Updates the specified parameters for a profile. A profile is the mechanism used to create the concept of a private network.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation UpdateProfile for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateProfile

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.UpdateProfileInput{
		BusinessName: aws.String("John's Shipping"),
		Email:        aws.String("john@example.com"),
		Name:         aws.String("Shipping Profile"),
		Phone:        aws.String("5555555555"),
		ProfileId:    aws.String("p-60fbc37c87f04fce9"),
	}

	result, err := svc.UpdateProfile(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) UpdateProfileRequest

func (c *B2bi) UpdateProfileRequest(input *UpdateProfileInput) (req *request.Request, output *UpdateProfileOutput)

UpdateProfileRequest generates a "aws/request.Request" representing the client's request for the UpdateProfile operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateProfile for more information on using the UpdateProfile API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateProfileRequest method.
req, resp := client.UpdateProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateProfile

func (*B2bi) UpdateProfileWithContext

func (c *B2bi) UpdateProfileWithContext(ctx aws.Context, input *UpdateProfileInput, opts ...request.Option) (*UpdateProfileOutput, error)

UpdateProfileWithContext is the same as UpdateProfile with the addition of the ability to pass a context and additional request options.

See UpdateProfile for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*B2bi) UpdateTransformer

func (c *B2bi) UpdateTransformer(input *UpdateTransformerInput) (*UpdateTransformerOutput, error)

UpdateTransformer API operation for AWS B2B Data Interchange.

Updates the specified parameters for a transformer. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS B2B Data Interchange's API operation UpdateTransformer for usage and error information.

Returned Error Types:

  • ConflictException A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

  • AccessDeniedException You do not have sufficient access to perform this action.

  • ValidationException Occurs when a B2BI object cannot be validated against a request from another object.

  • ThrottlingException The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

  • ResourceNotFoundException Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

  • ServiceQuotaExceededException Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

  • InternalServerException This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateTransformer

Example (Shared00)
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/awserr"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/b2bi"
)

func main() {
	svc := b2bi.New(session.New())
	input := &b2bi.UpdateTransformerInput{
		EdiType: &b2bi.EdiType{
			X12Details: &b2bi.X12Details{
				TransactionSet: aws.String("X12_110"),
				Version:        aws.String("VERSION_4010"),
			},
		},
		FileFormat:      aws.String("JSON"),
		MappingTemplate: aws.String("{}"),
		Name:            aws.String("transformJSON"),
		SampleDocument:  aws.String("s3://test-bucket/sampleDoc.txt"),
		Status:          aws.String("inactive"),
		TransformerId:   aws.String("tr-974c129999f84d8c9"),
	}

	result, err := svc.UpdateTransformer(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case b2bi.ErrCodeConflictException:
				fmt.Println(b2bi.ErrCodeConflictException, aerr.Error())
			case b2bi.ErrCodeAccessDeniedException:
				fmt.Println(b2bi.ErrCodeAccessDeniedException, aerr.Error())
			case b2bi.ErrCodeValidationException:
				fmt.Println(b2bi.ErrCodeValidationException, aerr.Error())
			case b2bi.ErrCodeThrottlingException:
				fmt.Println(b2bi.ErrCodeThrottlingException, aerr.Error())
			case b2bi.ErrCodeResourceNotFoundException:
				fmt.Println(b2bi.ErrCodeResourceNotFoundException, aerr.Error())
			case b2bi.ErrCodeServiceQuotaExceededException:
				fmt.Println(b2bi.ErrCodeServiceQuotaExceededException, aerr.Error())
			case b2bi.ErrCodeInternalServerException:
				fmt.Println(b2bi.ErrCodeInternalServerException, aerr.Error())
			default:
				fmt.Println(aerr.Error())
			}
		} else {
			// Print the error, cast err to awserr.Error to get the Code and
			// Message from an error.
			fmt.Println(err.Error())
		}
		return
	}

	fmt.Println(result)
}
Output:

func (*B2bi) UpdateTransformerRequest

func (c *B2bi) UpdateTransformerRequest(input *UpdateTransformerInput) (req *request.Request, output *UpdateTransformerOutput)

UpdateTransformerRequest generates a "aws/request.Request" representing the client's request for the UpdateTransformer operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateTransformer for more information on using the UpdateTransformer API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateTransformerRequest method.
req, resp := client.UpdateTransformerRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/b2bi-2022-06-23/UpdateTransformer

func (*B2bi) UpdateTransformerWithContext

func (c *B2bi) UpdateTransformerWithContext(ctx aws.Context, input *UpdateTransformerInput, opts ...request.Option) (*UpdateTransformerOutput, error)

UpdateTransformerWithContext is the same as UpdateTransformer with the addition of the ability to pass a context and additional request options.

See UpdateTransformer for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type CapabilityConfiguration

type CapabilityConfiguration struct {

	// An EDI (electronic data interchange) configuration object.
	Edi *EdiConfiguration `locationName:"edi" type:"structure"`
	// contains filtered or unexported fields
}

A capability object. Currently, only EDI (electronic data interchange) capabilities are supported. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

func (CapabilityConfiguration) GoString

func (s CapabilityConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CapabilityConfiguration) SetEdi

SetEdi sets the Edi field's value.

func (CapabilityConfiguration) String

func (s CapabilityConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CapabilityConfiguration) Validate

func (s *CapabilityConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CapabilitySummary

type CapabilitySummary struct {

	// Returns a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`

	// Returns a timestamp for creation date and time of the capability.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns a timestamp that identifies the most recent date and time that the
	// capability was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// The display name of the capability.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the type of the capability. Currently, only edi is supported.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"CapabilityType"`
	// contains filtered or unexported fields
}

Returns the capability summary details. A trading capability contains the information required to transform incoming EDI documents into JSON or XML outputs.

func (CapabilitySummary) GoString

func (s CapabilitySummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CapabilitySummary) SetCapabilityId

func (s *CapabilitySummary) SetCapabilityId(v string) *CapabilitySummary

SetCapabilityId sets the CapabilityId field's value.

func (*CapabilitySummary) SetCreatedAt

func (s *CapabilitySummary) SetCreatedAt(v time.Time) *CapabilitySummary

SetCreatedAt sets the CreatedAt field's value.

func (*CapabilitySummary) SetModifiedAt

func (s *CapabilitySummary) SetModifiedAt(v time.Time) *CapabilitySummary

SetModifiedAt sets the ModifiedAt field's value.

func (*CapabilitySummary) SetName

SetName sets the Name field's value.

func (*CapabilitySummary) SetType

SetType sets the Type field's value.

func (CapabilitySummary) String

func (s CapabilitySummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ConflictException

type ConflictException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" min:"10" type:"string"`
	// contains filtered or unexported fields
}

A conflict exception is thrown when you attempt to delete a resource (such as a profile or a capability) that is being used by other resources.

func (*ConflictException) Code

func (s *ConflictException) Code() string

Code returns the exception type name.

func (*ConflictException) Error

func (s *ConflictException) Error() string

func (ConflictException) GoString

func (s ConflictException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ConflictException) Message

func (s *ConflictException) Message() string

Message returns the exception's message.

func (*ConflictException) OrigErr

func (s *ConflictException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ConflictException) RequestID

func (s *ConflictException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ConflictException) StatusCode

func (s *ConflictException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ConflictException) String

func (s ConflictException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateCapabilityInput

type CreateCapabilityInput struct {

	// Reserved for future use.
	ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

	// Specifies a structure that contains the details for a capability.
	//
	// Configuration is a required field
	Configuration *CapabilityConfiguration `locationName:"configuration" type:"structure" required:"true"`

	// Specifies one or more locations in Amazon S3, each specifying an EDI document
	// that can be used with this capability. Each item contains the name of the
	// bucket and the key, to identify the document's location.
	InstructionsDocuments []*S3Location `locationName:"instructionsDocuments" type:"list"`

	// Specifies the name of the capability, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Specifies the key-value pairs assigned to ARNs that you can use to group
	// and search for resources by type. You can attach this metadata to resources
	// (capabilities, partnerships, and so on) for any purpose.
	Tags []*Tag `locationName:"tags" type:"list"`

	// Specifies the type of the capability. Currently, only edi is supported.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"CapabilityType"`
	// contains filtered or unexported fields
}

func (CreateCapabilityInput) GoString

func (s CreateCapabilityInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateCapabilityInput) SetClientToken

func (s *CreateCapabilityInput) SetClientToken(v string) *CreateCapabilityInput

SetClientToken sets the ClientToken field's value.

func (*CreateCapabilityInput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*CreateCapabilityInput) SetInstructionsDocuments

func (s *CreateCapabilityInput) SetInstructionsDocuments(v []*S3Location) *CreateCapabilityInput

SetInstructionsDocuments sets the InstructionsDocuments field's value.

func (*CreateCapabilityInput) SetName

SetName sets the Name field's value.

func (*CreateCapabilityInput) SetTags

SetTags sets the Tags field's value.

func (*CreateCapabilityInput) SetType

SetType sets the Type field's value.

func (CreateCapabilityInput) String

func (s CreateCapabilityInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateCapabilityInput) Validate

func (s *CreateCapabilityInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateCapabilityOutput

type CreateCapabilityOutput struct {

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// CapabilityArn is a required field
	CapabilityArn *string `locationName:"capabilityArn" min:"1" type:"string" required:"true"`

	// Returns a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`

	// Returns a structure that contains the details for a capability.
	//
	// Configuration is a required field
	Configuration *CapabilityConfiguration `locationName:"configuration" type:"structure" required:"true"`

	// Returns a timestamp for creation date and time of the capability.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns one or more locations in Amazon S3, each specifying an EDI document
	// that can be used with this capability. Each item contains the name of the
	// bucket and the key, to identify the document's location.
	InstructionsDocuments []*S3Location `locationName:"instructionsDocuments" type:"list"`

	// Returns the name of the capability used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the type of the capability. Currently, only edi is supported.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"CapabilityType"`
	// contains filtered or unexported fields
}

func (CreateCapabilityOutput) GoString

func (s CreateCapabilityOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateCapabilityOutput) SetCapabilityArn

func (s *CreateCapabilityOutput) SetCapabilityArn(v string) *CreateCapabilityOutput

SetCapabilityArn sets the CapabilityArn field's value.

func (*CreateCapabilityOutput) SetCapabilityId

func (s *CreateCapabilityOutput) SetCapabilityId(v string) *CreateCapabilityOutput

SetCapabilityId sets the CapabilityId field's value.

func (*CreateCapabilityOutput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*CreateCapabilityOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*CreateCapabilityOutput) SetInstructionsDocuments

func (s *CreateCapabilityOutput) SetInstructionsDocuments(v []*S3Location) *CreateCapabilityOutput

SetInstructionsDocuments sets the InstructionsDocuments field's value.

func (*CreateCapabilityOutput) SetName

SetName sets the Name field's value.

func (*CreateCapabilityOutput) SetType

SetType sets the Type field's value.

func (CreateCapabilityOutput) String

func (s CreateCapabilityOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreatePartnershipInput

type CreatePartnershipInput struct {

	// Specifies a list of the capabilities associated with this partnership.
	Capabilities []*string `locationName:"capabilities" type:"list"`

	// Reserved for future use.
	ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

	// Specifies the email address associated with this trading partner.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreatePartnershipInput's
	// String and GoString methods.
	//
	// Email is a required field
	Email *string `locationName:"email" min:"5" type:"string" required:"true" sensitive:"true"`

	// Specifies a descriptive name for the partnership.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Specifies the phone number associated with the partnership.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreatePartnershipInput's
	// String and GoString methods.
	Phone *string `locationName:"phone" min:"7" type:"string" sensitive:"true"`

	// Specifies the unique, system-generated identifier for the profile connected
	// to this partnership.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`

	// Specifies the key-value pairs assigned to ARNs that you can use to group
	// and search for resources by type. You can attach this metadata to resources
	// (capabilities, partnerships, and so on) for any purpose.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

func (CreatePartnershipInput) GoString

func (s CreatePartnershipInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreatePartnershipInput) SetCapabilities

func (s *CreatePartnershipInput) SetCapabilities(v []*string) *CreatePartnershipInput

SetCapabilities sets the Capabilities field's value.

func (*CreatePartnershipInput) SetClientToken

SetClientToken sets the ClientToken field's value.

func (*CreatePartnershipInput) SetEmail

SetEmail sets the Email field's value.

func (*CreatePartnershipInput) SetName

SetName sets the Name field's value.

func (*CreatePartnershipInput) SetPhone

SetPhone sets the Phone field's value.

func (*CreatePartnershipInput) SetProfileId

SetProfileId sets the ProfileId field's value.

func (*CreatePartnershipInput) SetTags

SetTags sets the Tags field's value.

func (CreatePartnershipInput) String

func (s CreatePartnershipInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreatePartnershipInput) Validate

func (s *CreatePartnershipInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreatePartnershipOutput

type CreatePartnershipOutput struct {

	// Returns one or more capabilities associated with this partnership.
	Capabilities []*string `locationName:"capabilities" type:"list"`

	// Returns a timestamp for creation date and time of the partnership.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the email address associated with this trading partner.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreatePartnershipOutput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Returns a descriptive name for the partnership.
	Name *string `locationName:"name" min:"1" type:"string"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// PartnershipArn is a required field
	PartnershipArn *string `locationName:"partnershipArn" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`

	// Returns the phone number associated with the partnership.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreatePartnershipOutput's
	// String and GoString methods.
	Phone *string `locationName:"phone" min:"7" type:"string" sensitive:"true"`

	// Returns the unique, system-generated identifier for the profile connected
	// to this partnership.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for a trading partner.
	TradingPartnerId *string `locationName:"tradingPartnerId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (CreatePartnershipOutput) GoString

func (s CreatePartnershipOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreatePartnershipOutput) SetCapabilities

func (s *CreatePartnershipOutput) SetCapabilities(v []*string) *CreatePartnershipOutput

SetCapabilities sets the Capabilities field's value.

func (*CreatePartnershipOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*CreatePartnershipOutput) SetEmail

SetEmail sets the Email field's value.

func (*CreatePartnershipOutput) SetName

SetName sets the Name field's value.

func (*CreatePartnershipOutput) SetPartnershipArn

func (s *CreatePartnershipOutput) SetPartnershipArn(v string) *CreatePartnershipOutput

SetPartnershipArn sets the PartnershipArn field's value.

func (*CreatePartnershipOutput) SetPartnershipId

func (s *CreatePartnershipOutput) SetPartnershipId(v string) *CreatePartnershipOutput

SetPartnershipId sets the PartnershipId field's value.

func (*CreatePartnershipOutput) SetPhone

SetPhone sets the Phone field's value.

func (*CreatePartnershipOutput) SetProfileId

SetProfileId sets the ProfileId field's value.

func (*CreatePartnershipOutput) SetTradingPartnerId

func (s *CreatePartnershipOutput) SetTradingPartnerId(v string) *CreatePartnershipOutput

SetTradingPartnerId sets the TradingPartnerId field's value.

func (CreatePartnershipOutput) String

func (s CreatePartnershipOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateProfileInput

type CreateProfileInput struct {

	// Specifies the name for the business associated with this profile.
	//
	// BusinessName is a required field
	BusinessName *string `locationName:"businessName" min:"1" type:"string" required:"true"`

	// Reserved for future use.
	ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

	// Specifies the email address associated with this customer profile.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateProfileInput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Specifies whether or not logging is enabled for this profile.
	//
	// Logging is a required field
	Logging *string `locationName:"logging" type:"string" required:"true" enum:"Logging"`

	// Specifies the name of the profile.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Specifies the phone number associated with the profile.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateProfileInput's
	// String and GoString methods.
	//
	// Phone is a required field
	Phone *string `locationName:"phone" min:"7" type:"string" required:"true" sensitive:"true"`

	// Specifies the key-value pairs assigned to ARNs that you can use to group
	// and search for resources by type. You can attach this metadata to resources
	// (capabilities, partnerships, and so on) for any purpose.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

func (CreateProfileInput) GoString

func (s CreateProfileInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateProfileInput) SetBusinessName

func (s *CreateProfileInput) SetBusinessName(v string) *CreateProfileInput

SetBusinessName sets the BusinessName field's value.

func (*CreateProfileInput) SetClientToken

func (s *CreateProfileInput) SetClientToken(v string) *CreateProfileInput

SetClientToken sets the ClientToken field's value.

func (*CreateProfileInput) SetEmail

SetEmail sets the Email field's value.

func (*CreateProfileInput) SetLogging

func (s *CreateProfileInput) SetLogging(v string) *CreateProfileInput

SetLogging sets the Logging field's value.

func (*CreateProfileInput) SetName

SetName sets the Name field's value.

func (*CreateProfileInput) SetPhone

SetPhone sets the Phone field's value.

func (*CreateProfileInput) SetTags

func (s *CreateProfileInput) SetTags(v []*Tag) *CreateProfileInput

SetTags sets the Tags field's value.

func (CreateProfileInput) String

func (s CreateProfileInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateProfileInput) Validate

func (s *CreateProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateProfileOutput

type CreateProfileOutput struct {

	// Returns the name for the business associated with this profile.
	//
	// BusinessName is a required field
	BusinessName *string `locationName:"businessName" min:"1" type:"string" required:"true"`

	// Returns a timestamp representing the time the profile was created.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the email address associated with this customer profile.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateProfileOutput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Returns the name of the logging group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Returns whether or not logging is turned on for this profile.
	Logging *string `locationName:"logging" type:"string" enum:"Logging"`

	// Returns the name of the profile, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the phone number associated with the profile.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by CreateProfileOutput's
	// String and GoString methods.
	//
	// Phone is a required field
	Phone *string `locationName:"phone" min:"7" type:"string" required:"true" sensitive:"true"`

	// Returns an Amazon Resource Name (ARN) for the profile.
	//
	// ProfileArn is a required field
	ProfileArn *string `locationName:"profileArn" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateProfileOutput) GoString

func (s CreateProfileOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateProfileOutput) SetBusinessName

func (s *CreateProfileOutput) SetBusinessName(v string) *CreateProfileOutput

SetBusinessName sets the BusinessName field's value.

func (*CreateProfileOutput) SetCreatedAt

func (s *CreateProfileOutput) SetCreatedAt(v time.Time) *CreateProfileOutput

SetCreatedAt sets the CreatedAt field's value.

func (*CreateProfileOutput) SetEmail

SetEmail sets the Email field's value.

func (*CreateProfileOutput) SetLogGroupName

func (s *CreateProfileOutput) SetLogGroupName(v string) *CreateProfileOutput

SetLogGroupName sets the LogGroupName field's value.

func (*CreateProfileOutput) SetLogging

SetLogging sets the Logging field's value.

func (*CreateProfileOutput) SetName

SetName sets the Name field's value.

func (*CreateProfileOutput) SetPhone

SetPhone sets the Phone field's value.

func (*CreateProfileOutput) SetProfileArn

func (s *CreateProfileOutput) SetProfileArn(v string) *CreateProfileOutput

SetProfileArn sets the ProfileArn field's value.

func (*CreateProfileOutput) SetProfileId

func (s *CreateProfileOutput) SetProfileId(v string) *CreateProfileOutput

SetProfileId sets the ProfileId field's value.

func (CreateProfileOutput) String

func (s CreateProfileOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type CreateTransformerInput

type CreateTransformerInput struct {

	// Reserved for future use.
	ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

	// Specifies the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	//
	// EdiType is a required field
	EdiType *EdiType `locationName:"ediType" type:"structure" required:"true"`

	// Specifies that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Specifies the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	//
	// MappingTemplate is a required field
	MappingTemplate *string `locationName:"mappingTemplate" type:"string" required:"true"`

	// Specifies the name of the transformer, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Specifies a sample EDI document that is used by a transformer as a guide
	// for processing the EDI data.
	SampleDocument *string `locationName:"sampleDocument" type:"string"`

	// Specifies the key-value pairs assigned to ARNs that you can use to group
	// and search for resources by type. You can attach this metadata to resources
	// (capabilities, partnerships, and so on) for any purpose.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

func (CreateTransformerInput) GoString

func (s CreateTransformerInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateTransformerInput) SetClientToken

SetClientToken sets the ClientToken field's value.

func (*CreateTransformerInput) SetEdiType

SetEdiType sets the EdiType field's value.

func (*CreateTransformerInput) SetFileFormat

SetFileFormat sets the FileFormat field's value.

func (*CreateTransformerInput) SetMappingTemplate

func (s *CreateTransformerInput) SetMappingTemplate(v string) *CreateTransformerInput

SetMappingTemplate sets the MappingTemplate field's value.

func (*CreateTransformerInput) SetName

SetName sets the Name field's value.

func (*CreateTransformerInput) SetSampleDocument

func (s *CreateTransformerInput) SetSampleDocument(v string) *CreateTransformerInput

SetSampleDocument sets the SampleDocument field's value.

func (*CreateTransformerInput) SetTags

SetTags sets the Tags field's value.

func (CreateTransformerInput) String

func (s CreateTransformerInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateTransformerInput) Validate

func (s *CreateTransformerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateTransformerOutput

type CreateTransformerOutput struct {

	// Returns a timestamp for creation date and time of the transformer.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	//
	// EdiType is a required field
	EdiType *EdiType `locationName:"ediType" type:"structure" required:"true"`

	// Returns that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Returns the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	//
	// MappingTemplate is a required field
	MappingTemplate *string `locationName:"mappingTemplate" type:"string" required:"true"`

	// Returns the name of the transformer, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns a sample EDI document that is used by a transformer as a guide for
	// processing the EDI data.
	SampleDocument *string `locationName:"sampleDocument" type:"string"`

	// Returns the state of the newly created transformer. The transformer can be
	// either active or inactive. For the transformer to be used in a capability,
	// its status must active.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"TransformerStatus"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// TransformerArn is a required field
	TransformerArn *string `locationName:"transformerArn" min:"1" type:"string" required:"true"`

	// Returns the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateTransformerOutput) GoString

func (s CreateTransformerOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*CreateTransformerOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*CreateTransformerOutput) SetEdiType

SetEdiType sets the EdiType field's value.

func (*CreateTransformerOutput) SetFileFormat

SetFileFormat sets the FileFormat field's value.

func (*CreateTransformerOutput) SetMappingTemplate

func (s *CreateTransformerOutput) SetMappingTemplate(v string) *CreateTransformerOutput

SetMappingTemplate sets the MappingTemplate field's value.

func (*CreateTransformerOutput) SetName

SetName sets the Name field's value.

func (*CreateTransformerOutput) SetSampleDocument

func (s *CreateTransformerOutput) SetSampleDocument(v string) *CreateTransformerOutput

SetSampleDocument sets the SampleDocument field's value.

func (*CreateTransformerOutput) SetStatus

SetStatus sets the Status field's value.

func (*CreateTransformerOutput) SetTransformerArn

func (s *CreateTransformerOutput) SetTransformerArn(v string) *CreateTransformerOutput

SetTransformerArn sets the TransformerArn field's value.

func (*CreateTransformerOutput) SetTransformerId

func (s *CreateTransformerOutput) SetTransformerId(v string) *CreateTransformerOutput

SetTransformerId sets the TransformerId field's value.

func (CreateTransformerOutput) String

func (s CreateTransformerOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteCapabilityInput

type DeleteCapabilityInput struct {

	// Specifies a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteCapabilityInput) GoString

func (s DeleteCapabilityInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteCapabilityInput) SetCapabilityId

func (s *DeleteCapabilityInput) SetCapabilityId(v string) *DeleteCapabilityInput

SetCapabilityId sets the CapabilityId field's value.

func (DeleteCapabilityInput) String

func (s DeleteCapabilityInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteCapabilityInput) Validate

func (s *DeleteCapabilityInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteCapabilityOutput

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

func (DeleteCapabilityOutput) GoString

func (s DeleteCapabilityOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteCapabilityOutput) String

func (s DeleteCapabilityOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeletePartnershipInput

type DeletePartnershipInput struct {

	// Specifies the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeletePartnershipInput) GoString

func (s DeletePartnershipInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeletePartnershipInput) SetPartnershipId

func (s *DeletePartnershipInput) SetPartnershipId(v string) *DeletePartnershipInput

SetPartnershipId sets the PartnershipId field's value.

func (DeletePartnershipInput) String

func (s DeletePartnershipInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeletePartnershipInput) Validate

func (s *DeletePartnershipInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeletePartnershipOutput

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

func (DeletePartnershipOutput) GoString

func (s DeletePartnershipOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeletePartnershipOutput) String

func (s DeletePartnershipOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteProfileInput

type DeleteProfileInput struct {

	// Specifies the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteProfileInput) GoString

func (s DeleteProfileInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteProfileInput) SetProfileId

func (s *DeleteProfileInput) SetProfileId(v string) *DeleteProfileInput

SetProfileId sets the ProfileId field's value.

func (DeleteProfileInput) String

func (s DeleteProfileInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteProfileInput) Validate

func (s *DeleteProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteProfileOutput

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

func (DeleteProfileOutput) GoString

func (s DeleteProfileOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteProfileOutput) String

func (s DeleteProfileOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type DeleteTransformerInput

type DeleteTransformerInput struct {

	// Specifies the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteTransformerInput) GoString

func (s DeleteTransformerInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteTransformerInput) SetTransformerId

func (s *DeleteTransformerInput) SetTransformerId(v string) *DeleteTransformerInput

SetTransformerId sets the TransformerId field's value.

func (DeleteTransformerInput) String

func (s DeleteTransformerInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*DeleteTransformerInput) Validate

func (s *DeleteTransformerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteTransformerOutput

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

func (DeleteTransformerOutput) GoString

func (s DeleteTransformerOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (DeleteTransformerOutput) String

func (s DeleteTransformerOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type EdiConfiguration

type EdiConfiguration struct {

	// Contains the Amazon S3 bucket and prefix for the location of the input file,
	// which is contained in an S3Location object.
	//
	// InputLocation is a required field
	InputLocation *S3Location `locationName:"inputLocation" type:"structure" required:"true"`

	// Contains the Amazon S3 bucket and prefix for the location of the output file,
	// which is contained in an S3Location object.
	//
	// OutputLocation is a required field
	OutputLocation *S3Location `locationName:"outputLocation" type:"structure" required:"true"`

	// Returns the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`

	// Returns the type of the capability. Currently, only edi is supported.
	//
	// Type is a required field
	Type *EdiType `locationName:"type" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Specifies the details for the EDI (electronic data interchange) transformation.

func (EdiConfiguration) GoString

func (s EdiConfiguration) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EdiConfiguration) SetInputLocation

func (s *EdiConfiguration) SetInputLocation(v *S3Location) *EdiConfiguration

SetInputLocation sets the InputLocation field's value.

func (*EdiConfiguration) SetOutputLocation

func (s *EdiConfiguration) SetOutputLocation(v *S3Location) *EdiConfiguration

SetOutputLocation sets the OutputLocation field's value.

func (*EdiConfiguration) SetTransformerId

func (s *EdiConfiguration) SetTransformerId(v string) *EdiConfiguration

SetTransformerId sets the TransformerId field's value.

func (*EdiConfiguration) SetType

func (s *EdiConfiguration) SetType(v *EdiType) *EdiConfiguration

SetType sets the Type field's value.

func (EdiConfiguration) String

func (s EdiConfiguration) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EdiConfiguration) Validate

func (s *EdiConfiguration) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type EdiType

type EdiType struct {

	// Returns the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	X12Details *X12Details `locationName:"x12Details" type:"structure"`
	// contains filtered or unexported fields
}

Specifies the details for the EDI standard that is being used for the transformer. Currently, only X12 is supported. X12 is a set of standards and corresponding messages that define specific business documents.

func (EdiType) GoString

func (s EdiType) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*EdiType) SetX12Details

func (s *EdiType) SetX12Details(v *X12Details) *EdiType

SetX12Details sets the X12Details field's value.

func (EdiType) String

func (s EdiType) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetCapabilityInput

type GetCapabilityInput struct {

	// Specifies a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetCapabilityInput) GoString

func (s GetCapabilityInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetCapabilityInput) SetCapabilityId

func (s *GetCapabilityInput) SetCapabilityId(v string) *GetCapabilityInput

SetCapabilityId sets the CapabilityId field's value.

func (GetCapabilityInput) String

func (s GetCapabilityInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetCapabilityInput) Validate

func (s *GetCapabilityInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetCapabilityOutput

type GetCapabilityOutput struct {

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// CapabilityArn is a required field
	CapabilityArn *string `locationName:"capabilityArn" min:"1" type:"string" required:"true"`

	// Returns a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`

	// Returns a structure that contains the details for a capability.
	//
	// Configuration is a required field
	Configuration *CapabilityConfiguration `locationName:"configuration" type:"structure" required:"true"`

	// Returns a timestamp for creation date and time of the capability.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns one or more locations in Amazon S3, each specifying an EDI document
	// that can be used with this capability. Each item contains the name of the
	// bucket and the key, to identify the document's location.
	InstructionsDocuments []*S3Location `locationName:"instructionsDocuments" type:"list"`

	// Returns a timestamp for last time the capability was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the name of the capability, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the type of the capability. Currently, only edi is supported.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"CapabilityType"`
	// contains filtered or unexported fields
}

func (GetCapabilityOutput) GoString

func (s GetCapabilityOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetCapabilityOutput) SetCapabilityArn

func (s *GetCapabilityOutput) SetCapabilityArn(v string) *GetCapabilityOutput

SetCapabilityArn sets the CapabilityArn field's value.

func (*GetCapabilityOutput) SetCapabilityId

func (s *GetCapabilityOutput) SetCapabilityId(v string) *GetCapabilityOutput

SetCapabilityId sets the CapabilityId field's value.

func (*GetCapabilityOutput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*GetCapabilityOutput) SetCreatedAt

func (s *GetCapabilityOutput) SetCreatedAt(v time.Time) *GetCapabilityOutput

SetCreatedAt sets the CreatedAt field's value.

func (*GetCapabilityOutput) SetInstructionsDocuments

func (s *GetCapabilityOutput) SetInstructionsDocuments(v []*S3Location) *GetCapabilityOutput

SetInstructionsDocuments sets the InstructionsDocuments field's value.

func (*GetCapabilityOutput) SetModifiedAt

func (s *GetCapabilityOutput) SetModifiedAt(v time.Time) *GetCapabilityOutput

SetModifiedAt sets the ModifiedAt field's value.

func (*GetCapabilityOutput) SetName

SetName sets the Name field's value.

func (*GetCapabilityOutput) SetType

SetType sets the Type field's value.

func (GetCapabilityOutput) String

func (s GetCapabilityOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetPartnershipInput

type GetPartnershipInput struct {

	// Specifies the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetPartnershipInput) GoString

func (s GetPartnershipInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetPartnershipInput) SetPartnershipId

func (s *GetPartnershipInput) SetPartnershipId(v string) *GetPartnershipInput

SetPartnershipId sets the PartnershipId field's value.

func (GetPartnershipInput) String

func (s GetPartnershipInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetPartnershipInput) Validate

func (s *GetPartnershipInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetPartnershipOutput

type GetPartnershipOutput struct {

	// Returns one or more capabilities associated with this partnership.
	Capabilities []*string `locationName:"capabilities" type:"list"`

	// Returns a timestamp for creation date and time of the partnership.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the email address associated with this trading partner.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetPartnershipOutput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Returns a timestamp that identifies the most recent date and time that the
	// partnership was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the display name of the partnership
	Name *string `locationName:"name" min:"1" type:"string"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// PartnershipArn is a required field
	PartnershipArn *string `locationName:"partnershipArn" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`

	// Returns the phone number associated with the partnership.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetPartnershipOutput's
	// String and GoString methods.
	Phone *string `locationName:"phone" min:"7" type:"string" sensitive:"true"`

	// Returns the unique, system-generated identifier for the profile connected
	// to this partnership.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`

	// Returns the unique identifier for the partner for this partnership.
	TradingPartnerId *string `locationName:"tradingPartnerId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (GetPartnershipOutput) GoString

func (s GetPartnershipOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetPartnershipOutput) SetCapabilities

func (s *GetPartnershipOutput) SetCapabilities(v []*string) *GetPartnershipOutput

SetCapabilities sets the Capabilities field's value.

func (*GetPartnershipOutput) SetCreatedAt

func (s *GetPartnershipOutput) SetCreatedAt(v time.Time) *GetPartnershipOutput

SetCreatedAt sets the CreatedAt field's value.

func (*GetPartnershipOutput) SetEmail

SetEmail sets the Email field's value.

func (*GetPartnershipOutput) SetModifiedAt

func (s *GetPartnershipOutput) SetModifiedAt(v time.Time) *GetPartnershipOutput

SetModifiedAt sets the ModifiedAt field's value.

func (*GetPartnershipOutput) SetName

SetName sets the Name field's value.

func (*GetPartnershipOutput) SetPartnershipArn

func (s *GetPartnershipOutput) SetPartnershipArn(v string) *GetPartnershipOutput

SetPartnershipArn sets the PartnershipArn field's value.

func (*GetPartnershipOutput) SetPartnershipId

func (s *GetPartnershipOutput) SetPartnershipId(v string) *GetPartnershipOutput

SetPartnershipId sets the PartnershipId field's value.

func (*GetPartnershipOutput) SetPhone

SetPhone sets the Phone field's value.

func (*GetPartnershipOutput) SetProfileId

func (s *GetPartnershipOutput) SetProfileId(v string) *GetPartnershipOutput

SetProfileId sets the ProfileId field's value.

func (*GetPartnershipOutput) SetTradingPartnerId

func (s *GetPartnershipOutput) SetTradingPartnerId(v string) *GetPartnershipOutput

SetTradingPartnerId sets the TradingPartnerId field's value.

func (GetPartnershipOutput) String

func (s GetPartnershipOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetProfileInput

type GetProfileInput struct {

	// Specifies the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetProfileInput) GoString

func (s GetProfileInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetProfileInput) SetProfileId

func (s *GetProfileInput) SetProfileId(v string) *GetProfileInput

SetProfileId sets the ProfileId field's value.

func (GetProfileInput) String

func (s GetProfileInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetProfileInput) Validate

func (s *GetProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetProfileOutput

type GetProfileOutput struct {

	// Returns the name for the business associated with this profile.
	//
	// BusinessName is a required field
	BusinessName *string `locationName:"businessName" min:"1" type:"string" required:"true"`

	// Returns a timestamp for creation date and time of the transformer.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the email address associated with this customer profile.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetProfileOutput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Returns the name of the logging group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Returns whether or not logging is enabled for this profile.
	Logging *string `locationName:"logging" type:"string" enum:"Logging"`

	// Returns a timestamp for last time the profile was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the name of the profile, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the phone number associated with the profile.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by GetProfileOutput's
	// String and GoString methods.
	//
	// Phone is a required field
	Phone *string `locationName:"phone" min:"7" type:"string" required:"true" sensitive:"true"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// ProfileArn is a required field
	ProfileArn *string `locationName:"profileArn" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetProfileOutput) GoString

func (s GetProfileOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetProfileOutput) SetBusinessName

func (s *GetProfileOutput) SetBusinessName(v string) *GetProfileOutput

SetBusinessName sets the BusinessName field's value.

func (*GetProfileOutput) SetCreatedAt

func (s *GetProfileOutput) SetCreatedAt(v time.Time) *GetProfileOutput

SetCreatedAt sets the CreatedAt field's value.

func (*GetProfileOutput) SetEmail

func (s *GetProfileOutput) SetEmail(v string) *GetProfileOutput

SetEmail sets the Email field's value.

func (*GetProfileOutput) SetLogGroupName

func (s *GetProfileOutput) SetLogGroupName(v string) *GetProfileOutput

SetLogGroupName sets the LogGroupName field's value.

func (*GetProfileOutput) SetLogging

func (s *GetProfileOutput) SetLogging(v string) *GetProfileOutput

SetLogging sets the Logging field's value.

func (*GetProfileOutput) SetModifiedAt

func (s *GetProfileOutput) SetModifiedAt(v time.Time) *GetProfileOutput

SetModifiedAt sets the ModifiedAt field's value.

func (*GetProfileOutput) SetName

func (s *GetProfileOutput) SetName(v string) *GetProfileOutput

SetName sets the Name field's value.

func (*GetProfileOutput) SetPhone

func (s *GetProfileOutput) SetPhone(v string) *GetProfileOutput

SetPhone sets the Phone field's value.

func (*GetProfileOutput) SetProfileArn

func (s *GetProfileOutput) SetProfileArn(v string) *GetProfileOutput

SetProfileArn sets the ProfileArn field's value.

func (*GetProfileOutput) SetProfileId

func (s *GetProfileOutput) SetProfileId(v string) *GetProfileOutput

SetProfileId sets the ProfileId field's value.

func (GetProfileOutput) String

func (s GetProfileOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetTransformerInput

type GetTransformerInput struct {

	// Specifies the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransformerInput) GoString

func (s GetTransformerInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransformerInput) SetTransformerId

func (s *GetTransformerInput) SetTransformerId(v string) *GetTransformerInput

SetTransformerId sets the TransformerId field's value.

func (GetTransformerInput) String

func (s GetTransformerInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransformerInput) Validate

func (s *GetTransformerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetTransformerJobInput

type GetTransformerJobInput struct {

	// Specifies the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`

	// Specifies the unique, system-generated identifier for a transformer run.
	//
	// TransformerJobId is a required field
	TransformerJobId *string `locationName:"transformerJobId" min:"25" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransformerJobInput) GoString

func (s GetTransformerJobInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransformerJobInput) SetTransformerId

func (s *GetTransformerJobInput) SetTransformerId(v string) *GetTransformerJobInput

SetTransformerId sets the TransformerId field's value.

func (*GetTransformerJobInput) SetTransformerJobId

func (s *GetTransformerJobInput) SetTransformerJobId(v string) *GetTransformerJobInput

SetTransformerJobId sets the TransformerJobId field's value.

func (GetTransformerJobInput) String

func (s GetTransformerJobInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransformerJobInput) Validate

func (s *GetTransformerJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetTransformerJobOutput

type GetTransformerJobOutput struct {

	// Returns an optional error message, which gets populated when the job is not
	// run successfully.
	Message *string `locationName:"message" type:"string"`

	// Returns the location for the output files. If the caller specified a directory
	// for the output, then this contains the full path to the output file, including
	// the file name generated by the service.
	OutputFiles []*S3Location `locationName:"outputFiles" type:"list"`

	// Returns the current state of the transformer job, either running, succeeded,
	// or failed.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"TransformerJobStatus"`
	// contains filtered or unexported fields
}

func (GetTransformerJobOutput) GoString

func (s GetTransformerJobOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransformerJobOutput) SetMessage

SetMessage sets the Message field's value.

func (*GetTransformerJobOutput) SetOutputFiles

SetOutputFiles sets the OutputFiles field's value.

func (*GetTransformerJobOutput) SetStatus

SetStatus sets the Status field's value.

func (GetTransformerJobOutput) String

func (s GetTransformerJobOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type GetTransformerOutput

type GetTransformerOutput struct {

	// Returns a timestamp for creation date and time of the transformer.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	//
	// EdiType is a required field
	EdiType *EdiType `locationName:"ediType" type:"structure" required:"true"`

	// Returns that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Returns the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	//
	// MappingTemplate is a required field
	MappingTemplate *string `locationName:"mappingTemplate" type:"string" required:"true"`

	// Returns a timestamp for last time the transformer was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the name of the transformer, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns a sample EDI document that is used by a transformer as a guide for
	// processing the EDI data.
	SampleDocument *string `locationName:"sampleDocument" type:"string"`

	// Returns the state of the newly created transformer. The transformer can be
	// either active or inactive. For the transformer to be used in a capability,
	// its status must active.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"TransformerStatus"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// TransformerArn is a required field
	TransformerArn *string `locationName:"transformerArn" min:"1" type:"string" required:"true"`

	// Returns the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetTransformerOutput) GoString

func (s GetTransformerOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*GetTransformerOutput) SetCreatedAt

func (s *GetTransformerOutput) SetCreatedAt(v time.Time) *GetTransformerOutput

SetCreatedAt sets the CreatedAt field's value.

func (*GetTransformerOutput) SetEdiType

SetEdiType sets the EdiType field's value.

func (*GetTransformerOutput) SetFileFormat

func (s *GetTransformerOutput) SetFileFormat(v string) *GetTransformerOutput

SetFileFormat sets the FileFormat field's value.

func (*GetTransformerOutput) SetMappingTemplate

func (s *GetTransformerOutput) SetMappingTemplate(v string) *GetTransformerOutput

SetMappingTemplate sets the MappingTemplate field's value.

func (*GetTransformerOutput) SetModifiedAt

func (s *GetTransformerOutput) SetModifiedAt(v time.Time) *GetTransformerOutput

SetModifiedAt sets the ModifiedAt field's value.

func (*GetTransformerOutput) SetName

SetName sets the Name field's value.

func (*GetTransformerOutput) SetSampleDocument

func (s *GetTransformerOutput) SetSampleDocument(v string) *GetTransformerOutput

SetSampleDocument sets the SampleDocument field's value.

func (*GetTransformerOutput) SetStatus

SetStatus sets the Status field's value.

func (*GetTransformerOutput) SetTransformerArn

func (s *GetTransformerOutput) SetTransformerArn(v string) *GetTransformerOutput

SetTransformerArn sets the TransformerArn field's value.

func (*GetTransformerOutput) SetTransformerId

func (s *GetTransformerOutput) SetTransformerId(v string) *GetTransformerOutput

SetTransformerId sets the TransformerId field's value.

func (GetTransformerOutput) String

func (s GetTransformerOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type InternalServerException

type InternalServerException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" min:"10" type:"string"`

	// The server attempts to retry a failed command.
	RetryAfterSeconds *int64 `locationName:"retryAfterSeconds" type:"integer"`
	// contains filtered or unexported fields
}

This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

func (*InternalServerException) Code

func (s *InternalServerException) Code() string

Code returns the exception type name.

func (*InternalServerException) Error

func (s *InternalServerException) Error() string

func (InternalServerException) GoString

func (s InternalServerException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*InternalServerException) Message

func (s *InternalServerException) Message() string

Message returns the exception's message.

func (*InternalServerException) OrigErr

func (s *InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServerException) RequestID

func (s *InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServerException) StatusCode

func (s *InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String

func (s InternalServerException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListCapabilitiesInput

type ListCapabilitiesInput struct {

	// Specifies the maximum number of capabilities to return.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListCapabilitiesInput) GoString

func (s ListCapabilitiesInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListCapabilitiesInput) SetMaxResults

func (s *ListCapabilitiesInput) SetMaxResults(v int64) *ListCapabilitiesInput

SetMaxResults sets the MaxResults field's value.

func (*ListCapabilitiesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListCapabilitiesInput) String

func (s ListCapabilitiesInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListCapabilitiesInput) Validate

func (s *ListCapabilitiesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListCapabilitiesOutput

type ListCapabilitiesOutput struct {

	// Returns one or more capabilities associated with this partnership.
	//
	// Capabilities is a required field
	Capabilities []*CapabilitySummary `locationName:"capabilities" type:"list" required:"true"`

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListCapabilitiesOutput) GoString

func (s ListCapabilitiesOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListCapabilitiesOutput) SetCapabilities

SetCapabilities sets the Capabilities field's value.

func (*ListCapabilitiesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListCapabilitiesOutput) String

func (s ListCapabilitiesOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListPartnershipsInput

type ListPartnershipsInput struct {

	// Specifies the maximum number of capabilities to return.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Specifies the unique, system-generated identifier for the profile connected
	// to this partnership.
	ProfileId *string `locationName:"profileId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListPartnershipsInput) GoString

func (s ListPartnershipsInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListPartnershipsInput) SetMaxResults

func (s *ListPartnershipsInput) SetMaxResults(v int64) *ListPartnershipsInput

SetMaxResults sets the MaxResults field's value.

func (*ListPartnershipsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListPartnershipsInput) SetProfileId

SetProfileId sets the ProfileId field's value.

func (ListPartnershipsInput) String

func (s ListPartnershipsInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListPartnershipsInput) Validate

func (s *ListPartnershipsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListPartnershipsOutput

type ListPartnershipsOutput struct {

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Specifies a list of your partnerships.
	//
	// Partnerships is a required field
	Partnerships []*PartnershipSummary `locationName:"partnerships" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ListPartnershipsOutput) GoString

func (s ListPartnershipsOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListPartnershipsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListPartnershipsOutput) SetPartnerships

SetPartnerships sets the Partnerships field's value.

func (ListPartnershipsOutput) String

func (s ListPartnershipsOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListProfilesInput

type ListProfilesInput struct {

	// Specifies the maximum number of profiles to return.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListProfilesInput) GoString

func (s ListProfilesInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListProfilesInput) SetMaxResults

func (s *ListProfilesInput) SetMaxResults(v int64) *ListProfilesInput

SetMaxResults sets the MaxResults field's value.

func (*ListProfilesInput) SetNextToken

func (s *ListProfilesInput) SetNextToken(v string) *ListProfilesInput

SetNextToken sets the NextToken field's value.

func (ListProfilesInput) String

func (s ListProfilesInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListProfilesInput) Validate

func (s *ListProfilesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListProfilesOutput

type ListProfilesOutput struct {

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Returns an array of ProfileSummary objects.
	//
	// Profiles is a required field
	Profiles []*ProfileSummary `locationName:"profiles" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ListProfilesOutput) GoString

func (s ListProfilesOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListProfilesOutput) SetNextToken

func (s *ListProfilesOutput) SetNextToken(v string) *ListProfilesOutput

SetNextToken sets the NextToken field's value.

func (*ListProfilesOutput) SetProfiles

SetProfiles sets the Profiles field's value.

func (ListProfilesOutput) String

func (s ListProfilesOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

	// Requests the tags associated with a particular Amazon Resource Name (ARN).
	// An ARN is an identifier for a specific Amazon Web Services resource, such
	// as a capability, partnership, profile, or transformer.
	//
	// ResourceARN is a required field
	ResourceARN *string `min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceInput) GoString

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTagsForResourceInput) SetResourceARN

SetResourceARN sets the ResourceARN field's value.

func (ListTagsForResourceInput) String

func (s ListTagsForResourceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTagsForResourceInput) Validate

func (s *ListTagsForResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {

	// Returns the key-value pairs assigned to ARNs that you can use to group and
	// search for resources by type. You can attach this metadata to resources (capabilities,
	// partnerships, and so on) for any purpose.
	Tags []*Tag `type:"list"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceOutput) GoString

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTagsForResourceOutput) SetTags

SetTags sets the Tags field's value.

func (ListTagsForResourceOutput) String

func (s ListTagsForResourceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ListTransformersInput

type ListTransformersInput struct {

	// Specifies the number of items to return for the API response.
	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (ListTransformersInput) GoString

func (s ListTransformersInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransformersInput) SetMaxResults

func (s *ListTransformersInput) SetMaxResults(v int64) *ListTransformersInput

SetMaxResults sets the MaxResults field's value.

func (*ListTransformersInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListTransformersInput) String

func (s ListTransformersInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransformersInput) Validate

func (s *ListTransformersInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListTransformersOutput

type ListTransformersOutput struct {

	// When additional results are obtained from the command, a NextToken parameter
	// is returned in the output. You can then pass the NextToken parameter in a
	// subsequent command to continue listing additional resources.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// Returns an array of one or more transformer objects.
	//
	// For each transformer, a TransformerSummary object is returned. The TransformerSummary
	// contains all the details for a specific transformer.
	//
	// Transformers is a required field
	Transformers []*TransformerSummary `locationName:"transformers" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (ListTransformersOutput) GoString

func (s ListTransformersOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ListTransformersOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListTransformersOutput) SetTransformers

SetTransformers sets the Transformers field's value.

func (ListTransformersOutput) String

func (s ListTransformersOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type PartnershipSummary

type PartnershipSummary struct {

	// Returns one or more capabilities associated with this partnership.
	Capabilities []*string `locationName:"capabilities" type:"list"`

	// Returns a timestamp for creation date and time of the partnership.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns a timestamp that identifies the most recent date and time that the
	// partnership was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the name of the partnership.
	Name *string `locationName:"name" min:"1" type:"string"`

	// Returns the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for the profile connected
	// to this partnership.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for a trading partner.
	TradingPartnerId *string `locationName:"tradingPartnerId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

A structure that contains the details for a partnership. A partnership represents the connection between you and your trading partner. It ties together a profile and one or more trading capabilities.

func (PartnershipSummary) GoString

func (s PartnershipSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*PartnershipSummary) SetCapabilities

func (s *PartnershipSummary) SetCapabilities(v []*string) *PartnershipSummary

SetCapabilities sets the Capabilities field's value.

func (*PartnershipSummary) SetCreatedAt

func (s *PartnershipSummary) SetCreatedAt(v time.Time) *PartnershipSummary

SetCreatedAt sets the CreatedAt field's value.

func (*PartnershipSummary) SetModifiedAt

func (s *PartnershipSummary) SetModifiedAt(v time.Time) *PartnershipSummary

SetModifiedAt sets the ModifiedAt field's value.

func (*PartnershipSummary) SetName

SetName sets the Name field's value.

func (*PartnershipSummary) SetPartnershipId

func (s *PartnershipSummary) SetPartnershipId(v string) *PartnershipSummary

SetPartnershipId sets the PartnershipId field's value.

func (*PartnershipSummary) SetProfileId

func (s *PartnershipSummary) SetProfileId(v string) *PartnershipSummary

SetProfileId sets the ProfileId field's value.

func (*PartnershipSummary) SetTradingPartnerId

func (s *PartnershipSummary) SetTradingPartnerId(v string) *PartnershipSummary

SetTradingPartnerId sets the TradingPartnerId field's value.

func (PartnershipSummary) String

func (s PartnershipSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ProfileSummary

type ProfileSummary struct {

	// Returns the name for the business associated with this profile.
	//
	// BusinessName is a required field
	BusinessName *string `locationName:"businessName" min:"1" type:"string" required:"true"`

	// Returns the timestamp for creation date and time of the profile.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the name of the logging group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Specifies whether or not logging is enabled for this profile.
	Logging *string `locationName:"logging" type:"string" enum:"Logging"`

	// Returns the timestamp that identifies the most recent date and time that
	// the profile was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the display name for profile.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the details for a profile. A profile is the mechanism used to create the concept of a private network.

func (ProfileSummary) GoString

func (s ProfileSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ProfileSummary) SetBusinessName

func (s *ProfileSummary) SetBusinessName(v string) *ProfileSummary

SetBusinessName sets the BusinessName field's value.

func (*ProfileSummary) SetCreatedAt

func (s *ProfileSummary) SetCreatedAt(v time.Time) *ProfileSummary

SetCreatedAt sets the CreatedAt field's value.

func (*ProfileSummary) SetLogGroupName

func (s *ProfileSummary) SetLogGroupName(v string) *ProfileSummary

SetLogGroupName sets the LogGroupName field's value.

func (*ProfileSummary) SetLogging

func (s *ProfileSummary) SetLogging(v string) *ProfileSummary

SetLogging sets the Logging field's value.

func (*ProfileSummary) SetModifiedAt

func (s *ProfileSummary) SetModifiedAt(v time.Time) *ProfileSummary

SetModifiedAt sets the ModifiedAt field's value.

func (*ProfileSummary) SetName

func (s *ProfileSummary) SetName(v string) *ProfileSummary

SetName sets the Name field's value.

func (*ProfileSummary) SetProfileId

func (s *ProfileSummary) SetProfileId(v string) *ProfileSummary

SetProfileId sets the ProfileId field's value.

func (ProfileSummary) String

func (s ProfileSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ResourceNotFoundException

type ResourceNotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" min:"10" type:"string"`
	// contains filtered or unexported fields
}

Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

func (*ResourceNotFoundException) Code

Code returns the exception type name.

func (*ResourceNotFoundException) Error

func (s *ResourceNotFoundException) Error() string

func (ResourceNotFoundException) GoString

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ResourceNotFoundException) Message

func (s *ResourceNotFoundException) Message() string

Message returns the exception's message.

func (*ResourceNotFoundException) OrigErr

func (s *ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ResourceNotFoundException) RequestID

func (s *ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ResourceNotFoundException) StatusCode

func (s *ResourceNotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ResourceNotFoundException) String

func (s ResourceNotFoundException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type S3Location

type S3Location struct {

	// Specifies the name of the Amazon S3 bucket.
	BucketName *string `locationName:"bucketName" min:"3" type:"string"`

	// Specifies the Amazon S3 key for the file location.
	Key *string `locationName:"key" type:"string"`
	// contains filtered or unexported fields
}

Specifies the details for the Amazon S3 file location that is being used with Amazon Web Services B2BI Data Interchange. File locations in Amazon S3 are identified using a combination of the bucket and key.

func (S3Location) GoString

func (s S3Location) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*S3Location) SetBucketName

func (s *S3Location) SetBucketName(v string) *S3Location

SetBucketName sets the BucketName field's value.

func (*S3Location) SetKey

func (s *S3Location) SetKey(v string) *S3Location

SetKey sets the Key field's value.

func (S3Location) String

func (s S3Location) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*S3Location) Validate

func (s *S3Location) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ServiceQuotaExceededException

type ServiceQuotaExceededException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" min:"10" type:"string"`

	// The quota that was exceeded, which caused the exception.
	//
	// QuotaCode is a required field
	QuotaCode *string `locationName:"quotaCode" type:"string" required:"true"`

	// The ID for the resource that exceeded the quota, which caused the exception.
	//
	// ResourceId is a required field
	ResourceId *string `locationName:"resourceId" type:"string" required:"true"`

	// The resource type (profile, partnership, transformer, or capability) that
	// exceeded the quota, which caused the exception.
	//
	// ResourceType is a required field
	ResourceType *string `locationName:"resourceType" type:"string" required:"true"`

	// The code responsible for exceeding the quota, which caused the exception.
	//
	// ServiceCode is a required field
	ServiceCode *string `locationName:"serviceCode" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Occurs when the calling command attempts to exceed one of the service quotas, for example trying to create a capability when you already have the maximum number of capabilities allowed.

func (*ServiceQuotaExceededException) Code

Code returns the exception type name.

func (*ServiceQuotaExceededException) Error

func (ServiceQuotaExceededException) GoString

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ServiceQuotaExceededException) Message

Message returns the exception's message.

func (*ServiceQuotaExceededException) OrigErr

func (s *ServiceQuotaExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ServiceQuotaExceededException) RequestID

func (s *ServiceQuotaExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ServiceQuotaExceededException) StatusCode

func (s *ServiceQuotaExceededException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ServiceQuotaExceededException) String

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type StartTransformerJobInput

type StartTransformerJobInput struct {

	// Reserved for future use.
	ClientToken *string `locationName:"clientToken" type:"string" idempotencyToken:"true"`

	// Specifies the location of the input file for the transformation. The location
	// consists of an Amazon S3 bucket and prefix.
	//
	// InputFile is a required field
	InputFile *S3Location `locationName:"inputFile" type:"structure" required:"true"`

	// Specifies the location of the output file for the transformation. The location
	// consists of an Amazon S3 bucket and prefix.
	//
	// OutputLocation is a required field
	OutputLocation *S3Location `locationName:"outputLocation" type:"structure" required:"true"`

	// Specifies the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartTransformerJobInput) GoString

func (s StartTransformerJobInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StartTransformerJobInput) SetClientToken

SetClientToken sets the ClientToken field's value.

func (*StartTransformerJobInput) SetInputFile

SetInputFile sets the InputFile field's value.

func (*StartTransformerJobInput) SetOutputLocation

SetOutputLocation sets the OutputLocation field's value.

func (*StartTransformerJobInput) SetTransformerId

SetTransformerId sets the TransformerId field's value.

func (StartTransformerJobInput) String

func (s StartTransformerJobInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StartTransformerJobInput) Validate

func (s *StartTransformerJobInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartTransformerJobOutput

type StartTransformerJobOutput struct {

	// Returns the unique, system-generated identifier for a transformer run.
	//
	// TransformerJobId is a required field
	TransformerJobId *string `locationName:"transformerJobId" min:"25" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartTransformerJobOutput) GoString

func (s StartTransformerJobOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*StartTransformerJobOutput) SetTransformerJobId

func (s *StartTransformerJobOutput) SetTransformerJobId(v string) *StartTransformerJobOutput

SetTransformerJobId sets the TransformerJobId field's value.

func (StartTransformerJobOutput) String

func (s StartTransformerJobOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type Tag

type Tag struct {

	// Specifies the name assigned to the tag that you create.
	//
	// Key is a required field
	Key *string `min:"1" type:"string" required:"true"`

	// Contains one or more values that you assigned to the key name that you create.
	//
	// Value is a required field
	Value *string `type:"string" required:"true"`
	// contains filtered or unexported fields
}

Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to capabilities, partnerships, profiles and transformers. A tag key can take more than one value. For example, to group capabilities for accounting purposes, you might create a tag called Group and assign the values Research and Accounting to that group.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*Tag) Validate

func (s *Tag) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceInput

type TagResourceInput struct {

	// Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// ResourceARN is a required field
	ResourceARN *string `min:"1" type:"string" required:"true"`

	// Specifies the key-value pairs assigned to ARNs that you can use to group
	// and search for resources by type. You can attach this metadata to resources
	// (capabilities, partnerships, and so on) for any purpose.
	//
	// Tags is a required field
	Tags []*Tag `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (TagResourceInput) GoString

func (s TagResourceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TagResourceInput) SetResourceARN

func (s *TagResourceInput) SetResourceARN(v string) *TagResourceInput

SetResourceARN sets the ResourceARN field's value.

func (*TagResourceInput) SetTags

func (s *TagResourceInput) SetTags(v []*Tag) *TagResourceInput

SetTags sets the Tags field's value.

func (TagResourceInput) String

func (s TagResourceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TagResourceInput) Validate

func (s *TagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TagResourceOutput

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

func (TagResourceOutput) GoString

func (s TagResourceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (TagResourceOutput) String

func (s TagResourceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TestMappingInput

type TestMappingInput struct {

	// Specifies that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Specify the contents of the EDI (electronic data interchange) XML or JSON
	// file that is used as input for the transform.
	//
	// InputFileContent is a required field
	InputFileContent *string `locationName:"inputFileContent" type:"string" required:"true"`

	// Specifies the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	//
	// MappingTemplate is a required field
	MappingTemplate *string `locationName:"mappingTemplate" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (TestMappingInput) GoString

func (s TestMappingInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TestMappingInput) SetFileFormat

func (s *TestMappingInput) SetFileFormat(v string) *TestMappingInput

SetFileFormat sets the FileFormat field's value.

func (*TestMappingInput) SetInputFileContent

func (s *TestMappingInput) SetInputFileContent(v string) *TestMappingInput

SetInputFileContent sets the InputFileContent field's value.

func (*TestMappingInput) SetMappingTemplate

func (s *TestMappingInput) SetMappingTemplate(v string) *TestMappingInput

SetMappingTemplate sets the MappingTemplate field's value.

func (TestMappingInput) String

func (s TestMappingInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TestMappingInput) Validate

func (s *TestMappingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TestMappingOutput

type TestMappingOutput struct {

	// Returns a string for the mapping that can be used to identify the mapping.
	// Similar to a fingerprint
	//
	// MappedFileContent is a required field
	MappedFileContent *string `locationName:"mappedFileContent" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (TestMappingOutput) GoString

func (s TestMappingOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TestMappingOutput) SetMappedFileContent

func (s *TestMappingOutput) SetMappedFileContent(v string) *TestMappingOutput

SetMappedFileContent sets the MappedFileContent field's value.

func (TestMappingOutput) String

func (s TestMappingOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TestParsingInput

type TestParsingInput struct {

	// Specifies the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	//
	// EdiType is a required field
	EdiType *EdiType `locationName:"ediType" type:"structure" required:"true"`

	// Specifies that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Specifies an S3Location object, which contains the Amazon S3 bucket and prefix
	// for the location of the input file.
	//
	// InputFile is a required field
	InputFile *S3Location `locationName:"inputFile" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

func (TestParsingInput) GoString

func (s TestParsingInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TestParsingInput) SetEdiType

func (s *TestParsingInput) SetEdiType(v *EdiType) *TestParsingInput

SetEdiType sets the EdiType field's value.

func (*TestParsingInput) SetFileFormat

func (s *TestParsingInput) SetFileFormat(v string) *TestParsingInput

SetFileFormat sets the FileFormat field's value.

func (*TestParsingInput) SetInputFile

func (s *TestParsingInput) SetInputFile(v *S3Location) *TestParsingInput

SetInputFile sets the InputFile field's value.

func (TestParsingInput) String

func (s TestParsingInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TestParsingInput) Validate

func (s *TestParsingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type TestParsingOutput

type TestParsingOutput struct {

	// Returns the contents of the input file being tested, parsed according to
	// the specified EDI (electronic data interchange) type.
	//
	// ParsedFileContent is a required field
	ParsedFileContent *string `locationName:"parsedFileContent" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (TestParsingOutput) GoString

func (s TestParsingOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TestParsingOutput) SetParsedFileContent

func (s *TestParsingOutput) SetParsedFileContent(v string) *TestParsingOutput

SetParsedFileContent sets the ParsedFileContent field's value.

func (TestParsingOutput) String

func (s TestParsingOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ThrottlingException

type ThrottlingException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"message" min:"10" type:"string"`

	// The server attempts to retry a command that was throttled.
	RetryAfterSeconds *int64 `locationName:"retryAfterSeconds" type:"integer"`
	// contains filtered or unexported fields
}

The request was denied due to throttling: the data speed and rendering may be limited depending on various parameters and conditions.

func (*ThrottlingException) Code

func (s *ThrottlingException) Code() string

Code returns the exception type name.

func (*ThrottlingException) Error

func (s *ThrottlingException) Error() string

func (ThrottlingException) GoString

func (s ThrottlingException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ThrottlingException) Message

func (s *ThrottlingException) Message() string

Message returns the exception's message.

func (*ThrottlingException) OrigErr

func (s *ThrottlingException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ThrottlingException) RequestID

func (s *ThrottlingException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ThrottlingException) StatusCode

func (s *ThrottlingException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ThrottlingException) String

func (s ThrottlingException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type TransformerSummary

type TransformerSummary struct {

	// Returns a timestamp indicating when the transformer was created. For example,
	// 2023-07-20T19:58:44.624Z.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	//
	// EdiType is a required field
	EdiType *EdiType `locationName:"ediType" type:"structure" required:"true"`

	// Returns that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Returns the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	//
	// MappingTemplate is a required field
	MappingTemplate *string `locationName:"mappingTemplate" type:"string" required:"true"`

	// Returns a timestamp representing the date and time for the most recent change
	// for the transformer object.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the descriptive name for the transformer.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns a sample EDI document that is used by a transformer as a guide for
	// processing the EDI data.
	SampleDocument *string `locationName:"sampleDocument" type:"string"`

	// Returns the state of the newly created transformer. The transformer can be
	// either active or inactive. For the transformer to be used in a capability,
	// its status must active.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"TransformerStatus"`

	// Returns the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Contains the details for a transformer object. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

func (TransformerSummary) GoString

func (s TransformerSummary) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*TransformerSummary) SetCreatedAt

func (s *TransformerSummary) SetCreatedAt(v time.Time) *TransformerSummary

SetCreatedAt sets the CreatedAt field's value.

func (*TransformerSummary) SetEdiType

func (s *TransformerSummary) SetEdiType(v *EdiType) *TransformerSummary

SetEdiType sets the EdiType field's value.

func (*TransformerSummary) SetFileFormat

func (s *TransformerSummary) SetFileFormat(v string) *TransformerSummary

SetFileFormat sets the FileFormat field's value.

func (*TransformerSummary) SetMappingTemplate

func (s *TransformerSummary) SetMappingTemplate(v string) *TransformerSummary

SetMappingTemplate sets the MappingTemplate field's value.

func (*TransformerSummary) SetModifiedAt

func (s *TransformerSummary) SetModifiedAt(v time.Time) *TransformerSummary

SetModifiedAt sets the ModifiedAt field's value.

func (*TransformerSummary) SetName

SetName sets the Name field's value.

func (*TransformerSummary) SetSampleDocument

func (s *TransformerSummary) SetSampleDocument(v string) *TransformerSummary

SetSampleDocument sets the SampleDocument field's value.

func (*TransformerSummary) SetStatus

func (s *TransformerSummary) SetStatus(v string) *TransformerSummary

SetStatus sets the Status field's value.

func (*TransformerSummary) SetTransformerId

func (s *TransformerSummary) SetTransformerId(v string) *TransformerSummary

SetTransformerId sets the TransformerId field's value.

func (TransformerSummary) String

func (s TransformerSummary) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UntagResourceInput

type UntagResourceInput struct {

	// Specifies an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// ResourceARN is a required field
	ResourceARN *string `min:"1" type:"string" required:"true"`

	// Specifies the key-value pairs assigned to ARNs that you can use to group
	// and search for resources by type. You can attach this metadata to resources
	// (capabilities, partnerships, and so on) for any purpose.
	//
	// TagKeys is a required field
	TagKeys []*string `type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (UntagResourceInput) GoString

func (s UntagResourceInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UntagResourceInput) SetResourceARN

func (s *UntagResourceInput) SetResourceARN(v string) *UntagResourceInput

SetResourceARN sets the ResourceARN field's value.

func (*UntagResourceInput) SetTagKeys

func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput

SetTagKeys sets the TagKeys field's value.

func (UntagResourceInput) String

func (s UntagResourceInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UntagResourceInput) Validate

func (s *UntagResourceInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UntagResourceOutput

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

func (UntagResourceOutput) GoString

func (s UntagResourceOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (UntagResourceOutput) String

func (s UntagResourceOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdateCapabilityInput

type UpdateCapabilityInput struct {

	// Specifies a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`

	// Specifies a structure that contains the details for a capability.
	Configuration *CapabilityConfiguration `locationName:"configuration" type:"structure"`

	// Specifies one or more locations in Amazon S3, each specifying an EDI document
	// that can be used with this capability. Each item contains the name of the
	// bucket and the key, to identify the document's location.
	InstructionsDocuments []*S3Location `locationName:"instructionsDocuments" type:"list"`

	// Specifies a new name for the capability, to replace the existing name.
	Name *string `locationName:"name" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateCapabilityInput) GoString

func (s UpdateCapabilityInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateCapabilityInput) SetCapabilityId

func (s *UpdateCapabilityInput) SetCapabilityId(v string) *UpdateCapabilityInput

SetCapabilityId sets the CapabilityId field's value.

func (*UpdateCapabilityInput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*UpdateCapabilityInput) SetInstructionsDocuments

func (s *UpdateCapabilityInput) SetInstructionsDocuments(v []*S3Location) *UpdateCapabilityInput

SetInstructionsDocuments sets the InstructionsDocuments field's value.

func (*UpdateCapabilityInput) SetName

SetName sets the Name field's value.

func (UpdateCapabilityInput) String

func (s UpdateCapabilityInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateCapabilityInput) Validate

func (s *UpdateCapabilityInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateCapabilityOutput

type UpdateCapabilityOutput struct {

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// CapabilityArn is a required field
	CapabilityArn *string `locationName:"capabilityArn" min:"1" type:"string" required:"true"`

	// Returns a system-assigned unique identifier for the capability.
	//
	// CapabilityId is a required field
	CapabilityId *string `locationName:"capabilityId" min:"1" type:"string" required:"true"`

	// Returns a structure that contains the details for a capability.
	//
	// Configuration is a required field
	Configuration *CapabilityConfiguration `locationName:"configuration" type:"structure" required:"true"`

	// Returns a timestamp for creation date and time of the capability.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns one or more locations in Amazon S3, each specifying an EDI document
	// that can be used with this capability. Each item contains the name of the
	// bucket and the key, to identify the document's location.
	InstructionsDocuments []*S3Location `locationName:"instructionsDocuments" type:"list"`

	// Returns a timestamp for last time the capability was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the name of the capability, used to identify it.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the type of the capability. Currently, only edi is supported.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"CapabilityType"`
	// contains filtered or unexported fields
}

func (UpdateCapabilityOutput) GoString

func (s UpdateCapabilityOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateCapabilityOutput) SetCapabilityArn

func (s *UpdateCapabilityOutput) SetCapabilityArn(v string) *UpdateCapabilityOutput

SetCapabilityArn sets the CapabilityArn field's value.

func (*UpdateCapabilityOutput) SetCapabilityId

func (s *UpdateCapabilityOutput) SetCapabilityId(v string) *UpdateCapabilityOutput

SetCapabilityId sets the CapabilityId field's value.

func (*UpdateCapabilityOutput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (*UpdateCapabilityOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*UpdateCapabilityOutput) SetInstructionsDocuments

func (s *UpdateCapabilityOutput) SetInstructionsDocuments(v []*S3Location) *UpdateCapabilityOutput

SetInstructionsDocuments sets the InstructionsDocuments field's value.

func (*UpdateCapabilityOutput) SetModifiedAt

SetModifiedAt sets the ModifiedAt field's value.

func (*UpdateCapabilityOutput) SetName

SetName sets the Name field's value.

func (*UpdateCapabilityOutput) SetType

SetType sets the Type field's value.

func (UpdateCapabilityOutput) String

func (s UpdateCapabilityOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdatePartnershipInput

type UpdatePartnershipInput struct {

	// List of the capabilities associated with this partnership.
	Capabilities []*string `locationName:"capabilities" type:"list"`

	// The name of the partnership, used to identify it.
	Name *string `locationName:"name" min:"1" type:"string"`

	// Specifies the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdatePartnershipInput) GoString

func (s UpdatePartnershipInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdatePartnershipInput) SetCapabilities

func (s *UpdatePartnershipInput) SetCapabilities(v []*string) *UpdatePartnershipInput

SetCapabilities sets the Capabilities field's value.

func (*UpdatePartnershipInput) SetName

SetName sets the Name field's value.

func (*UpdatePartnershipInput) SetPartnershipId

func (s *UpdatePartnershipInput) SetPartnershipId(v string) *UpdatePartnershipInput

SetPartnershipId sets the PartnershipId field's value.

func (UpdatePartnershipInput) String

func (s UpdatePartnershipInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdatePartnershipInput) Validate

func (s *UpdatePartnershipInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdatePartnershipOutput

type UpdatePartnershipOutput struct {

	// Returns one or more capabilities associated with this partnership.
	Capabilities []*string `locationName:"capabilities" type:"list"`

	// Returns a timestamp that identifies the most recent date and time that the
	// partnership was modified.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the email address associated with this trading partner.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdatePartnershipOutput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Returns a timestamp that identifies the most recent date and time that the
	// partnership was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// The name of the partnership, used to identify it.
	Name *string `locationName:"name" min:"1" type:"string"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// PartnershipArn is a required field
	PartnershipArn *string `locationName:"partnershipArn" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for a partnership.
	//
	// PartnershipId is a required field
	PartnershipId *string `locationName:"partnershipId" min:"1" type:"string" required:"true"`

	// Returns the phone number associated with the partnership.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdatePartnershipOutput's
	// String and GoString methods.
	Phone *string `locationName:"phone" min:"7" type:"string" sensitive:"true"`

	// Returns the unique, system-generated identifier for the profile connected
	// to this partnership.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for a trading partner.
	TradingPartnerId *string `locationName:"tradingPartnerId" min:"1" type:"string"`
	// contains filtered or unexported fields
}

func (UpdatePartnershipOutput) GoString

func (s UpdatePartnershipOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdatePartnershipOutput) SetCapabilities

func (s *UpdatePartnershipOutput) SetCapabilities(v []*string) *UpdatePartnershipOutput

SetCapabilities sets the Capabilities field's value.

func (*UpdatePartnershipOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*UpdatePartnershipOutput) SetEmail

SetEmail sets the Email field's value.

func (*UpdatePartnershipOutput) SetModifiedAt

SetModifiedAt sets the ModifiedAt field's value.

func (*UpdatePartnershipOutput) SetName

SetName sets the Name field's value.

func (*UpdatePartnershipOutput) SetPartnershipArn

func (s *UpdatePartnershipOutput) SetPartnershipArn(v string) *UpdatePartnershipOutput

SetPartnershipArn sets the PartnershipArn field's value.

func (*UpdatePartnershipOutput) SetPartnershipId

func (s *UpdatePartnershipOutput) SetPartnershipId(v string) *UpdatePartnershipOutput

SetPartnershipId sets the PartnershipId field's value.

func (*UpdatePartnershipOutput) SetPhone

SetPhone sets the Phone field's value.

func (*UpdatePartnershipOutput) SetProfileId

SetProfileId sets the ProfileId field's value.

func (*UpdatePartnershipOutput) SetTradingPartnerId

func (s *UpdatePartnershipOutput) SetTradingPartnerId(v string) *UpdatePartnershipOutput

SetTradingPartnerId sets the TradingPartnerId field's value.

func (UpdatePartnershipOutput) String

func (s UpdatePartnershipOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdateProfileInput

type UpdateProfileInput struct {

	// Specifies the name for the business associated with this profile.
	BusinessName *string `locationName:"businessName" min:"1" type:"string"`

	// Specifies the email address associated with this customer profile.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateProfileInput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// The name of the profile, used to identify it.
	Name *string `locationName:"name" min:"1" type:"string"`

	// Specifies the phone number associated with the profile.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateProfileInput's
	// String and GoString methods.
	Phone *string `locationName:"phone" min:"7" type:"string" sensitive:"true"`

	// Specifies the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateProfileInput) GoString

func (s UpdateProfileInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateProfileInput) SetBusinessName

func (s *UpdateProfileInput) SetBusinessName(v string) *UpdateProfileInput

SetBusinessName sets the BusinessName field's value.

func (*UpdateProfileInput) SetEmail

SetEmail sets the Email field's value.

func (*UpdateProfileInput) SetName

SetName sets the Name field's value.

func (*UpdateProfileInput) SetPhone

SetPhone sets the Phone field's value.

func (*UpdateProfileInput) SetProfileId

func (s *UpdateProfileInput) SetProfileId(v string) *UpdateProfileInput

SetProfileId sets the ProfileId field's value.

func (UpdateProfileInput) String

func (s UpdateProfileInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateProfileInput) Validate

func (s *UpdateProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateProfileOutput

type UpdateProfileOutput struct {

	// Returns the name for the business associated with this profile.
	//
	// BusinessName is a required field
	BusinessName *string `locationName:"businessName" min:"1" type:"string" required:"true"`

	// Returns a timestamp for creation date and time of the profile.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the email address associated with this customer profile.
	//
	// Email is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateProfileOutput's
	// String and GoString methods.
	Email *string `locationName:"email" min:"5" type:"string" sensitive:"true"`

	// Returns the name of the logging group.
	LogGroupName *string `locationName:"logGroupName" min:"1" type:"string"`

	// Specifies whether or not logging is enabled for this profile.
	Logging *string `locationName:"logging" type:"string" enum:"Logging"`

	// Returns a timestamp for last time the profile was modified.
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Returns the name of the profile.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns the phone number associated with the profile.
	//
	// Phone is a sensitive parameter and its value will be
	// replaced with "sensitive" in string returned by UpdateProfileOutput's
	// String and GoString methods.
	//
	// Phone is a required field
	Phone *string `locationName:"phone" min:"7" type:"string" required:"true" sensitive:"true"`

	// Returns an Amazon Resource Name (ARN) for the profile.
	//
	// ProfileArn is a required field
	ProfileArn *string `locationName:"profileArn" min:"1" type:"string" required:"true"`

	// Returns the unique, system-generated identifier for the profile.
	//
	// ProfileId is a required field
	ProfileId *string `locationName:"profileId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateProfileOutput) GoString

func (s UpdateProfileOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateProfileOutput) SetBusinessName

func (s *UpdateProfileOutput) SetBusinessName(v string) *UpdateProfileOutput

SetBusinessName sets the BusinessName field's value.

func (*UpdateProfileOutput) SetCreatedAt

func (s *UpdateProfileOutput) SetCreatedAt(v time.Time) *UpdateProfileOutput

SetCreatedAt sets the CreatedAt field's value.

func (*UpdateProfileOutput) SetEmail

SetEmail sets the Email field's value.

func (*UpdateProfileOutput) SetLogGroupName

func (s *UpdateProfileOutput) SetLogGroupName(v string) *UpdateProfileOutput

SetLogGroupName sets the LogGroupName field's value.

func (*UpdateProfileOutput) SetLogging

SetLogging sets the Logging field's value.

func (*UpdateProfileOutput) SetModifiedAt

func (s *UpdateProfileOutput) SetModifiedAt(v time.Time) *UpdateProfileOutput

SetModifiedAt sets the ModifiedAt field's value.

func (*UpdateProfileOutput) SetName

SetName sets the Name field's value.

func (*UpdateProfileOutput) SetPhone

SetPhone sets the Phone field's value.

func (*UpdateProfileOutput) SetProfileArn

func (s *UpdateProfileOutput) SetProfileArn(v string) *UpdateProfileOutput

SetProfileArn sets the ProfileArn field's value.

func (*UpdateProfileOutput) SetProfileId

func (s *UpdateProfileOutput) SetProfileId(v string) *UpdateProfileOutput

SetProfileId sets the ProfileId field's value.

func (UpdateProfileOutput) String

func (s UpdateProfileOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type UpdateTransformerInput

type UpdateTransformerInput struct {

	// Specifies the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	EdiType *EdiType `locationName:"ediType" type:"structure"`

	// Specifies that the currently supported file formats for EDI transformations
	// are JSON and XML.
	FileFormat *string `locationName:"fileFormat" type:"string" enum:"FileFormat"`

	// Specifies the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	MappingTemplate *string `locationName:"mappingTemplate" type:"string"`

	// Specify a new name for the transformer, if you want to update it.
	Name *string `locationName:"name" min:"1" type:"string"`

	// Specifies a sample EDI document that is used by a transformer as a guide
	// for processing the EDI data.
	SampleDocument *string `locationName:"sampleDocument" type:"string"`

	// Specifies the transformer's status. You can update the state of the transformer,
	// from active to inactive, or inactive to active.
	Status *string `locationName:"status" type:"string" enum:"TransformerStatus"`

	// Specifies the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateTransformerInput) GoString

func (s UpdateTransformerInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateTransformerInput) SetEdiType

SetEdiType sets the EdiType field's value.

func (*UpdateTransformerInput) SetFileFormat

SetFileFormat sets the FileFormat field's value.

func (*UpdateTransformerInput) SetMappingTemplate

func (s *UpdateTransformerInput) SetMappingTemplate(v string) *UpdateTransformerInput

SetMappingTemplate sets the MappingTemplate field's value.

func (*UpdateTransformerInput) SetName

SetName sets the Name field's value.

func (*UpdateTransformerInput) SetSampleDocument

func (s *UpdateTransformerInput) SetSampleDocument(v string) *UpdateTransformerInput

SetSampleDocument sets the SampleDocument field's value.

func (*UpdateTransformerInput) SetStatus

SetStatus sets the Status field's value.

func (*UpdateTransformerInput) SetTransformerId

func (s *UpdateTransformerInput) SetTransformerId(v string) *UpdateTransformerInput

SetTransformerId sets the TransformerId field's value.

func (UpdateTransformerInput) String

func (s UpdateTransformerInput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateTransformerInput) Validate

func (s *UpdateTransformerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateTransformerOutput

type UpdateTransformerOutput struct {

	// Returns a timestamp for creation date and time of the transformer.
	//
	// CreatedAt is a required field
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the details for the EDI standard that is being used for the transformer.
	// Currently, only X12 is supported. X12 is a set of standards and corresponding
	// messages that define specific business documents.
	//
	// EdiType is a required field
	EdiType *EdiType `locationName:"ediType" type:"structure" required:"true"`

	// Returns that the currently supported file formats for EDI transformations
	// are JSON and XML.
	//
	// FileFormat is a required field
	FileFormat *string `locationName:"fileFormat" type:"string" required:"true" enum:"FileFormat"`

	// Returns the name of the mapping template for the transformer. This template
	// is used to convert the input document into the correct set of objects.
	//
	// MappingTemplate is a required field
	MappingTemplate *string `locationName:"mappingTemplate" type:"string" required:"true"`

	// Returns a timestamp for last time the transformer was modified.
	//
	// ModifiedAt is a required field
	ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Returns the name of the transformer.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// Returns a sample EDI document that is used by a transformer as a guide for
	// processing the EDI data.
	SampleDocument *string `locationName:"sampleDocument" type:"string"`

	// Returns the state of the newly created transformer. The transformer can be
	// either active or inactive. For the transformer to be used in a capability,
	// its status must active.
	//
	// Status is a required field
	Status *string `locationName:"status" type:"string" required:"true" enum:"TransformerStatus"`

	// Returns an Amazon Resource Name (ARN) for a specific Amazon Web Services
	// resource, such as a capability, partnership, profile, or transformer.
	//
	// TransformerArn is a required field
	TransformerArn *string `locationName:"transformerArn" min:"1" type:"string" required:"true"`

	// Returns the system-assigned unique identifier for the transformer.
	//
	// TransformerId is a required field
	TransformerId *string `locationName:"transformerId" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateTransformerOutput) GoString

func (s UpdateTransformerOutput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*UpdateTransformerOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*UpdateTransformerOutput) SetEdiType

SetEdiType sets the EdiType field's value.

func (*UpdateTransformerOutput) SetFileFormat

SetFileFormat sets the FileFormat field's value.

func (*UpdateTransformerOutput) SetMappingTemplate

func (s *UpdateTransformerOutput) SetMappingTemplate(v string) *UpdateTransformerOutput

SetMappingTemplate sets the MappingTemplate field's value.

func (*UpdateTransformerOutput) SetModifiedAt

SetModifiedAt sets the ModifiedAt field's value.

func (*UpdateTransformerOutput) SetName

SetName sets the Name field's value.

func (*UpdateTransformerOutput) SetSampleDocument

func (s *UpdateTransformerOutput) SetSampleDocument(v string) *UpdateTransformerOutput

SetSampleDocument sets the SampleDocument field's value.

func (*UpdateTransformerOutput) SetStatus

SetStatus sets the Status field's value.

func (*UpdateTransformerOutput) SetTransformerArn

func (s *UpdateTransformerOutput) SetTransformerArn(v string) *UpdateTransformerOutput

SetTransformerArn sets the TransformerArn field's value.

func (*UpdateTransformerOutput) SetTransformerId

func (s *UpdateTransformerOutput) SetTransformerId(v string) *UpdateTransformerOutput

SetTransformerId sets the TransformerId field's value.

func (UpdateTransformerOutput) String

func (s UpdateTransformerOutput) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type ValidationException

type ValidationException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" min:"10" type:"string"`
	// contains filtered or unexported fields
}

Occurs when a B2BI object cannot be validated against a request from another object.

func (*ValidationException) Code

func (s *ValidationException) Code() string

Code returns the exception type name.

func (*ValidationException) Error

func (s *ValidationException) Error() string

func (ValidationException) GoString

func (s ValidationException) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*ValidationException) Message

func (s *ValidationException) Message() string

Message returns the exception's message.

func (*ValidationException) OrigErr

func (s *ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*ValidationException) RequestID

func (s *ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*ValidationException) StatusCode

func (s *ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String

func (s ValidationException) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

type X12Details

type X12Details struct {

	// Returns an enumerated type where each value identifies an X12 transaction
	// set. Transaction sets are maintained by the X12 Accredited Standards Committee.
	TransactionSet *string `locationName:"transactionSet" type:"string" enum:"X12TransactionSet"`

	// Returns the version to use for the specified X12 transaction set. Supported
	// versions are 4010, 4030, and 5010.
	Version *string `locationName:"version" type:"string" enum:"X12Version"`
	// contains filtered or unexported fields
}

A structure that contains the X12 transaction set and version. The X12 structure is used when the system transforms an EDI (electronic data interchange) file.

If an EDI input file contains more than one transaction, each transaction must have the same transaction set and version, for example 214/4010. If not, the transformer cannot parse the file.

func (X12Details) GoString

func (s X12Details) GoString() string

GoString returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

func (*X12Details) SetTransactionSet

func (s *X12Details) SetTransactionSet(v string) *X12Details

SetTransactionSet sets the TransactionSet field's value.

func (*X12Details) SetVersion

func (s *X12Details) SetVersion(v string) *X12Details

SetVersion sets the Version field's value.

func (X12Details) String

func (s X12Details) String() string

String returns the string representation.

API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".

Directories

Path Synopsis
Package b2biiface provides an interface to enable mocking the AWS B2B Data Interchange service client for testing your code.
Package b2biiface provides an interface to enable mocking the AWS B2B Data Interchange service client for testing your code.

Jump to

Keyboard shortcuts

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