Class: Aws::IoT::Types::UpdateSecurityProfileRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoT::Types::UpdateSecurityProfileRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-iot/types.rb
Overview
When making an API call, you may pass UpdateSecurityProfileRequest data as a hash:
{
security_profile_name: "SecurityProfileName", # required
security_profile_description: "SecurityProfileDescription",
behaviors: [
{
name: "BehaviorName", # required
metric: "BehaviorMetric",
criteria: {
comparison_operator: "less-than", # accepts less-than, less-than-equals, greater-than, greater-than-equals, in-cidr-set, not-in-cidr-set, in-port-set, not-in-port-set
value: {
count: 1,
cidrs: ["Cidr"],
ports: [1],
},
duration_seconds: 1,
},
},
],
alert_targets: {
"SNS" => {
alert_target_arn: "AlertTargetArn", # required
role_arn: "RoleArn", # required
},
},
expected_version: 1,
}
Instance Attribute Summary collapse
-
#alert_targets ⇒ Hash<String,Types::AlertTarget>
Where the alerts are sent.
-
#behaviors ⇒ Array<Types::Behavior>
Specifies the behaviors that, when violated by a device (thing), cause an alert.
-
#expected_version ⇒ Integer
The expected version of the security profile.
-
#security_profile_description ⇒ String
A description of the security profile.
-
#security_profile_name ⇒ String
The name of the security profile you want to update.
Instance Attribute Details
#alert_targets ⇒ Hash<String,Types::AlertTarget>
Where the alerts are sent. (Alerts are always sent to the console.)
11282 11283 11284 11285 11286 11287 11288 11289 |
# File 'lib/aws-sdk-iot/types.rb', line 11282 class UpdateSecurityProfileRequest < Struct.new( :security_profile_name, :security_profile_description, :behaviors, :alert_targets, :expected_version) include Aws::Structure end |
#behaviors ⇒ Array<Types::Behavior>
Specifies the behaviors that, when violated by a device (thing), cause an alert.
11282 11283 11284 11285 11286 11287 11288 11289 |
# File 'lib/aws-sdk-iot/types.rb', line 11282 class UpdateSecurityProfileRequest < Struct.new( :security_profile_name, :security_profile_description, :behaviors, :alert_targets, :expected_version) include Aws::Structure end |
#expected_version ⇒ Integer
The expected version of the security profile. A new version is generated whenever the security profile is updated. If you specify a value that is different than the actual version, a ‘VersionConflictException` is thrown.
11282 11283 11284 11285 11286 11287 11288 11289 |
# File 'lib/aws-sdk-iot/types.rb', line 11282 class UpdateSecurityProfileRequest < Struct.new( :security_profile_name, :security_profile_description, :behaviors, :alert_targets, :expected_version) include Aws::Structure end |
#security_profile_description ⇒ String
A description of the security profile.
11282 11283 11284 11285 11286 11287 11288 11289 |
# File 'lib/aws-sdk-iot/types.rb', line 11282 class UpdateSecurityProfileRequest < Struct.new( :security_profile_name, :security_profile_description, :behaviors, :alert_targets, :expected_version) include Aws::Structure end |
#security_profile_name ⇒ String
The name of the security profile you want to update.
11282 11283 11284 11285 11286 11287 11288 11289 |
# File 'lib/aws-sdk-iot/types.rb', line 11282 class UpdateSecurityProfileRequest < Struct.new( :security_profile_name, :security_profile_description, :behaviors, :alert_targets, :expected_version) include Aws::Structure end |