PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package ses_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/ses" ) 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 } // CloneReceiptRuleSet // The following example creates a receipt rule set by cloning an existing one: func ExampleSES_CloneReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.CloneReceiptRuleSetInput{ OriginalRuleSetName: aws.String("RuleSetToClone"), RuleSetName: aws.String("RuleSetToCreate"), } result, err := svc.CloneReceiptRuleSet(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, aerr.Error()) case ses.ErrCodeAlreadyExistsException: fmt.Println(ses.ErrCodeAlreadyExistsException, aerr.Error()) case ses.ErrCodeLimitExceededException: fmt.Println(ses.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) } // CreateReceiptFilter // The following example creates a new IP address filter: func ExampleSES_CreateReceiptFilter_shared00() { svc := ses.New(session.New()) input := &ses.CreateReceiptFilterInput{ Filter: &ses.ReceiptFilter{ IpFilter: &ses.ReceiptIpFilter{ Cidr: aws.String("1.2.3.4/24"), Policy: aws.String("Allow"), }, Name: aws.String("MyFilter"), }, } result, err := svc.CreateReceiptFilter(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeLimitExceededException: fmt.Println(ses.ErrCodeLimitExceededException, aerr.Error()) case ses.ErrCodeAlreadyExistsException: fmt.Println(ses.ErrCodeAlreadyExistsException, 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) } // CreateReceiptRule // The following example creates a new receipt rule: func ExampleSES_CreateReceiptRule_shared00() { svc := ses.New(session.New()) input := &ses.CreateReceiptRuleInput{ After: aws.String(""), Rule: &ses.ReceiptRule{ Actions: []*ses.ReceiptAction{ { S3Action: &ses.S3Action{ BucketName: aws.String("MyBucket"), ObjectKeyPrefix: aws.String("email"), }, }, }, Enabled: aws.Bool(true), Name: aws.String("MyRule"), ScanEnabled: aws.Bool(true), TlsPolicy: aws.String("Optional"), }, RuleSetName: aws.String("MyRuleSet"), } result, err := svc.CreateReceiptRule(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeInvalidSnsTopicException: fmt.Println(ses.ErrCodeInvalidSnsTopicException, aerr.Error()) case ses.ErrCodeInvalidS3ConfigurationException: fmt.Println(ses.ErrCodeInvalidS3ConfigurationException, aerr.Error()) case ses.ErrCodeInvalidLambdaFunctionException: fmt.Println(ses.ErrCodeInvalidLambdaFunctionException, aerr.Error()) case ses.ErrCodeAlreadyExistsException: fmt.Println(ses.ErrCodeAlreadyExistsException, aerr.Error()) case ses.ErrCodeRuleDoesNotExistException: fmt.Println(ses.ErrCodeRuleDoesNotExistException, aerr.Error()) case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, aerr.Error()) case ses.ErrCodeLimitExceededException: fmt.Println(ses.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) } // CreateReceiptRuleSet // The following example creates an empty receipt rule set: func ExampleSES_CreateReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.CreateReceiptRuleSetInput{ RuleSetName: aws.String("MyRuleSet"), } result, err := svc.CreateReceiptRuleSet(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeAlreadyExistsException: fmt.Println(ses.ErrCodeAlreadyExistsException, aerr.Error()) case ses.ErrCodeLimitExceededException: fmt.Println(ses.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) } // DeleteIdentity // The following example deletes an identity from the list of identities that have been // submitted for verification with Amazon SES: func ExampleSES_DeleteIdentity_shared00() { svc := ses.New(session.New()) input := &ses.DeleteIdentityInput{ Identity: aws.String("user@example.com"), } result, err := svc.DeleteIdentity(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) } // DeleteIdentityPolicy // The following example deletes a sending authorization policy for an identity: func ExampleSES_DeleteIdentityPolicy_shared00() { svc := ses.New(session.New()) input := &ses.DeleteIdentityPolicyInput{ Identity: aws.String("user@example.com"), PolicyName: aws.String("MyPolicy"), } result, err := svc.DeleteIdentityPolicy(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) } // DeleteReceiptFilter // The following example deletes an IP address filter: func ExampleSES_DeleteReceiptFilter_shared00() { svc := ses.New(session.New()) input := &ses.DeleteReceiptFilterInput{ FilterName: aws.String("MyFilter"), } result, err := svc.DeleteReceiptFilter(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) } // DeleteReceiptRule // The following example deletes a receipt rule: func ExampleSES_DeleteReceiptRule_shared00() { svc := ses.New(session.New()) input := &ses.DeleteReceiptRuleInput{ RuleName: aws.String("MyRule"), RuleSetName: aws.String("MyRuleSet"), } result, err := svc.DeleteReceiptRule(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, 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) } // DeleteReceiptRuleSet // The following example deletes a receipt rule set: func ExampleSES_DeleteReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.DeleteReceiptRuleSetInput{ RuleSetName: aws.String("MyRuleSet"), } result, err := svc.DeleteReceiptRuleSet(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeCannotDeleteException: fmt.Println(ses.ErrCodeCannotDeleteException, 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) } // DeleteVerifiedEmailAddress // The following example deletes an email address from the list of identities that have // been submitted for verification with Amazon SES: func ExampleSES_DeleteVerifiedEmailAddress_shared00() { svc := ses.New(session.New()) input := &ses.DeleteVerifiedEmailAddressInput{ EmailAddress: aws.String("user@example.com"), } result, err := svc.DeleteVerifiedEmailAddress(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) } // DescribeActiveReceiptRuleSet // The following example returns the metadata and receipt rules for the receipt rule // set that is currently active: func ExampleSES_DescribeActiveReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.DescribeActiveReceiptRuleSetInput{} result, err := svc.DescribeActiveReceiptRuleSet(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) } // DescribeReceiptRule // The following example returns the details of a receipt rule: func ExampleSES_DescribeReceiptRule_shared00() { svc := ses.New(session.New()) input := &ses.DescribeReceiptRuleInput{ RuleName: aws.String("MyRule"), RuleSetName: aws.String("MyRuleSet"), } result, err := svc.DescribeReceiptRule(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleDoesNotExistException: fmt.Println(ses.ErrCodeRuleDoesNotExistException, aerr.Error()) case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, 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) } // DescribeReceiptRuleSet // The following example returns the metadata and receipt rules of a receipt rule set: func ExampleSES_DescribeReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.DescribeReceiptRuleSetInput{ RuleSetName: aws.String("MyRuleSet"), } result, err := svc.DescribeReceiptRuleSet(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, 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) } // GetAccountSendingEnabled // The following example returns if sending status for an account is enabled. (true // / false): func ExampleSES_GetAccountSendingEnabled_shared00() { svc := ses.New(session.New()) input := &ses.GetAccountSendingEnabledInput{} result, err := svc.GetAccountSendingEnabled(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) } // GetIdentityDkimAttributes // The following example retrieves the Amazon SES Easy DKIM attributes for a list of // identities: func ExampleSES_GetIdentityDkimAttributes_shared00() { svc := ses.New(session.New()) input := &ses.GetIdentityDkimAttributesInput{ Identities: []*string{ aws.String("example.com"), aws.String("user@example.com"), }, } result, err := svc.GetIdentityDkimAttributes(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) } // GetIdentityMailFromDomainAttributes // The following example returns the custom MAIL FROM attributes for an identity: func ExampleSES_GetIdentityMailFromDomainAttributes_shared00() { svc := ses.New(session.New()) input := &ses.GetIdentityMailFromDomainAttributesInput{ Identities: []*string{ aws.String("example.com"), }, } result, err := svc.GetIdentityMailFromDomainAttributes(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) } // GetIdentityNotificationAttributes // The following example returns the notification attributes for an identity: func ExampleSES_GetIdentityNotificationAttributes_shared00() { svc := ses.New(session.New()) input := &ses.GetIdentityNotificationAttributesInput{ Identities: []*string{ aws.String("example.com"), }, } result, err := svc.GetIdentityNotificationAttributes(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) } // GetIdentityPolicies // The following example returns a sending authorization policy for an identity: func ExampleSES_GetIdentityPolicies_shared00() { svc := ses.New(session.New()) input := &ses.GetIdentityPoliciesInput{ Identity: aws.String("example.com"), PolicyNames: []*string{ aws.String("MyPolicy"), }, } result, err := svc.GetIdentityPolicies(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) } // GetIdentityVerificationAttributes // The following example returns the verification status and the verification token // for a domain identity: func ExampleSES_GetIdentityVerificationAttributes_shared00() { svc := ses.New(session.New()) input := &ses.GetIdentityVerificationAttributesInput{ Identities: []*string{ aws.String("example.com"), }, } result, err := svc.GetIdentityVerificationAttributes(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) } // GetSendQuota // The following example returns the Amazon SES sending limits for an AWS account: func ExampleSES_GetSendQuota_shared00() { svc := ses.New(session.New()) input := &ses.GetSendQuotaInput{} result, err := svc.GetSendQuota(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) } // GetSendStatistics // The following example returns Amazon SES sending statistics: func ExampleSES_GetSendStatistics_shared00() { svc := ses.New(session.New()) input := &ses.GetSendStatisticsInput{} result, err := svc.GetSendStatistics(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) } // ListIdentities // The following example lists the email address identities that have been submitted // for verification with Amazon SES: func ExampleSES_ListIdentities_shared00() { svc := ses.New(session.New()) input := &ses.ListIdentitiesInput{ IdentityType: aws.String("EmailAddress"), MaxItems: aws.Int64(123), NextToken: aws.String(""), } result, err := svc.ListIdentities(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) } // ListIdentityPolicies // The following example returns a list of sending authorization policies that are attached // to an identity: func ExampleSES_ListIdentityPolicies_shared00() { svc := ses.New(session.New()) input := &ses.ListIdentityPoliciesInput{ Identity: aws.String("example.com"), } result, err := svc.ListIdentityPolicies(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) } // ListReceiptFilters // The following example lists the IP address filters that are associated with an AWS // account: func ExampleSES_ListReceiptFilters_shared00() { svc := ses.New(session.New()) input := &ses.ListReceiptFiltersInput{} result, err := svc.ListReceiptFilters(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) } // ListReceiptRuleSets // The following example lists the receipt rule sets that exist under an AWS account: func ExampleSES_ListReceiptRuleSets_shared00() { svc := ses.New(session.New()) input := &ses.ListReceiptRuleSetsInput{ NextToken: aws.String(""), } result, err := svc.ListReceiptRuleSets(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) } // ListVerifiedEmailAddresses // The following example lists all email addresses that have been submitted for verification // with Amazon SES: func ExampleSES_ListVerifiedEmailAddresses_shared00() { svc := ses.New(session.New()) input := &ses.ListVerifiedEmailAddressesInput{} result, err := svc.ListVerifiedEmailAddresses(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) } // PutIdentityPolicy // The following example adds a sending authorization policy to an identity: func ExampleSES_PutIdentityPolicy_shared00() { svc := ses.New(session.New()) input := &ses.PutIdentityPolicyInput{ Identity: aws.String("example.com"), Policy: aws.String("{\"Version\":\"2008-10-17\",\"Statement\":[{\"Sid\":\"stmt1469123904194\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::123456789012:root\"},\"Action\":[\"ses:SendEmail\",\"ses:SendRawEmail\"],\"Resource\":\"arn:aws:ses:us-east-1:EXAMPLE65304:identity/example.com\"}]}"), PolicyName: aws.String("MyPolicy"), } result, err := svc.PutIdentityPolicy(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeInvalidPolicyException: fmt.Println(ses.ErrCodeInvalidPolicyException, 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) } // ReorderReceiptRuleSet // The following example reorders the receipt rules within a receipt rule set: func ExampleSES_ReorderReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.ReorderReceiptRuleSetInput{ RuleNames: []*string{ aws.String("MyRule"), aws.String("MyOtherRule"), }, RuleSetName: aws.String("MyRuleSet"), } result, err := svc.ReorderReceiptRuleSet(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, aerr.Error()) case ses.ErrCodeRuleDoesNotExistException: fmt.Println(ses.ErrCodeRuleDoesNotExistException, 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) } // SendEmail // The following example sends a formatted email: func ExampleSES_SendEmail_shared00() { svc := ses.New(session.New()) input := &ses.SendEmailInput{ Destination: &ses.Destination{ CcAddresses: []*string{ aws.String("recipient3@example.com"), }, ToAddresses: []*string{ aws.String("recipient1@example.com"), aws.String("recipient2@example.com"), }, }, Message: &ses.Message{ Body: &ses.Body{ Html: &ses.Content{ Charset: aws.String("UTF-8"), Data: aws.String("This message body contains HTML formatting. It can, for example, contain links like this one: Amazon SES Developer Guide."), }, Text: &ses.Content{ Charset: aws.String("UTF-8"), Data: aws.String("This is the message body in text format."), }, }, Subject: &ses.Content{ Charset: aws.String("UTF-8"), Data: aws.String("Test email"), }, }, ReturnPath: aws.String(""), ReturnPathArn: aws.String(""), Source: aws.String("sender@example.com"), SourceArn: aws.String(""), } result, err := svc.SendEmail(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeMessageRejected: fmt.Println(ses.ErrCodeMessageRejected, aerr.Error()) case ses.ErrCodeMailFromDomainNotVerifiedException: fmt.Println(ses.ErrCodeMailFromDomainNotVerifiedException, aerr.Error()) case ses.ErrCodeConfigurationSetDoesNotExistException: fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, aerr.Error()) case ses.ErrCodeConfigurationSetSendingPausedException: fmt.Println(ses.ErrCodeConfigurationSetSendingPausedException, aerr.Error()) case ses.ErrCodeAccountSendingPausedException: fmt.Println(ses.ErrCodeAccountSendingPausedException, 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) } // SendRawEmail // The following example sends an email with an attachment: func ExampleSES_SendRawEmail_shared00() { svc := ses.New(session.New()) input := &ses.SendRawEmailInput{ FromArn: aws.String(""), RawMessage: &ses.RawMessage{ Data: []byte("From: sender@example.com\\nTo: recipient@example.com\\nSubject: Test email (contains an attachment)\\nMIME-Version: 1.0\\nContent-type: Multipart/Mixed; boundary=\"NextPart\"\\n\\n--NextPart\\nContent-Type: text/plain\\n\\nThis is the message body.\\n\\n--NextPart\\nContent-Type: text/plain;\\nContent-Disposition: attachment; filename=\"attachment.txt\"\\n\\nThis is the text in the attachment.\\n\\n--NextPart--"), }, ReturnPathArn: aws.String(""), Source: aws.String(""), SourceArn: aws.String(""), } result, err := svc.SendRawEmail(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeMessageRejected: fmt.Println(ses.ErrCodeMessageRejected, aerr.Error()) case ses.ErrCodeMailFromDomainNotVerifiedException: fmt.Println(ses.ErrCodeMailFromDomainNotVerifiedException, aerr.Error()) case ses.ErrCodeConfigurationSetDoesNotExistException: fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, aerr.Error()) case ses.ErrCodeConfigurationSetSendingPausedException: fmt.Println(ses.ErrCodeConfigurationSetSendingPausedException, aerr.Error()) case ses.ErrCodeAccountSendingPausedException: fmt.Println(ses.ErrCodeAccountSendingPausedException, 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) } // SetActiveReceiptRuleSet // The following example sets the active receipt rule set: func ExampleSES_SetActiveReceiptRuleSet_shared00() { svc := ses.New(session.New()) input := &ses.SetActiveReceiptRuleSetInput{ RuleSetName: aws.String("RuleSetToActivate"), } result, err := svc.SetActiveReceiptRuleSet(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, 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) } // SetIdentityDkimEnabled // The following example configures Amazon SES to Easy DKIM-sign the email sent from // an identity: func ExampleSES_SetIdentityDkimEnabled_shared00() { svc := ses.New(session.New()) input := &ses.SetIdentityDkimEnabledInput{ DkimEnabled: aws.Bool(true), Identity: aws.String("user@example.com"), } result, err := svc.SetIdentityDkimEnabled(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) } // SetIdentityFeedbackForwardingEnabled // The following example configures Amazon SES to forward an identity's bounces and // complaints via email: func ExampleSES_SetIdentityFeedbackForwardingEnabled_shared00() { svc := ses.New(session.New()) input := &ses.SetIdentityFeedbackForwardingEnabledInput{ ForwardingEnabled: aws.Bool(true), Identity: aws.String("user@example.com"), } result, err := svc.SetIdentityFeedbackForwardingEnabled(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) } // SetIdentityHeadersInNotificationsEnabled // The following example configures Amazon SES to include the original email headers // in the Amazon SNS bounce notifications for an identity: func ExampleSES_SetIdentityHeadersInNotificationsEnabled_shared00() { svc := ses.New(session.New()) input := &ses.SetIdentityHeadersInNotificationsEnabledInput{ Enabled: aws.Bool(true), Identity: aws.String("user@example.com"), NotificationType: aws.String("Bounce"), } result, err := svc.SetIdentityHeadersInNotificationsEnabled(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) } // SetIdentityMailFromDomain // The following example configures Amazon SES to use a custom MAIL FROM domain for // an identity: func ExampleSES_SetIdentityMailFromDomain_shared00() { svc := ses.New(session.New()) input := &ses.SetIdentityMailFromDomainInput{ BehaviorOnMXFailure: aws.String("UseDefaultValue"), Identity: aws.String("user@example.com"), MailFromDomain: aws.String("bounces.example.com"), } result, err := svc.SetIdentityMailFromDomain(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) } // SetIdentityNotificationTopic // The following example sets the Amazon SNS topic to which Amazon SES will publish // bounce, complaint, and/or delivery notifications for emails sent with the specified // identity as the Source: func ExampleSES_SetIdentityNotificationTopic_shared00() { svc := ses.New(session.New()) input := &ses.SetIdentityNotificationTopicInput{ Identity: aws.String("user@example.com"), NotificationType: aws.String("Bounce"), SnsTopic: aws.String("arn:aws:sns:us-west-2:111122223333:MyTopic"), } result, err := svc.SetIdentityNotificationTopic(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) } // SetReceiptRulePosition // The following example sets the position of a receipt rule in a receipt rule set: func ExampleSES_SetReceiptRulePosition_shared00() { svc := ses.New(session.New()) input := &ses.SetReceiptRulePositionInput{ After: aws.String("PutRuleAfterThisRule"), RuleName: aws.String("RuleToReposition"), RuleSetName: aws.String("MyRuleSet"), } result, err := svc.SetReceiptRulePosition(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, aerr.Error()) case ses.ErrCodeRuleDoesNotExistException: fmt.Println(ses.ErrCodeRuleDoesNotExistException, 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) } // UpdateAccountSendingEnabled // The following example updated the sending status for this account. func ExampleSES_UpdateAccountSendingEnabled_shared00() { svc := ses.New(session.New()) input := &ses.UpdateAccountSendingEnabledInput{ Enabled: aws.Bool(true), } result, err := svc.UpdateAccountSendingEnabled(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) } // UpdateConfigurationSetReputationMetricsEnabled // Set the reputationMetricsEnabled flag for a specific configuration set. func ExampleSES_UpdateConfigurationSetReputationMetricsEnabled_shared00() { svc := ses.New(session.New()) input := &ses.UpdateConfigurationSetReputationMetricsEnabledInput{ ConfigurationSetName: aws.String("foo"), Enabled: aws.Bool(true), } result, err := svc.UpdateConfigurationSetReputationMetricsEnabled(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeConfigurationSetDoesNotExistException: fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, 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) } // UpdateConfigurationSetReputationMetricsEnabled // Set the sending enabled flag for a specific configuration set. func ExampleSES_UpdateConfigurationSetSendingEnabled_shared00() { svc := ses.New(session.New()) input := &ses.UpdateConfigurationSetSendingEnabledInput{ ConfigurationSetName: aws.String("foo"), Enabled: aws.Bool(true), } result, err := svc.UpdateConfigurationSetSendingEnabled(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeConfigurationSetDoesNotExistException: fmt.Println(ses.ErrCodeConfigurationSetDoesNotExistException, 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) } // UpdateReceiptRule // The following example updates a receipt rule to use an Amazon S3 action: func ExampleSES_UpdateReceiptRule_shared00() { svc := ses.New(session.New()) input := &ses.UpdateReceiptRuleInput{ Rule: &ses.ReceiptRule{ Actions: []*ses.ReceiptAction{ { S3Action: &ses.S3Action{ BucketName: aws.String("MyBucket"), ObjectKeyPrefix: aws.String("email"), }, }, }, Enabled: aws.Bool(true), Name: aws.String("MyRule"), ScanEnabled: aws.Bool(true), TlsPolicy: aws.String("Optional"), }, RuleSetName: aws.String("MyRuleSet"), } result, err := svc.UpdateReceiptRule(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case ses.ErrCodeInvalidSnsTopicException: fmt.Println(ses.ErrCodeInvalidSnsTopicException, aerr.Error()) case ses.ErrCodeInvalidS3ConfigurationException: fmt.Println(ses.ErrCodeInvalidS3ConfigurationException, aerr.Error()) case ses.ErrCodeInvalidLambdaFunctionException: fmt.Println(ses.ErrCodeInvalidLambdaFunctionException, aerr.Error()) case ses.ErrCodeRuleSetDoesNotExistException: fmt.Println(ses.ErrCodeRuleSetDoesNotExistException, aerr.Error()) case ses.ErrCodeRuleDoesNotExistException: fmt.Println(ses.ErrCodeRuleDoesNotExistException, aerr.Error()) case ses.ErrCodeLimitExceededException: fmt.Println(ses.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) } // VerifyDomainDkim // The following example generates DKIM tokens for a domain that has been verified with // Amazon SES: func ExampleSES_VerifyDomainDkim_shared00() { svc := ses.New(session.New()) input := &ses.VerifyDomainDkimInput{ Domain: aws.String("example.com"), } result, err := svc.VerifyDomainDkim(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) } // VerifyDomainIdentity // The following example starts the domain verification process with Amazon SES: func ExampleSES_VerifyDomainIdentity_shared00() { svc := ses.New(session.New()) input := &ses.VerifyDomainIdentityInput{ Domain: aws.String("example.com"), } result, err := svc.VerifyDomainIdentity(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) } // VerifyEmailAddress // The following example starts the email address verification process with Amazon SES: func ExampleSES_VerifyEmailAddress_shared00() { svc := ses.New(session.New()) input := &ses.VerifyEmailAddressInput{ EmailAddress: aws.String("user@example.com"), } result, err := svc.VerifyEmailAddress(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) } // VerifyEmailIdentity // The following example starts the email address verification process with Amazon SES: func ExampleSES_VerifyEmailIdentity_shared00() { svc := ses.New(session.New()) input := &ses.VerifyEmailIdentityInput{ EmailAddress: aws.String("user@example.com"), } result, err := svc.VerifyEmailIdentity(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) }