create_trust_anchor
async
¶
create_trust_anchor(
name: ResourceName,
source: Source,
*,
config_overrides: Optional[AsyncRolesAnywhereClientConfig] = None,
enabled: Optional[bool] = None,
crl_dp_revocation_enabled: Optional[bool] = None,
tags: Optional[TagList] = None,
notification_settings: Optional[NotificationSettings] = None,
alias_name: Optional[AliasName] = None,
) -> TrustAnchorDetailResponse
Creates a trust anchor to establish trust between IAM Roles Anywhere and your certificate authority (CA). You can define a trust anchor as a reference to an Private Certificate Authority (Private CA) or by uploading a CA certificate. Your Amazon Web Services workloads can authenticate with the trust anchor using certificates issued by the CA in exchange for temporary Amazon Web Services credentials.
Required permissions: rolesanywhere:CreateTrustAnchor.
Parameters:
-
name(ResourceName) –The name of the trust anchor.
-
source(Source) –The trust anchor type and its related certificate data.
-
enabled(Optional[bool], default:None) –Specifies whether the trust anchor is enabled.
-
crl_dp_revocation_enabled(Optional[bool], default:None) –Specifies whether the trust anchor checks certificate revocation status against CRL distribution points.
-
tags(Optional[TagList], default:None) –The tags to attach to the trust anchor.
-
notification_settings(Optional[NotificationSettings], default:None) –A list of notification settings to be associated to the trust anchor.
-
alias_name(Optional[AliasName], default:None) –An alias for the trust anchor. When you set an alias, the response includes the alias ARN of the trust anchor in
aliasArn.An alias name contains 1 to 256 characters. It must begin with a letter (A-Z or a-z). It can contain only letters (A-Z and a-z), numbers (0-9), underscores (_), hyphens (-), and forward slashes (/). A forward slash can appear only between two other characters, so an alias name can't end with a forward slash or contain two in a row. Alias names that begin with
aws/, in any combination of uppercase and lowercase letters, are reserved. Alias names are case sensitive.The alias name must be unique among resources of the same type in your account and Region. If another resource of the same type already has the alias, the request fails with a
ValidationException. An invalid or reserved alias name also causes aValidationException.If you omit this parameter or specify an empty string, the resource is created without an alias.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ServiceUnavailableException–The request has failed due to a temporary failure of the service.
-
ValidationException–Validation exception error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_rolesanywhere/_services/async_roles_anywhere.py
1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 | |