| 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 |
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_additionalMetricsToRetain :: Lens' CreateSecurityProfile (Maybe [Text])
- createSecurityProfile_additionalMetricsToRetainV2 :: Lens' CreateSecurityProfile (Maybe [MetricToRetain])
- createSecurityProfile_alertTargets :: Lens' CreateSecurityProfile (Maybe (HashMap AlertTargetType AlertTarget))
- createSecurityProfile_behaviors :: Lens' CreateSecurityProfile (Maybe [Behavior])
- createSecurityProfile_securityProfileDescription :: Lens' CreateSecurityProfile (Maybe Text)
- createSecurityProfile_tags :: Lens' CreateSecurityProfile (Maybe [Tag])
- createSecurityProfile_securityProfileName :: Lens' CreateSecurityProfile Text
- data CreateSecurityProfileResponse = CreateSecurityProfileResponse' {}
- newCreateSecurityProfileResponse :: Int -> CreateSecurityProfileResponse
- createSecurityProfileResponse_securityProfileArn :: Lens' CreateSecurityProfileResponse (Maybe Text)
- createSecurityProfileResponse_securityProfileName :: 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 #
Arguments
| :: Text | |
| -> CreateSecurityProfile |
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: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: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: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:behaviors:CreateSecurityProfile', createSecurityProfile_behaviors - Specifies the behaviors that, when violated by a device (thing), cause
an alert.
$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.
CreateSecurityProfile, createSecurityProfile_securityProfileName - The name you are giving to the security profile.
Request Lenses
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_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_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_behaviors :: Lens' CreateSecurityProfile (Maybe [Behavior]) Source #
Specifies the behaviors that, when violated by a device (thing), cause an alert.
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:securityProfileArn:CreateSecurityProfileResponse', createSecurityProfileResponse_securityProfileArn - The ARN of the security profile.
CreateSecurityProfile, createSecurityProfileResponse_securityProfileName - The name you gave to the security profile.
$sel:httpStatus:CreateSecurityProfileResponse', createSecurityProfileResponse_httpStatus - The response's http status code.
Response Lenses
createSecurityProfileResponse_securityProfileArn :: Lens' CreateSecurityProfileResponse (Maybe Text) Source #
The ARN of the security profile.
createSecurityProfileResponse_securityProfileName :: Lens' CreateSecurityProfileResponse (Maybe Text) Source #
The name you gave to the security profile.
createSecurityProfileResponse_httpStatus :: Lens' CreateSecurityProfileResponse Int Source #
The response's http status code.