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 |
Associates a Device Defender security profile with a thing group or this account. Each thing group or account can have up to five security profiles associated with it.
Requires permission to access the AttachSecurityProfile action.
Synopsis
- data AttachSecurityProfile = AttachSecurityProfile' {}
- newAttachSecurityProfile :: Text -> Text -> AttachSecurityProfile
- attachSecurityProfile_securityProfileName :: Lens' AttachSecurityProfile Text
- attachSecurityProfile_securityProfileTargetArn :: Lens' AttachSecurityProfile Text
- data AttachSecurityProfileResponse = AttachSecurityProfileResponse' {
- httpStatus :: Int
- newAttachSecurityProfileResponse :: Int -> AttachSecurityProfileResponse
- attachSecurityProfileResponse_httpStatus :: Lens' AttachSecurityProfileResponse Int
Creating a Request
data AttachSecurityProfile Source #
See: newAttachSecurityProfile
smart constructor.
AttachSecurityProfile' | |
|
Instances
newAttachSecurityProfile Source #
:: Text | |
-> Text | |
-> AttachSecurityProfile |
Create a value of AttachSecurityProfile
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:AttachSecurityProfile'
, attachSecurityProfile_securityProfileName
- The security profile that is attached.
$sel:securityProfileTargetArn:AttachSecurityProfile'
, attachSecurityProfile_securityProfileTargetArn
- The ARN of the target (thing group) to which the security profile is
attached.
Request Lenses
attachSecurityProfile_securityProfileName :: Lens' AttachSecurityProfile Text Source #
The security profile that is attached.
attachSecurityProfile_securityProfileTargetArn :: Lens' AttachSecurityProfile Text Source #
The ARN of the target (thing group) to which the security profile is attached.
Destructuring the Response
data AttachSecurityProfileResponse Source #
See: newAttachSecurityProfileResponse
smart constructor.
AttachSecurityProfileResponse' | |
|
Instances
newAttachSecurityProfileResponse Source #
Create a value of AttachSecurityProfileResponse
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:httpStatus:AttachSecurityProfileResponse'
, attachSecurityProfileResponse_httpStatus
- The response's http status code.
Response Lenses
attachSecurityProfileResponse_httpStatus :: Lens' AttachSecurityProfileResponse Int Source #
The response's http status code.