UpdateSecurityProfile - AWS IoT
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

UpdateSecurityProfile

更新 AWS IoT Device Defender 安全配置文件。

有关更多信息,请参阅 API 参考中的 UpdateSecurityProfile

摘要:

aws iot update-security-profile \ --security-profile-name <value> \ [--security-profile-description <value>] \ [--behaviors <value>] \ [--alert-targets <value>] \ [--additional-metrics-to-retain <value>] \ [--delete-behaviors | --no-delete-behaviors] \ [--delete-alert-targets | --no-delete-alert-targets] \ [--delete-additional-metrics-to-retain | --no-delete-additional-metrics-to-retain] \ [--expected-version <value>] \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json 格式:

{ "securityProfileName": "string", "securityProfileDescription": "string", "behaviors": [ { "name": "string", "metricDimension": [ "string" ], "metric": "string", "criteria": { "comparisonOperator": "string", "value": { "count": "long", "cidrs": [ "string" ], "ports": [ "integer" ] }, "durationSeconds": "integer", "consecutiveDatapointsToAlarm": "integer", "consecutiveDatapointsToClear": "integer", "statisticalThreshold": { "statistic": "string" } } } ], "alertTargets": { "string": { "alertTargetArn": "string", "roleArn": "string" } }, "additionalMetricsToRetain": [ "string" ], "deleteBehaviors": "boolean", "deleteAlertTargets": "boolean", "deleteAdditionalMetricsToRetain": "boolean", "expectedVersion": "long" }

输出:

{ "securityProfileName": "string", "securityProfileArn": "string", "securityProfileDescription": "string", "behaviors": [ { "name": "string", "metricDimension": [ "string" ], "metric": "string", "criteria": { "comparisonOperator": "string", "value": { "count": "long", "cidrs": [ "string" ], "ports": [ "integer" ] }, "durationSeconds": "integer", "consecutiveDatapointsToAlarm": "integer", "consecutiveDatapointsToClear": "integer", "statisticalThreshold": { "statistic": "string" } } } ], "alertTargets": { "string": { "alertTargetArn": "string", "roleArn": "string" } }, "additionalMetricsToRetain": [ "string" ], "version": "long", "creationDate": "timestamp", "lastModifiedDate": "timestamp" }