aws-sdk-acm 1.124.0 → 1.125.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-acm/client.rb +2475 -2
- data/lib/aws-sdk-acm/client_api.rb +931 -0
- data/lib/aws-sdk-acm/endpoint_parameters.rb +1 -1
- data/lib/aws-sdk-acm/endpoint_provider.rb +6 -0
- data/lib/aws-sdk-acm/endpoints.rb +165 -0
- data/lib/aws-sdk-acm/plugins/endpoints.rb +1 -1
- data/lib/aws-sdk-acm/types.rb +2662 -185
- data/lib/aws-sdk-acm.rb +1 -1
- data/sig/client.rbs +231 -0
- data/sig/params.rbs +150 -0
- data/sig/types.rbs +675 -0
- metadata +1 -1
data/lib/aws-sdk-acm/client.rb
CHANGED
|
@@ -418,7 +418,7 @@ module Aws::ACM
|
|
|
418
418
|
# `Aws::ACM::EndpointParameters`.
|
|
419
419
|
#
|
|
420
420
|
# @option options [string] :service_type
|
|
421
|
-
# The service type: ACM or ACM-
|
|
421
|
+
# The service type: ACM, ACM-ACME or ACM-INVENTORY. Injected via @staticContextParams.
|
|
422
422
|
#
|
|
423
423
|
# @option options [Float] :http_continue_timeout (1)
|
|
424
424
|
# The number of seconds to wait for a 100-continue response before sending the
|
|
@@ -899,6 +899,119 @@ module Aws::ACM
|
|
|
899
899
|
req.send_request(options)
|
|
900
900
|
end
|
|
901
901
|
|
|
902
|
+
# Deletes an AWS Certificate Manager (ACM) certificate in a member
|
|
903
|
+
# account of the caller's organization. ACM applies the rules of its
|
|
904
|
+
# DeleteCertificate operation, including when it cannot delete a
|
|
905
|
+
# certificate. For details, see DeleteCertificate in the AWS Certificate
|
|
906
|
+
# Manager API Reference.
|
|
907
|
+
#
|
|
908
|
+
# The caller must be the organization's management account or its
|
|
909
|
+
# delegated administrator, Certificate actions for organizations must be
|
|
910
|
+
# on, and the call must be made in the organization's home Region. For
|
|
911
|
+
# every check and error, see RenewMemberCertificate.
|
|
912
|
+
#
|
|
913
|
+
# @option params [required, String] :certificate_arn
|
|
914
|
+
# The ARN of the certificate to delete.
|
|
915
|
+
#
|
|
916
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
917
|
+
#
|
|
918
|
+
#
|
|
919
|
+
# @example Example: Delete a certificate in a member account
|
|
920
|
+
#
|
|
921
|
+
# # No AWS resource in account 444455556666 uses the certificate any longer.
|
|
922
|
+
#
|
|
923
|
+
# resp = client.delete_member_certificate({
|
|
924
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
925
|
+
# })
|
|
926
|
+
#
|
|
927
|
+
# resp.to_h outputs the following:
|
|
928
|
+
# {
|
|
929
|
+
# }
|
|
930
|
+
#
|
|
931
|
+
# @example Example: Delete a certificate that is still in use
|
|
932
|
+
#
|
|
933
|
+
# # A load balancer in the member account still uses the certificate.
|
|
934
|
+
#
|
|
935
|
+
# resp = client.delete_member_certificate({
|
|
936
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
937
|
+
# })
|
|
938
|
+
#
|
|
939
|
+
# @example Request syntax with placeholder values
|
|
940
|
+
#
|
|
941
|
+
# resp = client.delete_member_certificate({
|
|
942
|
+
# certificate_arn: "MemberCertificateArn", # required
|
|
943
|
+
# })
|
|
944
|
+
#
|
|
945
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteMemberCertificate AWS API Documentation
|
|
946
|
+
#
|
|
947
|
+
# @overload delete_member_certificate(params = {})
|
|
948
|
+
# @param [Hash] params ({})
|
|
949
|
+
def delete_member_certificate(params = {}, options = {})
|
|
950
|
+
req = build_request(:delete_member_certificate, params)
|
|
951
|
+
req.send_request(options)
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# Deletes a private certificate authority (CA) in a member account of
|
|
955
|
+
# the caller's organization. AWS Private Certificate Authority (AWS
|
|
956
|
+
# Private CA) applies the rules of its DeleteCertificateAuthority
|
|
957
|
+
# operation, including which CA states can be deleted and how long a
|
|
958
|
+
# deleted CA can be restored. For details, see
|
|
959
|
+
# DeleteCertificateAuthority in the AWS Private CA API Reference.
|
|
960
|
+
#
|
|
961
|
+
# The caller must be the organization's management account or its
|
|
962
|
+
# delegated administrator, Certificate actions for organizations must be
|
|
963
|
+
# on, and the call must be made in the organization's home Region. For
|
|
964
|
+
# every check and error, see UpdateMemberCertificateAuthority.
|
|
965
|
+
#
|
|
966
|
+
# @option params [required, String] :certificate_authority_arn
|
|
967
|
+
# The ARN of the certificate authority to delete.
|
|
968
|
+
#
|
|
969
|
+
# @option params [Integer] :permanent_deletion_time_in_days
|
|
970
|
+
# How many days the deleted certificate authority can be restored, 7 to
|
|
971
|
+
# 30. If you omit it, AWS Private Certificate Authority (AWS Private CA)
|
|
972
|
+
# applies its default; see DeleteCertificateAuthority in the AWS Private
|
|
973
|
+
# CA API Reference.
|
|
974
|
+
#
|
|
975
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
976
|
+
#
|
|
977
|
+
#
|
|
978
|
+
# @example Example: Delete a certificate authority in a member account
|
|
979
|
+
#
|
|
980
|
+
# # The certificate authority is DISABLED and can be restored for 7 days.
|
|
981
|
+
#
|
|
982
|
+
# resp = client.delete_member_certificate_authority({
|
|
983
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
984
|
+
# permanent_deletion_time_in_days: 7,
|
|
985
|
+
# })
|
|
986
|
+
#
|
|
987
|
+
# resp.to_h outputs the following:
|
|
988
|
+
# {
|
|
989
|
+
# }
|
|
990
|
+
#
|
|
991
|
+
# @example Example: Delete a certificate authority that is still active
|
|
992
|
+
#
|
|
993
|
+
# # AWS Private CA rejects the request because the certificate authority is ACTIVE.
|
|
994
|
+
#
|
|
995
|
+
# resp = client.delete_member_certificate_authority({
|
|
996
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
997
|
+
# })
|
|
998
|
+
#
|
|
999
|
+
# @example Request syntax with placeholder values
|
|
1000
|
+
#
|
|
1001
|
+
# resp = client.delete_member_certificate_authority({
|
|
1002
|
+
# certificate_authority_arn: "MemberCertificateAuthorityArn", # required
|
|
1003
|
+
# permanent_deletion_time_in_days: 1,
|
|
1004
|
+
# })
|
|
1005
|
+
#
|
|
1006
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteMemberCertificateAuthority AWS API Documentation
|
|
1007
|
+
#
|
|
1008
|
+
# @overload delete_member_certificate_authority(params = {})
|
|
1009
|
+
# @param [Hash] params ({})
|
|
1010
|
+
def delete_member_certificate_authority(params = {}, options = {})
|
|
1011
|
+
req = build_request(:delete_member_certificate_authority, params)
|
|
1012
|
+
req.send_request(options)
|
|
1013
|
+
end
|
|
1014
|
+
|
|
902
1015
|
# Returns detailed metadata about the specified ACME account, including
|
|
903
1016
|
# its status, public key thumbprint, and associated external account
|
|
904
1017
|
# binding.
|
|
@@ -1363,6 +1476,646 @@ module Aws::ACM
|
|
|
1363
1476
|
req.send_request(options)
|
|
1364
1477
|
end
|
|
1365
1478
|
|
|
1479
|
+
# Returns the organization's configuration for Certificate inventory
|
|
1480
|
+
# for organizations. The certificate inventory is the set of
|
|
1481
|
+
# certificates observed in the organization's accounts. The
|
|
1482
|
+
# configuration says which Regions and accounts are collected, how long
|
|
1483
|
+
# data is kept, and whether collection is on. It also shows how far
|
|
1484
|
+
# setup has progressed, the organization's AWS Certificate Manager
|
|
1485
|
+
# (ACM) plan (Essentials or Pro), and whether Certificate actions for
|
|
1486
|
+
# organizations are on. Certificate actions are the operations that act
|
|
1487
|
+
# on certificates and certificate authorities in the organization's
|
|
1488
|
+
# member accounts.
|
|
1489
|
+
#
|
|
1490
|
+
# The caller must be the organization's management account or its
|
|
1491
|
+
# delegated administrator. If the caller's account is not in an
|
|
1492
|
+
# organization, or the caller is neither of these accounts, the
|
|
1493
|
+
# operation returns AccessDeniedException. The message names the unmet
|
|
1494
|
+
# condition. Before the first PutInventoryConfiguration call, the
|
|
1495
|
+
# operation returns ResourceNotFoundException.
|
|
1496
|
+
#
|
|
1497
|
+
# @return [Types::GetInventoryConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1498
|
+
#
|
|
1499
|
+
# * {Types::GetInventoryConfigurationOutput#configuration #configuration} => Types::InventoryConfiguration
|
|
1500
|
+
#
|
|
1501
|
+
#
|
|
1502
|
+
# @example Example: Get the inventory configuration
|
|
1503
|
+
#
|
|
1504
|
+
# # Collection is on for every Region and for every account except one. Data is kept for 180 days. Expiry notifications go
|
|
1505
|
+
# # weekly to an Amazon SNS topic, starting 30 days before a certificate expires. The latest notification was delivered.
|
|
1506
|
+
#
|
|
1507
|
+
# resp = client.get_inventory_configuration({
|
|
1508
|
+
# })
|
|
1509
|
+
#
|
|
1510
|
+
# resp.to_h outputs the following:
|
|
1511
|
+
# {
|
|
1512
|
+
# configuration: {
|
|
1513
|
+
# account_scope: {
|
|
1514
|
+
# account_ids: [
|
|
1515
|
+
# "444455556666",
|
|
1516
|
+
# ],
|
|
1517
|
+
# mode: "EXCLUDE",
|
|
1518
|
+
# },
|
|
1519
|
+
# data_retention_days: 180,
|
|
1520
|
+
# expiry_notification: {
|
|
1521
|
+
# channel: "SNS",
|
|
1522
|
+
# enabled: true,
|
|
1523
|
+
# frequency: "WEEKLY",
|
|
1524
|
+
# lead_time_days: 30,
|
|
1525
|
+
# topic_arn: "arn:aws:sns:us-east-1:111122223333:cert-expiry",
|
|
1526
|
+
# },
|
|
1527
|
+
# home_region: "us-east-1",
|
|
1528
|
+
# inventory_tier_configuration: {
|
|
1529
|
+
# status: "ACTIVE",
|
|
1530
|
+
# tier: "PRO",
|
|
1531
|
+
# },
|
|
1532
|
+
# last_delivery_status: {
|
|
1533
|
+
# status: "DELIVERED",
|
|
1534
|
+
# updated_at: Time.parse(1794819600),
|
|
1535
|
+
# },
|
|
1536
|
+
# lifecycle_management: {
|
|
1537
|
+
# provisioning_status: "ENABLED",
|
|
1538
|
+
# status: "ENABLED",
|
|
1539
|
+
# },
|
|
1540
|
+
# provisioning_status: "ENABLED",
|
|
1541
|
+
# regional_scope: {
|
|
1542
|
+
# mode: "ALL_REGIONS",
|
|
1543
|
+
# },
|
|
1544
|
+
# status: "ENABLED",
|
|
1545
|
+
# },
|
|
1546
|
+
# }
|
|
1547
|
+
#
|
|
1548
|
+
# @example Example: Get the configuration while the ACM plan is scheduled to end
|
|
1549
|
+
#
|
|
1550
|
+
# # The organization is on the Pro plan, and the plan is scheduled to end on December 1, 2026. The plan stays in effect
|
|
1551
|
+
# # until then. After that, the configuration has no InventoryTierConfiguration.
|
|
1552
|
+
#
|
|
1553
|
+
# resp = client.get_inventory_configuration({
|
|
1554
|
+
# })
|
|
1555
|
+
#
|
|
1556
|
+
# resp.to_h outputs the following:
|
|
1557
|
+
# {
|
|
1558
|
+
# configuration: {
|
|
1559
|
+
# account_scope: {
|
|
1560
|
+
# mode: "ALL_ACCOUNTS",
|
|
1561
|
+
# },
|
|
1562
|
+
# data_retention_days: 90,
|
|
1563
|
+
# expiry_notification: {
|
|
1564
|
+
# enabled: false,
|
|
1565
|
+
# frequency: "ONCE",
|
|
1566
|
+
# lead_time_days: 7,
|
|
1567
|
+
# },
|
|
1568
|
+
# home_region: "us-east-1",
|
|
1569
|
+
# inventory_tier_configuration: {
|
|
1570
|
+
# scheduled_change: {
|
|
1571
|
+
# effective_at: Time.parse(1796083200),
|
|
1572
|
+
# },
|
|
1573
|
+
# status: "ACTIVE",
|
|
1574
|
+
# tier: "PRO",
|
|
1575
|
+
# },
|
|
1576
|
+
# lifecycle_management: {
|
|
1577
|
+
# provisioning_status: "DISABLED",
|
|
1578
|
+
# status: "DISABLED",
|
|
1579
|
+
# },
|
|
1580
|
+
# provisioning_status: "ENABLED",
|
|
1581
|
+
# regional_scope: {
|
|
1582
|
+
# mode: "ALL_REGIONS",
|
|
1583
|
+
# },
|
|
1584
|
+
# status: "ENABLED",
|
|
1585
|
+
# },
|
|
1586
|
+
# }
|
|
1587
|
+
#
|
|
1588
|
+
# @example Example: Get the configuration while a new ACM plan is being applied
|
|
1589
|
+
#
|
|
1590
|
+
# # PutInventoryConfiguration requested the Pro plan a few seconds ago. The plan is PENDING until it takes effect, usually
|
|
1591
|
+
# # within seconds.
|
|
1592
|
+
#
|
|
1593
|
+
# resp = client.get_inventory_configuration({
|
|
1594
|
+
# })
|
|
1595
|
+
#
|
|
1596
|
+
# resp.to_h outputs the following:
|
|
1597
|
+
# {
|
|
1598
|
+
# configuration: {
|
|
1599
|
+
# account_scope: {
|
|
1600
|
+
# mode: "ALL_ACCOUNTS",
|
|
1601
|
+
# },
|
|
1602
|
+
# data_retention_days: 90,
|
|
1603
|
+
# expiry_notification: {
|
|
1604
|
+
# enabled: false,
|
|
1605
|
+
# frequency: "ONCE",
|
|
1606
|
+
# lead_time_days: 7,
|
|
1607
|
+
# },
|
|
1608
|
+
# home_region: "us-east-1",
|
|
1609
|
+
# inventory_tier_configuration: {
|
|
1610
|
+
# status: "PENDING",
|
|
1611
|
+
# tier: "PRO",
|
|
1612
|
+
# },
|
|
1613
|
+
# lifecycle_management: {
|
|
1614
|
+
# provisioning_status: "DISABLED",
|
|
1615
|
+
# status: "DISABLED",
|
|
1616
|
+
# },
|
|
1617
|
+
# provisioning_status: "ENABLING",
|
|
1618
|
+
# regional_scope: {
|
|
1619
|
+
# mode: "ALL_REGIONS",
|
|
1620
|
+
# },
|
|
1621
|
+
# status: "ENABLED",
|
|
1622
|
+
# },
|
|
1623
|
+
# }
|
|
1624
|
+
#
|
|
1625
|
+
# @example Example: Get the configuration before inventory is set up
|
|
1626
|
+
#
|
|
1627
|
+
# # The organization has never called PutInventoryConfiguration.
|
|
1628
|
+
#
|
|
1629
|
+
# resp = client.get_inventory_configuration({
|
|
1630
|
+
# })
|
|
1631
|
+
#
|
|
1632
|
+
# @example Response structure
|
|
1633
|
+
#
|
|
1634
|
+
# resp.configuration.regional_scope.mode #=> String, one of "ALL_REGIONS", "INCLUDE", "EXCLUDE"
|
|
1635
|
+
# resp.configuration.regional_scope.regions #=> Array
|
|
1636
|
+
# resp.configuration.regional_scope.regions[0] #=> String
|
|
1637
|
+
# resp.configuration.account_scope.mode #=> String, one of "ALL_ACCOUNTS", "INCLUDE", "EXCLUDE"
|
|
1638
|
+
# resp.configuration.account_scope.organizational_unit_ids #=> Array
|
|
1639
|
+
# resp.configuration.account_scope.organizational_unit_ids[0] #=> String
|
|
1640
|
+
# resp.configuration.account_scope.account_ids #=> Array
|
|
1641
|
+
# resp.configuration.account_scope.account_ids[0] #=> String
|
|
1642
|
+
# resp.configuration.data_retention_days #=> Integer
|
|
1643
|
+
# resp.configuration.status #=> String, one of "ENABLED", "DISABLED"
|
|
1644
|
+
# resp.configuration.provisioning_status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "FAILED"
|
|
1645
|
+
# resp.configuration.provisioning_status_reason.code #=> String, one of "TRUSTED_ACCESS_DISABLED", "INTERNAL_FAILURE"
|
|
1646
|
+
# resp.configuration.provisioning_status_reason.message #=> String
|
|
1647
|
+
# resp.configuration.home_region #=> String
|
|
1648
|
+
# resp.configuration.lifecycle_management.status #=> String, one of "ENABLED", "DISABLED"
|
|
1649
|
+
# resp.configuration.lifecycle_management.provisioning_status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "FAILED"
|
|
1650
|
+
# resp.configuration.lifecycle_management.provisioning_status_reason.code #=> String, one of "TRUSTED_ACCESS_DISABLED", "INTERNAL_FAILURE"
|
|
1651
|
+
# resp.configuration.lifecycle_management.provisioning_status_reason.message #=> String
|
|
1652
|
+
# resp.configuration.expiry_notification.enabled #=> Boolean
|
|
1653
|
+
# resp.configuration.expiry_notification.channel #=> String, one of "SNS"
|
|
1654
|
+
# resp.configuration.expiry_notification.topic_arn #=> String
|
|
1655
|
+
# resp.configuration.expiry_notification.lead_time_days #=> Integer
|
|
1656
|
+
# resp.configuration.expiry_notification.frequency #=> String, one of "ONCE", "DAILY", "WEEKLY"
|
|
1657
|
+
# resp.configuration.last_delivery_status.status #=> String, one of "PENDING_VERIFICATION", "VERIFIED", "VERIFICATION_FAILED", "DELIVERED", "DELIVERY_FAILED"
|
|
1658
|
+
# resp.configuration.last_delivery_status.updated_at #=> Time
|
|
1659
|
+
# resp.configuration.last_delivery_status.message #=> String
|
|
1660
|
+
# resp.configuration.inventory_tier_configuration.tier #=> String, one of "ESSENTIALS", "PRO"
|
|
1661
|
+
# resp.configuration.inventory_tier_configuration.status #=> String, one of "PENDING", "ACTIVE"
|
|
1662
|
+
# resp.configuration.inventory_tier_configuration.scheduled_change.tier #=> String, one of "ESSENTIALS", "PRO"
|
|
1663
|
+
# resp.configuration.inventory_tier_configuration.scheduled_change.effective_at #=> Time
|
|
1664
|
+
#
|
|
1665
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetInventoryConfiguration AWS API Documentation
|
|
1666
|
+
#
|
|
1667
|
+
# @overload get_inventory_configuration(params = {})
|
|
1668
|
+
# @param [Hash] params ({})
|
|
1669
|
+
def get_inventory_configuration(params = {}, options = {})
|
|
1670
|
+
req = build_request(:get_inventory_configuration, params)
|
|
1671
|
+
req.send_request(options)
|
|
1672
|
+
end
|
|
1673
|
+
|
|
1674
|
+
# Returns certificate counts from Certificate inventory for
|
|
1675
|
+
# organizations, broken down by the requested aggregates. The
|
|
1676
|
+
# certificate inventory is the set of certificates observed in the
|
|
1677
|
+
# organization's accounts. An aggregate groups the count by one
|
|
1678
|
+
# property, such as Region or key algorithm. Every aggregate except
|
|
1679
|
+
# EXPIRY\_WINDOW is ranked: it lists groups largest first and omits
|
|
1680
|
+
# empty groups.
|
|
1681
|
+
#
|
|
1682
|
+
# The counts are precomputed, so the response and each aggregate result
|
|
1683
|
+
# carry their own UpdatedAt, which can be earlier than the request. For
|
|
1684
|
+
# a count under any other filter, use SearchInventory, whose TotalCount
|
|
1685
|
+
# is computed at query time.
|
|
1686
|
+
#
|
|
1687
|
+
# Each aggregate is computed on its own, so one aggregate can be FAILED
|
|
1688
|
+
# while the others are COMPLETE. Before the first
|
|
1689
|
+
# PutInventoryConfiguration call, and while ProvisioningStatus is
|
|
1690
|
+
# ENABLING, the counts might not be computed yet. Until they are,
|
|
1691
|
+
# CertificateCount is 0 and UpdatedAt is absent. Ranked aggregates are
|
|
1692
|
+
# COMPLETE with an empty Groups list. EXPIRY\_WINDOW is FAILED until the
|
|
1693
|
+
# first daily EXPIRY\_WINDOW computation has run. While Status is
|
|
1694
|
+
# DISABLED, retained data is served until retention removes it.
|
|
1695
|
+
#
|
|
1696
|
+
# The caller must be the organization's management account or its
|
|
1697
|
+
# delegated administrator. If the caller's account is not in an
|
|
1698
|
+
# organization, or the caller is neither of these accounts, the
|
|
1699
|
+
# operation returns AccessDeniedException. The message names the unmet
|
|
1700
|
+
# condition. GetInventoryInsights does not return
|
|
1701
|
+
# ResourceNotFoundException. Before the first PutInventoryConfiguration
|
|
1702
|
+
# call, only the management account can call it; a delegated
|
|
1703
|
+
# administrator receives AccessDeniedException.
|
|
1704
|
+
#
|
|
1705
|
+
# A repeated aggregate returns ValidationException. An entry that
|
|
1706
|
+
# selects no aggregate, or more than one, also returns
|
|
1707
|
+
# ValidationException.
|
|
1708
|
+
#
|
|
1709
|
+
# @option params [required, Array<Types::InventoryAggregateRequest>] :requested_aggregates
|
|
1710
|
+
# The aggregates to return, 0 to 25 entries. CertificateCount is always
|
|
1711
|
+
# returned and needs no entry, so an empty list returns CertificateCount
|
|
1712
|
+
# with an empty Aggregates list. Each aggregate can appear at most once.
|
|
1713
|
+
# A repeated aggregate, or an aggregate the service does not support,
|
|
1714
|
+
# returns ValidationException.
|
|
1715
|
+
#
|
|
1716
|
+
# @return [Types::GetInventoryInsightsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1717
|
+
#
|
|
1718
|
+
# * {Types::GetInventoryInsightsOutput#certificate_count #certificate_count} => Integer
|
|
1719
|
+
# * {Types::GetInventoryInsightsOutput#updated_at #updated_at} => Time
|
|
1720
|
+
# * {Types::GetInventoryInsightsOutput#aggregates #aggregates} => Array<Types::InventoryAggregateResult>
|
|
1721
|
+
#
|
|
1722
|
+
#
|
|
1723
|
+
# @example Example: Summarize certificate expiry, issuance type, and usage across the organization
|
|
1724
|
+
#
|
|
1725
|
+
# # The counts are precomputed, so UpdatedAt can be earlier than the request. EXPIRY_WINDOW is computed once a day, so it
|
|
1726
|
+
# # can be older than the other aggregates. EXPIRY_WINDOW returns all six groups, including the empty 0 to 7 day group. Its
|
|
1727
|
+
# # counts sum to CertificateCount. ISSUANCE_TYPE and IN_USE list only non-empty groups, largest first.
|
|
1728
|
+
#
|
|
1729
|
+
# resp = client.get_inventory_insights({
|
|
1730
|
+
# requested_aggregates: [
|
|
1731
|
+
# {
|
|
1732
|
+
# expiry_window: {
|
|
1733
|
+
# },
|
|
1734
|
+
# },
|
|
1735
|
+
# {
|
|
1736
|
+
# issuance_type: {
|
|
1737
|
+
# },
|
|
1738
|
+
# },
|
|
1739
|
+
# {
|
|
1740
|
+
# in_use: {
|
|
1741
|
+
# },
|
|
1742
|
+
# },
|
|
1743
|
+
# ],
|
|
1744
|
+
# })
|
|
1745
|
+
#
|
|
1746
|
+
# resp.to_h outputs the following:
|
|
1747
|
+
# {
|
|
1748
|
+
# aggregates: [
|
|
1749
|
+
# {
|
|
1750
|
+
# aggregate: "EXPIRY_WINDOW",
|
|
1751
|
+
# groups: [
|
|
1752
|
+
# {
|
|
1753
|
+
# count: 12,
|
|
1754
|
+
# max_days: -1,
|
|
1755
|
+
# },
|
|
1756
|
+
# {
|
|
1757
|
+
# count: 0,
|
|
1758
|
+
# max_days: 7,
|
|
1759
|
+
# min_days: 0,
|
|
1760
|
+
# },
|
|
1761
|
+
# {
|
|
1762
|
+
# count: 85,
|
|
1763
|
+
# max_days: 30,
|
|
1764
|
+
# min_days: 8,
|
|
1765
|
+
# },
|
|
1766
|
+
# {
|
|
1767
|
+
# count: 93,
|
|
1768
|
+
# max_days: 60,
|
|
1769
|
+
# min_days: 31,
|
|
1770
|
+
# },
|
|
1771
|
+
# {
|
|
1772
|
+
# count: 110,
|
|
1773
|
+
# max_days: 90,
|
|
1774
|
+
# min_days: 61,
|
|
1775
|
+
# },
|
|
1776
|
+
# {
|
|
1777
|
+
# count: 180,
|
|
1778
|
+
# min_days: 91,
|
|
1779
|
+
# },
|
|
1780
|
+
# ],
|
|
1781
|
+
# status: "COMPLETE",
|
|
1782
|
+
# updated_at: Time.parse(1792483200),
|
|
1783
|
+
# },
|
|
1784
|
+
# {
|
|
1785
|
+
# aggregate: "ISSUANCE_TYPE",
|
|
1786
|
+
# groups: [
|
|
1787
|
+
# {
|
|
1788
|
+
# count: 301,
|
|
1789
|
+
# value: "AMAZON_ISSUED",
|
|
1790
|
+
# },
|
|
1791
|
+
# {
|
|
1792
|
+
# count: 122,
|
|
1793
|
+
# value: "IMPORTED",
|
|
1794
|
+
# },
|
|
1795
|
+
# {
|
|
1796
|
+
# count: 57,
|
|
1797
|
+
# value: "PRIVATE_CA_ISSUED",
|
|
1798
|
+
# },
|
|
1799
|
+
# ],
|
|
1800
|
+
# status: "COMPLETE",
|
|
1801
|
+
# updated_at: Time.parse(1792522800),
|
|
1802
|
+
# },
|
|
1803
|
+
# {
|
|
1804
|
+
# aggregate: "IN_USE",
|
|
1805
|
+
# groups: [
|
|
1806
|
+
# {
|
|
1807
|
+
# count: 352,
|
|
1808
|
+
# value: "true",
|
|
1809
|
+
# },
|
|
1810
|
+
# {
|
|
1811
|
+
# count: 128,
|
|
1812
|
+
# value: "false",
|
|
1813
|
+
# },
|
|
1814
|
+
# ],
|
|
1815
|
+
# status: "COMPLETE",
|
|
1816
|
+
# updated_at: Time.parse(1792522800),
|
|
1817
|
+
# },
|
|
1818
|
+
# ],
|
|
1819
|
+
# certificate_count: 480,
|
|
1820
|
+
# updated_at: Time.parse(1792522800),
|
|
1821
|
+
# }
|
|
1822
|
+
#
|
|
1823
|
+
# @example Example: Count certificates by their highest open finding severity
|
|
1824
|
+
#
|
|
1825
|
+
# # HIGHEST_FINDING_SEVERITY lists only non-empty groups, largest first, with ties ordered by Value. Twenty certificates
|
|
1826
|
+
# # have not had their findings evaluated yet. They are counted in NOT_EVALUATED, so the groups sum to CertificateCount.
|
|
1827
|
+
#
|
|
1828
|
+
# resp = client.get_inventory_insights({
|
|
1829
|
+
# requested_aggregates: [
|
|
1830
|
+
# {
|
|
1831
|
+
# highest_finding_severity: {
|
|
1832
|
+
# },
|
|
1833
|
+
# },
|
|
1834
|
+
# ],
|
|
1835
|
+
# })
|
|
1836
|
+
#
|
|
1837
|
+
# resp.to_h outputs the following:
|
|
1838
|
+
# {
|
|
1839
|
+
# aggregates: [
|
|
1840
|
+
# {
|
|
1841
|
+
# aggregate: "HIGHEST_FINDING_SEVERITY",
|
|
1842
|
+
# groups: [
|
|
1843
|
+
# {
|
|
1844
|
+
# count: 312,
|
|
1845
|
+
# value: "HEALTHY",
|
|
1846
|
+
# },
|
|
1847
|
+
# {
|
|
1848
|
+
# count: 96,
|
|
1849
|
+
# value: "NOT_APPLICABLE",
|
|
1850
|
+
# },
|
|
1851
|
+
# {
|
|
1852
|
+
# count: 29,
|
|
1853
|
+
# value: "LOW",
|
|
1854
|
+
# },
|
|
1855
|
+
# {
|
|
1856
|
+
# count: 20,
|
|
1857
|
+
# value: "NOT_EVALUATED",
|
|
1858
|
+
# },
|
|
1859
|
+
# {
|
|
1860
|
+
# count: 14,
|
|
1861
|
+
# value: "HIGH",
|
|
1862
|
+
# },
|
|
1863
|
+
# {
|
|
1864
|
+
# count: 9,
|
|
1865
|
+
# value: "CRITICAL",
|
|
1866
|
+
# },
|
|
1867
|
+
# ],
|
|
1868
|
+
# status: "COMPLETE",
|
|
1869
|
+
# updated_at: Time.parse(1792522800),
|
|
1870
|
+
# },
|
|
1871
|
+
# ],
|
|
1872
|
+
# certificate_count: 480,
|
|
1873
|
+
# updated_at: Time.parse(1792522800),
|
|
1874
|
+
# }
|
|
1875
|
+
#
|
|
1876
|
+
# @example Example: Count certificates by highest open finding severity for each certificate type
|
|
1877
|
+
#
|
|
1878
|
+
# # GroupBy CERTIFICATE_TYPE adds CertificateTypeGroups, ordered alphabetically by CertificateType value. Each type's
|
|
1879
|
+
# # severity groups are ranked like Groups. Groups still counts all types together. Four certificates have not had their
|
|
1880
|
+
# # findings evaluated yet: one IMPORTED, one PRIVATE_TLS, and two PUBLIC_TLS certificates. They are counted in
|
|
1881
|
+
# # NOT_EVALUATED, both in Groups and in their type's groups, so each type's groups sum to its CertificateCount.
|
|
1882
|
+
#
|
|
1883
|
+
# resp = client.get_inventory_insights({
|
|
1884
|
+
# requested_aggregates: [
|
|
1885
|
+
# {
|
|
1886
|
+
# highest_finding_severity: {
|
|
1887
|
+
# group_by: "CERTIFICATE_TYPE",
|
|
1888
|
+
# },
|
|
1889
|
+
# },
|
|
1890
|
+
# ],
|
|
1891
|
+
# })
|
|
1892
|
+
#
|
|
1893
|
+
# resp.to_h outputs the following:
|
|
1894
|
+
# {
|
|
1895
|
+
# aggregates: [
|
|
1896
|
+
# {
|
|
1897
|
+
# aggregate: "HIGHEST_FINDING_SEVERITY",
|
|
1898
|
+
# certificate_type_groups: [
|
|
1899
|
+
# {
|
|
1900
|
+
# certificate_count: 2,
|
|
1901
|
+
# certificate_type: "ACME",
|
|
1902
|
+
# groups: [
|
|
1903
|
+
# {
|
|
1904
|
+
# count: 2,
|
|
1905
|
+
# value: "HEALTHY",
|
|
1906
|
+
# },
|
|
1907
|
+
# ],
|
|
1908
|
+
# },
|
|
1909
|
+
# {
|
|
1910
|
+
# certificate_count: 3,
|
|
1911
|
+
# certificate_type: "IMPORTED",
|
|
1912
|
+
# groups: [
|
|
1913
|
+
# {
|
|
1914
|
+
# count: 1,
|
|
1915
|
+
# value: "HEALTHY",
|
|
1916
|
+
# },
|
|
1917
|
+
# {
|
|
1918
|
+
# count: 1,
|
|
1919
|
+
# value: "HIGH",
|
|
1920
|
+
# },
|
|
1921
|
+
# {
|
|
1922
|
+
# count: 1,
|
|
1923
|
+
# value: "NOT_EVALUATED",
|
|
1924
|
+
# },
|
|
1925
|
+
# ],
|
|
1926
|
+
# },
|
|
1927
|
+
# {
|
|
1928
|
+
# certificate_count: 3,
|
|
1929
|
+
# certificate_type: "OTHER",
|
|
1930
|
+
# groups: [
|
|
1931
|
+
# {
|
|
1932
|
+
# count: 3,
|
|
1933
|
+
# value: "NOT_APPLICABLE",
|
|
1934
|
+
# },
|
|
1935
|
+
# ],
|
|
1936
|
+
# },
|
|
1937
|
+
# {
|
|
1938
|
+
# certificate_count: 9,
|
|
1939
|
+
# certificate_type: "PRIVATE_TLS",
|
|
1940
|
+
# groups: [
|
|
1941
|
+
# {
|
|
1942
|
+
# count: 6,
|
|
1943
|
+
# value: "HEALTHY",
|
|
1944
|
+
# },
|
|
1945
|
+
# {
|
|
1946
|
+
# count: 2,
|
|
1947
|
+
# value: "LOW",
|
|
1948
|
+
# },
|
|
1949
|
+
# {
|
|
1950
|
+
# count: 1,
|
|
1951
|
+
# value: "NOT_EVALUATED",
|
|
1952
|
+
# },
|
|
1953
|
+
# ],
|
|
1954
|
+
# },
|
|
1955
|
+
# {
|
|
1956
|
+
# certificate_count: 17,
|
|
1957
|
+
# certificate_type: "PUBLIC_TLS",
|
|
1958
|
+
# groups: [
|
|
1959
|
+
# {
|
|
1960
|
+
# count: 10,
|
|
1961
|
+
# value: "HEALTHY",
|
|
1962
|
+
# },
|
|
1963
|
+
# {
|
|
1964
|
+
# count: 3,
|
|
1965
|
+
# value: "HIGH",
|
|
1966
|
+
# },
|
|
1967
|
+
# {
|
|
1968
|
+
# count: 2,
|
|
1969
|
+
# value: "CRITICAL",
|
|
1970
|
+
# },
|
|
1971
|
+
# {
|
|
1972
|
+
# count: 2,
|
|
1973
|
+
# value: "NOT_EVALUATED",
|
|
1974
|
+
# },
|
|
1975
|
+
# ],
|
|
1976
|
+
# },
|
|
1977
|
+
# ],
|
|
1978
|
+
# groups: [
|
|
1979
|
+
# {
|
|
1980
|
+
# count: 19,
|
|
1981
|
+
# value: "HEALTHY",
|
|
1982
|
+
# },
|
|
1983
|
+
# {
|
|
1984
|
+
# count: 4,
|
|
1985
|
+
# value: "HIGH",
|
|
1986
|
+
# },
|
|
1987
|
+
# {
|
|
1988
|
+
# count: 4,
|
|
1989
|
+
# value: "NOT_EVALUATED",
|
|
1990
|
+
# },
|
|
1991
|
+
# {
|
|
1992
|
+
# count: 3,
|
|
1993
|
+
# value: "NOT_APPLICABLE",
|
|
1994
|
+
# },
|
|
1995
|
+
# {
|
|
1996
|
+
# count: 2,
|
|
1997
|
+
# value: "CRITICAL",
|
|
1998
|
+
# },
|
|
1999
|
+
# {
|
|
2000
|
+
# count: 2,
|
|
2001
|
+
# value: "LOW",
|
|
2002
|
+
# },
|
|
2003
|
+
# ],
|
|
2004
|
+
# status: "COMPLETE",
|
|
2005
|
+
# updated_at: Time.parse(1794769200),
|
|
2006
|
+
# },
|
|
2007
|
+
# ],
|
|
2008
|
+
# certificate_count: 34,
|
|
2009
|
+
# updated_at: Time.parse(1794769200),
|
|
2010
|
+
# }
|
|
2011
|
+
#
|
|
2012
|
+
# @example Example: Read insights before the first EXPIRY_WINDOW computation
|
|
2013
|
+
#
|
|
2014
|
+
# # The inventory was enabled just now, and no counts have been computed, so CertificateCount is 0 and UpdatedAt is absent.
|
|
2015
|
+
# # The first daily EXPIRY_WINDOW computation has not run, so EXPIRY_WINDOW is FAILED with no Groups and no UpdatedAt.
|
|
2016
|
+
# # REGION is COMPLETE with an empty Groups list, because no certificate has been counted yet.
|
|
2017
|
+
#
|
|
2018
|
+
# resp = client.get_inventory_insights({
|
|
2019
|
+
# requested_aggregates: [
|
|
2020
|
+
# {
|
|
2021
|
+
# expiry_window: {
|
|
2022
|
+
# },
|
|
2023
|
+
# },
|
|
2024
|
+
# {
|
|
2025
|
+
# region: {
|
|
2026
|
+
# },
|
|
2027
|
+
# },
|
|
2028
|
+
# ],
|
|
2029
|
+
# })
|
|
2030
|
+
#
|
|
2031
|
+
# resp.to_h outputs the following:
|
|
2032
|
+
# {
|
|
2033
|
+
# aggregates: [
|
|
2034
|
+
# {
|
|
2035
|
+
# aggregate: "EXPIRY_WINDOW",
|
|
2036
|
+
# status: "FAILED",
|
|
2037
|
+
# },
|
|
2038
|
+
# {
|
|
2039
|
+
# aggregate: "REGION",
|
|
2040
|
+
# groups: [
|
|
2041
|
+
# ],
|
|
2042
|
+
# status: "COMPLETE",
|
|
2043
|
+
# },
|
|
2044
|
+
# ],
|
|
2045
|
+
# certificate_count: 0,
|
|
2046
|
+
# }
|
|
2047
|
+
#
|
|
2048
|
+
# @example Example: Request the same aggregate twice
|
|
2049
|
+
#
|
|
2050
|
+
# # The second entry repeats ISSUANCE_TYPE, so the request is rejected and names the repeated entry.
|
|
2051
|
+
#
|
|
2052
|
+
# resp = client.get_inventory_insights({
|
|
2053
|
+
# requested_aggregates: [
|
|
2054
|
+
# {
|
|
2055
|
+
# issuance_type: {
|
|
2056
|
+
# },
|
|
2057
|
+
# },
|
|
2058
|
+
# {
|
|
2059
|
+
# issuance_type: {
|
|
2060
|
+
# },
|
|
2061
|
+
# },
|
|
2062
|
+
# ],
|
|
2063
|
+
# })
|
|
2064
|
+
#
|
|
2065
|
+
# @example Request syntax with placeholder values
|
|
2066
|
+
#
|
|
2067
|
+
# resp = client.get_inventory_insights({
|
|
2068
|
+
# requested_aggregates: [ # required
|
|
2069
|
+
# {
|
|
2070
|
+
# expiry_window: {
|
|
2071
|
+
# },
|
|
2072
|
+
# issuance_type: {
|
|
2073
|
+
# },
|
|
2074
|
+
# region: {
|
|
2075
|
+
# },
|
|
2076
|
+
# in_use: {
|
|
2077
|
+
# },
|
|
2078
|
+
# key_algorithm: {
|
|
2079
|
+
# },
|
|
2080
|
+
# highest_finding_severity: {
|
|
2081
|
+
# group_by: "CERTIFICATE_TYPE", # accepts CERTIFICATE_TYPE
|
|
2082
|
+
# },
|
|
2083
|
+
# },
|
|
2084
|
+
# ],
|
|
2085
|
+
# })
|
|
2086
|
+
#
|
|
2087
|
+
# @example Response structure
|
|
2088
|
+
#
|
|
2089
|
+
# resp.certificate_count #=> Integer
|
|
2090
|
+
# resp.updated_at #=> Time
|
|
2091
|
+
# resp.aggregates #=> Array
|
|
2092
|
+
# resp.aggregates[0].aggregate #=> String, one of "EXPIRY_WINDOW", "ISSUANCE_TYPE", "REGION", "IN_USE", "KEY_ALGORITHM", "HIGHEST_FINDING_SEVERITY"
|
|
2093
|
+
# resp.aggregates[0].status #=> String, one of "COMPLETE", "FAILED"
|
|
2094
|
+
# resp.aggregates[0].updated_at #=> Time
|
|
2095
|
+
# resp.aggregates[0].groups #=> Array
|
|
2096
|
+
# resp.aggregates[0].groups[0].value #=> String
|
|
2097
|
+
# resp.aggregates[0].groups[0].count #=> Integer
|
|
2098
|
+
# resp.aggregates[0].groups[0].min_days #=> Integer
|
|
2099
|
+
# resp.aggregates[0].groups[0].max_days #=> Integer
|
|
2100
|
+
# resp.aggregates[0].other_count #=> Integer
|
|
2101
|
+
# resp.aggregates[0].certificate_type_groups #=> Array
|
|
2102
|
+
# resp.aggregates[0].certificate_type_groups[0].certificate_type #=> String, one of "PUBLIC_TLS", "PRIVATE_TLS", "ACME", "IMPORTED", "OTHER"
|
|
2103
|
+
# resp.aggregates[0].certificate_type_groups[0].certificate_count #=> Integer
|
|
2104
|
+
# resp.aggregates[0].certificate_type_groups[0].groups #=> Array
|
|
2105
|
+
# resp.aggregates[0].certificate_type_groups[0].groups[0].value #=> String
|
|
2106
|
+
# resp.aggregates[0].certificate_type_groups[0].groups[0].count #=> Integer
|
|
2107
|
+
# resp.aggregates[0].certificate_type_groups[0].groups[0].min_days #=> Integer
|
|
2108
|
+
# resp.aggregates[0].certificate_type_groups[0].groups[0].max_days #=> Integer
|
|
2109
|
+
#
|
|
2110
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetInventoryInsights AWS API Documentation
|
|
2111
|
+
#
|
|
2112
|
+
# @overload get_inventory_insights(params = {})
|
|
2113
|
+
# @param [Hash] params ({})
|
|
2114
|
+
def get_inventory_insights(params = {}, options = {})
|
|
2115
|
+
req = build_request(:get_inventory_insights, params)
|
|
2116
|
+
req.send_request(options)
|
|
2117
|
+
end
|
|
2118
|
+
|
|
1366
2119
|
# Imports a certificate into Certificate Manager (ACM) to use with
|
|
1367
2120
|
# services that are integrated with ACM. Note that [integrated
|
|
1368
2121
|
# services][1] allow only certificate types and keys they support to be
|
|
@@ -1878,6 +2631,482 @@ module Aws::ACM
|
|
|
1878
2631
|
req.send_request(options)
|
|
1879
2632
|
end
|
|
1880
2633
|
|
|
2634
|
+
# Lists the open findings for one certificate. Returns one page of
|
|
2635
|
+
# findings and the total number of findings.
|
|
2636
|
+
#
|
|
2637
|
+
# A finding says that a certificate series has a problem you can fix,
|
|
2638
|
+
# and how severe it is. A series is the set of certificates that one AWS
|
|
2639
|
+
# Certificate Manager (ACM) certificate holds across renewals and
|
|
2640
|
+
# reimports. A certificate's findings are the open findings of every
|
|
2641
|
+
# series in which it is a current certificate. A rule that passes or
|
|
2642
|
+
# does not apply produces no finding, so a certificate with no problems
|
|
2643
|
+
# returns an empty list.
|
|
2644
|
+
#
|
|
2645
|
+
# Findings are sorted by severity, highest first, and then by RuleId in
|
|
2646
|
+
# alphabetical order. Ties are broken in a fixed order that is unique to
|
|
2647
|
+
# each finding, so paging returns every finding at least once. A finding
|
|
2648
|
+
# can change while you page, for example when its severity rises. Then
|
|
2649
|
+
# it is returned again, with its new values, at the top of a later page.
|
|
2650
|
+
# Its FindingId does not change, so you can replace the copy you already
|
|
2651
|
+
# have.
|
|
2652
|
+
#
|
|
2653
|
+
# To read the next page, repeat the request with the NextToken from the
|
|
2654
|
+
# previous response. Keep the same CertificateIdentifier and Severity. A
|
|
2655
|
+
# NextToken from a request with a different CertificateIdentifier or
|
|
2656
|
+
# Severity returns ValidationException.
|
|
2657
|
+
#
|
|
2658
|
+
# Every response also reports the certificate's HighestFindingSeverity.
|
|
2659
|
+
# It is NOT\_EVALUATED until the certificate's findings have been
|
|
2660
|
+
# evaluated.
|
|
2661
|
+
#
|
|
2662
|
+
# The caller must be the organization's management account or its
|
|
2663
|
+
# delegated administrator. If the caller's account is not in an
|
|
2664
|
+
# organization, or the caller is neither of these accounts, the
|
|
2665
|
+
# operation returns AccessDeniedException. The message names the unmet
|
|
2666
|
+
# condition.
|
|
2667
|
+
#
|
|
2668
|
+
# The operation returns ResourceNotFoundException in two cases, each
|
|
2669
|
+
# with its own message:
|
|
2670
|
+
#
|
|
2671
|
+
# * The inventory is not configured: no PutInventoryConfiguration call
|
|
2672
|
+
# has run.
|
|
2673
|
+
# * The inventory has no certificate with the identifier.
|
|
2674
|
+
#
|
|
2675
|
+
# Do not match on the message to tell the cases apart.
|
|
2676
|
+
# GetInventoryConfiguration says whether the inventory is configured.
|
|
2677
|
+
#
|
|
2678
|
+
# Before the first PutInventoryConfiguration call, only the management
|
|
2679
|
+
# account can call it; a delegated administrator receives
|
|
2680
|
+
# AccessDeniedException.
|
|
2681
|
+
#
|
|
2682
|
+
# @option params [required, String] :certificate_identifier
|
|
2683
|
+
# The identifier of the certificate whose findings to list, as
|
|
2684
|
+
# SearchInventory returns it.
|
|
2685
|
+
#
|
|
2686
|
+
# @option params [String] :severity
|
|
2687
|
+
# Return only findings of this severity. Omit it to return findings of
|
|
2688
|
+
# every severity.
|
|
2689
|
+
#
|
|
2690
|
+
# @option params [Integer] :max_results
|
|
2691
|
+
# The maximum number of findings to return, 1 to 100. Defaults to 25.
|
|
2692
|
+
#
|
|
2693
|
+
# @option params [String] :next_token
|
|
2694
|
+
# The NextToken from the previous response, to read the next page.
|
|
2695
|
+
#
|
|
2696
|
+
# @return [Types::ListInventoryFindingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2697
|
+
#
|
|
2698
|
+
# * {Types::ListInventoryFindingsOutput#findings #findings} => Array<Types::InventoryFinding>
|
|
2699
|
+
# * {Types::ListInventoryFindingsOutput#highest_finding_severity #highest_finding_severity} => String
|
|
2700
|
+
# * {Types::ListInventoryFindingsOutput#next_token #next_token} => String
|
|
2701
|
+
# * {Types::ListInventoryFindingsOutput#total_count #total_count} => Integer
|
|
2702
|
+
# * {Types::ListInventoryFindingsOutput#total_count_relation #total_count_relation} => String
|
|
2703
|
+
#
|
|
2704
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2705
|
+
#
|
|
2706
|
+
#
|
|
2707
|
+
# @example Example: List the findings of a certificate
|
|
2708
|
+
#
|
|
2709
|
+
# # ACM has not renewed the exported certificate. The inventory cannot observe where an exported certificate is used.
|
|
2710
|
+
#
|
|
2711
|
+
# resp = client.list_inventory_findings({
|
|
2712
|
+
# certificate_identifier: "38fdac0e1a578bcf38ca654a0d2722da2dfe9bc6b77d803ee20218f9025d0883",
|
|
2713
|
+
# })
|
|
2714
|
+
#
|
|
2715
|
+
# resp.to_h outputs the following:
|
|
2716
|
+
# {
|
|
2717
|
+
# findings: [
|
|
2718
|
+
# {
|
|
2719
|
+
# actual: "The certificate expires on 2026-12-13 and has not been renewed.",
|
|
2720
|
+
# certificate_identifier: "38fdac0e1a578bcf38ca654a0d2722da2dfe9bc6b77d803ee20218f9025d0883",
|
|
2721
|
+
# evaluated_at: Time.parse(1794531574),
|
|
2722
|
+
# expected: "ACM renews the certificate 45 days before it expires.",
|
|
2723
|
+
# finding_id: "f19cb34e5c046d43568f2d4f8bb233e0ff",
|
|
2724
|
+
# remediation: "Check the certificate's domain validation and renewal status in ACM and resolve what blocks renewal.",
|
|
2725
|
+
# rule_id: "ACM_RENEWAL_OVERDUE",
|
|
2726
|
+
# scope: {
|
|
2727
|
+
# series: {
|
|
2728
|
+
# account_id: "111122223333",
|
|
2729
|
+
# certificate_arn: "arn:aws:acm:us-west-2:111122223333:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE11111",
|
|
2730
|
+
# region: "us-west-2",
|
|
2731
|
+
# },
|
|
2732
|
+
# },
|
|
2733
|
+
# severity: "HIGH",
|
|
2734
|
+
# },
|
|
2735
|
+
# {
|
|
2736
|
+
# actual: "The certificate is exported, so the inventory cannot observe where it is used.",
|
|
2737
|
+
# certificate_identifier: "38fdac0e1a578bcf38ca654a0d2722da2dfe9bc6b77d803ee20218f9025d0883",
|
|
2738
|
+
# evaluated_at: Time.parse(1794531574),
|
|
2739
|
+
# expected: "The certificate is used by at least one resource.",
|
|
2740
|
+
# finding_id: "f1164cd0676ee47e5a4a91b3f91c40c0e0",
|
|
2741
|
+
# reason: "USAGE_NOT_OBSERVABLE",
|
|
2742
|
+
# remediation: "The certificate may be used outside ACM-integrated services, for example on an EC2 instance or an on-premises server. Confirm where it is used, and delete it if it is no longer needed.",
|
|
2743
|
+
# rule_id: "NO_USAGE_EVIDENCE",
|
|
2744
|
+
# scope: {
|
|
2745
|
+
# series: {
|
|
2746
|
+
# account_id: "111122223333",
|
|
2747
|
+
# certificate_arn: "arn:aws:acm:us-west-2:111122223333:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE11111",
|
|
2748
|
+
# region: "us-west-2",
|
|
2749
|
+
# },
|
|
2750
|
+
# },
|
|
2751
|
+
# severity: "LOW",
|
|
2752
|
+
# },
|
|
2753
|
+
# ],
|
|
2754
|
+
# highest_finding_severity: "HIGH",
|
|
2755
|
+
# total_count: 2,
|
|
2756
|
+
# total_count_relation: "EXACT",
|
|
2757
|
+
# }
|
|
2758
|
+
#
|
|
2759
|
+
# @example Example: List the findings of a healthy certificate
|
|
2760
|
+
#
|
|
2761
|
+
# # Every rule that applies to the certificate passes.
|
|
2762
|
+
#
|
|
2763
|
+
# resp = client.list_inventory_findings({
|
|
2764
|
+
# certificate_identifier: "5b2d8e1f4a7c0936d2e5f8b1a4c7d0e3f6a9b2c5d8e1f4a7b0c3d6e9f2a5b8c1",
|
|
2765
|
+
# })
|
|
2766
|
+
#
|
|
2767
|
+
# resp.to_h outputs the following:
|
|
2768
|
+
# {
|
|
2769
|
+
# findings: [
|
|
2770
|
+
# ],
|
|
2771
|
+
# highest_finding_severity: "HEALTHY",
|
|
2772
|
+
# total_count: 0,
|
|
2773
|
+
# total_count_relation: "EXACT",
|
|
2774
|
+
# }
|
|
2775
|
+
#
|
|
2776
|
+
# @example Example: List the findings of a certificate the inventory has not observed
|
|
2777
|
+
#
|
|
2778
|
+
# # No certificate in the organization's inventory has this identifier.
|
|
2779
|
+
#
|
|
2780
|
+
# resp = client.list_inventory_findings({
|
|
2781
|
+
# certificate_identifier: "9c1e4b7a2d5f8036e9b2c5f8a1d4e7b0c3f6a9d2e5b8c1f4a7d0e3b6c9f2a5d8",
|
|
2782
|
+
# })
|
|
2783
|
+
#
|
|
2784
|
+
# @example Example: Continue with a token from another severity
|
|
2785
|
+
#
|
|
2786
|
+
# # The NextToken came from a request for HIGH findings, and this request asks for CRITICAL findings.
|
|
2787
|
+
#
|
|
2788
|
+
# resp = client.list_inventory_findings({
|
|
2789
|
+
# certificate_identifier: "38fdac0e1a578bcf38ca654a0d2722da2dfe9bc6b77d803ee20218f9025d0883",
|
|
2790
|
+
# next_token: "AAEXAMPLENextTokenFindings1111",
|
|
2791
|
+
# severity: "CRITICAL",
|
|
2792
|
+
# })
|
|
2793
|
+
#
|
|
2794
|
+
# @example Request syntax with placeholder values
|
|
2795
|
+
#
|
|
2796
|
+
# resp = client.list_inventory_findings({
|
|
2797
|
+
# certificate_identifier: "ContentHashIdentifier", # required
|
|
2798
|
+
# severity: "CRITICAL", # accepts CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL
|
|
2799
|
+
# max_results: 1,
|
|
2800
|
+
# next_token: "ListInventoryFindingsInputNextTokenString",
|
|
2801
|
+
# })
|
|
2802
|
+
#
|
|
2803
|
+
# @example Response structure
|
|
2804
|
+
#
|
|
2805
|
+
# resp.findings #=> Array
|
|
2806
|
+
# resp.findings[0].finding_id #=> String
|
|
2807
|
+
# resp.findings[0].certificate_identifier #=> String
|
|
2808
|
+
# resp.findings[0].rule_id #=> String, one of "NO_VALID_CERTIFICATE", "ACM_RENEWAL_OVERDUE", "EXPIRING_SOON", "NO_USAGE_EVIDENCE", "EXPIRED_CERTIFICATE_IN_USE"
|
|
2809
|
+
# resp.findings[0].severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL"
|
|
2810
|
+
# resp.findings[0].scope.series.certificate_arn #=> String
|
|
2811
|
+
# resp.findings[0].scope.series.account_id #=> String
|
|
2812
|
+
# resp.findings[0].scope.series.region #=> String
|
|
2813
|
+
# resp.findings[0].reason #=> String, one of "USAGE_NOT_OBSERVABLE", "EXPIRED_NOT_IN_USE", "NOT_IN_USE"
|
|
2814
|
+
# resp.findings[0].expected #=> String
|
|
2815
|
+
# resp.findings[0].actual #=> String
|
|
2816
|
+
# resp.findings[0].remediation #=> String
|
|
2817
|
+
# resp.findings[0].evaluated_at #=> Time
|
|
2818
|
+
# resp.highest_finding_severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL", "HEALTHY", "NOT_APPLICABLE", "NOT_EVALUATED"
|
|
2819
|
+
# resp.next_token #=> String
|
|
2820
|
+
# resp.total_count #=> Integer
|
|
2821
|
+
# resp.total_count_relation #=> String, one of "EXACT", "AT_LEAST"
|
|
2822
|
+
#
|
|
2823
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListInventoryFindings AWS API Documentation
|
|
2824
|
+
#
|
|
2825
|
+
# @overload list_inventory_findings(params = {})
|
|
2826
|
+
# @param [Hash] params ({})
|
|
2827
|
+
def list_inventory_findings(params = {}, options = {})
|
|
2828
|
+
req = build_request(:list_inventory_findings, params)
|
|
2829
|
+
req.send_request(options)
|
|
2830
|
+
end
|
|
2831
|
+
|
|
2832
|
+
# Lists the resources that one certificate maps to: AWS Certificate
|
|
2833
|
+
# Manager certificates, AWS Private Certificate Authority (AWS Private
|
|
2834
|
+
# CA) certificates, and AWS Private CA certificate authorities. Returns
|
|
2835
|
+
# one page of related resources and the total number of related
|
|
2836
|
+
# resources.
|
|
2837
|
+
#
|
|
2838
|
+
# Related resources are sorted by ResourceArn, in ascending order. To
|
|
2839
|
+
# read the next page, repeat the request with the NextToken from the
|
|
2840
|
+
# previous response and the same CertificateIdentifier. A NextToken from
|
|
2841
|
+
# a request for a different certificate returns ValidationException.
|
|
2842
|
+
#
|
|
2843
|
+
# The caller must be the organization's management account or its
|
|
2844
|
+
# delegated administrator. If the caller's account is not in an
|
|
2845
|
+
# organization, or the caller is neither of these accounts, the
|
|
2846
|
+
# operation returns AccessDeniedException. The message names the unmet
|
|
2847
|
+
# condition.
|
|
2848
|
+
#
|
|
2849
|
+
# The operation returns ResourceNotFoundException before the first
|
|
2850
|
+
# PutInventoryConfiguration call. Until then, only the management
|
|
2851
|
+
# account can call it; a delegated administrator receives
|
|
2852
|
+
# AccessDeniedException. It also returns ResourceNotFoundException when
|
|
2853
|
+
# the inventory has no certificate with the identifier.
|
|
2854
|
+
#
|
|
2855
|
+
# @option params [required, String] :certificate_identifier
|
|
2856
|
+
# The identifier of the certificate whose related resources to list, as
|
|
2857
|
+
# SearchInventory returns it.
|
|
2858
|
+
#
|
|
2859
|
+
# @option params [Integer] :max_results
|
|
2860
|
+
# The maximum number of related resources to return, 1 to 100. Defaults
|
|
2861
|
+
# to 25.
|
|
2862
|
+
#
|
|
2863
|
+
# @option params [String] :next_token
|
|
2864
|
+
# The NextToken from the previous response, to read the next page.
|
|
2865
|
+
#
|
|
2866
|
+
# @return [Types::ListInventoryRelatedResourcesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2867
|
+
#
|
|
2868
|
+
# * {Types::ListInventoryRelatedResourcesOutput#related_resources #related_resources} => Array<Types::InventoryRelatedResource>
|
|
2869
|
+
# * {Types::ListInventoryRelatedResourcesOutput#next_token #next_token} => String
|
|
2870
|
+
# * {Types::ListInventoryRelatedResourcesOutput#total_count #total_count} => Integer
|
|
2871
|
+
# * {Types::ListInventoryRelatedResourcesOutput#total_count_relation #total_count_relation} => String
|
|
2872
|
+
#
|
|
2873
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
2874
|
+
#
|
|
2875
|
+
#
|
|
2876
|
+
# @example Example: List the resources a certificate maps to
|
|
2877
|
+
#
|
|
2878
|
+
# # The certificate is the one an ACM certificate holds now. The inventory last read the ACM certificate on November 2,
|
|
2879
|
+
# # 2026.
|
|
2880
|
+
#
|
|
2881
|
+
# resp = client.list_inventory_related_resources({
|
|
2882
|
+
# certificate_identifier: "3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91",
|
|
2883
|
+
# })
|
|
2884
|
+
#
|
|
2885
|
+
# resp.to_h outputs the following:
|
|
2886
|
+
# {
|
|
2887
|
+
# related_resources: [
|
|
2888
|
+
# {
|
|
2889
|
+
# association_status: "CURRENT",
|
|
2890
|
+
# issuance_type: "AMAZON_ISSUED",
|
|
2891
|
+
# metadata: {
|
|
2892
|
+
# acm_certificate: {
|
|
2893
|
+
# certificate_key_pair_origin: "AWS_MANAGED",
|
|
2894
|
+
# created_at: Time.parse(1763576400),
|
|
2895
|
+
# domain_name: "www.example.com",
|
|
2896
|
+
# in_use_by_count: 1,
|
|
2897
|
+
# issued_at: Time.parse(1763597100),
|
|
2898
|
+
# not_after: Time.parse(1795132799),
|
|
2899
|
+
# options: {
|
|
2900
|
+
# export: "DISABLED",
|
|
2901
|
+
# validation_method: "DNS",
|
|
2902
|
+
# },
|
|
2903
|
+
# renewal_eligibility: "ELIGIBLE",
|
|
2904
|
+
# serial: "0a:1b:2c:3d:4e:5f:60:71:82:93:a4:b5:c6:d7:e8:f9",
|
|
2905
|
+
# status: "ISSUED",
|
|
2906
|
+
# type: "AMAZON_ISSUED",
|
|
2907
|
+
# updated_at: Time.parse(1793628000),
|
|
2908
|
+
# },
|
|
2909
|
+
# },
|
|
2910
|
+
# resource_arn: "arn:aws:acm:us-west-2:111122223333:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE11111",
|
|
2911
|
+
# resource_type: "ACM_CERTIFICATE",
|
|
2912
|
+
# },
|
|
2913
|
+
# ],
|
|
2914
|
+
# total_count: 1,
|
|
2915
|
+
# total_count_relation: "EXACT",
|
|
2916
|
+
# }
|
|
2917
|
+
#
|
|
2918
|
+
# @example Example: Continue with a token from another certificate
|
|
2919
|
+
#
|
|
2920
|
+
# # The NextToken came from a request for a different certificate.
|
|
2921
|
+
#
|
|
2922
|
+
# resp = client.list_inventory_related_resources({
|
|
2923
|
+
# certificate_identifier: "3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91",
|
|
2924
|
+
# next_token: "AAEXAMPLENextTokenRelated11111",
|
|
2925
|
+
# })
|
|
2926
|
+
#
|
|
2927
|
+
# @example Request syntax with placeholder values
|
|
2928
|
+
#
|
|
2929
|
+
# resp = client.list_inventory_related_resources({
|
|
2930
|
+
# certificate_identifier: "ContentHashIdentifier", # required
|
|
2931
|
+
# max_results: 1,
|
|
2932
|
+
# next_token: "ListInventoryRelatedResourcesInputNextTokenString",
|
|
2933
|
+
# })
|
|
2934
|
+
#
|
|
2935
|
+
# @example Response structure
|
|
2936
|
+
#
|
|
2937
|
+
# resp.related_resources #=> Array
|
|
2938
|
+
# resp.related_resources[0].resource_type #=> String, one of "ACM_CERTIFICATE", "PCA_CERTIFICATE", "PCA_CERTIFICATE_AUTHORITY"
|
|
2939
|
+
# resp.related_resources[0].resource_arn #=> String
|
|
2940
|
+
# resp.related_resources[0].issuance_type #=> String, one of "AMAZON_ISSUED", "PRIVATE_CA_ISSUED", "IMPORTED", "EXTERNAL", "PRIVATE_CA_DIRECT"
|
|
2941
|
+
# resp.related_resources[0].association_status #=> String, one of "CURRENT", "REPLACED"
|
|
2942
|
+
# resp.related_resources[0].metadata.acm_certificate.updated_at #=> Time
|
|
2943
|
+
# resp.related_resources[0].metadata.acm_certificate.domain_name #=> String
|
|
2944
|
+
# resp.related_resources[0].metadata.acm_certificate.serial #=> String
|
|
2945
|
+
# resp.related_resources[0].metadata.acm_certificate.not_after #=> Time
|
|
2946
|
+
# resp.related_resources[0].metadata.acm_certificate.status #=> String, one of "PENDING_VALIDATION", "ISSUED", "INACTIVE", "EXPIRED", "VALIDATION_TIMED_OUT", "REVOKED", "FAILED"
|
|
2947
|
+
# resp.related_resources[0].metadata.acm_certificate.type #=> String, one of "IMPORTED", "AMAZON_ISSUED", "PRIVATE"
|
|
2948
|
+
# resp.related_resources[0].metadata.acm_certificate.in_use_by_count #=> Integer
|
|
2949
|
+
# resp.related_resources[0].metadata.acm_certificate.renewal_eligibility #=> String, one of "ELIGIBLE", "INELIGIBLE"
|
|
2950
|
+
# resp.related_resources[0].metadata.acm_certificate.renewal_summary.renewal_status #=> String, one of "PENDING_AUTO_RENEWAL", "PENDING_VALIDATION", "SUCCESS", "FAILED"
|
|
2951
|
+
# resp.related_resources[0].metadata.acm_certificate.renewal_summary.renewal_status_reason #=> String, one of "NO_AVAILABLE_CONTACTS", "ADDITIONAL_VERIFICATION_REQUIRED", "DOMAIN_NOT_ALLOWED", "INVALID_PUBLIC_DOMAIN", "DOMAIN_VALIDATION_DENIED", "CAA_ERROR", "PCA_LIMIT_EXCEEDED", "PCA_INVALID_ARN", "PCA_INVALID_STATE", "PCA_REQUEST_FAILED", "PCA_NAME_CONSTRAINTS_VALIDATION", "PCA_RESOURCE_NOT_FOUND", "PCA_INVALID_ARGS", "PCA_INVALID_DURATION", "PCA_ACCESS_DENIED", "SLR_NOT_FOUND", "OTHER"
|
|
2952
|
+
# resp.related_resources[0].metadata.acm_certificate.renewal_summary.updated_at #=> Time
|
|
2953
|
+
# resp.related_resources[0].metadata.acm_certificate.options.export #=> String, one of "ENABLED", "DISABLED"
|
|
2954
|
+
# resp.related_resources[0].metadata.acm_certificate.options.validation_method #=> String, one of "EMAIL", "DNS", "HTTP"
|
|
2955
|
+
# resp.related_resources[0].metadata.acm_certificate.update_summary.status #=> String, one of "PENDING_DOMAIN_VALIDATION", "SUCCESS", "FAILED"
|
|
2956
|
+
# resp.related_resources[0].metadata.acm_certificate.update_summary.type #=> String, one of "DOMAIN_VALIDATION_METHOD"
|
|
2957
|
+
# resp.related_resources[0].metadata.acm_certificate.update_summary.requested_at #=> Time
|
|
2958
|
+
# resp.related_resources[0].metadata.acm_certificate.update_summary.updated_at #=> Time
|
|
2959
|
+
# resp.related_resources[0].metadata.acm_certificate.certificate_key_pair_origin #=> String, one of "AWS_MANAGED", "ACME", "CUSTOMER_PROVIDED"
|
|
2960
|
+
# resp.related_resources[0].metadata.acm_certificate.managed_by #=> String, one of "CLOUDFRONT"
|
|
2961
|
+
# resp.related_resources[0].metadata.acm_certificate.created_at #=> Time
|
|
2962
|
+
# resp.related_resources[0].metadata.acm_certificate.issued_at #=> Time
|
|
2963
|
+
# resp.related_resources[0].metadata.acm_certificate.imported_at #=> Time
|
|
2964
|
+
# resp.related_resources[0].metadata.acm_certificate.revoked_at #=> Time
|
|
2965
|
+
# resp.related_resources[0].metadata.acm_certificate.revocation_reason #=> String, one of "UNSPECIFIED", "KEY_COMPROMISE", "CA_COMPROMISE", "AFFILIATION_CHANGED", "SUPERCEDED", "SUPERSEDED", "CESSATION_OF_OPERATION", "CERTIFICATE_HOLD", "REMOVE_FROM_CRL", "PRIVILEGE_WITHDRAWN", "A_A_COMPROMISE"
|
|
2966
|
+
# resp.related_resources[0].metadata.acm_certificate.certificate_authority_arn #=> String
|
|
2967
|
+
# resp.related_resources[0].metadata.acm_certificate.acme_endpoint_arn #=> String
|
|
2968
|
+
# resp.related_resources[0].metadata.acm_certificate.acme_account_id #=> String
|
|
2969
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.updated_at #=> Time
|
|
2970
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.status #=> String, one of "CREATING", "PENDING_CERTIFICATE", "ACTIVE", "DELETED", "DISABLED", "EXPIRED", "FAILED"
|
|
2971
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.type #=> String, one of "ROOT", "SUBORDINATE"
|
|
2972
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.usage_mode #=> String, one of "GENERAL_PURPOSE", "SHORT_LIVED_CERTIFICATE"
|
|
2973
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.key_storage_security_standard #=> String, one of "FIPS_140_2_LEVEL_2_OR_HIGHER", "FIPS_140_2_LEVEL_3_OR_HIGHER", "CCPC_LEVEL_1_OR_HIGHER"
|
|
2974
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.serial #=> String
|
|
2975
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.not_before #=> Time
|
|
2976
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.not_after #=> Time
|
|
2977
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.created_at #=> Time
|
|
2978
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.last_state_change_at #=> Time
|
|
2979
|
+
# resp.related_resources[0].metadata.pca_certificate_authority.restorable_until #=> Time
|
|
2980
|
+
# resp.next_token #=> String
|
|
2981
|
+
# resp.total_count #=> Integer
|
|
2982
|
+
# resp.total_count_relation #=> String, one of "EXACT", "AT_LEAST"
|
|
2983
|
+
#
|
|
2984
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListInventoryRelatedResources AWS API Documentation
|
|
2985
|
+
#
|
|
2986
|
+
# @overload list_inventory_related_resources(params = {})
|
|
2987
|
+
# @param [Hash] params ({})
|
|
2988
|
+
def list_inventory_related_resources(params = {}, options = {})
|
|
2989
|
+
req = build_request(:list_inventory_related_resources, params)
|
|
2990
|
+
req.send_request(options)
|
|
2991
|
+
end
|
|
2992
|
+
|
|
2993
|
+
# Lists the places where one certificate was observed in use, such as
|
|
2994
|
+
# load balancers and Amazon CloudFront distributions. Returns one page
|
|
2995
|
+
# of usages and the total number of usages.
|
|
2996
|
+
#
|
|
2997
|
+
# Usages are sorted by target, in ascending order. To read the next
|
|
2998
|
+
# page, repeat the request with the NextToken from the previous response
|
|
2999
|
+
# and the same CertificateIdentifier. A NextToken from a request for a
|
|
3000
|
+
# different certificate returns ValidationException.
|
|
3001
|
+
#
|
|
3002
|
+
# The caller must be the organization's management account or its
|
|
3003
|
+
# delegated administrator. If the caller's account is not in an
|
|
3004
|
+
# organization, or the caller is neither of these accounts, the
|
|
3005
|
+
# operation returns AccessDeniedException. The message names the unmet
|
|
3006
|
+
# condition.
|
|
3007
|
+
#
|
|
3008
|
+
# The operation returns ResourceNotFoundException before the first
|
|
3009
|
+
# PutInventoryConfiguration call. Until then, only the management
|
|
3010
|
+
# account can call it; a delegated administrator receives
|
|
3011
|
+
# AccessDeniedException. It also returns ResourceNotFoundException when
|
|
3012
|
+
# the inventory has no certificate with the identifier.
|
|
3013
|
+
#
|
|
3014
|
+
# @option params [required, String] :certificate_identifier
|
|
3015
|
+
# The identifier of the certificate whose usages to list, as
|
|
3016
|
+
# SearchInventory returns it.
|
|
3017
|
+
#
|
|
3018
|
+
# @option params [Integer] :max_results
|
|
3019
|
+
# The maximum number of usages to return, 1 to 100. Defaults to 25.
|
|
3020
|
+
#
|
|
3021
|
+
# @option params [String] :next_token
|
|
3022
|
+
# The NextToken from the previous response, to read the next page.
|
|
3023
|
+
#
|
|
3024
|
+
# @return [Types::ListInventoryUsagesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3025
|
+
#
|
|
3026
|
+
# * {Types::ListInventoryUsagesOutput#usages #usages} => Array<Types::InventoryUsage>
|
|
3027
|
+
# * {Types::ListInventoryUsagesOutput#next_token #next_token} => String
|
|
3028
|
+
# * {Types::ListInventoryUsagesOutput#total_count #total_count} => Integer
|
|
3029
|
+
# * {Types::ListInventoryUsagesOutput#total_count_relation #total_count_relation} => String
|
|
3030
|
+
#
|
|
3031
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
3032
|
+
#
|
|
3033
|
+
#
|
|
3034
|
+
# @example Example: List where a certificate is used
|
|
3035
|
+
#
|
|
3036
|
+
# # The certificate is attached to an Application Load Balancer and an Amazon CloudFront distribution.
|
|
3037
|
+
#
|
|
3038
|
+
# resp = client.list_inventory_usages({
|
|
3039
|
+
# certificate_identifier: "3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91",
|
|
3040
|
+
# max_results: 25,
|
|
3041
|
+
# })
|
|
3042
|
+
#
|
|
3043
|
+
# resp.to_h outputs the following:
|
|
3044
|
+
# {
|
|
3045
|
+
# total_count: 2,
|
|
3046
|
+
# total_count_relation: "EXACT",
|
|
3047
|
+
# usages: [
|
|
3048
|
+
# {
|
|
3049
|
+
# account_id: "111122223333",
|
|
3050
|
+
# certificate_identifier: "3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91",
|
|
3051
|
+
# last_observed_at: Time.parse(1793628000),
|
|
3052
|
+
# target: {
|
|
3053
|
+
# arn: "arn:aws:cloudfront::111122223333:distribution/E2QWRUHAPOMQZL",
|
|
3054
|
+
# },
|
|
3055
|
+
# },
|
|
3056
|
+
# {
|
|
3057
|
+
# account_id: "111122223333",
|
|
3058
|
+
# certificate_identifier: "3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91",
|
|
3059
|
+
# last_observed_at: Time.parse(1793628300),
|
|
3060
|
+
# region: "us-west-2",
|
|
3061
|
+
# target: {
|
|
3062
|
+
# arn: "arn:aws:elasticloadbalancing:us-west-2:111122223333:loadbalancer/app/web-frontend/50dc6c495c0c9188",
|
|
3063
|
+
# },
|
|
3064
|
+
# },
|
|
3065
|
+
# ],
|
|
3066
|
+
# }
|
|
3067
|
+
#
|
|
3068
|
+
# @example Example: List the usages of a certificate the inventory has not observed
|
|
3069
|
+
#
|
|
3070
|
+
# # No certificate in the organization's inventory has this identifier.
|
|
3071
|
+
#
|
|
3072
|
+
# resp = client.list_inventory_usages({
|
|
3073
|
+
# certificate_identifier: "9c1e4b7a2d5f8036e9b2c5f8a1d4e7b0c3f6a9d2e5b8c1f4a7d0e3b6c9f2a5d8",
|
|
3074
|
+
# })
|
|
3075
|
+
#
|
|
3076
|
+
# @example Request syntax with placeholder values
|
|
3077
|
+
#
|
|
3078
|
+
# resp = client.list_inventory_usages({
|
|
3079
|
+
# certificate_identifier: "ContentHashIdentifier", # required
|
|
3080
|
+
# max_results: 1,
|
|
3081
|
+
# next_token: "ListInventoryUsagesInputNextTokenString",
|
|
3082
|
+
# })
|
|
3083
|
+
#
|
|
3084
|
+
# @example Response structure
|
|
3085
|
+
#
|
|
3086
|
+
# resp.usages #=> Array
|
|
3087
|
+
# resp.usages[0].certificate_identifier #=> String
|
|
3088
|
+
# resp.usages[0].target.arn #=> String
|
|
3089
|
+
# resp.usages[0].target.resource_identifier.resource_type #=> String, one of "HOST", "EKS_POD"
|
|
3090
|
+
# resp.usages[0].target.resource_identifier.value #=> String
|
|
3091
|
+
# resp.usages[0].last_observed_at #=> Time
|
|
3092
|
+
# resp.usages[0].account_id #=> String
|
|
3093
|
+
# resp.usages[0].region #=> String
|
|
3094
|
+
# resp.usages[0].agent_reported.discovery.port #=> Integer
|
|
3095
|
+
# resp.usages[0].agent_reported.discovery.server_name #=> String
|
|
3096
|
+
# resp.usages[0].agent_reported.automation.certificate_arn #=> String
|
|
3097
|
+
# resp.next_token #=> String
|
|
3098
|
+
# resp.total_count #=> Integer
|
|
3099
|
+
# resp.total_count_relation #=> String, one of "EXACT", "AT_LEAST"
|
|
3100
|
+
#
|
|
3101
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListInventoryUsages AWS API Documentation
|
|
3102
|
+
#
|
|
3103
|
+
# @overload list_inventory_usages(params = {})
|
|
3104
|
+
# @param [Hash] params ({})
|
|
3105
|
+
def list_inventory_usages(params = {}, options = {})
|
|
3106
|
+
req = build_request(:list_inventory_usages, params)
|
|
3107
|
+
req.send_request(options)
|
|
3108
|
+
end
|
|
3109
|
+
|
|
1881
3110
|
# Lists the tags that have been applied to the ACM certificate. Use the
|
|
1882
3111
|
# certificate's Amazon Resource Name (ARN) to specify the certificate.
|
|
1883
3112
|
# To add a tag to an ACM certificate, use the AddTagsToCertificate
|
|
@@ -2004,6 +3233,519 @@ module Aws::ACM
|
|
|
2004
3233
|
req.send_request(options)
|
|
2005
3234
|
end
|
|
2006
3235
|
|
|
3236
|
+
# Sets the organization's configuration for Certificate inventory for
|
|
3237
|
+
# organizations, and returns it. The certificate inventory is the set of
|
|
3238
|
+
# certificates observed in the organization's accounts.
|
|
3239
|
+
#
|
|
3240
|
+
# The first call with Status ENABLED creates the configuration. The
|
|
3241
|
+
# Region of that call becomes the home Region, and later calls must be
|
|
3242
|
+
# made there. Setup in the organization's accounts continues after the
|
|
3243
|
+
# call returns. To follow it, read ProvisioningStatus with
|
|
3244
|
+
# GetInventoryConfiguration.
|
|
3245
|
+
#
|
|
3246
|
+
# The caller must be the organization's management account or its
|
|
3247
|
+
# delegated administrator in AWS Organizations. Otherwise, the operation
|
|
3248
|
+
# returns AccessDeniedException. The first call starts the
|
|
3249
|
+
# organization's AWS Certificate Manager (ACM) plan (Essentials or
|
|
3250
|
+
# Pro), so only the management account can make it. A delegated
|
|
3251
|
+
# administrator can make later calls as soon as it is registered.
|
|
3252
|
+
#
|
|
3253
|
+
# The call does not require that AWS Organizations trusted access is on,
|
|
3254
|
+
# that all features are enabled in the organization, or that a delegated
|
|
3255
|
+
# administrator is registered. Setup requires them. If a requirement is
|
|
3256
|
+
# not met, GetInventoryConfiguration shows ProvisioningStatus FAILED,
|
|
3257
|
+
# with a reason code and a message.
|
|
3258
|
+
#
|
|
3259
|
+
# The operation returns ConflictException for these calls:
|
|
3260
|
+
#
|
|
3261
|
+
# * A first call with Status DISABLED.
|
|
3262
|
+
# * A call from a Region other than the home Region.
|
|
3263
|
+
# * A call while a previous change is still being set up, unless it
|
|
3264
|
+
# repeats the stored configuration.
|
|
3265
|
+
#
|
|
3266
|
+
# DataRetentionDays is not kept when you omit it. A call without it sets
|
|
3267
|
+
# retention to 90 days, even if a different value is stored.
|
|
3268
|
+
#
|
|
3269
|
+
# LifecycleManagement turns Certificate actions for organizations on or
|
|
3270
|
+
# off. Certificate actions are the operations that act on certificates
|
|
3271
|
+
# and certificate authorities in the organization's member accounts.
|
|
3272
|
+
# Omit LifecycleManagement to keep the stored value. The first call can
|
|
3273
|
+
# turn certificate actions on, and no registered delegated administrator
|
|
3274
|
+
# is needed. Status DISABLED also turns certificate actions off. Turning
|
|
3275
|
+
# them on while Status is DISABLED returns ValidationException. To
|
|
3276
|
+
# follow setup in the member accounts, read
|
|
3277
|
+
# LifecycleManagement.ProvisioningStatus with GetInventoryConfiguration.
|
|
3278
|
+
#
|
|
3279
|
+
# ExpiryNotification sets certificate expiry notifications. Omit it to
|
|
3280
|
+
# keep the stored setting, or set Enabled to false to turn notifications
|
|
3281
|
+
# off. With Enabled true, Channel and TopicArn are required. The topic
|
|
3282
|
+
# must be a standard (non-FIFO) Amazon SNS topic in the management
|
|
3283
|
+
# account and the home Region. It must also be in the partition of the
|
|
3284
|
+
# endpoint you call. Otherwise, the operation returns
|
|
3285
|
+
# ValidationException. Each save with Enabled true verifies the topic
|
|
3286
|
+
# again after the call returns. To follow it, read LastDeliveryStatus
|
|
3287
|
+
# with GetInventoryConfiguration.
|
|
3288
|
+
#
|
|
3289
|
+
# A call that repeats the stored configuration returns it, even while a
|
|
3290
|
+
# previous change is still being set up. To retry a failed setup, repeat
|
|
3291
|
+
# the call with Status ENABLED after ProvisioningStatus is FAILED. With
|
|
3292
|
+
# ExpiryNotification Enabled true, a repeated call also verifies the
|
|
3293
|
+
# topic again.
|
|
3294
|
+
#
|
|
3295
|
+
# InventoryTier names the organization's ACM plan: Essentials or Pro.
|
|
3296
|
+
# It is optional. Omit it to keep the current plan. While the
|
|
3297
|
+
# organization has no plan, such as on the first call, a call with
|
|
3298
|
+
# Status ENABLED must name one. Otherwise, it returns
|
|
3299
|
+
# ValidationException. With Status ENABLED, the named plan is the plan
|
|
3300
|
+
# to subscribe to. The first plan and a higher plan take effect
|
|
3301
|
+
# immediately. A lower plan takes effect at the end of the billing
|
|
3302
|
+
# period.
|
|
3303
|
+
#
|
|
3304
|
+
# With Status DISABLED, InventoryTier is ignored. Certificate actions
|
|
3305
|
+
# turn off immediately. The plan ends at the end of the billing period,
|
|
3306
|
+
# and collection stays on until then. Repeating the DISABLED call before
|
|
3307
|
+
# then does not change the plan again. If the organization has no plan,
|
|
3308
|
+
# a DISABLED call turns collection off immediately.
|
|
3309
|
+
#
|
|
3310
|
+
# Until the plan ends, a Status ENABLED call that omits InventoryTier
|
|
3311
|
+
# leaves the end in place. To read the scheduled end, use
|
|
3312
|
+
# InventoryTierConfiguration.ScheduledChange in
|
|
3313
|
+
# GetInventoryConfiguration. A call that names the ending plan returns
|
|
3314
|
+
# ConflictException. A call that names the other plan replaces the
|
|
3315
|
+
# scheduled end with that plan. A scheduled downgrade cannot be taken
|
|
3316
|
+
# back either. While one is scheduled, a call that names the plan in
|
|
3317
|
+
# effect returns ConflictException.
|
|
3318
|
+
#
|
|
3319
|
+
# Only the management account can start, change, or end the plan. A
|
|
3320
|
+
# delegated administrator call that would do so returns
|
|
3321
|
+
# AccessDeniedException. A delegated administrator call succeeds when it
|
|
3322
|
+
# omits InventoryTier or names the plan last requested. While the plan
|
|
3323
|
+
# is scheduled to end, there is no requested plan, so a delegated
|
|
3324
|
+
# administrator call that names any plan returns AccessDeniedException.
|
|
3325
|
+
# The response does not include the plan. Read
|
|
3326
|
+
# InventoryTierConfiguration with GetInventoryConfiguration, which can
|
|
3327
|
+
# take a few seconds to show a change.
|
|
3328
|
+
#
|
|
3329
|
+
# @option params [required, Types::RegionalScope] :regional_scope
|
|
3330
|
+
# The Regions to collect from.
|
|
3331
|
+
#
|
|
3332
|
+
# @option params [required, Types::AccountScope] :account_scope
|
|
3333
|
+
# The accounts to collect from.
|
|
3334
|
+
#
|
|
3335
|
+
# @option params [Integer] :data_retention_days
|
|
3336
|
+
# How many days inventory data is kept, 90 to 365. When omitted,
|
|
3337
|
+
# retention is set to 90 days, even if a different value is stored.
|
|
3338
|
+
#
|
|
3339
|
+
# @option params [required, String] :status
|
|
3340
|
+
# ENABLED turns collection on. DISABLED turns collection off and keeps
|
|
3341
|
+
# an existing configuration.
|
|
3342
|
+
#
|
|
3343
|
+
# If the organization has an ACM plan, DISABLED instead ends the plan at
|
|
3344
|
+
# the end of the billing period. Collection stays on until then, and the
|
|
3345
|
+
# configuration's Status stays ENABLED. To see when the plan ends, read
|
|
3346
|
+
# InventoryTierConfiguration.ScheduledChange with
|
|
3347
|
+
# GetInventoryConfiguration. Certificate actions for organizations still
|
|
3348
|
+
# turn off immediately. Without a plan, DISABLED turns collection off
|
|
3349
|
+
# immediately.
|
|
3350
|
+
#
|
|
3351
|
+
# DISABLED cannot create the organization's first configuration.
|
|
3352
|
+
#
|
|
3353
|
+
# @option params [Types::LifecycleManagement] :lifecycle_management
|
|
3354
|
+
# Turns Certificate actions for organizations on or off. Certificate
|
|
3355
|
+
# actions are the operations that act on certificates and certificate
|
|
3356
|
+
# authorities in the organization's member accounts, such as
|
|
3357
|
+
# RenewMemberCertificate. Omit it to keep the stored value.
|
|
3358
|
+
#
|
|
3359
|
+
# @option params [Types::InventoryExpiryNotification] :expiry_notification
|
|
3360
|
+
# Certificate expiry notifications. Omit it to keep the stored setting.
|
|
3361
|
+
# Set Enabled to false to turn notifications off. Members you leave out
|
|
3362
|
+
# of ExpiryNotification take their defaults.
|
|
3363
|
+
#
|
|
3364
|
+
# @option params [String] :inventory_tier
|
|
3365
|
+
# The organization's ACM plan: Essentials or Pro. This API calls the
|
|
3366
|
+
# ACM plan the inventory tier. Omit it to keep the current plan. With
|
|
3367
|
+
# Status ENABLED, this is the plan to subscribe to. While the
|
|
3368
|
+
# organization has no plan, such as on the first call, a call with
|
|
3369
|
+
# Status ENABLED must name one. Otherwise, it returns
|
|
3370
|
+
# ValidationException. With Status DISABLED, it is ignored, and the plan
|
|
3371
|
+
# ends at the end of the billing period.
|
|
3372
|
+
#
|
|
3373
|
+
# Only the organization's management account can start, change, or end
|
|
3374
|
+
# the plan. A delegated administrator call that would do so returns
|
|
3375
|
+
# AccessDeniedException, even when its IAM policy allows the action.
|
|
3376
|
+
# PutInventoryConfiguration never returns the plan.
|
|
3377
|
+
#
|
|
3378
|
+
# A template or script that always sends the same plan undoes a plan set
|
|
3379
|
+
# another way. For example, it changes an upgrade made in the console
|
|
3380
|
+
# back to the plan it sends. To leave the plan as it is, omit
|
|
3381
|
+
# InventoryTier.
|
|
3382
|
+
#
|
|
3383
|
+
# @return [Types::PutInventoryConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
3384
|
+
#
|
|
3385
|
+
# * {Types::PutInventoryConfigurationOutput#configuration #configuration} => Types::InventoryConfiguration
|
|
3386
|
+
#
|
|
3387
|
+
#
|
|
3388
|
+
# @example Example: Collect from two Regions and every account
|
|
3389
|
+
#
|
|
3390
|
+
# # DataRetentionDays is omitted, so data is kept for 90 days. Setup is still running when the call returns.
|
|
3391
|
+
#
|
|
3392
|
+
# resp = client.put_inventory_configuration({
|
|
3393
|
+
# account_scope: {
|
|
3394
|
+
# mode: "ALL_ACCOUNTS",
|
|
3395
|
+
# },
|
|
3396
|
+
# inventory_tier: "ESSENTIALS",
|
|
3397
|
+
# regional_scope: {
|
|
3398
|
+
# mode: "INCLUDE",
|
|
3399
|
+
# regions: [
|
|
3400
|
+
# "us-east-1",
|
|
3401
|
+
# "eu-west-1",
|
|
3402
|
+
# ],
|
|
3403
|
+
# },
|
|
3404
|
+
# status: "ENABLED",
|
|
3405
|
+
# })
|
|
3406
|
+
#
|
|
3407
|
+
# resp.to_h outputs the following:
|
|
3408
|
+
# {
|
|
3409
|
+
# configuration: {
|
|
3410
|
+
# account_scope: {
|
|
3411
|
+
# mode: "ALL_ACCOUNTS",
|
|
3412
|
+
# },
|
|
3413
|
+
# data_retention_days: 90,
|
|
3414
|
+
# expiry_notification: {
|
|
3415
|
+
# enabled: false,
|
|
3416
|
+
# frequency: "ONCE",
|
|
3417
|
+
# lead_time_days: 7,
|
|
3418
|
+
# },
|
|
3419
|
+
# home_region: "us-east-1",
|
|
3420
|
+
# lifecycle_management: {
|
|
3421
|
+
# provisioning_status: "DISABLED",
|
|
3422
|
+
# status: "DISABLED",
|
|
3423
|
+
# },
|
|
3424
|
+
# provisioning_status: "ENABLING",
|
|
3425
|
+
# regional_scope: {
|
|
3426
|
+
# mode: "INCLUDE",
|
|
3427
|
+
# regions: [
|
|
3428
|
+
# "us-east-1",
|
|
3429
|
+
# "eu-west-1",
|
|
3430
|
+
# ],
|
|
3431
|
+
# },
|
|
3432
|
+
# status: "ENABLED",
|
|
3433
|
+
# },
|
|
3434
|
+
# }
|
|
3435
|
+
#
|
|
3436
|
+
# @example Example: Turn on collection and certificate actions
|
|
3437
|
+
#
|
|
3438
|
+
# # The organization's first call. Setup in the member accounts is still running when the call returns.
|
|
3439
|
+
#
|
|
3440
|
+
# resp = client.put_inventory_configuration({
|
|
3441
|
+
# account_scope: {
|
|
3442
|
+
# mode: "ALL_ACCOUNTS",
|
|
3443
|
+
# },
|
|
3444
|
+
# inventory_tier: "PRO",
|
|
3445
|
+
# lifecycle_management: {
|
|
3446
|
+
# status: "ENABLED",
|
|
3447
|
+
# },
|
|
3448
|
+
# regional_scope: {
|
|
3449
|
+
# mode: "ALL_REGIONS",
|
|
3450
|
+
# },
|
|
3451
|
+
# status: "ENABLED",
|
|
3452
|
+
# })
|
|
3453
|
+
#
|
|
3454
|
+
# resp.to_h outputs the following:
|
|
3455
|
+
# {
|
|
3456
|
+
# configuration: {
|
|
3457
|
+
# account_scope: {
|
|
3458
|
+
# mode: "ALL_ACCOUNTS",
|
|
3459
|
+
# },
|
|
3460
|
+
# data_retention_days: 90,
|
|
3461
|
+
# expiry_notification: {
|
|
3462
|
+
# enabled: false,
|
|
3463
|
+
# frequency: "ONCE",
|
|
3464
|
+
# lead_time_days: 7,
|
|
3465
|
+
# },
|
|
3466
|
+
# home_region: "us-east-1",
|
|
3467
|
+
# lifecycle_management: {
|
|
3468
|
+
# provisioning_status: "ENABLING",
|
|
3469
|
+
# status: "ENABLED",
|
|
3470
|
+
# },
|
|
3471
|
+
# provisioning_status: "ENABLING",
|
|
3472
|
+
# regional_scope: {
|
|
3473
|
+
# mode: "ALL_REGIONS",
|
|
3474
|
+
# },
|
|
3475
|
+
# status: "ENABLED",
|
|
3476
|
+
# },
|
|
3477
|
+
# }
|
|
3478
|
+
#
|
|
3479
|
+
# @example Example: Turn on expiry notifications
|
|
3480
|
+
#
|
|
3481
|
+
# # Notifications go daily to an Amazon SNS topic in the management account and home Region. They start 30 days before a
|
|
3482
|
+
# # certificate expires. The topic is verified after the call returns.
|
|
3483
|
+
#
|
|
3484
|
+
# resp = client.put_inventory_configuration({
|
|
3485
|
+
# account_scope: {
|
|
3486
|
+
# mode: "ALL_ACCOUNTS",
|
|
3487
|
+
# },
|
|
3488
|
+
# expiry_notification: {
|
|
3489
|
+
# channel: "SNS",
|
|
3490
|
+
# enabled: true,
|
|
3491
|
+
# frequency: "DAILY",
|
|
3492
|
+
# lead_time_days: 30,
|
|
3493
|
+
# topic_arn: "arn:aws:sns:us-east-1:111122223333:cert-expiry",
|
|
3494
|
+
# },
|
|
3495
|
+
# inventory_tier: "ESSENTIALS",
|
|
3496
|
+
# regional_scope: {
|
|
3497
|
+
# mode: "ALL_REGIONS",
|
|
3498
|
+
# },
|
|
3499
|
+
# status: "ENABLED",
|
|
3500
|
+
# })
|
|
3501
|
+
#
|
|
3502
|
+
# resp.to_h outputs the following:
|
|
3503
|
+
# {
|
|
3504
|
+
# configuration: {
|
|
3505
|
+
# account_scope: {
|
|
3506
|
+
# mode: "ALL_ACCOUNTS",
|
|
3507
|
+
# },
|
|
3508
|
+
# data_retention_days: 90,
|
|
3509
|
+
# expiry_notification: {
|
|
3510
|
+
# channel: "SNS",
|
|
3511
|
+
# enabled: true,
|
|
3512
|
+
# frequency: "DAILY",
|
|
3513
|
+
# lead_time_days: 30,
|
|
3514
|
+
# topic_arn: "arn:aws:sns:us-east-1:111122223333:cert-expiry",
|
|
3515
|
+
# },
|
|
3516
|
+
# home_region: "us-east-1",
|
|
3517
|
+
# last_delivery_status: {
|
|
3518
|
+
# status: "PENDING_VERIFICATION",
|
|
3519
|
+
# },
|
|
3520
|
+
# lifecycle_management: {
|
|
3521
|
+
# provisioning_status: "DISABLED",
|
|
3522
|
+
# status: "DISABLED",
|
|
3523
|
+
# },
|
|
3524
|
+
# provisioning_status: "ENABLING",
|
|
3525
|
+
# regional_scope: {
|
|
3526
|
+
# mode: "ALL_REGIONS",
|
|
3527
|
+
# },
|
|
3528
|
+
# status: "ENABLED",
|
|
3529
|
+
# },
|
|
3530
|
+
# }
|
|
3531
|
+
#
|
|
3532
|
+
# @example Example: Put the configuration from another Region
|
|
3533
|
+
#
|
|
3534
|
+
# # The configuration's home Region is us-east-1, and this call was made in eu-west-1.
|
|
3535
|
+
#
|
|
3536
|
+
# resp = client.put_inventory_configuration({
|
|
3537
|
+
# account_scope: {
|
|
3538
|
+
# mode: "ALL_ACCOUNTS",
|
|
3539
|
+
# },
|
|
3540
|
+
# regional_scope: {
|
|
3541
|
+
# mode: "ALL_REGIONS",
|
|
3542
|
+
# },
|
|
3543
|
+
# status: "ENABLED",
|
|
3544
|
+
# })
|
|
3545
|
+
#
|
|
3546
|
+
# @example Example: Turn off collection and end the ACM plan
|
|
3547
|
+
#
|
|
3548
|
+
# # The organization is on the Pro plan. The plan ends at the end of the billing period, and collection stays on until then.
|
|
3549
|
+
# # GetInventoryConfiguration reports the scheduled end.
|
|
3550
|
+
#
|
|
3551
|
+
# resp = client.put_inventory_configuration({
|
|
3552
|
+
# account_scope: {
|
|
3553
|
+
# mode: "ALL_ACCOUNTS",
|
|
3554
|
+
# },
|
|
3555
|
+
# regional_scope: {
|
|
3556
|
+
# mode: "ALL_REGIONS",
|
|
3557
|
+
# },
|
|
3558
|
+
# status: "DISABLED",
|
|
3559
|
+
# })
|
|
3560
|
+
#
|
|
3561
|
+
# resp.to_h outputs the following:
|
|
3562
|
+
# {
|
|
3563
|
+
# configuration: {
|
|
3564
|
+
# account_scope: {
|
|
3565
|
+
# mode: "ALL_ACCOUNTS",
|
|
3566
|
+
# },
|
|
3567
|
+
# data_retention_days: 90,
|
|
3568
|
+
# expiry_notification: {
|
|
3569
|
+
# enabled: false,
|
|
3570
|
+
# frequency: "ONCE",
|
|
3571
|
+
# lead_time_days: 7,
|
|
3572
|
+
# },
|
|
3573
|
+
# home_region: "us-east-1",
|
|
3574
|
+
# lifecycle_management: {
|
|
3575
|
+
# provisioning_status: "DISABLED",
|
|
3576
|
+
# status: "DISABLED",
|
|
3577
|
+
# },
|
|
3578
|
+
# provisioning_status: "ENABLED",
|
|
3579
|
+
# regional_scope: {
|
|
3580
|
+
# mode: "ALL_REGIONS",
|
|
3581
|
+
# },
|
|
3582
|
+
# status: "ENABLED",
|
|
3583
|
+
# },
|
|
3584
|
+
# }
|
|
3585
|
+
#
|
|
3586
|
+
# @example Example: Change the Regions from the delegated administrator
|
|
3587
|
+
#
|
|
3588
|
+
# # The delegated administrator narrows collection to two Regions. InventoryTier is omitted, so the organization's ACM plan
|
|
3589
|
+
# # is unchanged.
|
|
3590
|
+
#
|
|
3591
|
+
# resp = client.put_inventory_configuration({
|
|
3592
|
+
# account_scope: {
|
|
3593
|
+
# mode: "ALL_ACCOUNTS",
|
|
3594
|
+
# },
|
|
3595
|
+
# regional_scope: {
|
|
3596
|
+
# mode: "INCLUDE",
|
|
3597
|
+
# regions: [
|
|
3598
|
+
# "us-east-1",
|
|
3599
|
+
# "eu-west-1",
|
|
3600
|
+
# ],
|
|
3601
|
+
# },
|
|
3602
|
+
# status: "ENABLED",
|
|
3603
|
+
# })
|
|
3604
|
+
#
|
|
3605
|
+
# resp.to_h outputs the following:
|
|
3606
|
+
# {
|
|
3607
|
+
# configuration: {
|
|
3608
|
+
# account_scope: {
|
|
3609
|
+
# mode: "ALL_ACCOUNTS",
|
|
3610
|
+
# },
|
|
3611
|
+
# data_retention_days: 90,
|
|
3612
|
+
# expiry_notification: {
|
|
3613
|
+
# enabled: false,
|
|
3614
|
+
# frequency: "ONCE",
|
|
3615
|
+
# lead_time_days: 7,
|
|
3616
|
+
# },
|
|
3617
|
+
# home_region: "us-east-1",
|
|
3618
|
+
# lifecycle_management: {
|
|
3619
|
+
# provisioning_status: "DISABLED",
|
|
3620
|
+
# status: "DISABLED",
|
|
3621
|
+
# },
|
|
3622
|
+
# provisioning_status: "ENABLING",
|
|
3623
|
+
# regional_scope: {
|
|
3624
|
+
# mode: "INCLUDE",
|
|
3625
|
+
# regions: [
|
|
3626
|
+
# "us-east-1",
|
|
3627
|
+
# "eu-west-1",
|
|
3628
|
+
# ],
|
|
3629
|
+
# },
|
|
3630
|
+
# status: "ENABLED",
|
|
3631
|
+
# },
|
|
3632
|
+
# }
|
|
3633
|
+
#
|
|
3634
|
+
# @example Example: Turn on collection without an ACM plan
|
|
3635
|
+
#
|
|
3636
|
+
# # The organization's first call omits InventoryTier. The message calls the ACM plan a tier.
|
|
3637
|
+
#
|
|
3638
|
+
# resp = client.put_inventory_configuration({
|
|
3639
|
+
# account_scope: {
|
|
3640
|
+
# mode: "ALL_ACCOUNTS",
|
|
3641
|
+
# },
|
|
3642
|
+
# regional_scope: {
|
|
3643
|
+
# mode: "ALL_REGIONS",
|
|
3644
|
+
# },
|
|
3645
|
+
# status: "ENABLED",
|
|
3646
|
+
# })
|
|
3647
|
+
#
|
|
3648
|
+
# @example Example: Change the ACM plan from the delegated administrator
|
|
3649
|
+
#
|
|
3650
|
+
# # The organization is on the Essentials plan, and the delegated administrator asks for Pro. Only the management account
|
|
3651
|
+
# # can change the plan. The message calls the ACM plan a tier.
|
|
3652
|
+
#
|
|
3653
|
+
# resp = client.put_inventory_configuration({
|
|
3654
|
+
# account_scope: {
|
|
3655
|
+
# mode: "ALL_ACCOUNTS",
|
|
3656
|
+
# },
|
|
3657
|
+
# inventory_tier: "PRO",
|
|
3658
|
+
# regional_scope: {
|
|
3659
|
+
# mode: "ALL_REGIONS",
|
|
3660
|
+
# },
|
|
3661
|
+
# status: "ENABLED",
|
|
3662
|
+
# })
|
|
3663
|
+
#
|
|
3664
|
+
# @example Example: Turn collection back on before the ACM plan ends
|
|
3665
|
+
#
|
|
3666
|
+
# # The Pro plan is scheduled to end on December 1, 2026, and the call asks for Pro again before then. The message calls the
|
|
3667
|
+
# # ACM plan a tier.
|
|
3668
|
+
#
|
|
3669
|
+
# resp = client.put_inventory_configuration({
|
|
3670
|
+
# account_scope: {
|
|
3671
|
+
# mode: "ALL_ACCOUNTS",
|
|
3672
|
+
# },
|
|
3673
|
+
# inventory_tier: "PRO",
|
|
3674
|
+
# regional_scope: {
|
|
3675
|
+
# mode: "ALL_REGIONS",
|
|
3676
|
+
# },
|
|
3677
|
+
# status: "ENABLED",
|
|
3678
|
+
# })
|
|
3679
|
+
#
|
|
3680
|
+
# @example Request syntax with placeholder values
|
|
3681
|
+
#
|
|
3682
|
+
# resp = client.put_inventory_configuration({
|
|
3683
|
+
# regional_scope: { # required
|
|
3684
|
+
# mode: "ALL_REGIONS", # required, accepts ALL_REGIONS, INCLUDE, EXCLUDE
|
|
3685
|
+
# regions: ["Region"],
|
|
3686
|
+
# },
|
|
3687
|
+
# account_scope: { # required
|
|
3688
|
+
# mode: "ALL_ACCOUNTS", # required, accepts ALL_ACCOUNTS, INCLUDE, EXCLUDE
|
|
3689
|
+
# organizational_unit_ids: ["OrganizationalUnitId"],
|
|
3690
|
+
# account_ids: ["AccountId"],
|
|
3691
|
+
# },
|
|
3692
|
+
# data_retention_days: 1,
|
|
3693
|
+
# status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
3694
|
+
# lifecycle_management: {
|
|
3695
|
+
# status: "ENABLED", # required, accepts ENABLED, DISABLED
|
|
3696
|
+
# },
|
|
3697
|
+
# expiry_notification: {
|
|
3698
|
+
# enabled: false,
|
|
3699
|
+
# channel: "SNS", # accepts SNS
|
|
3700
|
+
# topic_arn: "InventoryNotificationTopicArn",
|
|
3701
|
+
# lead_time_days: 1,
|
|
3702
|
+
# frequency: "ONCE", # accepts ONCE, DAILY, WEEKLY
|
|
3703
|
+
# },
|
|
3704
|
+
# inventory_tier: "ESSENTIALS", # accepts ESSENTIALS, PRO
|
|
3705
|
+
# })
|
|
3706
|
+
#
|
|
3707
|
+
# @example Response structure
|
|
3708
|
+
#
|
|
3709
|
+
# resp.configuration.regional_scope.mode #=> String, one of "ALL_REGIONS", "INCLUDE", "EXCLUDE"
|
|
3710
|
+
# resp.configuration.regional_scope.regions #=> Array
|
|
3711
|
+
# resp.configuration.regional_scope.regions[0] #=> String
|
|
3712
|
+
# resp.configuration.account_scope.mode #=> String, one of "ALL_ACCOUNTS", "INCLUDE", "EXCLUDE"
|
|
3713
|
+
# resp.configuration.account_scope.organizational_unit_ids #=> Array
|
|
3714
|
+
# resp.configuration.account_scope.organizational_unit_ids[0] #=> String
|
|
3715
|
+
# resp.configuration.account_scope.account_ids #=> Array
|
|
3716
|
+
# resp.configuration.account_scope.account_ids[0] #=> String
|
|
3717
|
+
# resp.configuration.data_retention_days #=> Integer
|
|
3718
|
+
# resp.configuration.status #=> String, one of "ENABLED", "DISABLED"
|
|
3719
|
+
# resp.configuration.provisioning_status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "FAILED"
|
|
3720
|
+
# resp.configuration.provisioning_status_reason.code #=> String, one of "TRUSTED_ACCESS_DISABLED", "INTERNAL_FAILURE"
|
|
3721
|
+
# resp.configuration.provisioning_status_reason.message #=> String
|
|
3722
|
+
# resp.configuration.home_region #=> String
|
|
3723
|
+
# resp.configuration.lifecycle_management.status #=> String, one of "ENABLED", "DISABLED"
|
|
3724
|
+
# resp.configuration.lifecycle_management.provisioning_status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED", "FAILED"
|
|
3725
|
+
# resp.configuration.lifecycle_management.provisioning_status_reason.code #=> String, one of "TRUSTED_ACCESS_DISABLED", "INTERNAL_FAILURE"
|
|
3726
|
+
# resp.configuration.lifecycle_management.provisioning_status_reason.message #=> String
|
|
3727
|
+
# resp.configuration.expiry_notification.enabled #=> Boolean
|
|
3728
|
+
# resp.configuration.expiry_notification.channel #=> String, one of "SNS"
|
|
3729
|
+
# resp.configuration.expiry_notification.topic_arn #=> String
|
|
3730
|
+
# resp.configuration.expiry_notification.lead_time_days #=> Integer
|
|
3731
|
+
# resp.configuration.expiry_notification.frequency #=> String, one of "ONCE", "DAILY", "WEEKLY"
|
|
3732
|
+
# resp.configuration.last_delivery_status.status #=> String, one of "PENDING_VERIFICATION", "VERIFIED", "VERIFICATION_FAILED", "DELIVERED", "DELIVERY_FAILED"
|
|
3733
|
+
# resp.configuration.last_delivery_status.updated_at #=> Time
|
|
3734
|
+
# resp.configuration.last_delivery_status.message #=> String
|
|
3735
|
+
# resp.configuration.inventory_tier_configuration.tier #=> String, one of "ESSENTIALS", "PRO"
|
|
3736
|
+
# resp.configuration.inventory_tier_configuration.status #=> String, one of "PENDING", "ACTIVE"
|
|
3737
|
+
# resp.configuration.inventory_tier_configuration.scheduled_change.tier #=> String, one of "ESSENTIALS", "PRO"
|
|
3738
|
+
# resp.configuration.inventory_tier_configuration.scheduled_change.effective_at #=> Time
|
|
3739
|
+
#
|
|
3740
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutInventoryConfiguration AWS API Documentation
|
|
3741
|
+
#
|
|
3742
|
+
# @overload put_inventory_configuration(params = {})
|
|
3743
|
+
# @param [Hash] params ({})
|
|
3744
|
+
def put_inventory_configuration(params = {}, options = {})
|
|
3745
|
+
req = build_request(:put_inventory_configuration, params)
|
|
3746
|
+
req.send_request(options)
|
|
3747
|
+
end
|
|
3748
|
+
|
|
2007
3749
|
# Remove one or more tags from an ACM certificate. A tag consists of a
|
|
2008
3750
|
# key-value pair. If you do not specify the value portion of the tag
|
|
2009
3751
|
# when calling this function, the tag will be removed regardless of
|
|
@@ -2098,6 +3840,104 @@ module Aws::ACM
|
|
|
2098
3840
|
req.send_request(options)
|
|
2099
3841
|
end
|
|
2100
3842
|
|
|
3843
|
+
# Renews an AWS Certificate Manager (ACM) certificate in a member
|
|
3844
|
+
# account of the caller's organization. ACM applies the rules of its
|
|
3845
|
+
# RenewCertificate operation, including which certificates it can renew.
|
|
3846
|
+
# For details, see RenewCertificate in the AWS Certificate Manager API
|
|
3847
|
+
# Reference.
|
|
3848
|
+
#
|
|
3849
|
+
# The caller must be the organization's management account or its
|
|
3850
|
+
# delegated administrator. The operation acts in the member account and
|
|
3851
|
+
# Region that the certificate ARN names. It returns
|
|
3852
|
+
# AccessDeniedException in these cases, and, except where noted, the
|
|
3853
|
+
# message names the unmet condition:
|
|
3854
|
+
#
|
|
3855
|
+
# * The caller's account is not in an organization, or the organization
|
|
3856
|
+
# is not active in AWS Certificate Manager.
|
|
3857
|
+
# * The caller is neither the management account nor the delegated
|
|
3858
|
+
# administrator.
|
|
3859
|
+
# * The certificate is in the caller's own account. Call the ACM
|
|
3860
|
+
# operation in that account instead.
|
|
3861
|
+
# * The organization has no certificate inventory configuration.
|
|
3862
|
+
# * Certificate actions for organizations are turned off. Certificate
|
|
3863
|
+
# actions are the operations that act on certificates and certificate
|
|
3864
|
+
# authorities in member accounts. Turn them on with
|
|
3865
|
+
# LifecycleManagement in PutInventoryConfiguration.
|
|
3866
|
+
# * The certificate's Region is outside the RegionalScope of the
|
|
3867
|
+
# configuration.
|
|
3868
|
+
# * The certificate's account is not an active member of the
|
|
3869
|
+
# organization, or is outside the AccountScope of the configuration.
|
|
3870
|
+
# * The Regions enabled for the certificate's account are not recorded
|
|
3871
|
+
# yet.
|
|
3872
|
+
# * AWS Certificate Manager is not authorized to act in the
|
|
3873
|
+
# certificate's account, because the account is not in the
|
|
3874
|
+
# organization or access setup there has not finished.
|
|
3875
|
+
#
|
|
3876
|
+
# If member operations are not available in the Region you call, the
|
|
3877
|
+
# operation returns AccessDeniedException with the message Unauthorized,
|
|
3878
|
+
# before any of the checks above. An ARN that is malformed, does not
|
|
3879
|
+
# name an ACM certificate, is in another partition, or names an unknown
|
|
3880
|
+
# Region also returns AccessDeniedException with the message
|
|
3881
|
+
# Unauthorized. A call outside the organization's home Region returns
|
|
3882
|
+
# ResourceNotFoundException, and the message names the home Region. A
|
|
3883
|
+
# certificate ARN whose Region is not enabled for its account, or where
|
|
3884
|
+
# ACM is not available, returns ValidationException. A certificate ARN
|
|
3885
|
+
# that is too long for the operation to act on, even within the length
|
|
3886
|
+
# limit of CertificateArn, also returns ValidationException.
|
|
3887
|
+
#
|
|
3888
|
+
# Errors that ACM returns in the member account are returned as these
|
|
3889
|
+
# errors:
|
|
3890
|
+
#
|
|
3891
|
+
# * ResourceNotFoundException: ACM did not find the certificate.
|
|
3892
|
+
# * ConflictException: ACM reports a conflict, such as a certificate
|
|
3893
|
+
# state that does not allow the change.
|
|
3894
|
+
# * ValidationException: ACM rejects the request, or reports that a
|
|
3895
|
+
# quota is reached.
|
|
3896
|
+
# * ThrottlingException: ACM throttles the call.
|
|
3897
|
+
#
|
|
3898
|
+
# Any other error returns InternalServerException.
|
|
3899
|
+
#
|
|
3900
|
+
# @option params [required, String] :certificate_arn
|
|
3901
|
+
# The ARN of the certificate to renew.
|
|
3902
|
+
#
|
|
3903
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
3904
|
+
#
|
|
3905
|
+
#
|
|
3906
|
+
# @example Example: Renew a certificate in a member account
|
|
3907
|
+
#
|
|
3908
|
+
# # The delegated administrator renews a certificate that account 444455556666 holds in us-west-2.
|
|
3909
|
+
#
|
|
3910
|
+
# resp = client.renew_member_certificate({
|
|
3911
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
3912
|
+
# })
|
|
3913
|
+
#
|
|
3914
|
+
# resp.to_h outputs the following:
|
|
3915
|
+
# {
|
|
3916
|
+
# }
|
|
3917
|
+
#
|
|
3918
|
+
# @example Example: Renew a certificate that does not exist
|
|
3919
|
+
#
|
|
3920
|
+
# # ACM in the member account has no certificate with this ARN.
|
|
3921
|
+
#
|
|
3922
|
+
# resp = client.renew_member_certificate({
|
|
3923
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
3924
|
+
# })
|
|
3925
|
+
#
|
|
3926
|
+
# @example Request syntax with placeholder values
|
|
3927
|
+
#
|
|
3928
|
+
# resp = client.renew_member_certificate({
|
|
3929
|
+
# certificate_arn: "MemberCertificateArn", # required
|
|
3930
|
+
# })
|
|
3931
|
+
#
|
|
3932
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewMemberCertificate AWS API Documentation
|
|
3933
|
+
#
|
|
3934
|
+
# @overload renew_member_certificate(params = {})
|
|
3935
|
+
# @param [Hash] params ({})
|
|
3936
|
+
def renew_member_certificate(params = {}, options = {})
|
|
3937
|
+
req = build_request(:renew_member_certificate, params)
|
|
3938
|
+
req.send_request(options)
|
|
3939
|
+
end
|
|
3940
|
+
|
|
2101
3941
|
# Requests an ACM certificate for use with other Amazon Web Services
|
|
2102
3942
|
# services. To request an ACM certificate, you must specify a fully
|
|
2103
3943
|
# qualified domain name (FQDN) in the `DomainName` parameter. You can
|
|
@@ -2441,6 +4281,59 @@ module Aws::ACM
|
|
|
2441
4281
|
req.send_request(options)
|
|
2442
4282
|
end
|
|
2443
4283
|
|
|
4284
|
+
# Restores a deleted private certificate authority (CA) in a member
|
|
4285
|
+
# account of the caller's organization. AWS Private Certificate
|
|
4286
|
+
# Authority (AWS Private CA) applies the rules of its
|
|
4287
|
+
# RestoreCertificateAuthority operation, including which CAs can be
|
|
4288
|
+
# restored and until when. For details, see RestoreCertificateAuthority
|
|
4289
|
+
# in the AWS Private CA API Reference.
|
|
4290
|
+
#
|
|
4291
|
+
# The caller must be the organization's management account or its
|
|
4292
|
+
# delegated administrator, Certificate actions for organizations must be
|
|
4293
|
+
# on, and the call must be made in the organization's home Region. For
|
|
4294
|
+
# every check and error, see UpdateMemberCertificateAuthority.
|
|
4295
|
+
#
|
|
4296
|
+
# @option params [required, String] :certificate_authority_arn
|
|
4297
|
+
# The ARN of the certificate authority to restore.
|
|
4298
|
+
#
|
|
4299
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
4300
|
+
#
|
|
4301
|
+
#
|
|
4302
|
+
# @example Example: Restore a deleted certificate authority in a member account
|
|
4303
|
+
#
|
|
4304
|
+
# # The certificate authority in account 444455556666 was deleted and is still in its permanent deletion period.
|
|
4305
|
+
#
|
|
4306
|
+
# resp = client.restore_member_certificate_authority({
|
|
4307
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
4308
|
+
# })
|
|
4309
|
+
#
|
|
4310
|
+
# resp.to_h outputs the following:
|
|
4311
|
+
# {
|
|
4312
|
+
# }
|
|
4313
|
+
#
|
|
4314
|
+
# @example Example: Restore a certificate authority that is not deleted
|
|
4315
|
+
#
|
|
4316
|
+
# # AWS Private CA rejects the request because the certificate authority is not deleted.
|
|
4317
|
+
#
|
|
4318
|
+
# resp = client.restore_member_certificate_authority({
|
|
4319
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
4320
|
+
# })
|
|
4321
|
+
#
|
|
4322
|
+
# @example Request syntax with placeholder values
|
|
4323
|
+
#
|
|
4324
|
+
# resp = client.restore_member_certificate_authority({
|
|
4325
|
+
# certificate_authority_arn: "MemberCertificateAuthorityArn", # required
|
|
4326
|
+
# })
|
|
4327
|
+
#
|
|
4328
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RestoreMemberCertificateAuthority AWS API Documentation
|
|
4329
|
+
#
|
|
4330
|
+
# @overload restore_member_certificate_authority(params = {})
|
|
4331
|
+
# @param [Hash] params ({})
|
|
4332
|
+
def restore_member_certificate_authority(params = {}, options = {})
|
|
4333
|
+
req = build_request(:restore_member_certificate_authority, params)
|
|
4334
|
+
req.send_request(options)
|
|
4335
|
+
end
|
|
4336
|
+
|
|
2444
4337
|
# Revokes an ACME account, preventing it from requesting or revoking
|
|
2445
4338
|
# certificates. This operation is irreversible.
|
|
2446
4339
|
#
|
|
@@ -2533,6 +4426,136 @@ module Aws::ACM
|
|
|
2533
4426
|
req.send_request(options)
|
|
2534
4427
|
end
|
|
2535
4428
|
|
|
4429
|
+
# Revokes an AWS Certificate Manager (ACM) certificate in a member
|
|
4430
|
+
# account of the caller's organization, and returns the ARN of the
|
|
4431
|
+
# revoked certificate. ACM applies the rules of its RevokeCertificate
|
|
4432
|
+
# operation, including which certificates it can revoke. For details,
|
|
4433
|
+
# see RevokeCertificate in the AWS Certificate Manager API Reference.
|
|
4434
|
+
#
|
|
4435
|
+
# The caller must be the organization's management account or its
|
|
4436
|
+
# delegated administrator, Certificate actions for organizations must be
|
|
4437
|
+
# on, and the call must be made in the organization's home Region. For
|
|
4438
|
+
# every check and error, see RenewMemberCertificate.
|
|
4439
|
+
#
|
|
4440
|
+
# @option params [required, String] :certificate_arn
|
|
4441
|
+
# The ARN of the certificate to revoke.
|
|
4442
|
+
#
|
|
4443
|
+
# @option params [required, String] :revocation_reason
|
|
4444
|
+
# Why the certificate is revoked.
|
|
4445
|
+
#
|
|
4446
|
+
# @return [Types::RevokeMemberCertificateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4447
|
+
#
|
|
4448
|
+
# * {Types::RevokeMemberCertificateOutput#certificate_arn #certificate_arn} => String
|
|
4449
|
+
#
|
|
4450
|
+
#
|
|
4451
|
+
# @example Example: Revoke a certificate in a member account
|
|
4452
|
+
#
|
|
4453
|
+
# # The certificate's private key was exposed.
|
|
4454
|
+
#
|
|
4455
|
+
# resp = client.revoke_member_certificate({
|
|
4456
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
4457
|
+
# revocation_reason: "KEY_COMPROMISE",
|
|
4458
|
+
# })
|
|
4459
|
+
#
|
|
4460
|
+
# resp.to_h outputs the following:
|
|
4461
|
+
# {
|
|
4462
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
4463
|
+
# }
|
|
4464
|
+
#
|
|
4465
|
+
# @example Example: Revoke a certificate that is already revoked
|
|
4466
|
+
#
|
|
4467
|
+
# # ACM in the member account has already revoked the certificate.
|
|
4468
|
+
#
|
|
4469
|
+
# resp = client.revoke_member_certificate({
|
|
4470
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
4471
|
+
# revocation_reason: "SUPERSEDED",
|
|
4472
|
+
# })
|
|
4473
|
+
#
|
|
4474
|
+
# @example Request syntax with placeholder values
|
|
4475
|
+
#
|
|
4476
|
+
# resp = client.revoke_member_certificate({
|
|
4477
|
+
# certificate_arn: "MemberCertificateArn", # required
|
|
4478
|
+
# revocation_reason: "UNSPECIFIED", # required, accepts UNSPECIFIED, KEY_COMPROMISE, CA_COMPROMISE, AFFILIATION_CHANGED, SUPERCEDED, SUPERSEDED, CESSATION_OF_OPERATION, CERTIFICATE_HOLD, REMOVE_FROM_CRL, PRIVILEGE_WITHDRAWN, A_A_COMPROMISE
|
|
4479
|
+
# })
|
|
4480
|
+
#
|
|
4481
|
+
# @example Response structure
|
|
4482
|
+
#
|
|
4483
|
+
# resp.certificate_arn #=> String
|
|
4484
|
+
#
|
|
4485
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RevokeMemberCertificate AWS API Documentation
|
|
4486
|
+
#
|
|
4487
|
+
# @overload revoke_member_certificate(params = {})
|
|
4488
|
+
# @param [Hash] params ({})
|
|
4489
|
+
def revoke_member_certificate(params = {}, options = {})
|
|
4490
|
+
req = build_request(:revoke_member_certificate, params)
|
|
4491
|
+
req.send_request(options)
|
|
4492
|
+
end
|
|
4493
|
+
|
|
4494
|
+
# Revokes a certificate that a private certificate authority (CA) in a
|
|
4495
|
+
# member account of the caller's organization issued. AWS Private
|
|
4496
|
+
# Certificate Authority (AWS Private CA) applies the rules of its
|
|
4497
|
+
# RevokeCertificate operation, including which certificates it can
|
|
4498
|
+
# revoke. For details, see RevokeCertificate in the AWS Private CA API
|
|
4499
|
+
# Reference.
|
|
4500
|
+
#
|
|
4501
|
+
# The caller must be the organization's management account or its
|
|
4502
|
+
# delegated administrator, Certificate actions for organizations must be
|
|
4503
|
+
# on, and the call must be made in the organization's home Region. For
|
|
4504
|
+
# every check and error, see UpdateMemberCertificateAuthority.
|
|
4505
|
+
#
|
|
4506
|
+
# @option params [required, String] :certificate_authority_arn
|
|
4507
|
+
# The ARN of the certificate authority that issued the certificate.
|
|
4508
|
+
#
|
|
4509
|
+
# @option params [required, String] :certificate_serial
|
|
4510
|
+
# The serial number of the certificate to revoke.
|
|
4511
|
+
#
|
|
4512
|
+
# @option params [required, String] :revocation_reason
|
|
4513
|
+
# Why the certificate is revoked.
|
|
4514
|
+
#
|
|
4515
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
4516
|
+
#
|
|
4517
|
+
#
|
|
4518
|
+
# @example Example: Revoke a certificate a member account's certificate authority issued
|
|
4519
|
+
#
|
|
4520
|
+
# # The certificate authority in account 444455556666 issued a certificate whose private key was exposed.
|
|
4521
|
+
#
|
|
4522
|
+
# resp = client.revoke_member_issued_certificate({
|
|
4523
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
4524
|
+
# certificate_serial: "79:3f:0d:5b:6a:04:12:5e:2c:9c:fb:52:37:35:98:fe",
|
|
4525
|
+
# revocation_reason: "KEY_COMPROMISE",
|
|
4526
|
+
# })
|
|
4527
|
+
#
|
|
4528
|
+
# resp.to_h outputs the following:
|
|
4529
|
+
# {
|
|
4530
|
+
# }
|
|
4531
|
+
#
|
|
4532
|
+
# @example Example: Revoke a certificate that is already revoked
|
|
4533
|
+
#
|
|
4534
|
+
# # AWS Private CA in the member account has already revoked the certificate.
|
|
4535
|
+
#
|
|
4536
|
+
# resp = client.revoke_member_issued_certificate({
|
|
4537
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
4538
|
+
# certificate_serial: "79:3f:0d:5b:6a:04:12:5e:2c:9c:fb:52:37:35:98:fe",
|
|
4539
|
+
# revocation_reason: "SUPERSEDED",
|
|
4540
|
+
# })
|
|
4541
|
+
#
|
|
4542
|
+
# @example Request syntax with placeholder values
|
|
4543
|
+
#
|
|
4544
|
+
# resp = client.revoke_member_issued_certificate({
|
|
4545
|
+
# certificate_authority_arn: "MemberCertificateAuthorityArn", # required
|
|
4546
|
+
# certificate_serial: "CertificateSerialNumber", # required
|
|
4547
|
+
# revocation_reason: "UNSPECIFIED", # required, accepts UNSPECIFIED, KEY_COMPROMISE, CERTIFICATE_AUTHORITY_COMPROMISE, AFFILIATION_CHANGED, SUPERSEDED, CESSATION_OF_OPERATION, PRIVILEGE_WITHDRAWN, A_A_COMPROMISE
|
|
4548
|
+
# })
|
|
4549
|
+
#
|
|
4550
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RevokeMemberIssuedCertificate AWS API Documentation
|
|
4551
|
+
#
|
|
4552
|
+
# @overload revoke_member_issued_certificate(params = {})
|
|
4553
|
+
# @param [Hash] params ({})
|
|
4554
|
+
def revoke_member_issued_certificate(params = {}, options = {})
|
|
4555
|
+
req = build_request(:revoke_member_issued_certificate, params)
|
|
4556
|
+
req.send_request(options)
|
|
4557
|
+
end
|
|
4558
|
+
|
|
2536
4559
|
# Retrieves a list of certificates matching search criteria. You can
|
|
2537
4560
|
# filter certificates by X.509 attributes and ACM specific properties
|
|
2538
4561
|
# like certificate status, type and renewal eligibility. This operation
|
|
@@ -2745,6 +4768,244 @@ module Aws::ACM
|
|
|
2745
4768
|
req.send_request(options)
|
|
2746
4769
|
end
|
|
2747
4770
|
|
|
4771
|
+
# Searches Certificate inventory for organizations and returns one page
|
|
4772
|
+
# of certificates, with the number that match. The certificate inventory
|
|
4773
|
+
# is the set of certificates observed in the organization's accounts.
|
|
4774
|
+
#
|
|
4775
|
+
# Filter combines typed predicates with And, Or, and Not. Omit it to
|
|
4776
|
+
# search every certificate. These limits apply:
|
|
4777
|
+
#
|
|
4778
|
+
# * An And or Or list holds 1 to 15 statements.
|
|
4779
|
+
# * Statements nest at most 3 levels deep. Filter itself is level 1, and
|
|
4780
|
+
# each statement inside an And, Or, or Not is one level deeper. For
|
|
4781
|
+
# example, an And of Not statements that each hold a predicate is 3
|
|
4782
|
+
# levels deep.
|
|
4783
|
+
# * A filter holds at most 20 predicates in total.
|
|
4784
|
+
#
|
|
4785
|
+
# Results are sorted by NotAfter, latest first, unless SortBy and
|
|
4786
|
+
# SortOrder say otherwise. To read the next page, repeat the request
|
|
4787
|
+
# with the NextToken from the previous response. Keep the same Filter,
|
|
4788
|
+
# SortBy, and SortOrder. A NextToken from a search with a different
|
|
4789
|
+
# Filter, SortBy, or SortOrder returns ValidationException.
|
|
4790
|
+
#
|
|
4791
|
+
# The caller must be the organization's management account or its
|
|
4792
|
+
# delegated administrator. If the caller's account is not in an
|
|
4793
|
+
# organization, or the caller is neither of these accounts, the
|
|
4794
|
+
# operation returns AccessDeniedException. The message names the unmet
|
|
4795
|
+
# condition. Before the first PutInventoryConfiguration call, the
|
|
4796
|
+
# operation returns ResourceNotFoundException. Until then, only the
|
|
4797
|
+
# management account can call it; a delegated administrator receives
|
|
4798
|
+
# AccessDeniedException.
|
|
4799
|
+
#
|
|
4800
|
+
# @option params [Types::InventoryFilterStatement] :filter
|
|
4801
|
+
# Which certificates to return. Omit it to return every certificate.
|
|
4802
|
+
#
|
|
4803
|
+
# @option params [String] :sort_by
|
|
4804
|
+
# The field to sort by. Defaults to NOT\_AFTER.
|
|
4805
|
+
#
|
|
4806
|
+
# @option params [String] :sort_order
|
|
4807
|
+
# The sort direction. Defaults to DESCENDING.
|
|
4808
|
+
#
|
|
4809
|
+
# @option params [Integer] :max_results
|
|
4810
|
+
# The maximum number of certificates to return, 1 to 100. Defaults to
|
|
4811
|
+
# 25.
|
|
4812
|
+
#
|
|
4813
|
+
# @option params [String] :next_token
|
|
4814
|
+
# The NextToken from the previous response, to read the next page.
|
|
4815
|
+
#
|
|
4816
|
+
# @return [Types::SearchInventoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
4817
|
+
#
|
|
4818
|
+
# * {Types::SearchInventoryOutput#certificates #certificates} => Array<Types::InventoryCertificate>
|
|
4819
|
+
# * {Types::SearchInventoryOutput#next_token #next_token} => String
|
|
4820
|
+
# * {Types::SearchInventoryOutput#total_count #total_count} => Integer
|
|
4821
|
+
# * {Types::SearchInventoryOutput#total_count_relation #total_count_relation} => String
|
|
4822
|
+
#
|
|
4823
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
4824
|
+
#
|
|
4825
|
+
#
|
|
4826
|
+
# @example Example: Find certificates for a domain that expire soon
|
|
4827
|
+
#
|
|
4828
|
+
# # Certificates for example.com and its subdomains that expire before December 1, 2026. Results are soonest first, one per
|
|
4829
|
+
# # page.
|
|
4830
|
+
#
|
|
4831
|
+
# resp = client.search_inventory({
|
|
4832
|
+
# filter: {
|
|
4833
|
+
# and: [
|
|
4834
|
+
# {
|
|
4835
|
+
# filter: {
|
|
4836
|
+
# domain: {
|
|
4837
|
+
# match: "IN_DOMAIN",
|
|
4838
|
+
# value: "example.com",
|
|
4839
|
+
# },
|
|
4840
|
+
# },
|
|
4841
|
+
# },
|
|
4842
|
+
# {
|
|
4843
|
+
# filter: {
|
|
4844
|
+
# not_after: {
|
|
4845
|
+
# before: Time.parse(1796083200),
|
|
4846
|
+
# },
|
|
4847
|
+
# },
|
|
4848
|
+
# },
|
|
4849
|
+
# ],
|
|
4850
|
+
# },
|
|
4851
|
+
# max_results: 1,
|
|
4852
|
+
# sort_by: "NOT_AFTER",
|
|
4853
|
+
# sort_order: "ASCENDING",
|
|
4854
|
+
# })
|
|
4855
|
+
#
|
|
4856
|
+
# resp.to_h outputs the following:
|
|
4857
|
+
# {
|
|
4858
|
+
# certificates: [
|
|
4859
|
+
# {
|
|
4860
|
+
# finding_counts: {
|
|
4861
|
+
# critical: 0,
|
|
4862
|
+
# high: 1,
|
|
4863
|
+
# informational: 0,
|
|
4864
|
+
# low: 0,
|
|
4865
|
+
# medium: 0,
|
|
4866
|
+
# },
|
|
4867
|
+
# highest_finding_severity: "HIGH",
|
|
4868
|
+
# identifier: "3f8a2c1d9b7e6f504a3c2b1d0e9f8a7b6c5d4e3f2a1b0c9d8e7f6a5b4c3d2e91",
|
|
4869
|
+
# identity: {
|
|
4870
|
+
# has_additional_identifiers: false,
|
|
4871
|
+
# identifiers: [
|
|
4872
|
+
# "www.example.com",
|
|
4873
|
+
# "example.com",
|
|
4874
|
+
# ],
|
|
4875
|
+
# subject: "CN=www.example.com",
|
|
4876
|
+
# },
|
|
4877
|
+
# material_type: "X509_CERTIFICATE",
|
|
4878
|
+
# related_resource_count: 1,
|
|
4879
|
+
# usage_count: 2,
|
|
4880
|
+
# validity: {
|
|
4881
|
+
# not_after: Time.parse(1795132799),
|
|
4882
|
+
# not_before: Time.parse(1763596800),
|
|
4883
|
+
# },
|
|
4884
|
+
# x509_details: {
|
|
4885
|
+
# issuance_type: "AMAZON_ISSUED",
|
|
4886
|
+
# issuer: "CN=Amazon RSA 2048 M03,O=Amazon,C=US",
|
|
4887
|
+
# key_algorithm: "RSA_2048",
|
|
4888
|
+
# key_size_bits: 2048,
|
|
4889
|
+
# not_after: Time.parse(1795132799),
|
|
4890
|
+
# not_before: Time.parse(1763596800),
|
|
4891
|
+
# serial_number: "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
|
|
4892
|
+
# signature_algorithm: "SHA256WITHRSA",
|
|
4893
|
+
# subject_alternative_names: [
|
|
4894
|
+
# "www.example.com",
|
|
4895
|
+
# "example.com",
|
|
4896
|
+
# ],
|
|
4897
|
+
# },
|
|
4898
|
+
# },
|
|
4899
|
+
# ],
|
|
4900
|
+
# next_token: "AAEXAMPLENextTokenSearch111111",
|
|
4901
|
+
# total_count: 14,
|
|
4902
|
+
# total_count_relation: "EXACT",
|
|
4903
|
+
# }
|
|
4904
|
+
#
|
|
4905
|
+
# @example Example: Search before inventory is set up
|
|
4906
|
+
#
|
|
4907
|
+
# # The organization has never called PutInventoryConfiguration.
|
|
4908
|
+
#
|
|
4909
|
+
# resp = client.search_inventory({
|
|
4910
|
+
# })
|
|
4911
|
+
#
|
|
4912
|
+
# @example Request syntax with placeholder values
|
|
4913
|
+
#
|
|
4914
|
+
# resp = client.search_inventory({
|
|
4915
|
+
# filter: {
|
|
4916
|
+
# and: [
|
|
4917
|
+
# {
|
|
4918
|
+
# # recursive InventoryFilterStatement
|
|
4919
|
+
# },
|
|
4920
|
+
# ],
|
|
4921
|
+
# or: [
|
|
4922
|
+
# {
|
|
4923
|
+
# # recursive InventoryFilterStatement
|
|
4924
|
+
# },
|
|
4925
|
+
# ],
|
|
4926
|
+
# not: {
|
|
4927
|
+
# # recursive InventoryFilterStatement
|
|
4928
|
+
# },
|
|
4929
|
+
# filter: {
|
|
4930
|
+
# identifier: "ContentHashIdentifier",
|
|
4931
|
+
# material_type: "X509_CERTIFICATE", # accepts X509_CERTIFICATE
|
|
4932
|
+
# account_id: "InventoryAccountId",
|
|
4933
|
+
# region: "InventoryRegion",
|
|
4934
|
+
# issuance_type: "AMAZON_ISSUED", # accepts AMAZON_ISSUED, PRIVATE_CA_ISSUED, IMPORTED, EXTERNAL, PRIVATE_CA_DIRECT
|
|
4935
|
+
# key_algorithm: "RSA_1024", # accepts RSA_1024, RSA_2048, RSA_3072, RSA_4096, EC_prime256v1, EC_secp384r1, EC_secp521r1, ED25519, ED448, OTHER
|
|
4936
|
+
# usage_status: "IN_USE", # accepts IN_USE, NOT_IN_USE
|
|
4937
|
+
# issuer: "InventoryIssuerDn",
|
|
4938
|
+
# domain: {
|
|
4939
|
+
# value: "InventoryDomainName", # required
|
|
4940
|
+
# match: "EQUALS", # required, accepts EQUALS, IN_DOMAIN, CONTAINS
|
|
4941
|
+
# },
|
|
4942
|
+
# not_after: {
|
|
4943
|
+
# after: Time.now,
|
|
4944
|
+
# before: Time.now,
|
|
4945
|
+
# },
|
|
4946
|
+
# related_resource_type: "ACM_CERTIFICATE", # accepts ACM_CERTIFICATE, PCA_CERTIFICATE, PCA_CERTIFICATE_AUTHORITY
|
|
4947
|
+
# highest_finding_severity: "CRITICAL", # accepts CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, HEALTHY, NOT_APPLICABLE, NOT_EVALUATED
|
|
4948
|
+
# acm_certificate_arn: {
|
|
4949
|
+
# value: "MemberCertificateArn", # required
|
|
4950
|
+
# match: "CURRENT", # required, accepts CURRENT, ANY
|
|
4951
|
+
# },
|
|
4952
|
+
# pca_certificate_arn: "PrivateCaCertificateArn",
|
|
4953
|
+
# pca_certificate_authority_arn: {
|
|
4954
|
+
# value: "InventoryCertificateAuthorityArn", # required
|
|
4955
|
+
# relationship: "ISSUED_BY", # required, accepts ISSUED_BY, CA_CERTIFICATE
|
|
4956
|
+
# },
|
|
4957
|
+
# issuer_words: "InventoryIssuerDn",
|
|
4958
|
+
# signature_algorithm: "InventorySignatureAlgorithm",
|
|
4959
|
+
# },
|
|
4960
|
+
# },
|
|
4961
|
+
# sort_by: "NOT_AFTER", # accepts NOT_AFTER, NOT_BEFORE, USAGE_COUNT, SUBJECT, HIGHEST_FINDING_SEVERITY
|
|
4962
|
+
# sort_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
|
4963
|
+
# max_results: 1,
|
|
4964
|
+
# next_token: "SearchInventoryInputNextTokenString",
|
|
4965
|
+
# })
|
|
4966
|
+
#
|
|
4967
|
+
# @example Response structure
|
|
4968
|
+
#
|
|
4969
|
+
# resp.certificates #=> Array
|
|
4970
|
+
# resp.certificates[0].identifier #=> String
|
|
4971
|
+
# resp.certificates[0].material_type #=> String, one of "X509_CERTIFICATE"
|
|
4972
|
+
# resp.certificates[0].validity.not_before #=> Time
|
|
4973
|
+
# resp.certificates[0].validity.not_after #=> Time
|
|
4974
|
+
# resp.certificates[0].identity.subject #=> String
|
|
4975
|
+
# resp.certificates[0].identity.identifiers #=> Array
|
|
4976
|
+
# resp.certificates[0].identity.identifiers[0] #=> String
|
|
4977
|
+
# resp.certificates[0].identity.has_additional_identifiers #=> Boolean
|
|
4978
|
+
# resp.certificates[0].usage_count #=> Integer
|
|
4979
|
+
# resp.certificates[0].finding_counts.critical #=> Integer
|
|
4980
|
+
# resp.certificates[0].finding_counts.high #=> Integer
|
|
4981
|
+
# resp.certificates[0].finding_counts.medium #=> Integer
|
|
4982
|
+
# resp.certificates[0].finding_counts.low #=> Integer
|
|
4983
|
+
# resp.certificates[0].finding_counts.informational #=> Integer
|
|
4984
|
+
# resp.certificates[0].x509_details.issuer #=> String
|
|
4985
|
+
# resp.certificates[0].x509_details.serial_number #=> String
|
|
4986
|
+
# resp.certificates[0].x509_details.not_before #=> Time
|
|
4987
|
+
# resp.certificates[0].x509_details.not_after #=> Time
|
|
4988
|
+
# resp.certificates[0].x509_details.subject_alternative_names #=> Array
|
|
4989
|
+
# resp.certificates[0].x509_details.subject_alternative_names[0] #=> String
|
|
4990
|
+
# resp.certificates[0].x509_details.key_algorithm #=> String, one of "RSA_1024", "RSA_2048", "RSA_3072", "RSA_4096", "EC_prime256v1", "EC_secp384r1", "EC_secp521r1", "ED25519", "ED448", "OTHER"
|
|
4991
|
+
# resp.certificates[0].x509_details.issuance_type #=> String, one of "AMAZON_ISSUED", "PRIVATE_CA_ISSUED", "IMPORTED", "EXTERNAL", "PRIVATE_CA_DIRECT"
|
|
4992
|
+
# resp.certificates[0].x509_details.signature_algorithm #=> String
|
|
4993
|
+
# resp.certificates[0].x509_details.key_size_bits #=> Integer
|
|
4994
|
+
# resp.certificates[0].highest_finding_severity #=> String, one of "CRITICAL", "HIGH", "MEDIUM", "LOW", "INFORMATIONAL", "HEALTHY", "NOT_APPLICABLE", "NOT_EVALUATED"
|
|
4995
|
+
# resp.certificates[0].related_resource_count #=> Integer
|
|
4996
|
+
# resp.next_token #=> String
|
|
4997
|
+
# resp.total_count #=> Integer
|
|
4998
|
+
# resp.total_count_relation #=> String, one of "EXACT", "AT_LEAST"
|
|
4999
|
+
#
|
|
5000
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/SearchInventory AWS API Documentation
|
|
5001
|
+
#
|
|
5002
|
+
# @overload search_inventory(params = {})
|
|
5003
|
+
# @param [Hash] params ({})
|
|
5004
|
+
def search_inventory(params = {}, options = {})
|
|
5005
|
+
req = build_request(:search_inventory, params)
|
|
5006
|
+
req.send_request(options)
|
|
5007
|
+
end
|
|
5008
|
+
|
|
2748
5009
|
# Adds one or more tags to an ACM resource. Tags are labels that you can
|
|
2749
5010
|
# use to identify and organize your Amazon Web Services resources. Each
|
|
2750
5011
|
# tag consists of a `key` and an optional `value`.
|
|
@@ -2950,6 +5211,218 @@ module Aws::ACM
|
|
|
2950
5211
|
req.send_request(options)
|
|
2951
5212
|
end
|
|
2952
5213
|
|
|
5214
|
+
# Updates the status or the revocation configuration of a private
|
|
5215
|
+
# certificate authority (CA) in a member account of the caller's
|
|
5216
|
+
# organization. AWS Private Certificate Authority (AWS Private CA)
|
|
5217
|
+
# applies the rules of its UpdateCertificateAuthority operation,
|
|
5218
|
+
# including which status changes and revocation settings it accepts. For
|
|
5219
|
+
# details, see UpdateCertificateAuthority in the AWS Private CA API
|
|
5220
|
+
# Reference.
|
|
5221
|
+
#
|
|
5222
|
+
# A parameter you omit is not sent to AWS Private CA, so that setting is
|
|
5223
|
+
# unchanged. AWS Private CA writes CRLs to the Amazon S3 bucket named by
|
|
5224
|
+
# S3BucketName in its own CrlConfiguration, which you set with AWS
|
|
5225
|
+
# Private CA in the member account.
|
|
5226
|
+
#
|
|
5227
|
+
# The caller must be the organization's management account or its
|
|
5228
|
+
# delegated administrator. The operation acts in the member account and
|
|
5229
|
+
# Region that the certificate authority ARN names. It returns
|
|
5230
|
+
# AccessDeniedException in these cases, and, except where noted, the
|
|
5231
|
+
# message names the unmet condition:
|
|
5232
|
+
#
|
|
5233
|
+
# * The caller's account is not in an organization, or the organization
|
|
5234
|
+
# is not active in AWS Certificate Manager.
|
|
5235
|
+
# * The caller is neither the management account nor the delegated
|
|
5236
|
+
# administrator.
|
|
5237
|
+
# * The certificate authority is in the caller's own account. Call the
|
|
5238
|
+
# AWS Private CA operation in that account instead.
|
|
5239
|
+
# * The organization has no certificate inventory configuration.
|
|
5240
|
+
# * Certificate actions for organizations are turned off. Certificate
|
|
5241
|
+
# actions are the operations that act on certificates and certificate
|
|
5242
|
+
# authorities in member accounts. Turn them on with
|
|
5243
|
+
# LifecycleManagement in PutInventoryConfiguration.
|
|
5244
|
+
# * The certificate authority's Region is outside the RegionalScope of
|
|
5245
|
+
# the configuration.
|
|
5246
|
+
# * The certificate authority's account is not an active member of the
|
|
5247
|
+
# organization, or is outside the AccountScope of the configuration.
|
|
5248
|
+
# * The Regions enabled for the certificate authority's account are not
|
|
5249
|
+
# recorded yet.
|
|
5250
|
+
# * AWS Certificate Manager is not authorized to act in the certificate
|
|
5251
|
+
# authority's account, because the account is not in the organization
|
|
5252
|
+
# or access setup there has not finished.
|
|
5253
|
+
#
|
|
5254
|
+
# If member operations are not available in the Region you call, the
|
|
5255
|
+
# operation returns AccessDeniedException with the message Unauthorized,
|
|
5256
|
+
# before any of the checks above. An ARN that is malformed, does not
|
|
5257
|
+
# name an AWS Private CA certificate authority, is in another partition,
|
|
5258
|
+
# or names an unknown Region also returns AccessDeniedException with the
|
|
5259
|
+
# message Unauthorized. A call outside the organization's home Region
|
|
5260
|
+
# returns ResourceNotFoundException, and the message names the home
|
|
5261
|
+
# Region. A certificate authority ARN whose Region is not enabled for
|
|
5262
|
+
# its account, or where AWS Private CA is not available, returns
|
|
5263
|
+
# ValidationException. A certificate authority ARN that is too long for
|
|
5264
|
+
# the operation to act on, even within the length limit of
|
|
5265
|
+
# CertificateAuthorityArn, also returns ValidationException.
|
|
5266
|
+
#
|
|
5267
|
+
# Errors that AWS Private CA returns in the member account are returned
|
|
5268
|
+
# as these errors:
|
|
5269
|
+
#
|
|
5270
|
+
# * ResourceNotFoundException: AWS Private CA did not find the
|
|
5271
|
+
# certificate authority.
|
|
5272
|
+
# * ConflictException: AWS Private CA reports a conflict, such as a
|
|
5273
|
+
# certificate authority state that does not allow the change.
|
|
5274
|
+
# * ValidationException: AWS Private CA rejects the request, or reports
|
|
5275
|
+
# that a quota is reached.
|
|
5276
|
+
# * ThrottlingException: AWS Private CA throttles the call.
|
|
5277
|
+
#
|
|
5278
|
+
# Any other error returns InternalServerException.
|
|
5279
|
+
#
|
|
5280
|
+
# @option params [required, String] :certificate_authority_arn
|
|
5281
|
+
# The ARN of the certificate authority to update.
|
|
5282
|
+
#
|
|
5283
|
+
# @option params [String] :status
|
|
5284
|
+
# The status to set. If you omit it, the status is unchanged. AWS
|
|
5285
|
+
# Private Certificate Authority (AWS Private CA) decides which values it
|
|
5286
|
+
# accepts; see UpdateCertificateAuthority in the AWS Private CA API
|
|
5287
|
+
# Reference.
|
|
5288
|
+
#
|
|
5289
|
+
# @option params [Types::PrivateCaRevocationConfiguration] :revocation_configuration
|
|
5290
|
+
# The revocation configuration to set. If you omit it, the configuration
|
|
5291
|
+
# is unchanged.
|
|
5292
|
+
#
|
|
5293
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
5294
|
+
#
|
|
5295
|
+
#
|
|
5296
|
+
# @example Example: Disable a certificate authority in a member account
|
|
5297
|
+
#
|
|
5298
|
+
# # The delegated administrator stops the certificate authority in account 444455556666 from issuing certificates.
|
|
5299
|
+
#
|
|
5300
|
+
# resp = client.update_member_certificate_authority({
|
|
5301
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
5302
|
+
# status: "DISABLED",
|
|
5303
|
+
# })
|
|
5304
|
+
#
|
|
5305
|
+
# resp.to_h outputs the following:
|
|
5306
|
+
# {
|
|
5307
|
+
# }
|
|
5308
|
+
#
|
|
5309
|
+
# @example Example: Update a certificate authority that does not exist
|
|
5310
|
+
#
|
|
5311
|
+
# # AWS Private CA in the member account has no certificate authority with this ARN.
|
|
5312
|
+
#
|
|
5313
|
+
# resp = client.update_member_certificate_authority({
|
|
5314
|
+
# certificate_authority_arn: "arn:aws:acm-pca:us-west-2:444455556666:certificate-authority/12345678-1234-1234-1234-123456789012",
|
|
5315
|
+
# revocation_configuration: {
|
|
5316
|
+
# ocsp_configuration: {
|
|
5317
|
+
# enabled: true,
|
|
5318
|
+
# },
|
|
5319
|
+
# },
|
|
5320
|
+
# })
|
|
5321
|
+
#
|
|
5322
|
+
# @example Request syntax with placeholder values
|
|
5323
|
+
#
|
|
5324
|
+
# resp = client.update_member_certificate_authority({
|
|
5325
|
+
# certificate_authority_arn: "MemberCertificateAuthorityArn", # required
|
|
5326
|
+
# status: "CREATING", # accepts CREATING, PENDING_CERTIFICATE, ACTIVE, DELETED, DISABLED, EXPIRED, FAILED
|
|
5327
|
+
# revocation_configuration: {
|
|
5328
|
+
# crl_configuration: {
|
|
5329
|
+
# enabled: false, # required
|
|
5330
|
+
# expiration_in_days: 1,
|
|
5331
|
+
# custom_cname: "PrivateCaCrlConfigurationCustomCnameString",
|
|
5332
|
+
# s3_object_acl: "PUBLIC_READ", # accepts PUBLIC_READ, BUCKET_OWNER_FULL_CONTROL
|
|
5333
|
+
# crl_distribution_point_extension_configuration: {
|
|
5334
|
+
# omit_extension: false, # required
|
|
5335
|
+
# },
|
|
5336
|
+
# crl_type: "COMPLETE", # accepts COMPLETE, PARTITIONED
|
|
5337
|
+
# custom_path: "PrivateCaCrlConfigurationCustomPathString",
|
|
5338
|
+
# },
|
|
5339
|
+
# ocsp_configuration: {
|
|
5340
|
+
# enabled: false, # required
|
|
5341
|
+
# ocsp_custom_cname: "PrivateCaOcspConfigurationOcspCustomCnameString",
|
|
5342
|
+
# },
|
|
5343
|
+
# },
|
|
5344
|
+
# })
|
|
5345
|
+
#
|
|
5346
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateMemberCertificateAuthority AWS API Documentation
|
|
5347
|
+
#
|
|
5348
|
+
# @overload update_member_certificate_authority(params = {})
|
|
5349
|
+
# @param [Hash] params ({})
|
|
5350
|
+
def update_member_certificate_authority(params = {}, options = {})
|
|
5351
|
+
req = build_request(:update_member_certificate_authority, params)
|
|
5352
|
+
req.send_request(options)
|
|
5353
|
+
end
|
|
5354
|
+
|
|
5355
|
+
# Updates the options of an AWS Certificate Manager (ACM) certificate in
|
|
5356
|
+
# a member account of the caller's organization. ACM applies the rules
|
|
5357
|
+
# of its UpdateCertificateOptions operation, including which options can
|
|
5358
|
+
# change after a certificate is created. For details, see
|
|
5359
|
+
# UpdateCertificateOptions in the AWS Certificate Manager API Reference.
|
|
5360
|
+
#
|
|
5361
|
+
# An option you omit is not sent to ACM, so it is unchanged. A request
|
|
5362
|
+
# that sets neither Export nor ValidationMethod returns
|
|
5363
|
+
# ValidationException.
|
|
5364
|
+
#
|
|
5365
|
+
# The caller must be the organization's management account or its
|
|
5366
|
+
# delegated administrator, Certificate actions for organizations must be
|
|
5367
|
+
# on, and the call must be made in the organization's home Region. For
|
|
5368
|
+
# every check and error, see RenewMemberCertificate.
|
|
5369
|
+
#
|
|
5370
|
+
# @option params [required, String] :certificate_arn
|
|
5371
|
+
# The ARN of the certificate to update.
|
|
5372
|
+
#
|
|
5373
|
+
# @option params [required, Types::AcmCertificateOptions] :options
|
|
5374
|
+
# The options to set. Set at least one. An option you omit is not sent
|
|
5375
|
+
# to ACM, so it is unchanged.
|
|
5376
|
+
#
|
|
5377
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
5378
|
+
#
|
|
5379
|
+
#
|
|
5380
|
+
# @example Example: Move a certificate in a member account to DNS validation
|
|
5381
|
+
#
|
|
5382
|
+
# # The certificate in account 444455556666 uses email validation, and the delegated administrator moves it to DNS
|
|
5383
|
+
# # validation.
|
|
5384
|
+
#
|
|
5385
|
+
# resp = client.update_member_certificate_options({
|
|
5386
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
5387
|
+
# options: {
|
|
5388
|
+
# validation_method: "DNS",
|
|
5389
|
+
# },
|
|
5390
|
+
# })
|
|
5391
|
+
#
|
|
5392
|
+
# resp.to_h outputs the following:
|
|
5393
|
+
# {
|
|
5394
|
+
# }
|
|
5395
|
+
#
|
|
5396
|
+
# @example Example: Update the options of a certificate that does not exist
|
|
5397
|
+
#
|
|
5398
|
+
# # ACM in the member account has no certificate with this ARN.
|
|
5399
|
+
#
|
|
5400
|
+
# resp = client.update_member_certificate_options({
|
|
5401
|
+
# certificate_arn: "arn:aws:acm:us-west-2:444455556666:certificate/1a2b3c4d-5678-90ab-cdef-EXAMPLE22222",
|
|
5402
|
+
# options: {
|
|
5403
|
+
# validation_method: "DNS",
|
|
5404
|
+
# },
|
|
5405
|
+
# })
|
|
5406
|
+
#
|
|
5407
|
+
# @example Request syntax with placeholder values
|
|
5408
|
+
#
|
|
5409
|
+
# resp = client.update_member_certificate_options({
|
|
5410
|
+
# certificate_arn: "MemberCertificateArn", # required
|
|
5411
|
+
# options: { # required
|
|
5412
|
+
# export: "ENABLED", # accepts ENABLED, DISABLED
|
|
5413
|
+
# validation_method: "EMAIL", # accepts EMAIL, DNS, HTTP
|
|
5414
|
+
# },
|
|
5415
|
+
# })
|
|
5416
|
+
#
|
|
5417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateMemberCertificateOptions AWS API Documentation
|
|
5418
|
+
#
|
|
5419
|
+
# @overload update_member_certificate_options(params = {})
|
|
5420
|
+
# @param [Hash] params ({})
|
|
5421
|
+
def update_member_certificate_options(params = {}, options = {})
|
|
5422
|
+
req = build_request(:update_member_certificate_options, params)
|
|
5423
|
+
req.send_request(options)
|
|
5424
|
+
end
|
|
5425
|
+
|
|
2953
5426
|
# @!endgroup
|
|
2954
5427
|
|
|
2955
5428
|
# @param params ({})
|
|
@@ -2968,7 +5441,7 @@ module Aws::ACM
|
|
|
2968
5441
|
tracer: tracer
|
|
2969
5442
|
)
|
|
2970
5443
|
context[:gem_name] = 'aws-sdk-acm'
|
|
2971
|
-
context[:gem_version] = '1.
|
|
5444
|
+
context[:gem_version] = '1.125.0'
|
|
2972
5445
|
Seahorse::Client::Request.new(handlers, context)
|
|
2973
5446
|
end
|
|
2974
5447
|
|