Class: Aws::IoT::Types::UpdateSecurityProfileRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-iot/types.rb

Overview

Note:

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

Instance Attribute Details

#alert_targetsHash<String,Types::AlertTarget>

Where the alerts are sent. (Alerts are always sent to the console.)

Returns:



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

#behaviorsArray<Types::Behavior>

Specifies the behaviors that, when violated by a device (thing), cause an alert.

Returns:



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_versionInteger

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.

Returns:

  • (Integer)


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_descriptionString

A description of the security profile.

Returns:

  • (String)


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_nameString

The name of the security profile you want to update.

Returns:

  • (String)


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