libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.CreateSecurityProfile

Description

Creates a Device Defender security profile.

Requires permission to access the CreateSecurityProfile action.

Synopsis

Creating a Request

data CreateSecurityProfile Source #

See: newCreateSecurityProfile smart constructor.

Constructors

CreateSecurityProfile' 

Fields

  • alertTargets :: Maybe (HashMap AlertTargetType AlertTarget)

    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.

  • additionalMetricsToRetainV2 :: Maybe [MetricToRetain]

    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.

  • behaviors :: Maybe [Behavior]

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

  • additionalMetricsToRetain :: Maybe [Text]

    /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.

  • securityProfileDescription :: Maybe Text

    A description of the security profile.

  • tags :: Maybe [Tag]

    Metadata that can be used to manage the security profile.

  • securityProfileName :: Text

    The name you are giving to the security profile.

Instances

Instances details
Eq CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Read CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Show CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Generic CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Associated Types

type Rep CreateSecurityProfile :: Type -> Type #

NFData CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Methods

rnf :: CreateSecurityProfile -> () #

Hashable CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

ToJSON CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

AWSRequest CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Associated Types

type AWSResponse CreateSecurityProfile #

ToHeaders CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

ToPath CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

ToQuery CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

type Rep CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

type Rep CreateSecurityProfile = D1 ('MetaData "CreateSecurityProfile" "Amazonka.IoT.CreateSecurityProfile" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateSecurityProfile'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alertTargets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap AlertTargetType AlertTarget))) :*: (S1 ('MetaSel ('Just "additionalMetricsToRetainV2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricToRetain])) :*: S1 ('MetaSel ('Just "behaviors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Behavior])))) :*: ((S1 ('MetaSel ('Just "additionalMetricsToRetain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "securityProfileDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "securityProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

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_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

Instances details
Eq CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Read CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Show CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Generic CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Associated Types

type Rep CreateSecurityProfileResponse :: Type -> Type #

NFData CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

type Rep CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

type Rep CreateSecurityProfileResponse = D1 ('MetaData "CreateSecurityProfileResponse" "Amazonka.IoT.CreateSecurityProfile" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateSecurityProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "securityProfileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "securityProfileArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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