Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a Device Defender security profile.
Requires permission to access the UpdateSecurityProfile action.
Synopsis
- data UpdateSecurityProfile = UpdateSecurityProfile' {
- alertTargets :: Maybe (HashMap AlertTargetType AlertTarget)
- additionalMetricsToRetainV2 :: Maybe [MetricToRetain]
- behaviors :: Maybe [Behavior]
- expectedVersion :: Maybe Integer
- deleteAlertTargets :: Maybe Bool
- additionalMetricsToRetain :: Maybe [Text]
- securityProfileDescription :: Maybe Text
- deleteBehaviors :: Maybe Bool
- deleteAdditionalMetricsToRetain :: Maybe Bool
- securityProfileName :: Text
- newUpdateSecurityProfile :: Text -> UpdateSecurityProfile
- updateSecurityProfile_alertTargets :: Lens' UpdateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget))
- updateSecurityProfile_additionalMetricsToRetainV2 :: Lens' UpdateSecurityProfile (Maybe [MetricToRetain])
- updateSecurityProfile_behaviors :: Lens' UpdateSecurityProfile (Maybe [Behavior])
- updateSecurityProfile_expectedVersion :: Lens' UpdateSecurityProfile (Maybe Integer)
- updateSecurityProfile_deleteAlertTargets :: Lens' UpdateSecurityProfile (Maybe Bool)
- updateSecurityProfile_additionalMetricsToRetain :: Lens' UpdateSecurityProfile (Maybe [Text])
- updateSecurityProfile_securityProfileDescription :: Lens' UpdateSecurityProfile (Maybe Text)
- updateSecurityProfile_deleteBehaviors :: Lens' UpdateSecurityProfile (Maybe Bool)
- updateSecurityProfile_deleteAdditionalMetricsToRetain :: Lens' UpdateSecurityProfile (Maybe Bool)
- updateSecurityProfile_securityProfileName :: Lens' UpdateSecurityProfile Text
- data UpdateSecurityProfileResponse = UpdateSecurityProfileResponse' {
- alertTargets :: Maybe (HashMap AlertTargetType AlertTarget)
- additionalMetricsToRetainV2 :: Maybe [MetricToRetain]
- behaviors :: Maybe [Behavior]
- lastModifiedDate :: Maybe POSIX
- version :: Maybe Integer
- securityProfileName :: Maybe Text
- creationDate :: Maybe POSIX
- additionalMetricsToRetain :: Maybe [Text]
- securityProfileArn :: Maybe Text
- securityProfileDescription :: Maybe Text
- httpStatus :: Int
- newUpdateSecurityProfileResponse :: Int -> UpdateSecurityProfileResponse
- updateSecurityProfileResponse_alertTargets :: Lens' UpdateSecurityProfileResponse (Maybe (HashMap AlertTargetType AlertTarget))
- updateSecurityProfileResponse_additionalMetricsToRetainV2 :: Lens' UpdateSecurityProfileResponse (Maybe [MetricToRetain])
- updateSecurityProfileResponse_behaviors :: Lens' UpdateSecurityProfileResponse (Maybe [Behavior])
- updateSecurityProfileResponse_lastModifiedDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime)
- updateSecurityProfileResponse_version :: Lens' UpdateSecurityProfileResponse (Maybe Integer)
- updateSecurityProfileResponse_securityProfileName :: Lens' UpdateSecurityProfileResponse (Maybe Text)
- updateSecurityProfileResponse_creationDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime)
- updateSecurityProfileResponse_additionalMetricsToRetain :: Lens' UpdateSecurityProfileResponse (Maybe [Text])
- updateSecurityProfileResponse_securityProfileArn :: Lens' UpdateSecurityProfileResponse (Maybe Text)
- updateSecurityProfileResponse_securityProfileDescription :: Lens' UpdateSecurityProfileResponse (Maybe Text)
- 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:
$sel:alertTargets:UpdateSecurityProfile'
, updateSecurityProfile_alertTargets
- Where the alerts are sent. (Alerts are always sent to the console.)
$sel:additionalMetricsToRetainV2: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.
$sel:behaviors:UpdateSecurityProfile'
, updateSecurityProfile_behaviors
- Specifies the behaviors that, when violated by a device (thing), cause
an alert.
$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.
$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:additionalMetricsToRetain: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.
$sel:securityProfileDescription:UpdateSecurityProfile'
, updateSecurityProfile_securityProfileDescription
- A description of the security profile.
$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: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:securityProfileName:UpdateSecurityProfile'
, updateSecurityProfile_securityProfileName
- The name of the security profile you want to update.
Request Lenses
updateSecurityProfile_alertTargets :: Lens' UpdateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget)) Source #
Where the alerts are sent. (Alerts are always sent to the console.)
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_behaviors :: Lens' UpdateSecurityProfile (Maybe [Behavior]) Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
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_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_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_securityProfileDescription :: Lens' UpdateSecurityProfile (Maybe Text) Source #
A description of the security profile.
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_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_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:
$sel:alertTargets:UpdateSecurityProfile'
, updateSecurityProfileResponse_alertTargets
- Where the alerts are sent. (Alerts are always sent to the console.)
$sel:additionalMetricsToRetainV2: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.
$sel:behaviors:UpdateSecurityProfile'
, updateSecurityProfileResponse_behaviors
- Specifies the behaviors that, when violated by a device (thing), cause
an alert.
$sel:lastModifiedDate:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_lastModifiedDate
- The time the security profile was last modified.
$sel:version:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_version
- The updated version of the security profile.
$sel:securityProfileName:UpdateSecurityProfile'
, updateSecurityProfileResponse_securityProfileName
- The name of the security profile that was updated.
$sel:creationDate:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_creationDate
- The time the security profile was created.
$sel:additionalMetricsToRetain: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.
$sel:securityProfileArn:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_securityProfileArn
- The ARN of the security profile that was updated.
$sel:securityProfileDescription:UpdateSecurityProfile'
, updateSecurityProfileResponse_securityProfileDescription
- The description of the security profile.
$sel:httpStatus:UpdateSecurityProfileResponse'
, updateSecurityProfileResponse_httpStatus
- The response's http status code.
Response Lenses
updateSecurityProfileResponse_alertTargets :: Lens' UpdateSecurityProfileResponse (Maybe (HashMap AlertTargetType AlertTarget)) Source #
Where the alerts are sent. (Alerts are always sent to the console.)
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_behaviors :: Lens' UpdateSecurityProfileResponse (Maybe [Behavior]) Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
updateSecurityProfileResponse_lastModifiedDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime) Source #
The time the security profile was last modified.
updateSecurityProfileResponse_version :: Lens' UpdateSecurityProfileResponse (Maybe Integer) Source #
The updated version of the security profile.
updateSecurityProfileResponse_securityProfileName :: Lens' UpdateSecurityProfileResponse (Maybe Text) Source #
The name of the security profile that was updated.
updateSecurityProfileResponse_creationDate :: Lens' UpdateSecurityProfileResponse (Maybe UTCTime) Source #
The time the security profile was created.
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_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_httpStatus :: Lens' UpdateSecurityProfileResponse Int Source #
The response's http status code.