Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.
We are retiring EC2-Classic. We recommend that you migrate from EC2-Classic to a VPC. For more information, see Migrate from EC2-Classic to a VPC in the Amazon Elastic Compute Cloud User Guide.
Synopsis
- data DisableVpcClassicLink = DisableVpcClassicLink' {}
- newDisableVpcClassicLink :: Text -> DisableVpcClassicLink
- disableVpcClassicLink_dryRun :: Lens' DisableVpcClassicLink (Maybe Bool)
- disableVpcClassicLink_vpcId :: Lens' DisableVpcClassicLink Text
- data DisableVpcClassicLinkResponse = DisableVpcClassicLinkResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newDisableVpcClassicLinkResponse :: Int -> DisableVpcClassicLinkResponse
- disableVpcClassicLinkResponse_return :: Lens' DisableVpcClassicLinkResponse (Maybe Bool)
- disableVpcClassicLinkResponse_httpStatus :: Lens' DisableVpcClassicLinkResponse Int
Creating a Request
data DisableVpcClassicLink Source #
See: newDisableVpcClassicLink
smart constructor.
DisableVpcClassicLink' | |
|
Instances
newDisableVpcClassicLink Source #
Create a value of DisableVpcClassicLink
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:dryRun:DisableVpcClassicLink'
, disableVpcClassicLink_dryRun
- Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
DisableVpcClassicLink
, disableVpcClassicLink_vpcId
- The ID of the VPC.
Request Lenses
disableVpcClassicLink_dryRun :: Lens' DisableVpcClassicLink (Maybe Bool) Source #
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
disableVpcClassicLink_vpcId :: Lens' DisableVpcClassicLink Text Source #
The ID of the VPC.
Destructuring the Response
data DisableVpcClassicLinkResponse Source #
See: newDisableVpcClassicLinkResponse
smart constructor.
DisableVpcClassicLinkResponse' | |
|
Instances
newDisableVpcClassicLinkResponse Source #
Create a value of DisableVpcClassicLinkResponse
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:return':DisableVpcClassicLinkResponse'
, disableVpcClassicLinkResponse_return
- Returns true
if the request succeeds; otherwise, it returns an error.
$sel:httpStatus:DisableVpcClassicLinkResponse'
, disableVpcClassicLinkResponse_httpStatus
- The response's http status code.
Response Lenses
disableVpcClassicLinkResponse_return :: Lens' DisableVpcClassicLinkResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
disableVpcClassicLinkResponse_httpStatus :: Lens' DisableVpcClassicLinkResponse Int Source #
The response's http status code.