| 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 |
Amazonka.RolesAnywhere.CreateTrustAnchor
Description
Creates a trust anchor. You establish trust between IAM Roles Anywhere and your certificate authority (CA) by configuring a trust anchor. A Trust Anchor is defined either as a reference to a AWS Certificate Manager Private Certificate Authority (ACM PCA), or by uploading a Certificate Authority (CA) certificate. Your AWS workloads can authenticate with the trust anchor using certificates issued by the trusted Certificate Authority (CA) in exchange for temporary AWS credentials.
Required permissions: rolesanywhere:CreateTrustAnchor.
Synopsis
- data CreateTrustAnchor = CreateTrustAnchor' {}
- newCreateTrustAnchor :: Text -> Source -> CreateTrustAnchor
- createTrustAnchor_enabled :: Lens' CreateTrustAnchor (Maybe Bool)
- createTrustAnchor_tags :: Lens' CreateTrustAnchor (Maybe [Tag])
- createTrustAnchor_name :: Lens' CreateTrustAnchor Text
- createTrustAnchor_source :: Lens' CreateTrustAnchor Source
- data TrustAnchorDetailResponse = TrustAnchorDetailResponse' {}
- newTrustAnchorDetailResponse :: TrustAnchorDetail -> TrustAnchorDetailResponse
- trustAnchorDetailResponse_trustAnchor :: Lens' TrustAnchorDetailResponse TrustAnchorDetail
Creating a Request
data CreateTrustAnchor Source #
See: newCreateTrustAnchor smart constructor.
Constructors
| CreateTrustAnchor' | |
Instances
Arguments
| :: Text | |
| -> Source | |
| -> CreateTrustAnchor |
Create a value of CreateTrustAnchor 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:
CreateTrustAnchor, createTrustAnchor_enabled - Specifies whether the trust anchor is enabled.
$sel:tags:CreateTrustAnchor', createTrustAnchor_tags - The tags to attach to the trust anchor.
CreateTrustAnchor, createTrustAnchor_name - The name of the trust anchor.
CreateTrustAnchor, createTrustAnchor_source - The trust anchor type and its related certificate data.
Request Lenses
createTrustAnchor_enabled :: Lens' CreateTrustAnchor (Maybe Bool) Source #
Specifies whether the trust anchor is enabled.
createTrustAnchor_tags :: Lens' CreateTrustAnchor (Maybe [Tag]) Source #
The tags to attach to the trust anchor.
createTrustAnchor_name :: Lens' CreateTrustAnchor Text Source #
The name of the trust anchor.
createTrustAnchor_source :: Lens' CreateTrustAnchor Source Source #
The trust anchor type and its related certificate data.
Destructuring the Response
data TrustAnchorDetailResponse Source #
See: newTrustAnchorDetailResponse smart constructor.
Constructors
| TrustAnchorDetailResponse' | |
Fields
| |
Instances
newTrustAnchorDetailResponse Source #
Arguments
| :: TrustAnchorDetail | |
| -> TrustAnchorDetailResponse |
Create a value of TrustAnchorDetailResponse 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:trustAnchor:TrustAnchorDetailResponse', trustAnchorDetailResponse_trustAnchor - The state of the trust anchor after a read or write operation.
Response Lenses
trustAnchorDetailResponse_trustAnchor :: Lens' TrustAnchorDetailResponse TrustAnchorDetail Source #
The state of the trust anchor after a read or write operation.