//创建事物类型
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);
网友评论