amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

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

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

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

  • behaviors :: Maybe [Behavior]

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

  • 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
ToJSON CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.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

AWSRequest CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Associated Types

type AWSResponse CreateSecurityProfile #

Generic CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Associated Types

type Rep CreateSecurityProfile :: Type -> Type #

Read CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Show CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

NFData CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Methods

rnf :: CreateSecurityProfile -> () #

Eq CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Hashable CreateSecurityProfile Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

type AWSResponse 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateSecurityProfile'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "additionalMetricsToRetain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "additionalMetricsToRetainV2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricToRetain])) :*: S1 ('MetaSel ('Just "alertTargets") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap AlertTargetType AlertTarget))))) :*: ((S1 ('MetaSel ('Just "behaviors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Behavior])) :*: 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)))))

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: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_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
Generic CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Associated Types

type Rep CreateSecurityProfileResponse :: Type -> Type #

Read CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Show CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

NFData CreateSecurityProfileResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateSecurityProfile

Eq 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "CreateSecurityProfileResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "securityProfileArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "securityProfileName") '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: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