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 |
Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.
Synopsis
- data CreateManagedPrefixList = CreateManagedPrefixList' {}
- newCreateManagedPrefixList :: Text -> Int -> Text -> CreateManagedPrefixList
- createManagedPrefixList_clientToken :: Lens' CreateManagedPrefixList (Maybe Text)
- createManagedPrefixList_dryRun :: Lens' CreateManagedPrefixList (Maybe Bool)
- createManagedPrefixList_entries :: Lens' CreateManagedPrefixList (Maybe [AddPrefixListEntry])
- createManagedPrefixList_tagSpecifications :: Lens' CreateManagedPrefixList (Maybe [TagSpecification])
- createManagedPrefixList_prefixListName :: Lens' CreateManagedPrefixList Text
- createManagedPrefixList_maxEntries :: Lens' CreateManagedPrefixList Int
- createManagedPrefixList_addressFamily :: Lens' CreateManagedPrefixList Text
- data CreateManagedPrefixListResponse = CreateManagedPrefixListResponse' {}
- newCreateManagedPrefixListResponse :: Int -> CreateManagedPrefixListResponse
- createManagedPrefixListResponse_prefixList :: Lens' CreateManagedPrefixListResponse (Maybe ManagedPrefixList)
- createManagedPrefixListResponse_httpStatus :: Lens' CreateManagedPrefixListResponse Int
Creating a Request
data CreateManagedPrefixList Source #
See: newCreateManagedPrefixList
smart constructor.
CreateManagedPrefixList' | |
|
Instances
newCreateManagedPrefixList Source #
:: Text | |
-> Int | |
-> Text | |
-> CreateManagedPrefixList |
Create a value of CreateManagedPrefixList
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:
CreateManagedPrefixList
, createManagedPrefixList_clientToken
- Unique, case-sensitive identifier you provide to ensure the idempotency
of the request. For more information, see
Ensuring Idempotency.
Constraints: Up to 255 UTF-8 characters in length.
$sel:dryRun:CreateManagedPrefixList'
, createManagedPrefixList_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
.
CreateManagedPrefixList
, createManagedPrefixList_entries
- One or more entries for the prefix list.
CreateManagedPrefixList
, createManagedPrefixList_tagSpecifications
- The tags to apply to the prefix list during creation.
CreateManagedPrefixList
, createManagedPrefixList_prefixListName
- A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws
.
CreateManagedPrefixList
, createManagedPrefixList_maxEntries
- The maximum number of entries for the prefix list.
CreateManagedPrefixList
, createManagedPrefixList_addressFamily
- The IP address type.
Valid Values: IPv4
| IPv6
Request Lenses
createManagedPrefixList_clientToken :: Lens' CreateManagedPrefixList (Maybe Text) Source #
Unique, case-sensitive identifier you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
Constraints: Up to 255 UTF-8 characters in length.
createManagedPrefixList_dryRun :: Lens' CreateManagedPrefixList (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
.
createManagedPrefixList_entries :: Lens' CreateManagedPrefixList (Maybe [AddPrefixListEntry]) Source #
One or more entries for the prefix list.
createManagedPrefixList_tagSpecifications :: Lens' CreateManagedPrefixList (Maybe [TagSpecification]) Source #
The tags to apply to the prefix list during creation.
createManagedPrefixList_prefixListName :: Lens' CreateManagedPrefixList Text Source #
A name for the prefix list.
Constraints: Up to 255 characters in length. The name cannot start with
com.amazonaws
.
createManagedPrefixList_maxEntries :: Lens' CreateManagedPrefixList Int Source #
The maximum number of entries for the prefix list.
createManagedPrefixList_addressFamily :: Lens' CreateManagedPrefixList Text Source #
The IP address type.
Valid Values: IPv4
| IPv6
Destructuring the Response
data CreateManagedPrefixListResponse Source #
See: newCreateManagedPrefixListResponse
smart constructor.
CreateManagedPrefixListResponse' | |
|
Instances
Generic CreateManagedPrefixListResponse Source # | |
Read CreateManagedPrefixListResponse Source # | |
Show CreateManagedPrefixListResponse Source # | |
Defined in Amazonka.EC2.CreateManagedPrefixList | |
NFData CreateManagedPrefixListResponse Source # | |
Defined in Amazonka.EC2.CreateManagedPrefixList rnf :: CreateManagedPrefixListResponse -> () # | |
Eq CreateManagedPrefixListResponse Source # | |
type Rep CreateManagedPrefixListResponse Source # | |
Defined in Amazonka.EC2.CreateManagedPrefixList type Rep CreateManagedPrefixListResponse = D1 ('MetaData "CreateManagedPrefixListResponse" "Amazonka.EC2.CreateManagedPrefixList" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateManagedPrefixListResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "prefixList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ManagedPrefixList)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateManagedPrefixListResponse Source #
Create a value of CreateManagedPrefixListResponse
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:
CreateManagedPrefixListResponse
, createManagedPrefixListResponse_prefixList
- Information about the prefix list.
$sel:httpStatus:CreateManagedPrefixListResponse'
, createManagedPrefixListResponse_httpStatus
- The response's http status code.
Response Lenses
createManagedPrefixListResponse_prefixList :: Lens' CreateManagedPrefixListResponse (Maybe ManagedPrefixList) Source #
Information about the prefix list.
createManagedPrefixListResponse_httpStatus :: Lens' CreateManagedPrefixListResponse Int Source #
The response's http status code.