Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates a Device Defender security profile.
Requires permission to access the UpdateSecurityProfile action.
Synopsis
- data UpdateSecurityProfile = UpdateSecurityProfile' {
- additionalMetricsToRetain :: Maybe [Text]
- additionalMetricsToRetainV2 :: Maybe [MetricToRetain]
- alertTargets :: Maybe (HashMap AlertTargetType AlertTarget)
- behaviors :: Maybe [Behavior]
- deleteAdditionalMetricsToRetain :: Maybe Bool
- deleteAlertTargets :: Maybe Bool
- deleteBehaviors :: Maybe Bool
- expectedVersion :: Maybe Integer
- securityProfileDescription :: Maybe Text
- securityProfileName :: Text
- newUpdateSecurityProfile :: Text -> UpdateSecurityProfile
- updateSecurityProfile_additionalMetricsToRetain :: Lens' UpdateSecurityProfile (Maybe [Text])
- updateSecurityProfile_additionalMetricsToRetainV2 :: Lens' UpdateSecurityProfile (Maybe [MetricToRetain])
- updateSecurityProfile_alertTargets :: Lens' UpdateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget))
- updateSecurityProfile_behaviors :: Lens' UpdateSecurityProfile (Maybe [Behavior])
- updateSecurityProfile_deleteAdditionalMetricsToRetain :: Lens' UpdateSecurityProfile (Maybe Bool)
- updateSecurityProfile_deleteAlertTargets :: Lens' UpdateSecurityProfile (Maybe Bool)
- updateSecurityProfile_deleteBehaviors :: Lens' UpdateSecurityProfile (Maybe Bool)
- updateSecurityProfile_expectedVersion :: Lens' UpdateSecurityProfile (Maybe Integer)
- updateSecurityProfile_securityProfileDescription :: Lens' UpdateSecurityProfile (Maybe Text)
- updateSecurityProfile_securityProfileName :: Lens' UpdateSecurityProfile Text
- data UpdateSecurityProfileResponse = UpdateSecurityProfileResponse' {
- additionalMetricsToRetain :: Maybe [Text]
- additionalMetricsToRetainV2 :: Maybe [MetricToRetain]
- alertTargets :: Maybe (HashMap AlertTargetType AlertTarget)
- behaviors :: Maybe [Behavior]
- creationDate :: Maybe POSIX
- lastModifiedDate :: Maybe POSIX
- securityProfileArn :: Maybe Text
- securityProfileDescription :: Maybe Text
- securityProfileName :: Maybe Text
- version :: Maybe Integer
- httpStatus :: Int
- newUpdateSecurityProfileResponse :: Int -> UpdateSecurityProfileResponse
- updateSecurityProfileResponse_additionalMetricsToRetain :: Lens' UpdateSecurityProfileResponse (Maybe [Text])
- updateSecurityProfileResponse_additionalMetricsToRetainV2 :: Lens' UpdateSecurityProfileResponse (Maybe [MetricToRetain])
- updateSecurityProfileResponse_alertTargets :: Lens' UpdateSecurityProfileResponse (Maybe (HashMap AlertTargetType AlertTarget))
- updateSecurityProfileResponse_behaviors :: Lens' UpdateSecurityProfileResponse (Maybe [Behavior])
- updateSecurityProfileResponse_creationDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime)
- updateSecurityProfileResponse_lastModifiedDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime)
- updateSecurityProfileResponse_securityProfileArn :: Lens' UpdateSecurityProfileResponse (Maybe Text)
- updateSecurityProfileResponse_securityProfileDescription :: Lens' UpdateSecurityProfileResponse (Maybe Text)
- updateSecurityProfileResponse_securityProfileName :: Lens' UpdateSecurityProfileResponse (Maybe Text)
- updateSecurityProfileResponse_version :: Lens' UpdateSecurityProfileResponse (Maybe Integer)
- updateSecurityProfileResponse_httpStatus :: Lens' UpdateSecurityProfileResponse Int
Creating a Request
data UpdateSecurityProfile Source #
See: newUpdateSecurityProfile
smart constructor.
UpdateSecurityProfile' | |
|
Instances
newUpdateSecurityProfile Source #
Create a value of UpdateSecurityProfile
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateSecurityProfile
, updateSecurityProfile_additionalMetricsToRetain
- /Please use UpdateSecurityProfileRequest$additionalMetricsToRetainV2
instead./
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors
, but it is
also retained for any metric specified here. Can be used with custom
metrics; cannot be used with dimensions.
UpdateSecurityProfile
, updateSecurityProfile_additionalMetricsToRetainV2
- A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors, but it is also
retained for any metric specified here. Can be used with custom metrics;
cannot be used with dimensions.
UpdateSecurityProfile
, updateSecurityProfile_alertTargets
- Where the alerts are sent. (Alerts are always sent to the console.)
UpdateSecurityProfile
, updateSecurityProfile_behaviors
- Specifies the behaviors that, when violated by a device (thing), cause
an alert.
$sel:deleteAdditionalMetricsToRetain:UpdateSecurityProfile'
, updateSecurityProfile_deleteAdditionalMetricsToRetain
- If true, delete all additionalMetricsToRetain
defined for this
security profile. If any additionalMetricsToRetain
are defined in the
current invocation, an exception occurs.
$sel:deleteAlertTargets:UpdateSecurityProfile'
, updateSecurityProfile_deleteAlertTargets
- If true, delete all alertTargets
defined for this security profile. If
any alertTargets
are defined in the current invocation, an exception
occurs.
$sel:deleteBehaviors:UpdateSecurityProfile'
, updateSecurityProfile_deleteBehaviors
- If true, delete all behaviors
defined for this security profile. If
any behaviors
are defined in the current invocation, an exception
occurs.
$sel:expectedVersion:UpdateSecurityProfile'
, updateSecurityProfile_expectedVersion
- 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 from the actual version, a VersionConflictException
is
thrown.
UpdateSecurityProfile
, updateSecurityProfile_securityProfileDescription
- A description of the security profile.
UpdateSecurityProfile
, updateSecurityProfile_securityProfileName
- The name of the security profile you want to update.
Request Lenses
updateSecurityProfile_additionalMetricsToRetain :: Lens' UpdateSecurityProfile (Maybe [Text]) Source #
/Please use UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead./
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors
, but it is
also retained for any metric specified here. Can be used with custom
metrics; cannot be used with dimensions.
updateSecurityProfile_additionalMetricsToRetainV2 :: Lens' UpdateSecurityProfile (Maybe [MetricToRetain]) Source #
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
updateSecurityProfile_alertTargets :: Lens' UpdateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget)) Source #
Where the alerts are sent. (Alerts are always sent to the console.)
updateSecurityProfile_behaviors :: Lens' UpdateSecurityProfile (Maybe [Behavior]) Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
updateSecurityProfile_deleteAdditionalMetricsToRetain :: Lens' UpdateSecurityProfile (Maybe Bool) Source #
If true, delete all additionalMetricsToRetain
defined for this
security profile. If any additionalMetricsToRetain
are defined in the
current invocation, an exception occurs.
updateSecurityProfile_deleteAlertTargets :: Lens' UpdateSecurityProfile (Maybe Bool) Source #
If true, delete all alertTargets
defined for this security profile. If
any alertTargets
are defined in the current invocation, an exception
occurs.
updateSecurityProfile_deleteBehaviors :: Lens' UpdateSecurityProfile (Maybe Bool) Source #
If true, delete all behaviors
defined for this security profile. If
any behaviors
are defined in the current invocation, an exception
occurs.
updateSecurityProfile_expectedVersion :: Lens' UpdateSecurityProfile (Maybe Integer) Source #
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 from the actual version, a VersionConflictException
is
thrown.
updateSecurityProfile_securityProfileDescription :: Lens' UpdateSecurityProfile (Maybe Text) Source #
A description of the security profile.
updateSecurityProfile_securityProfileName :: Lens' UpdateSecurityProfile Text Source #
The name of the security profile you want to update.
Destructuring the Response
data UpdateSecurityProfileResponse Source #
See: newUpdateSecurityProfileResponse
smart constructor.
UpdateSecurityProfileResponse' | |
|
Instances
newUpdateSecurityProfileResponse Source #
Create a value of UpdateSecurityProfileResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateSecurityProfile
, updateSecurityProfileResponse_additionalMetricsToRetain
- /Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2
instead./
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the security profile's behaviors
, but
it is also retained for any metric specified here.
UpdateSecurityProfile
, updateSecurityProfileResponse_additionalMetricsToRetainV2
- A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the profile's behaviors, but it is also
retained for any metric specified here. Can be used with custom metrics;
cannot be used with dimensions.
UpdateSecurityProfile
, updateSecurityProfileResponse_alertTargets
- Where the alerts are sent. (Alerts are always sent to the console.)
UpdateSecurityProfile
, updateSecurityProfileResponse_behaviors
- Specifies the behaviors that, when violated by a device (thing), cause
an alert.
UpdateSecurityProfileResponse
, updateSecurityProfileResponse_creationDate
- The time the security profile was created.
UpdateSecurityProfileResponse
, updateSecurityProfileResponse_lastModifiedDate
- The time the security profile was last modified.
$sel:securityProfileArn:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_securityProfileArn
- The ARN of the security profile that was updated.
UpdateSecurityProfile
, updateSecurityProfileResponse_securityProfileDescription
- The description of the security profile.
UpdateSecurityProfile
, updateSecurityProfileResponse_securityProfileName
- The name of the security profile that was updated.
UpdateSecurityProfileResponse
, updateSecurityProfileResponse_version
- The updated version of the security profile.
$sel:httpStatus:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_httpStatus
- The response's http status code.
Response Lenses
updateSecurityProfileResponse_additionalMetricsToRetain :: Lens' UpdateSecurityProfileResponse (Maybe [Text]) Source #
/Please use UpdateSecurityProfileResponse$additionalMetricsToRetainV2 instead./
A list of metrics whose data is retained (stored). By default, data is
retained for any metric used in the security profile's behaviors
, but
it is also retained for any metric specified here.
updateSecurityProfileResponse_additionalMetricsToRetainV2 :: Lens' UpdateSecurityProfileResponse (Maybe [MetricToRetain]) Source #
A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the profile's behaviors, but it is also retained for any metric specified here. Can be used with custom metrics; cannot be used with dimensions.
updateSecurityProfileResponse_alertTargets :: Lens' UpdateSecurityProfileResponse (Maybe (HashMap AlertTargetType AlertTarget)) Source #
Where the alerts are sent. (Alerts are always sent to the console.)
updateSecurityProfileResponse_behaviors :: Lens' UpdateSecurityProfileResponse (Maybe [Behavior]) Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
updateSecurityProfileResponse_creationDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime) Source #
The time the security profile was created.
updateSecurityProfileResponse_lastModifiedDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime) Source #
The time the security profile was last modified.
updateSecurityProfileResponse_securityProfileArn :: Lens' UpdateSecurityProfileResponse (Maybe Text) Source #
The ARN of the security profile that was updated.
updateSecurityProfileResponse_securityProfileDescription :: Lens' UpdateSecurityProfileResponse (Maybe Text) Source #
The description of the security profile.
updateSecurityProfileResponse_securityProfileName :: Lens' UpdateSecurityProfileResponse (Maybe Text) Source #
The name of the security profile that was updated.
updateSecurityProfileResponse_version :: Lens' UpdateSecurityProfileResponse (Maybe Integer) Source #
The updated version of the security profile.
updateSecurityProfileResponse_httpStatus :: Lens' UpdateSecurityProfileResponse Int Source #
The response's http status code.