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 |
Authorizes the Shield Response Team (SRT) using the specified role, to access your Amazon Web Services account to assist with DDoS attack mitigation during potential attacks. This enables the SRT to inspect your WAF configuration and create or update WAF rules and web ACLs.
You can associate only one RoleArn
with your subscription. If you
submit an AssociateDRTRole
request for an account that already has an
associated role, the new RoleArn
will replace the existing RoleArn
.
Prior to making the AssociateDRTRole
request, you must attach the
AWSShieldDRTAccessPolicy
managed policy to the role you will specify in the request. For more
information see
Attaching and Detaching IAM Policies.
The role must also trust the service principal
drt.shield.amazonaws.com
. For more information, see
IAM JSON Policy Elements: Principal.
The SRT will have access only to your WAF and Shield resources. By submitting this request, you authorize the SRT to inspect your WAF and Shield configuration and create and update WAF rules and web ACLs on your behalf. The SRT takes these actions only if explicitly authorized by you.
You must have the iam:PassRole
permission to make an
AssociateDRTRole
request. For more information, see
Granting a User Permissions to Pass a Role to an Amazon Web Services Service.
To use the services of the SRT and make an AssociateDRTRole
request,
you must be subscribed to the
Business Support plan
or the
Enterprise Support plan.
Synopsis
- data AssociateDRTRole = AssociateDRTRole' {}
- newAssociateDRTRole :: Text -> AssociateDRTRole
- associateDRTRole_roleArn :: Lens' AssociateDRTRole Text
- data AssociateDRTRoleResponse = AssociateDRTRoleResponse' {
- httpStatus :: Int
- newAssociateDRTRoleResponse :: Int -> AssociateDRTRoleResponse
- associateDRTRoleResponse_httpStatus :: Lens' AssociateDRTRoleResponse Int
Creating a Request
data AssociateDRTRole Source #
See: newAssociateDRTRole
smart constructor.
AssociateDRTRole' | |
|
Instances
Create a value of AssociateDRTRole
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:roleArn:AssociateDRTRole'
, associateDRTRole_roleArn
- The Amazon Resource Name (ARN) of the role the SRT will use to access
your Amazon Web Services account.
Prior to making the AssociateDRTRole
request, you must attach the
AWSShieldDRTAccessPolicy
managed policy to this role. For more information see
Attaching and Detaching IAM Policies.
Request Lenses
associateDRTRole_roleArn :: Lens' AssociateDRTRole Text Source #
The Amazon Resource Name (ARN) of the role the SRT will use to access your Amazon Web Services account.
Prior to making the AssociateDRTRole
request, you must attach the
AWSShieldDRTAccessPolicy
managed policy to this role. For more information see
Attaching and Detaching IAM Policies.
Destructuring the Response
data AssociateDRTRoleResponse Source #
See: newAssociateDRTRoleResponse
smart constructor.
AssociateDRTRoleResponse' | |
|
Instances
newAssociateDRTRoleResponse Source #
Create a value of AssociateDRTRoleResponse
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:AssociateDRTRoleResponse'
, associateDRTRoleResponse_httpStatus
- The response's http status code.
Response Lenses
associateDRTRoleResponse_httpStatus :: Lens' AssociateDRTRoleResponse Int Source #
The response's http status code.