aws-sdk-go: github.com/aws/aws-sdk-go/service/workmailmessageflow Index | Files | Directories

package workmailmessageflow

import "github.com/aws/aws-sdk-go/service/workmailmessageflow"

Package workmailmessageflow provides the client and types for making API requests to Amazon WorkMail Message Flow.

The WorkMail Message Flow API provides access to email messages as they are being sent and received by a WorkMail organization.

See https://docs.aws.amazon.com/goto/WebAPI/workmailmessageflow-2019-05-01 for more information on this service.

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

Using the Client

To contact Amazon WorkMail Message Flow 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 Amazon WorkMail Message Flow client WorkMailMessageFlow for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/workmailmessageflow/#New

Index

Package Files

api.go doc.go errors.go service.go

Constants

const (
    ServiceName = "WorkMailMessageFlow" // Name of service.
    EndpointsID = "workmailmessageflow" // ID to lookup a service endpoint with.
    ServiceID   = "WorkMailMessageFlow" // ServiceID is a unique identifer of a specific service.
)

Service information constants

const (

    // ErrCodeResourceNotFoundException for service response error code
    // "ResourceNotFoundException".
    //
    // The requested email message is not found.
    ErrCodeResourceNotFoundException = "ResourceNotFoundException"
)

type GetRawMessageContentInput Uses

type GetRawMessageContentInput struct {

    // The identifier of the email message to retrieve.
    //
    // MessageId is a required field
    MessageId *string `location:"uri" locationName:"messageId" min:"1" type:"string" required:"true"`
    // contains filtered or unexported fields
}

func (GetRawMessageContentInput) GoString Uses

func (s GetRawMessageContentInput) GoString() string

GoString returns the string representation

func (*GetRawMessageContentInput) SetMessageId Uses

func (s *GetRawMessageContentInput) SetMessageId(v string) *GetRawMessageContentInput

SetMessageId sets the MessageId field's value.

func (GetRawMessageContentInput) String Uses

func (s GetRawMessageContentInput) String() string

String returns the string representation

func (*GetRawMessageContentInput) Validate Uses

func (s *GetRawMessageContentInput) Validate() error

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

type GetRawMessageContentOutput Uses

type GetRawMessageContentOutput struct {

    // The raw content of the email message, in MIME format.
    //
    // MessageContent is a required field
    MessageContent io.ReadCloser `locationName:"messageContent" type:"blob" required:"true"`
    // contains filtered or unexported fields
}

func (GetRawMessageContentOutput) GoString Uses

func (s GetRawMessageContentOutput) GoString() string

GoString returns the string representation

func (*GetRawMessageContentOutput) SetMessageContent Uses

func (s *GetRawMessageContentOutput) SetMessageContent(v io.ReadCloser) *GetRawMessageContentOutput

SetMessageContent sets the MessageContent field's value.

func (GetRawMessageContentOutput) String Uses

func (s GetRawMessageContentOutput) String() string

String returns the string representation

type WorkMailMessageFlow Uses

type WorkMailMessageFlow struct {
    *client.Client
}

WorkMailMessageFlow provides the API operation methods for making requests to Amazon WorkMail Message Flow. See this package's package overview docs for details on the service.

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

func New Uses

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

New creates a new instance of the WorkMailMessageFlow 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:

// Create a WorkMailMessageFlow client from just a session.
svc := workmailmessageflow.New(mySession)

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

func (*WorkMailMessageFlow) GetRawMessageContent Uses

func (c *WorkMailMessageFlow) GetRawMessageContent(input *GetRawMessageContentInput) (*GetRawMessageContentOutput, error)

GetRawMessageContent API operation for Amazon WorkMail Message Flow.

Retrieves the raw content of an in-transit email message, in MIME format.

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 Amazon WorkMail Message Flow's API operation GetRawMessageContent for usage and error information.

Returned Error Codes:

* ErrCodeResourceNotFoundException "ResourceNotFoundException"
The requested email message is not found.

See also, https://docs.aws.amazon.com/goto/WebAPI/workmailmessageflow-2019-05-01/GetRawMessageContent

func (*WorkMailMessageFlow) GetRawMessageContentRequest Uses

func (c *WorkMailMessageFlow) GetRawMessageContentRequest(input *GetRawMessageContentInput) (req *request.Request, output *GetRawMessageContentOutput)

GetRawMessageContentRequest generates a "aws/request.Request" representing the client's request for the GetRawMessageContent 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 GetRawMessageContent for more information on using the GetRawMessageContent 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 GetRawMessageContentRequest method.
req, resp := client.GetRawMessageContentRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/workmailmessageflow-2019-05-01/GetRawMessageContent

func (*WorkMailMessageFlow) GetRawMessageContentWithContext Uses

func (c *WorkMailMessageFlow) GetRawMessageContentWithContext(ctx aws.Context, input *GetRawMessageContentInput, opts ...request.Option) (*GetRawMessageContentOutput, error)

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

See GetRawMessageContent 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.

Directories

PathSynopsis
workmailmessageflowifacePackage workmailmessageflowiface provides an interface to enable mocking the Amazon WorkMail Message Flow service client for testing your code.

Package workmailmessageflow imports 8 packages (graph) and is imported by 6 packages. Updated 2019-10-29. Refresh now. Tools for package owners.