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 an Amazon VPC with a specified query logging configuration.
Route 53 Resolver logs DNS queries that originate in all of the Amazon
VPCs that are associated with a specified query logging configuration.
To associate more than one VPC with a configuration, submit one
AssociateResolverQueryLogConfig
request for each VPC.
The VPCs that you associate with a query logging configuration must be in the same Region as the configuration.
To remove a VPC from a query logging configuration, see DisassociateResolverQueryLogConfig.
Synopsis
- data AssociateResolverQueryLogConfig = AssociateResolverQueryLogConfig' {}
- newAssociateResolverQueryLogConfig :: Text -> Text -> AssociateResolverQueryLogConfig
- associateResolverQueryLogConfig_resolverQueryLogConfigId :: Lens' AssociateResolverQueryLogConfig Text
- associateResolverQueryLogConfig_resourceId :: Lens' AssociateResolverQueryLogConfig Text
- data AssociateResolverQueryLogConfigResponse = AssociateResolverQueryLogConfigResponse' {}
- newAssociateResolverQueryLogConfigResponse :: Int -> AssociateResolverQueryLogConfigResponse
- associateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation :: Lens' AssociateResolverQueryLogConfigResponse (Maybe ResolverQueryLogConfigAssociation)
- associateResolverQueryLogConfigResponse_httpStatus :: Lens' AssociateResolverQueryLogConfigResponse Int
Creating a Request
data AssociateResolverQueryLogConfig Source #
See: newAssociateResolverQueryLogConfig
smart constructor.
AssociateResolverQueryLogConfig' | |
|
Instances
newAssociateResolverQueryLogConfig Source #
:: Text |
|
-> Text | |
-> AssociateResolverQueryLogConfig |
Create a value of AssociateResolverQueryLogConfig
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:resolverQueryLogConfigId:AssociateResolverQueryLogConfig'
, associateResolverQueryLogConfig_resolverQueryLogConfigId
- The ID of the query logging configuration that you want to associate a
VPC with.
$sel:resourceId:AssociateResolverQueryLogConfig'
, associateResolverQueryLogConfig_resourceId
- The ID of an Amazon VPC that you want this query logging configuration
to log queries for.
The VPCs and the query logging configuration must be in the same Region.
Request Lenses
associateResolverQueryLogConfig_resolverQueryLogConfigId :: Lens' AssociateResolverQueryLogConfig Text Source #
The ID of the query logging configuration that you want to associate a VPC with.
associateResolverQueryLogConfig_resourceId :: Lens' AssociateResolverQueryLogConfig Text Source #
The ID of an Amazon VPC that you want this query logging configuration to log queries for.
The VPCs and the query logging configuration must be in the same Region.
Destructuring the Response
data AssociateResolverQueryLogConfigResponse Source #
See: newAssociateResolverQueryLogConfigResponse
smart constructor.
AssociateResolverQueryLogConfigResponse' | |
|
Instances
newAssociateResolverQueryLogConfigResponse Source #
Create a value of AssociateResolverQueryLogConfigResponse
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:resolverQueryLogConfigAssociation:AssociateResolverQueryLogConfigResponse'
, associateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation
- A complex type that contains settings for a specified association
between an Amazon VPC and a query logging configuration.
$sel:httpStatus:AssociateResolverQueryLogConfigResponse'
, associateResolverQueryLogConfigResponse_httpStatus
- The response's http status code.
Response Lenses
associateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation :: Lens' AssociateResolverQueryLogConfigResponse (Maybe ResolverQueryLogConfigAssociation) Source #
A complex type that contains settings for a specified association between an Amazon VPC and a query logging configuration.
associateResolverQueryLogConfigResponse_httpStatus :: Lens' AssociateResolverQueryLogConfigResponse Int Source #
The response's http status code.