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 inspector_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/inspector" ) 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 } // Add attributes to findings // Assigns attributes (key and value pairs) to the findings that are specified by the // ARNs of the findings. func ExampleInspector_AddAttributesToFindings_shared00() { svc := inspector.New(session.New()) input := &inspector.AddAttributesToFindingsInput{ Attributes: []*inspector.Attribute{ { Key: aws.String("Example"), Value: aws.String("example"), }, }, FindingArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU"), }, } result, err := svc.AddAttributesToFindings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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 assessment target // Creates a new assessment target using the ARN of the resource group that is generated // by CreateResourceGroup. You can create up to 50 assessment targets per AWS account. // You can run up to 500 concurrent agents per AWS account. func ExampleInspector_CreateAssessmentTarget_shared00() { svc := inspector.New(session.New()) input := &inspector.CreateAssessmentTargetInput{ AssessmentTargetName: aws.String("ExampleAssessmentTarget"), ResourceGroupArn: aws.String("arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-AB6DMKnv"), } result, err := svc.CreateAssessmentTarget(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeLimitExceededException: fmt.Println(inspector.ErrCodeLimitExceededException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeInvalidCrossAccountRoleException: fmt.Println(inspector.ErrCodeInvalidCrossAccountRoleException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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 assessment template // Creates an assessment template for the assessment target that is specified by the // ARN of the assessment target. func ExampleInspector_CreateAssessmentTemplate_shared00() { svc := inspector.New(session.New()) input := &inspector.CreateAssessmentTemplateInput{ AssessmentTargetArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX"), AssessmentTemplateName: aws.String("ExampleAssessmentTemplate"), DurationInSeconds: aws.Int64(180), RulesPackageArns: []*string{ aws.String("arn:aws:inspector:us-west-2:758058086616:rulespackage/0-11B9DBXp"), }, UserAttributesForFindings: []*inspector.Attribute{ { Key: aws.String("Example"), Value: aws.String("example"), }, }, } result, err := svc.CreateAssessmentTemplate(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeLimitExceededException: fmt.Println(inspector.ErrCodeLimitExceededException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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 resource group // Creates a resource group using the specified set of tags (key and value pairs) that // are used to select the EC2 instances to be included in an Amazon Inspector assessment // target. The created resource group is then used to create an Amazon Inspector assessment // target. func ExampleInspector_CreateResourceGroup_shared00() { svc := inspector.New(session.New()) input := &inspector.CreateResourceGroupInput{ ResourceGroupTags: []*inspector.ResourceGroupTag{ { Key: aws.String("Name"), Value: aws.String("example"), }, }, } result, err := svc.CreateResourceGroup(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeLimitExceededException: fmt.Println(inspector.ErrCodeLimitExceededException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Delete assessment run // Deletes the assessment run that is specified by the ARN of the assessment run. func ExampleInspector_DeleteAssessmentRun_shared00() { svc := inspector.New(session.New()) input := &inspector.DeleteAssessmentRunInput{ AssessmentRunArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe"), } result, err := svc.DeleteAssessmentRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAssessmentRunInProgressException: fmt.Println(inspector.ErrCodeAssessmentRunInProgressException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Delete assessment target // Deletes the assessment target that is specified by the ARN of the assessment target. func ExampleInspector_DeleteAssessmentTarget_shared00() { svc := inspector.New(session.New()) input := &inspector.DeleteAssessmentTargetInput{ AssessmentTargetArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"), } result, err := svc.DeleteAssessmentTarget(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAssessmentRunInProgressException: fmt.Println(inspector.ErrCodeAssessmentRunInProgressException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Delete assessment template // Deletes the assessment template that is specified by the ARN of the assessment template. func ExampleInspector_DeleteAssessmentTemplate_shared00() { svc := inspector.New(session.New()) input := &inspector.DeleteAssessmentTemplateInput{ AssessmentTemplateArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"), } result, err := svc.DeleteAssessmentTemplate(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAssessmentRunInProgressException: fmt.Println(inspector.ErrCodeAssessmentRunInProgressException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Describte assessment runs // Describes the assessment runs that are specified by the ARNs of the assessment runs. func ExampleInspector_DescribeAssessmentRuns_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeAssessmentRunsInput{ AssessmentRunArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE"), }, } result, err := svc.DescribeAssessmentRuns(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, 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) } // Describte assessment targets // Describes the assessment targets that are specified by the ARNs of the assessment // targets. func ExampleInspector_DescribeAssessmentTargets_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeAssessmentTargetsInput{ AssessmentTargetArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"), }, } result, err := svc.DescribeAssessmentTargets(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, 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) } // Describte assessment templates // Describes the assessment templates that are specified by the ARNs of the assessment // templates. func ExampleInspector_DescribeAssessmentTemplates_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeAssessmentTemplatesInput{ AssessmentTemplateArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw"), }, } result, err := svc.DescribeAssessmentTemplates(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, 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) } // Describte cross account access role // Describes the IAM role that enables Amazon Inspector to access your AWS account. func ExampleInspector_DescribeCrossAccountAccessRole_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeCrossAccountAccessRoleInput{} result, err := svc.DescribeCrossAccountAccessRole(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, 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) } // Describe findings // Describes the findings that are specified by the ARNs of the findings. func ExampleInspector_DescribeFindings_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeFindingsInput{ FindingArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE/finding/0-HwPnsDm4"), }, } result, err := svc.DescribeFindings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, 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) } // Describe resource groups // Describes the resource groups that are specified by the ARNs of the resource groups. func ExampleInspector_DescribeResourceGroups_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeResourceGroupsInput{ ResourceGroupArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-PyGXopAI"), }, } result, err := svc.DescribeResourceGroups(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, 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) } // Describe rules packages // Describes the rules packages that are specified by the ARNs of the rules packages. func ExampleInspector_DescribeRulesPackages_shared00() { svc := inspector.New(session.New()) input := &inspector.DescribeRulesPackagesInput{ RulesPackageArns: []*string{ aws.String("arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ"), }, } result, err := svc.DescribeRulesPackages(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, 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 telemetry metadata // Information about the data that is collected for the specified assessment run. func ExampleInspector_GetTelemetryMetadata_shared00() { svc := inspector.New(session.New()) input := &inspector.GetTelemetryMetadataInput{ AssessmentRunArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE"), } result, err := svc.GetTelemetryMetadata(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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 assessment run agents // Lists the agents of the assessment runs that are specified by the ARNs of the assessment // runs. func ExampleInspector_ListAssessmentRunAgents_shared00() { svc := inspector.New(session.New()) input := &inspector.ListAssessmentRunAgentsInput{ AssessmentRunArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE"), MaxResults: aws.Int64(123), } result, err := svc.ListAssessmentRunAgents(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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 assessment runs // Lists the assessment runs that correspond to the assessment templates that are specified // by the ARNs of the assessment templates. func ExampleInspector_ListAssessmentRuns_shared00() { svc := inspector.New(session.New()) input := &inspector.ListAssessmentRunsInput{ AssessmentTemplateArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw"), }, MaxResults: aws.Int64(123), } result, err := svc.ListAssessmentRuns(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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 assessment targets // Lists the ARNs of the assessment targets within this AWS account. func ExampleInspector_ListAssessmentTargets_shared00() { svc := inspector.New(session.New()) input := &inspector.ListAssessmentTargetsInput{ MaxResults: aws.Int64(123), } result, err := svc.ListAssessmentTargets(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, 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 assessment templates // Lists the assessment templates that correspond to the assessment targets that are // specified by the ARNs of the assessment targets. func ExampleInspector_ListAssessmentTemplates_shared00() { svc := inspector.New(session.New()) input := &inspector.ListAssessmentTemplatesInput{ AssessmentTargetArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"), }, MaxResults: aws.Int64(123), } result, err := svc.ListAssessmentTemplates(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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 event subscriptions // Lists all the event subscriptions for the assessment template that is specified by // the ARN of the assessment template. func ExampleInspector_ListEventSubscriptions_shared00() { svc := inspector.New(session.New()) input := &inspector.ListEventSubscriptionsInput{ MaxResults: aws.Int64(123), ResourceArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0"), } result, err := svc.ListEventSubscriptions(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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 findings // Lists findings that are generated by the assessment runs that are specified by the // ARNs of the assessment runs. func ExampleInspector_ListFindings_shared00() { svc := inspector.New(session.New()) input := &inspector.ListFindingsInput{ AssessmentRunArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-4r1V2mAw/run/0-MKkpXXPE"), }, MaxResults: aws.Int64(123), } result, err := svc.ListFindings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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 rules packages // Lists all available Amazon Inspector rules packages. func ExampleInspector_ListRulesPackages_shared00() { svc := inspector.New(session.New()) input := &inspector.ListRulesPackagesInput{ MaxResults: aws.Int64(123), } result, err := svc.ListRulesPackages(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, 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 tags for resource // Lists all tags associated with an assessment template. func ExampleInspector_ListTagsForResource_shared00() { svc := inspector.New(session.New()) input := &inspector.ListTagsForResourceInput{ ResourceArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-gcwFliYu"), } result, err := svc.ListTagsForResource(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, 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) } // Preview agents // Previews the agents installed on the EC2 instances that are part of the specified // assessment target. func ExampleInspector_PreviewAgents_shared00() { svc := inspector.New(session.New()) input := &inspector.PreviewAgentsInput{ MaxResults: aws.Int64(123), PreviewAgentsArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq"), } result, err := svc.PreviewAgents(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeInvalidCrossAccountRoleException: fmt.Println(inspector.ErrCodeInvalidCrossAccountRoleException, 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) } // Register cross account access role // Registers the IAM role that Amazon Inspector uses to list your EC2 instances at the // start of the assessment run or when you call the PreviewAgents action. func ExampleInspector_RegisterCrossAccountAccessRole_shared00() { svc := inspector.New(session.New()) input := &inspector.RegisterCrossAccountAccessRoleInput{ RoleArn: aws.String("arn:aws:iam::123456789012:role/inspector"), } result, err := svc.RegisterCrossAccountAccessRole(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeInvalidCrossAccountRoleException: fmt.Println(inspector.ErrCodeInvalidCrossAccountRoleException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Remove attributes from findings // Removes entire attributes (key and value pairs) from the findings that are specified // by the ARNs of the findings where an attribute with the specified key exists. func ExampleInspector_RemoveAttributesFromFindings_shared00() { svc := inspector.New(session.New()) input := &inspector.RemoveAttributesFromFindingsInput{ AttributeKeys: []*string{ aws.String("key=Example,value=example"), }, FindingArns: []*string{ aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-0kFIPusq/template/0-8l1VIE0D/run/0-Z02cjjug/finding/0-T8yM9mEU"), }, } result, err := svc.RemoveAttributesFromFindings(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Set tags for resource // Sets tags (key and value pairs) to the assessment template that is specified by the // ARN of the assessment template. func ExampleInspector_SetTagsForResource_shared00() { svc := inspector.New(session.New()) input := &inspector.SetTagsForResourceInput{ ResourceArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0"), Tags: []*inspector.Tag{ { Key: aws.String("Example"), Value: aws.String("example"), }, }, } result, err := svc.SetTagsForResource(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Start assessment run // Starts the assessment run specified by the ARN of the assessment template. For this // API to function properly, you must not exceed the limit of running up to 500 concurrent // agents per AWS account. func ExampleInspector_StartAssessmentRun_shared00() { svc := inspector.New(session.New()) input := &inspector.StartAssessmentRunInput{ AssessmentRunName: aws.String("examplerun"), AssessmentTemplateArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T"), } result, err := svc.StartAssessmentRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeLimitExceededException: fmt.Println(inspector.ErrCodeLimitExceededException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeInvalidCrossAccountRoleException: fmt.Println(inspector.ErrCodeInvalidCrossAccountRoleException, aerr.Error()) case inspector.ErrCodeAgentsAlreadyRunningAssessmentException: fmt.Println(inspector.ErrCodeAgentsAlreadyRunningAssessmentException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Stop assessment run // Stops the assessment run that is specified by the ARN of the assessment run. func ExampleInspector_StopAssessmentRun_shared00() { svc := inspector.New(session.New()) input := &inspector.StopAssessmentRunInput{ AssessmentRunArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-it5r2S4T/run/0-11LMTAVe"), } result, err := svc.StopAssessmentRun(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Subscribe to event // Enables the process of sending Amazon Simple Notification Service (SNS) notifications // about a specified event to a specified SNS topic. func ExampleInspector_SubscribeToEvent_shared00() { svc := inspector.New(session.New()) input := &inspector.SubscribeToEventInput{ Event: aws.String("ASSESSMENT_RUN_COMPLETED"), ResourceArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0"), TopicArn: aws.String("arn:aws:sns:us-west-2:123456789012:exampletopic"), } result, err := svc.SubscribeToEvent(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeLimitExceededException: fmt.Println(inspector.ErrCodeLimitExceededException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Unsubscribe from event // Disables the process of sending Amazon Simple Notification Service (SNS) notifications // about a specified event to a specified SNS topic. func ExampleInspector_UnsubscribeFromEvent_shared00() { svc := inspector.New(session.New()) input := &inspector.UnsubscribeFromEventInput{ Event: aws.String("ASSESSMENT_RUN_COMPLETED"), ResourceArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX/template/0-7sbz2Kz0"), TopicArn: aws.String("arn:aws:sns:us-west-2:123456789012:exampletopic"), } result, err := svc.UnsubscribeFromEvent(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) } // Update assessment target // Updates the assessment target that is specified by the ARN of the assessment target. func ExampleInspector_UpdateAssessmentTarget_shared00() { svc := inspector.New(session.New()) input := &inspector.UpdateAssessmentTargetInput{ AssessmentTargetArn: aws.String("arn:aws:inspector:us-west-2:123456789012:target/0-nvgVhaxX"), AssessmentTargetName: aws.String("Example"), ResourceGroupArn: aws.String("arn:aws:inspector:us-west-2:123456789012:resourcegroup/0-yNbgL5Pt"), } result, err := svc.UpdateAssessmentTarget(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case inspector.ErrCodeInternalException: fmt.Println(inspector.ErrCodeInternalException, aerr.Error()) case inspector.ErrCodeInvalidInputException: fmt.Println(inspector.ErrCodeInvalidInputException, aerr.Error()) case inspector.ErrCodeAccessDeniedException: fmt.Println(inspector.ErrCodeAccessDeniedException, aerr.Error()) case inspector.ErrCodeNoSuchEntityException: fmt.Println(inspector.ErrCodeNoSuchEntityException, aerr.Error()) case inspector.ErrCodeServiceTemporarilyUnavailableException: fmt.Println(inspector.ErrCodeServiceTemporarilyUnavailableException, 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) }