| 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 |
Amazonka.IoT.CreateSecurityProfile
Description
Creates a Device Defender security profile.
Requires permission to access the CreateSecurityProfile action.
Synopsis
- data CreateSecurityProfile = CreateSecurityProfile' {}
- newCreateSecurityProfile :: Text -> CreateSecurityProfile
- createSecurityProfile_alertTargets :: Lens' CreateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget))
- createSecurityProfile_additionalMetricsToRetainV2 :: Lens' CreateSecurityProfile (Maybe [MetricToRetain])
- createSecurityProfile_behaviors :: Lens' CreateSecurityProfile (Maybe [Behavior])
- createSecurityProfile_additionalMetricsToRetain :: Lens' CreateSecurityProfile (Maybe [Text])
- createSecurityProfile_securityProfileDescription :: Lens' CreateSecurityProfile (Maybe Text)
- createSecurityProfile_tags :: Lens' CreateSecurityProfile (Maybe [Tag])
- createSecurityProfile_securityProfileName :: Lens' CreateSecurityProfile Text
- data CreateSecurityProfileResponse = CreateSecurityProfileResponse' {}
- newCreateSecurityProfileResponse :: Int -> CreateSecurityProfileResponse
- createSecurityProfileResponse_securityProfileName :: Lens' CreateSecurityProfileResponse (Maybe Text)
- createSecurityProfileResponse_securityProfileArn :: Lens' CreateSecurityProfileResponse (Maybe Text)
- createSecurityProfileResponse_httpStatus :: Lens' CreateSecurityProfileResponse Int
Creating a Request
data CreateSecurityProfile Source #
See: newCreateSecurityProfile smart constructor.
Constructors
| CreateSecurityProfile' | |
Fields
| |
Instances
newCreateSecurityProfile Source #
Create a value of CreateSecurityProfile 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:CreateSecurityProfile', createSecurityProfile_alertTargets - Specifies the destinations to which alerts are sent. (Alerts are always
sent to the console.) Alerts are generated when a device (thing)
violates a behavior.
$sel:additionalMetricsToRetainV2:CreateSecurityProfile', createSecurityProfile_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:CreateSecurityProfile', createSecurityProfile_behaviors - Specifies the behaviors that, when violated by a device (thing), cause
an alert.
$sel:additionalMetricsToRetain:CreateSecurityProfile', createSecurityProfile_additionalMetricsToRetain - /Please use CreateSecurityProfileRequest$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:CreateSecurityProfile', createSecurityProfile_securityProfileDescription - A description of the security profile.
$sel:tags:CreateSecurityProfile', createSecurityProfile_tags - Metadata that can be used to manage the security profile.
$sel:securityProfileName:CreateSecurityProfile', createSecurityProfile_securityProfileName - The name you are giving to the security profile.
Request Lenses
createSecurityProfile_alertTargets :: Lens' CreateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget)) Source #
Specifies the destinations to which alerts are sent. (Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
createSecurityProfile_additionalMetricsToRetainV2 :: Lens' CreateSecurityProfile (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.
createSecurityProfile_behaviors :: Lens' CreateSecurityProfile (Maybe [Behavior]) Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
createSecurityProfile_additionalMetricsToRetain :: Lens' CreateSecurityProfile (Maybe [Text]) Source #
/Please use CreateSecurityProfileRequest$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.
createSecurityProfile_securityProfileDescription :: Lens' CreateSecurityProfile (Maybe Text) Source #
A description of the security profile.
createSecurityProfile_tags :: Lens' CreateSecurityProfile (Maybe [Tag]) Source #
Metadata that can be used to manage the security profile.
createSecurityProfile_securityProfileName :: Lens' CreateSecurityProfile Text Source #
The name you are giving to the security profile.
Destructuring the Response
data CreateSecurityProfileResponse Source #
See: newCreateSecurityProfileResponse smart constructor.
Constructors
| CreateSecurityProfileResponse' | |
Fields
| |
Instances
newCreateSecurityProfileResponse Source #
Create a value of CreateSecurityProfileResponse 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:securityProfileName:CreateSecurityProfile', createSecurityProfileResponse_securityProfileName - The name you gave to the security profile.
$sel:securityProfileArn:CreateSecurityProfileResponse', createSecurityProfileResponse_securityProfileArn - The ARN of the security profile.
$sel:httpStatus:CreateSecurityProfileResponse', createSecurityProfileResponse_httpStatus - The response's http status code.
Response Lenses
createSecurityProfileResponse_securityProfileName :: Lens' CreateSecurityProfileResponse (Maybe Text) Source #
The name you gave to the security profile.
createSecurityProfileResponse_securityProfileArn :: Lens' CreateSecurityProfileResponse (Maybe Text) Source #
The ARN of the security profile.
createSecurityProfileResponse_httpStatus :: Lens' CreateSecurityProfileResponse Int Source #
The response's http status code.