sns发送肌肉command我有无效的参数:dataprotectionpolicy原因:无法解析数据保护策略

问题描述 投票:0回答:1

I在AWS上创建了一个“推送通知平台-Apple iOS(开发)”

我只是想从AWS SDK JSV3

创建一个新的端点

const deviceId = 'a0b1c2d3e4f5' // would be a real deviceId const createEndpointResponse = await client.send( new CreatePlatformEndpointCommand({ PlatformApplicationArn: platformArn, Token: deviceId, }) ) const createTopicResponse = await client.send( new CreateTopicCommand({ DataProtectionPolicy: 'STRING_VALUE', Name: 'PushNotificationTestTopic', }) ) console.log('Device-specific topic ARN', createTopicResponse.TopicArn ) const topicArn = createTopicResponse.TopicArn
我得到这个错误

{“ errortype”:“ InvalidParamEterexception”,“ errormessage”:“无效参数:dataprotectionpolicy Policy原因:无法解析数据保护策略”

我结束了删除
aws-sdk amazon-sns aws-sdk-js aws-sdk-js-v3
1个回答
0
投票

它现在有效

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.