简体   繁体   English

用户无权执行:ses:VerifyEmailAddress

[英]User is not authorized to perform: ses:VerifyEmailAddress

I recently signed up for Amazon SES service.我最近注册了 Amazon SES 服务。 I have generated my SMTP settings, Access Key and Secret Key.我已经生成了我的 SMTP 设置、访问密钥和秘密密钥。 Also I DO NOT have Production Access now.此外,我现在没有生产访问权限。 I am a .Net developer and was trying to Verify Email Address through my code.我是 .Net 开发人员,并试图通过我的代码验证电子邮件地址。 Below is the code snippet:下面是代码片段:

var amConfig = new AmazonSimpleEmailServiceConfig {UseSecureStringForAwsSecretKey = false};
var amzClient = new AmazonSimpleEmailServiceClient(_awsAccessKey, _awsSecretKey, amConfig);

var veaRequest = new VerifyEmailAddressRequest {EmailAddress = "myemail@somedomain.com"};
VerifyEmailAddressResponse veaResponse = amzClient.VerifyEmailAddress(veaRequest);
string requestId = veaResponse.ResponseMetadata.RequestId;
return requestId;

But I am receiving following error:但我收到以下错误:

Amazon.SimpleEmail.AmazonSimpleEmailServiceException : User: myUsername is not authorized to perform: ses:VerifyEmailAddress ----> System.Net.WebException : The remote server returned an error: (403) Forbidden. Amazon.SimpleEmail.AmazonSimpleEmailServiceException:用户:myUsername 无权执行:ses:VerifyEmailAddress ----> System.Net.WebException:远程服务器返回错误:(403) Forbidden。

Also I tried some other operations like ListVerifiedEmailAddresses, but ended up with same result.我还尝试了一些其他操作,如 ListVerifiedEmailAddresses,但结果相同。

Could anyone please help me on whats going here?任何人都可以帮我解决这里发生的事情吗?

Posting the question on Amazon developers forum was of no use.在亚马逊开发者论坛上发布问题是没有用的。 No reply till now.到现在都没有回复。 Also I suspect that I need to have Production Access to call this method.此外,我怀疑我需要具有生产访问权限才能调用此方法。 Is it?是吗? Also remember I am able to Send Email successfully using AWS SMTP settings.还请记住,我能够使用 AWS SMTP 设置成功发送电子邮件。

Thanks.谢谢。

Are you using credentials associated with an IAM user?您是否使用与 IAM 用户关联的凭证? If this is the case, you need to add a policy to the IAM user that will allow those specific actions in SES.如果是这种情况,您需要向 IAM 用户添加一个策略,以允许在 SES 中执行这些特定操作。 Something like this:像这样的东西:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1402494612000",
      "Effect": "Allow",
      "Action": [
        "ses:ListVerifiedEmailAddresses",
        "ses:VerifyEmailAddress"
      ],
      "Resource": [
        "*"
      ]
    }
  ]
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Facebook错误(#200)用户未授权应用程序执行此操作 - Facebook Error (#200) The user hasn't authorized the application to perform this action AmazonCognitoIdentityProviderException:用户无权对资源执行 cognito-idp:DescribeUserPool - AmazonCognitoIdentityProviderException: User is not authorized to perform cognito-idp:DescribeUserPool on resource WinForms应用程序中的“用户未授权应用程序执行此操作” - “The user hasn't authorized the application to perform this action” in WinForms app 窗口电话-用户未授权应用程序执行此操作? - window phone - The user hasn't authorized the application to perform this action? facebook c# sdk - 用户尚未授权应用程序执行此操作 - facebook c# sdk - The user hasn't authorized the application to perform this action C#Facebook API-用户未授权应用程序执行此操作 - C# Facebook API - The user hasn't authorized the application to perform this action 此请求无权执行此操作。 Azure blobClient - This request is not authorized to perform this operation. Azure blobClient 检查用户是否在Orchard CMS中获得授权 - Checking if user authorized in Orchard CMS .net应用无法识别授权用户 - .net app is not recognizing authorized user 如果用户未经授权,则返回较少的数据 - Return less data if user is not authorized
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM