美文网首页
AWSIOTjava相关SDK操作

AWSIOTjava相关SDK操作

作者: SailSea | 来源:发表于2020-03-03 12:07 被阅读0次
    //创建事物类型
            CreateThingTypeRequest createThingTypeRequest = new CreateThingTypeRequest();
            //...参数赋值
            CreateThingTypeResult createThingTypeResult = awsIot.createThingType(createThingTypeRequest);
    
            //创建事物
            CreateThingRequest createThingRequest = new CreateThingRequest();
            //...参数赋值
            CreateThingResult createThingResult = awsIot.createThing(createThingRequest);
    
            //创建证书
            CreateKeysAndCertificateRequest createKeysAndCertificateRequest = new CreateKeysAndCertificateRequest();
            //...参数赋值
            CreateKeysAndCertificateResult createKeysAndCertificateResult = awsIot.createKeysAndCertificate(createKeysAndCertificateRequest);
    
            //证书绑定事物
            AttachThingPrincipalRequest attachThingPrincipalRequest = new AttachThingPrincipalRequest();
            //...参数赋值
            AttachThingPrincipalResult attachThingPrincipalResult = awsIot.attachThingPrincipal(attachThingPrincipalRequest);
    
            //创建策略
            CreatePolicyRequest createPolicyRequest = new CreatePolicyRequest();
            //...参数赋值
            CreatePolicyResult createPolicyResult = awsIot.createPolicy(createPolicyRequest);
    
            //策略绑定证书
            AttachPolicyRequest attachPolicyRequest = new AttachPolicyRequest();
            //...参数赋值
            AttachPolicyResult attachPolicyResult = awsIot.attachPolicy(attachPolicyRequest);
    
            //创建规则
            CreateTopicRuleRequest createTopicRuleRequest = new CreateTopicRuleRequest();
            //...参数赋值
            CreateTopicRuleResult createTopicRuleResult = awsIot.createTopicRule(createTopicRuleRequest);
    
    

    相关文章

      网友评论

          本文标题:AWSIOTjava相关SDK操作

          本文链接:https://www.haomeiwen.com/subject/wpwqlhtx.html