aws-sdk-iot 1.51.1 → 1.56.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c37785afa8cdec87b6ced402d464030a3fc6a533898998525d7f33dc417a8a6
4
- data.tar.gz: 6e7392deec168ba7f7266f91223263ebb569f4e55c2067269376be6789cb5a84
3
+ metadata.gz: ea23e0b2d0c4275d7675c069d3795f5037df689e3fe7945d3539c2bd42e96fca
4
+ data.tar.gz: e16795d184b07396ebb1ed8b5a4253051265624926ce0da1e18b8600c8348bdf
5
5
  SHA512:
6
- metadata.gz: c179c29f5fafce7e3a7d078bdaa65a6845fab8edfbc49672ba41ca0b8fbd186308d24c26d9d9dc5f10ba560cf9be02426407f93350e6c534c0774d9f99aef34b
7
- data.tar.gz: 0c2953889b9fc0e4a2b0529e4f4e05d4aa10c902c821acb7fb7b0b16194e8e4a5b546ad5c689175638d2e3111dc0f98b8c6041b9794eb191fee6b8dc062c50ab
6
+ metadata.gz: efff2774b86478a5ed8b9937ecf6b5623a2eb9885817548922842ea518228c4e20bf86c3b2647c01918fbb7604cae758f361a8261e3f3226abc8cb8bc4ffb2b7
7
+ data.tar.gz: 8a911940d59ae32675bfab9798259c462a64f0f1d76e0339f4e6b2612acdacfcf8c4947eaf00066c705448ea0531ec8d31fe7a8a06fd27ec665a6cfcf2e174a7
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-iot/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::IoT
47
49
 
48
- GEM_VERSION = '1.51.1'
50
+ GEM_VERSION = '1.56.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -83,13 +85,28 @@ module Aws::IoT
83
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
84
86
  # credentials.
85
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
86
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
87
103
  # from an EC2 IMDS on an EC2 instance.
88
104
  #
89
- # * `Aws::SharedCredentials` - Used for loading credentials from a
90
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
91
107
  #
92
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
93
110
  #
94
111
  # When `:credentials` are not configured directly, the following
95
112
  # locations will be searched for credentials:
@@ -99,10 +116,10 @@ module Aws::IoT
99
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
100
117
  # * `~/.aws/credentials`
101
118
  # * `~/.aws/config`
102
- # * EC2 IMDS instance profile - When used by default, the timeouts are
103
- # very aggressive. Construct and pass an instance of
104
- # `Aws::InstanceProfileCredentails` to enable retries and extended
105
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
106
123
  #
107
124
  # @option options [required, String] :region
108
125
  # The AWS region to connect to. The configured `:region` is
@@ -468,7 +485,7 @@ module Aws::IoT
468
485
  #
469
486
  #
470
487
  #
471
- # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/iot-security-identity.html
488
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/security-iam.html
472
489
  #
473
490
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
474
491
  #
@@ -783,6 +800,64 @@ module Aws::IoT
783
800
  req.send_request(options)
784
801
  end
785
802
 
803
+ # Creates a Device Defender audit suppression.
804
+ #
805
+ # @option params [required, String] :check_name
806
+ # An audit check name. Checks must be enabled for your account. (Use
807
+ # `DescribeAccountAuditConfiguration` to see the list of all checks,
808
+ # including those that are enabled or use
809
+ # `UpdateAccountAuditConfiguration` to select which checks are enabled.)
810
+ #
811
+ # @option params [required, Types::ResourceIdentifier] :resource_identifier
812
+ # Information that identifies the noncompliant resource.
813
+ #
814
+ # @option params [Time,DateTime,Date,Integer,String] :expiration_date
815
+ # The epoch timestamp in seconds at which this suppression expires.
816
+ #
817
+ # @option params [Boolean] :suppress_indefinitely
818
+ # Indicates whether a suppression should exist indefinitely or not.
819
+ #
820
+ # @option params [String] :description
821
+ # The description of the audit suppression.
822
+ #
823
+ # @option params [required, String] :client_request_token
824
+ # The epoch timestamp in seconds at which this suppression expires.
825
+ #
826
+ # **A suitable default value is auto-generated.** You should normally
827
+ # not need to pass this option.**
828
+ #
829
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
830
+ #
831
+ # @example Request syntax with placeholder values
832
+ #
833
+ # resp = client.create_audit_suppression({
834
+ # check_name: "AuditCheckName", # required
835
+ # resource_identifier: { # required
836
+ # device_certificate_id: "CertificateId",
837
+ # ca_certificate_id: "CertificateId",
838
+ # cognito_identity_pool_id: "CognitoIdentityPoolId",
839
+ # client_id: "ClientId",
840
+ # policy_version_identifier: {
841
+ # policy_name: "PolicyName",
842
+ # policy_version_id: "PolicyVersionId",
843
+ # },
844
+ # account: "AwsAccountId",
845
+ # iam_role_arn: "RoleArn",
846
+ # role_alias_arn: "RoleAliasArn",
847
+ # },
848
+ # expiration_date: Time.now,
849
+ # suppress_indefinitely: false,
850
+ # description: "AuditDescription",
851
+ # client_request_token: "ClientRequestToken", # required
852
+ # })
853
+ #
854
+ # @overload create_audit_suppression(params = {})
855
+ # @param [Hash] params ({})
856
+ def create_audit_suppression(params = {}, options = {})
857
+ req = build_request(:create_audit_suppression, params)
858
+ req.send_request(options)
859
+ end
860
+
786
861
  # Creates an authorizer.
787
862
  #
788
863
  # @option params [required, String] :authorizer_name
@@ -1380,8 +1455,14 @@ module Aws::IoT
1380
1455
  end
1381
1456
 
1382
1457
  # Defines an action that can be applied to audit findings by using
1383
- # StartAuditMitigationActionsTask. Each mitigation action can apply only
1384
- # one type of change.
1458
+ # StartAuditMitigationActionsTask. Only certain types of mitigation
1459
+ # actions can be applied to specific check names. For more information,
1460
+ # see [Mitigation actions][1]. Each mitigation action can apply only one
1461
+ # type of change.
1462
+ #
1463
+ #
1464
+ #
1465
+ # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/device-defender-mitigation-actions.html
1385
1466
  #
1386
1467
  # @option params [required, String] :action_name
1387
1468
  # A friendly name for the action. Choose a friendly name that accurately
@@ -1457,7 +1538,7 @@ module Aws::IoT
1457
1538
  # The description of the OTA update.
1458
1539
  #
1459
1540
  # @option params [required, Array<String>] :targets
1460
- # The targeted devices to receive OTA updates.
1541
+ # The devices targeted to receive OTA updates.
1461
1542
  #
1462
1543
  # @option params [Array<String>] :protocols
1463
1544
  # The protocol used to transfer the OTA update image. Valid values are
@@ -1479,11 +1560,22 @@ module Aws::IoT
1479
1560
  # @option params [Types::AwsJobPresignedUrlConfig] :aws_job_presigned_url_config
1480
1561
  # Configuration information for pre-signed URLs.
1481
1562
  #
1563
+ # @option params [Types::AwsJobAbortConfig] :aws_job_abort_config
1564
+ # The criteria that determine when and how a job abort takes place.
1565
+ #
1566
+ # @option params [Types::AwsJobTimeoutConfig] :aws_job_timeout_config
1567
+ # Specifies the amount of time each device has to finish its execution
1568
+ # of the job. A timer is started when the job execution status is set to
1569
+ # `IN_PROGRESS`. If the job execution status is not set to another
1570
+ # terminal state before the timer expires, it will be automatically set
1571
+ # to `TIMED_OUT`.
1572
+ #
1482
1573
  # @option params [required, Array<Types::OTAUpdateFile>] :files
1483
1574
  # The files to be streamed by the OTA update.
1484
1575
  #
1485
1576
  # @option params [required, String] :role_arn
1486
- # The IAM role that allows access to the AWS IoT Jobs service.
1577
+ # The IAM role that grants AWS IoT access to the Amazon S3, AWS IoT jobs
1578
+ # and AWS Code Signing resources to create an OTA update job.
1487
1579
  #
1488
1580
  # @option params [Hash<String,String>] :additional_parameters
1489
1581
  # A list of additional OTA update parameters which are name-value pairs.
@@ -1509,10 +1601,31 @@ module Aws::IoT
1509
1601
  # target_selection: "CONTINUOUS", # accepts CONTINUOUS, SNAPSHOT
1510
1602
  # aws_job_executions_rollout_config: {
1511
1603
  # maximum_per_minute: 1,
1604
+ # exponential_rate: {
1605
+ # base_rate_per_minute: 1, # required
1606
+ # increment_factor: 1.0, # required
1607
+ # rate_increase_criteria: { # required
1608
+ # number_of_notified_things: 1,
1609
+ # number_of_succeeded_things: 1,
1610
+ # },
1611
+ # },
1512
1612
  # },
1513
1613
  # aws_job_presigned_url_config: {
1514
1614
  # expires_in_sec: 1,
1515
1615
  # },
1616
+ # aws_job_abort_config: {
1617
+ # abort_criteria_list: [ # required
1618
+ # {
1619
+ # failure_type: "FAILED", # required, accepts FAILED, REJECTED, TIMED_OUT, ALL
1620
+ # action: "CANCEL", # required, accepts CANCEL
1621
+ # threshold_percentage: 1.0, # required
1622
+ # min_number_of_executed_things: 1, # required
1623
+ # },
1624
+ # ],
1625
+ # },
1626
+ # aws_job_timeout_config: {
1627
+ # in_progress_timeout_in_minutes: 1,
1628
+ # },
1516
1629
  # files: [ # required
1517
1630
  # {
1518
1631
  # file_name: "FileName",
@@ -2703,6 +2816,45 @@ module Aws::IoT
2703
2816
  req.send_request(options)
2704
2817
  end
2705
2818
 
2819
+ # Deletes a Device Defender audit suppression.
2820
+ #
2821
+ # @option params [required, String] :check_name
2822
+ # An audit check name. Checks must be enabled for your account. (Use
2823
+ # `DescribeAccountAuditConfiguration` to see the list of all checks,
2824
+ # including those that are enabled or use
2825
+ # `UpdateAccountAuditConfiguration` to select which checks are enabled.)
2826
+ #
2827
+ # @option params [required, Types::ResourceIdentifier] :resource_identifier
2828
+ # Information that identifies the noncompliant resource.
2829
+ #
2830
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2831
+ #
2832
+ # @example Request syntax with placeholder values
2833
+ #
2834
+ # resp = client.delete_audit_suppression({
2835
+ # check_name: "AuditCheckName", # required
2836
+ # resource_identifier: { # required
2837
+ # device_certificate_id: "CertificateId",
2838
+ # ca_certificate_id: "CertificateId",
2839
+ # cognito_identity_pool_id: "CognitoIdentityPoolId",
2840
+ # client_id: "ClientId",
2841
+ # policy_version_identifier: {
2842
+ # policy_name: "PolicyName",
2843
+ # policy_version_id: "PolicyVersionId",
2844
+ # },
2845
+ # account: "AwsAccountId",
2846
+ # iam_role_arn: "RoleArn",
2847
+ # role_alias_arn: "RoleAliasArn",
2848
+ # },
2849
+ # })
2850
+ #
2851
+ # @overload delete_audit_suppression(params = {})
2852
+ # @param [Hash] params ({})
2853
+ def delete_audit_suppression(params = {}, options = {})
2854
+ req = build_request(:delete_audit_suppression, params)
2855
+ req.send_request(options)
2856
+ end
2857
+
2706
2858
  # Deletes an authorizer.
2707
2859
  #
2708
2860
  # @option params [required, String] :authorizer_name
@@ -2991,7 +3143,7 @@ module Aws::IoT
2991
3143
  # Delete an OTA update.
2992
3144
  #
2993
3145
  # @option params [required, String] :ota_update_id
2994
- # The OTA update ID to delete.
3146
+ # The ID of the OTA update to delete.
2995
3147
  #
2996
3148
  # @option params [Boolean] :delete_stream
2997
3149
  # Specifies if the stream associated with an OTA update should be
@@ -2999,7 +3151,7 @@ module Aws::IoT
2999
3151
  #
3000
3152
  # @option params [Boolean] :force_delete_aws_job
3001
3153
  # Specifies if the AWS Job associated with the OTA update should be
3002
- # deleted with the OTA update is deleted.
3154
+ # deleted when the OTA update is deleted.
3003
3155
  #
3004
3156
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3005
3157
  #
@@ -3468,6 +3620,7 @@ module Aws::IoT
3468
3620
  # resp.finding.related_resources[0].additional_info["String"] #=> String
3469
3621
  # resp.finding.reason_for_non_compliance #=> String
3470
3622
  # resp.finding.reason_for_non_compliance_code #=> String
3623
+ # resp.finding.is_suppressed #=> Boolean
3471
3624
  #
3472
3625
  # @overload describe_audit_finding(params = {})
3473
3626
  # @param [Hash] params ({})
@@ -3541,6 +3694,67 @@ module Aws::IoT
3541
3694
  req.send_request(options)
3542
3695
  end
3543
3696
 
3697
+ # Gets information about a Device Defender audit suppression.
3698
+ #
3699
+ # @option params [required, String] :check_name
3700
+ # An audit check name. Checks must be enabled for your account. (Use
3701
+ # `DescribeAccountAuditConfiguration` to see the list of all checks,
3702
+ # including those that are enabled or use
3703
+ # `UpdateAccountAuditConfiguration` to select which checks are enabled.)
3704
+ #
3705
+ # @option params [required, Types::ResourceIdentifier] :resource_identifier
3706
+ # Information that identifies the noncompliant resource.
3707
+ #
3708
+ # @return [Types::DescribeAuditSuppressionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3709
+ #
3710
+ # * {Types::DescribeAuditSuppressionResponse#check_name #check_name} => String
3711
+ # * {Types::DescribeAuditSuppressionResponse#resource_identifier #resource_identifier} => Types::ResourceIdentifier
3712
+ # * {Types::DescribeAuditSuppressionResponse#expiration_date #expiration_date} => Time
3713
+ # * {Types::DescribeAuditSuppressionResponse#suppress_indefinitely #suppress_indefinitely} => Boolean
3714
+ # * {Types::DescribeAuditSuppressionResponse#description #description} => String
3715
+ #
3716
+ # @example Request syntax with placeholder values
3717
+ #
3718
+ # resp = client.describe_audit_suppression({
3719
+ # check_name: "AuditCheckName", # required
3720
+ # resource_identifier: { # required
3721
+ # device_certificate_id: "CertificateId",
3722
+ # ca_certificate_id: "CertificateId",
3723
+ # cognito_identity_pool_id: "CognitoIdentityPoolId",
3724
+ # client_id: "ClientId",
3725
+ # policy_version_identifier: {
3726
+ # policy_name: "PolicyName",
3727
+ # policy_version_id: "PolicyVersionId",
3728
+ # },
3729
+ # account: "AwsAccountId",
3730
+ # iam_role_arn: "RoleArn",
3731
+ # role_alias_arn: "RoleAliasArn",
3732
+ # },
3733
+ # })
3734
+ #
3735
+ # @example Response structure
3736
+ #
3737
+ # resp.check_name #=> String
3738
+ # resp.resource_identifier.device_certificate_id #=> String
3739
+ # resp.resource_identifier.ca_certificate_id #=> String
3740
+ # resp.resource_identifier.cognito_identity_pool_id #=> String
3741
+ # resp.resource_identifier.client_id #=> String
3742
+ # resp.resource_identifier.policy_version_identifier.policy_name #=> String
3743
+ # resp.resource_identifier.policy_version_identifier.policy_version_id #=> String
3744
+ # resp.resource_identifier.account #=> String
3745
+ # resp.resource_identifier.iam_role_arn #=> String
3746
+ # resp.resource_identifier.role_alias_arn #=> String
3747
+ # resp.expiration_date #=> Time
3748
+ # resp.suppress_indefinitely #=> Boolean
3749
+ # resp.description #=> String
3750
+ #
3751
+ # @overload describe_audit_suppression(params = {})
3752
+ # @param [Hash] params ({})
3753
+ def describe_audit_suppression(params = {}, options = {})
3754
+ req = build_request(:describe_audit_suppression, params)
3755
+ req.send_request(options)
3756
+ end
3757
+
3544
3758
  # Gets information about a Device Defender audit.
3545
3759
  #
3546
3760
  # @option params [required, String] :task_id
@@ -3579,6 +3793,7 @@ module Aws::IoT
3579
3793
  # resp.audit_details["AuditCheckName"].check_compliant #=> Boolean
3580
3794
  # resp.audit_details["AuditCheckName"].total_resources_count #=> Integer
3581
3795
  # resp.audit_details["AuditCheckName"].non_compliant_resources_count #=> Integer
3796
+ # resp.audit_details["AuditCheckName"].suppressed_non_compliant_resources_count #=> Integer
3582
3797
  # resp.audit_details["AuditCheckName"].error_code #=> String
3583
3798
  # resp.audit_details["AuditCheckName"].message #=> String
3584
3799
  #
@@ -4580,8 +4795,11 @@ module Aws::IoT
4580
4795
  # @option params [required, String] :principal
4581
4796
  # The principal.
4582
4797
  #
4583
- # If the principal is a certificate, specify the certificate ARN. If the
4584
- # principal is an Amazon Cognito identity, specify the identity ID.
4798
+ # Valid principals are CertificateArn
4799
+ # (arn:aws:iot:*region*\:*accountId*\:cert/*certificateId*),
4800
+ # thingGroupArn
4801
+ # (arn:aws:iot:*region*\:*accountId*\:thinggroup/*groupName*) and
4802
+ # CognitoId (*region*\:*id*).
4585
4803
  #
4586
4804
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4587
4805
  #
@@ -4741,7 +4959,11 @@ module Aws::IoT
4741
4959
  # device gateway.
4742
4960
  #
4743
4961
  # @option params [String] :principal
4744
- # The principal.
4962
+ # The principal. Valid principals are CertificateArn
4963
+ # (arn:aws:iot:*region*\:*accountId*\:cert/*certificateId*),
4964
+ # thingGroupArn
4965
+ # (arn:aws:iot:*region*\:*accountId*\:thinggroup/*groupName*) and
4966
+ # CognitoId (*region*\:*id*).
4745
4967
  #
4746
4968
  # @option params [String] :cognito_identity_pool_id
4747
4969
  # The Cognito identity pool ID.
@@ -4882,6 +5104,10 @@ module Aws::IoT
4882
5104
  # resp.ota_update_info.protocols #=> Array
4883
5105
  # resp.ota_update_info.protocols[0] #=> String, one of "MQTT", "HTTP"
4884
5106
  # resp.ota_update_info.aws_job_executions_rollout_config.maximum_per_minute #=> Integer
5107
+ # resp.ota_update_info.aws_job_executions_rollout_config.exponential_rate.base_rate_per_minute #=> Integer
5108
+ # resp.ota_update_info.aws_job_executions_rollout_config.exponential_rate.increment_factor #=> Float
5109
+ # resp.ota_update_info.aws_job_executions_rollout_config.exponential_rate.rate_increase_criteria.number_of_notified_things #=> Integer
5110
+ # resp.ota_update_info.aws_job_executions_rollout_config.exponential_rate.rate_increase_criteria.number_of_succeeded_things #=> Integer
4885
5111
  # resp.ota_update_info.aws_job_presigned_url_config.expires_in_sec #=> Integer
4886
5112
  # resp.ota_update_info.target_selection #=> String, one of "CONTINUOUS", "SNAPSHOT"
4887
5113
  # resp.ota_update_info.ota_update_files #=> Array
@@ -5394,6 +5620,8 @@ module Aws::IoT
5394
5620
  # * {Types::ListActiveViolationsResponse#active_violations #active_violations} => Array&lt;Types::ActiveViolation&gt;
5395
5621
  # * {Types::ListActiveViolationsResponse#next_token #next_token} => String
5396
5622
  #
5623
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5624
+ #
5397
5625
  # @example Request syntax with placeholder values
5398
5626
  #
5399
5627
  # resp = client.list_active_violations({
@@ -5442,7 +5670,12 @@ module Aws::IoT
5442
5670
  # Lists the policies attached to the specified thing group.
5443
5671
  #
5444
5672
  # @option params [required, String] :target
5445
- # The group or principal for which the policies will be listed.
5673
+ # The group or principal for which the policies will be listed. Valid
5674
+ # principals are CertificateArn
5675
+ # (arn:aws:iot:*region*\:*accountId*\:cert/*certificateId*),
5676
+ # thingGroupArn
5677
+ # (arn:aws:iot:*region*\:*accountId*\:thinggroup/*groupName*) and
5678
+ # CognitoId (*region*\:*id*).
5446
5679
  #
5447
5680
  # @option params [Boolean] :recursive
5448
5681
  # When true, recursively list attached policies.
@@ -5458,6 +5691,8 @@ module Aws::IoT
5458
5691
  # * {Types::ListAttachedPoliciesResponse#policies #policies} => Array&lt;Types::Policy&gt;
5459
5692
  # * {Types::ListAttachedPoliciesResponse#next_marker #next_marker} => String
5460
5693
  #
5694
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5695
+ #
5461
5696
  # @example Request syntax with placeholder values
5462
5697
  #
5463
5698
  # resp = client.list_attached_policies({
@@ -5513,11 +5748,19 @@ module Aws::IoT
5513
5748
  # You must specify either the startTime and endTime or the taskId, but
5514
5749
  # not both.
5515
5750
  #
5751
+ # @option params [Boolean] :list_suppressed_findings
5752
+ # Boolean flag indicating whether only the suppressed findings or the
5753
+ # unsuppressed findings should be listed. If this parameter isn't
5754
+ # provided, the response will list both suppressed and unsuppressed
5755
+ # findings.
5756
+ #
5516
5757
  # @return [Types::ListAuditFindingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5517
5758
  #
5518
5759
  # * {Types::ListAuditFindingsResponse#findings #findings} => Array&lt;Types::AuditFinding&gt;
5519
5760
  # * {Types::ListAuditFindingsResponse#next_token #next_token} => String
5520
5761
  #
5762
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5763
+ #
5521
5764
  # @example Request syntax with placeholder values
5522
5765
  #
5523
5766
  # resp = client.list_audit_findings({
@@ -5540,6 +5783,7 @@ module Aws::IoT
5540
5783
  # next_token: "NextToken",
5541
5784
  # start_time: Time.now,
5542
5785
  # end_time: Time.now,
5786
+ # list_suppressed_findings: false,
5543
5787
  # })
5544
5788
  #
5545
5789
  # @example Response structure
@@ -5578,6 +5822,7 @@ module Aws::IoT
5578
5822
  # resp.findings[0].related_resources[0].additional_info["String"] #=> String
5579
5823
  # resp.findings[0].reason_for_non_compliance #=> String
5580
5824
  # resp.findings[0].reason_for_non_compliance_code #=> String
5825
+ # resp.findings[0].is_suppressed #=> Boolean
5581
5826
  # resp.next_token #=> String
5582
5827
  #
5583
5828
  # @overload list_audit_findings(params = {})
@@ -5612,6 +5857,8 @@ module Aws::IoT
5612
5857
  # * {Types::ListAuditMitigationActionsExecutionsResponse#actions_executions #actions_executions} => Array&lt;Types::AuditMitigationActionExecutionMetadata&gt;
5613
5858
  # * {Types::ListAuditMitigationActionsExecutionsResponse#next_token #next_token} => String
5614
5859
  #
5860
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5861
+ #
5615
5862
  # @example Request syntax with placeholder values
5616
5863
  #
5617
5864
  # resp = client.list_audit_mitigation_actions_executions({
@@ -5678,6 +5925,8 @@ module Aws::IoT
5678
5925
  # * {Types::ListAuditMitigationActionsTasksResponse#tasks #tasks} => Array&lt;Types::AuditMitigationActionsTaskMetadata&gt;
5679
5926
  # * {Types::ListAuditMitigationActionsTasksResponse#next_token #next_token} => String
5680
5927
  #
5928
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5929
+ #
5681
5930
  # @example Request syntax with placeholder values
5682
5931
  #
5683
5932
  # resp = client.list_audit_mitigation_actions_tasks({
@@ -5705,6 +5954,83 @@ module Aws::IoT
5705
5954
  req.send_request(options)
5706
5955
  end
5707
5956
 
5957
+ # Lists your Device Defender audit listings.
5958
+ #
5959
+ # @option params [String] :check_name
5960
+ # An audit check name. Checks must be enabled for your account. (Use
5961
+ # `DescribeAccountAuditConfiguration` to see the list of all checks,
5962
+ # including those that are enabled or use
5963
+ # `UpdateAccountAuditConfiguration` to select which checks are enabled.)
5964
+ #
5965
+ # @option params [Types::ResourceIdentifier] :resource_identifier
5966
+ # Information that identifies the noncompliant resource.
5967
+ #
5968
+ # @option params [Boolean] :ascending_order
5969
+ # Determines whether suppressions are listed in ascending order by
5970
+ # expiration date or not. If parameter isn't provided,
5971
+ # `ascendingOrder=true`.
5972
+ #
5973
+ # @option params [String] :next_token
5974
+ # The token for the next set of results.
5975
+ #
5976
+ # @option params [Integer] :max_results
5977
+ # The maximum number of results to return at one time. The default is
5978
+ # 25.
5979
+ #
5980
+ # @return [Types::ListAuditSuppressionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5981
+ #
5982
+ # * {Types::ListAuditSuppressionsResponse#suppressions #suppressions} => Array&lt;Types::AuditSuppression&gt;
5983
+ # * {Types::ListAuditSuppressionsResponse#next_token #next_token} => String
5984
+ #
5985
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5986
+ #
5987
+ # @example Request syntax with placeholder values
5988
+ #
5989
+ # resp = client.list_audit_suppressions({
5990
+ # check_name: "AuditCheckName",
5991
+ # resource_identifier: {
5992
+ # device_certificate_id: "CertificateId",
5993
+ # ca_certificate_id: "CertificateId",
5994
+ # cognito_identity_pool_id: "CognitoIdentityPoolId",
5995
+ # client_id: "ClientId",
5996
+ # policy_version_identifier: {
5997
+ # policy_name: "PolicyName",
5998
+ # policy_version_id: "PolicyVersionId",
5999
+ # },
6000
+ # account: "AwsAccountId",
6001
+ # iam_role_arn: "RoleArn",
6002
+ # role_alias_arn: "RoleAliasArn",
6003
+ # },
6004
+ # ascending_order: false,
6005
+ # next_token: "NextToken",
6006
+ # max_results: 1,
6007
+ # })
6008
+ #
6009
+ # @example Response structure
6010
+ #
6011
+ # resp.suppressions #=> Array
6012
+ # resp.suppressions[0].check_name #=> String
6013
+ # resp.suppressions[0].resource_identifier.device_certificate_id #=> String
6014
+ # resp.suppressions[0].resource_identifier.ca_certificate_id #=> String
6015
+ # resp.suppressions[0].resource_identifier.cognito_identity_pool_id #=> String
6016
+ # resp.suppressions[0].resource_identifier.client_id #=> String
6017
+ # resp.suppressions[0].resource_identifier.policy_version_identifier.policy_name #=> String
6018
+ # resp.suppressions[0].resource_identifier.policy_version_identifier.policy_version_id #=> String
6019
+ # resp.suppressions[0].resource_identifier.account #=> String
6020
+ # resp.suppressions[0].resource_identifier.iam_role_arn #=> String
6021
+ # resp.suppressions[0].resource_identifier.role_alias_arn #=> String
6022
+ # resp.suppressions[0].expiration_date #=> Time
6023
+ # resp.suppressions[0].suppress_indefinitely #=> Boolean
6024
+ # resp.suppressions[0].description #=> String
6025
+ # resp.next_token #=> String
6026
+ #
6027
+ # @overload list_audit_suppressions(params = {})
6028
+ # @param [Hash] params ({})
6029
+ def list_audit_suppressions(params = {}, options = {})
6030
+ req = build_request(:list_audit_suppressions, params)
6031
+ req.send_request(options)
6032
+ end
6033
+
5708
6034
  # Lists the Device Defender audits that have been performed during a
5709
6035
  # given time period.
5710
6036
  #
@@ -5737,6 +6063,8 @@ module Aws::IoT
5737
6063
  # * {Types::ListAuditTasksResponse#tasks #tasks} => Array&lt;Types::AuditTaskMetadata&gt;
5738
6064
  # * {Types::ListAuditTasksResponse#next_token #next_token} => String
5739
6065
  #
6066
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6067
+ #
5740
6068
  # @example Request syntax with placeholder values
5741
6069
  #
5742
6070
  # resp = client.list_audit_tasks({
@@ -5782,6 +6110,8 @@ module Aws::IoT
5782
6110
  # * {Types::ListAuthorizersResponse#authorizers #authorizers} => Array&lt;Types::AuthorizerSummary&gt;
5783
6111
  # * {Types::ListAuthorizersResponse#next_marker #next_marker} => String
5784
6112
  #
6113
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6114
+ #
5785
6115
  # @example Request syntax with placeholder values
5786
6116
  #
5787
6117
  # resp = client.list_authorizers({
@@ -5821,6 +6151,8 @@ module Aws::IoT
5821
6151
  # * {Types::ListBillingGroupsResponse#billing_groups #billing_groups} => Array&lt;Types::GroupNameAndArn&gt;
5822
6152
  # * {Types::ListBillingGroupsResponse#next_token #next_token} => String
5823
6153
  #
6154
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6155
+ #
5824
6156
  # @example Request syntax with placeholder values
5825
6157
  #
5826
6158
  # resp = client.list_billing_groups({
@@ -5862,6 +6194,8 @@ module Aws::IoT
5862
6194
  # * {Types::ListCACertificatesResponse#certificates #certificates} => Array&lt;Types::CACertificate&gt;
5863
6195
  # * {Types::ListCACertificatesResponse#next_marker #next_marker} => String
5864
6196
  #
6197
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6198
+ #
5865
6199
  # @example Request syntax with placeholder values
5866
6200
  #
5867
6201
  # resp = client.list_ca_certificates({
@@ -5906,6 +6240,8 @@ module Aws::IoT
5906
6240
  # * {Types::ListCertificatesResponse#certificates #certificates} => Array&lt;Types::Certificate&gt;
5907
6241
  # * {Types::ListCertificatesResponse#next_marker #next_marker} => String
5908
6242
  #
6243
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6244
+ #
5909
6245
  # @example Request syntax with placeholder values
5910
6246
  #
5911
6247
  # resp = client.list_certificates({
@@ -5952,6 +6288,8 @@ module Aws::IoT
5952
6288
  # * {Types::ListCertificatesByCAResponse#certificates #certificates} => Array&lt;Types::Certificate&gt;
5953
6289
  # * {Types::ListCertificatesByCAResponse#next_marker #next_marker} => String
5954
6290
  #
6291
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6292
+ #
5955
6293
  # @example Request syntax with placeholder values
5956
6294
  #
5957
6295
  # resp = client.list_certificates_by_ca({
@@ -5991,6 +6329,8 @@ module Aws::IoT
5991
6329
  # * {Types::ListDimensionsResponse#dimension_names #dimension_names} => Array&lt;String&gt;
5992
6330
  # * {Types::ListDimensionsResponse#next_token #next_token} => String
5993
6331
  #
6332
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6333
+ #
5994
6334
  # @example Request syntax with placeholder values
5995
6335
  #
5996
6336
  # resp = client.list_dimensions({
@@ -6033,6 +6373,8 @@ module Aws::IoT
6033
6373
  # * {Types::ListDomainConfigurationsResponse#domain_configurations #domain_configurations} => Array&lt;Types::DomainConfigurationSummary&gt;
6034
6374
  # * {Types::ListDomainConfigurationsResponse#next_marker #next_marker} => String
6035
6375
  #
6376
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6377
+ #
6036
6378
  # @example Request syntax with placeholder values
6037
6379
  #
6038
6380
  # resp = client.list_domain_configurations({
@@ -6070,6 +6412,8 @@ module Aws::IoT
6070
6412
  # * {Types::ListIndicesResponse#index_names #index_names} => Array&lt;String&gt;
6071
6413
  # * {Types::ListIndicesResponse#next_token #next_token} => String
6072
6414
  #
6415
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6416
+ #
6073
6417
  # @example Request syntax with placeholder values
6074
6418
  #
6075
6419
  # resp = client.list_indices({
@@ -6109,6 +6453,8 @@ module Aws::IoT
6109
6453
  # * {Types::ListJobExecutionsForJobResponse#execution_summaries #execution_summaries} => Array&lt;Types::JobExecutionSummaryForJob&gt;
6110
6454
  # * {Types::ListJobExecutionsForJobResponse#next_token #next_token} => String
6111
6455
  #
6456
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6457
+ #
6112
6458
  # @example Request syntax with placeholder values
6113
6459
  #
6114
6460
  # resp = client.list_job_executions_for_job({
@@ -6156,6 +6502,8 @@ module Aws::IoT
6156
6502
  # * {Types::ListJobExecutionsForThingResponse#execution_summaries #execution_summaries} => Array&lt;Types::JobExecutionSummaryForThing&gt;
6157
6503
  # * {Types::ListJobExecutionsForThingResponse#next_token #next_token} => String
6158
6504
  #
6505
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6506
+ #
6159
6507
  # @example Request syntax with placeholder values
6160
6508
  #
6161
6509
  # resp = client.list_job_executions_for_thing({
@@ -6216,6 +6564,8 @@ module Aws::IoT
6216
6564
  # * {Types::ListJobsResponse#jobs #jobs} => Array&lt;Types::JobSummary&gt;
6217
6565
  # * {Types::ListJobsResponse#next_token #next_token} => String
6218
6566
  #
6567
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6568
+ #
6219
6569
  # @example Request syntax with placeholder values
6220
6570
  #
6221
6571
  # resp = client.list_jobs({
@@ -6266,6 +6616,8 @@ module Aws::IoT
6266
6616
  # * {Types::ListMitigationActionsResponse#action_identifiers #action_identifiers} => Array&lt;Types::MitigationActionIdentifier&gt;
6267
6617
  # * {Types::ListMitigationActionsResponse#next_token #next_token} => String
6268
6618
  #
6619
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6620
+ #
6269
6621
  # @example Request syntax with placeholder values
6270
6622
  #
6271
6623
  # resp = client.list_mitigation_actions({
@@ -6305,6 +6657,8 @@ module Aws::IoT
6305
6657
  # * {Types::ListOTAUpdatesResponse#ota_updates #ota_updates} => Array&lt;Types::OTAUpdateSummary&gt;
6306
6658
  # * {Types::ListOTAUpdatesResponse#next_token #next_token} => String
6307
6659
  #
6660
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6661
+ #
6308
6662
  # @example Request syntax with placeholder values
6309
6663
  #
6310
6664
  # resp = client.list_ota_updates({
@@ -6345,6 +6699,8 @@ module Aws::IoT
6345
6699
  # * {Types::ListOutgoingCertificatesResponse#outgoing_certificates #outgoing_certificates} => Array&lt;Types::OutgoingCertificate&gt;
6346
6700
  # * {Types::ListOutgoingCertificatesResponse#next_marker #next_marker} => String
6347
6701
  #
6702
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6703
+ #
6348
6704
  # @example Request syntax with placeholder values
6349
6705
  #
6350
6706
  # resp = client.list_outgoing_certificates({
@@ -6388,6 +6744,8 @@ module Aws::IoT
6388
6744
  # * {Types::ListPoliciesResponse#policies #policies} => Array&lt;Types::Policy&gt;
6389
6745
  # * {Types::ListPoliciesResponse#next_marker #next_marker} => String
6390
6746
  #
6747
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6748
+ #
6391
6749
  # @example Request syntax with placeholder values
6392
6750
  #
6393
6751
  # resp = client.list_policies({
@@ -6433,6 +6791,8 @@ module Aws::IoT
6433
6791
  # * {Types::ListPolicyPrincipalsResponse#principals #principals} => Array&lt;String&gt;
6434
6792
  # * {Types::ListPolicyPrincipalsResponse#next_marker #next_marker} => String
6435
6793
  #
6794
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6795
+ #
6436
6796
  # @example Request syntax with placeholder values
6437
6797
  #
6438
6798
  # resp = client.list_policy_principals({
@@ -6497,7 +6857,11 @@ module Aws::IoT
6497
6857
  # [1]: https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax
6498
6858
  #
6499
6859
  # @option params [required, String] :principal
6500
- # The principal.
6860
+ # The principal. Valid principals are CertificateArn
6861
+ # (arn:aws:iot:*region*\:*accountId*\:cert/*certificateId*),
6862
+ # thingGroupArn
6863
+ # (arn:aws:iot:*region*\:*accountId*\:thinggroup/*groupName*) and
6864
+ # CognitoId (*region*\:*id*).
6501
6865
  #
6502
6866
  # @option params [String] :marker
6503
6867
  # The marker for the next set of results.
@@ -6514,6 +6878,8 @@ module Aws::IoT
6514
6878
  # * {Types::ListPrincipalPoliciesResponse#policies #policies} => Array&lt;Types::Policy&gt;
6515
6879
  # * {Types::ListPrincipalPoliciesResponse#next_marker #next_marker} => String
6516
6880
  #
6881
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6882
+ #
6517
6883
  # @example Request syntax with placeholder values
6518
6884
  #
6519
6885
  # resp = client.list_principal_policies({
@@ -6555,6 +6921,8 @@ module Aws::IoT
6555
6921
  # * {Types::ListPrincipalThingsResponse#things #things} => Array&lt;String&gt;
6556
6922
  # * {Types::ListPrincipalThingsResponse#next_token #next_token} => String
6557
6923
  #
6924
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6925
+ #
6558
6926
  # @example Request syntax with placeholder values
6559
6927
  #
6560
6928
  # resp = client.list_principal_things({
@@ -6592,6 +6960,8 @@ module Aws::IoT
6592
6960
  # * {Types::ListProvisioningTemplateVersionsResponse#versions #versions} => Array&lt;Types::ProvisioningTemplateVersionSummary&gt;
6593
6961
  # * {Types::ListProvisioningTemplateVersionsResponse#next_token #next_token} => String
6594
6962
  #
6963
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6964
+ #
6595
6965
  # @example Request syntax with placeholder values
6596
6966
  #
6597
6967
  # resp = client.list_provisioning_template_versions({
@@ -6628,6 +6998,8 @@ module Aws::IoT
6628
6998
  # * {Types::ListProvisioningTemplatesResponse#templates #templates} => Array&lt;Types::ProvisioningTemplateSummary&gt;
6629
6999
  # * {Types::ListProvisioningTemplatesResponse#next_token #next_token} => String
6630
7000
  #
7001
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7002
+ #
6631
7003
  # @example Request syntax with placeholder values
6632
7004
  #
6633
7005
  # resp = client.list_provisioning_templates({
@@ -6669,6 +7041,8 @@ module Aws::IoT
6669
7041
  # * {Types::ListRoleAliasesResponse#role_aliases #role_aliases} => Array&lt;String&gt;
6670
7042
  # * {Types::ListRoleAliasesResponse#next_marker #next_marker} => String
6671
7043
  #
7044
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7045
+ #
6672
7046
  # @example Request syntax with placeholder values
6673
7047
  #
6674
7048
  # resp = client.list_role_aliases({
@@ -6704,6 +7078,8 @@ module Aws::IoT
6704
7078
  # * {Types::ListScheduledAuditsResponse#scheduled_audits #scheduled_audits} => Array&lt;Types::ScheduledAuditMetadata&gt;
6705
7079
  # * {Types::ListScheduledAuditsResponse#next_token #next_token} => String
6706
7080
  #
7081
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7082
+ #
6707
7083
  # @example Request syntax with placeholder values
6708
7084
  #
6709
7085
  # resp = client.list_scheduled_audits({
@@ -6747,6 +7123,8 @@ module Aws::IoT
6747
7123
  # * {Types::ListSecurityProfilesResponse#security_profile_identifiers #security_profile_identifiers} => Array&lt;Types::SecurityProfileIdentifier&gt;
6748
7124
  # * {Types::ListSecurityProfilesResponse#next_token #next_token} => String
6749
7125
  #
7126
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7127
+ #
6750
7128
  # @example Request syntax with placeholder values
6751
7129
  #
6752
7130
  # resp = client.list_security_profiles({
@@ -6790,6 +7168,8 @@ module Aws::IoT
6790
7168
  # * {Types::ListSecurityProfilesForTargetResponse#security_profile_target_mappings #security_profile_target_mappings} => Array&lt;Types::SecurityProfileTargetMapping&gt;
6791
7169
  # * {Types::ListSecurityProfilesForTargetResponse#next_token #next_token} => String
6792
7170
  #
7171
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7172
+ #
6793
7173
  # @example Request syntax with placeholder values
6794
7174
  #
6795
7175
  # resp = client.list_security_profiles_for_target({
@@ -6830,6 +7210,8 @@ module Aws::IoT
6830
7210
  # * {Types::ListStreamsResponse#streams #streams} => Array&lt;Types::StreamSummary&gt;
6831
7211
  # * {Types::ListStreamsResponse#next_token #next_token} => String
6832
7212
  #
7213
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7214
+ #
6833
7215
  # @example Request syntax with placeholder values
6834
7216
  #
6835
7217
  # resp = client.list_streams({
@@ -6867,6 +7249,8 @@ module Aws::IoT
6867
7249
  # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
6868
7250
  # * {Types::ListTagsForResourceResponse#next_token #next_token} => String
6869
7251
  #
7252
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7253
+ #
6870
7254
  # @example Request syntax with placeholder values
6871
7255
  #
6872
7256
  # resp = client.list_tags_for_resource({
@@ -6904,6 +7288,8 @@ module Aws::IoT
6904
7288
  # * {Types::ListTargetsForPolicyResponse#targets #targets} => Array&lt;String&gt;
6905
7289
  # * {Types::ListTargetsForPolicyResponse#next_marker #next_marker} => String
6906
7290
  #
7291
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7292
+ #
6907
7293
  # @example Request syntax with placeholder values
6908
7294
  #
6909
7295
  # resp = client.list_targets_for_policy({
@@ -6942,6 +7328,8 @@ module Aws::IoT
6942
7328
  # * {Types::ListTargetsForSecurityProfileResponse#security_profile_targets #security_profile_targets} => Array&lt;Types::SecurityProfileTarget&gt;
6943
7329
  # * {Types::ListTargetsForSecurityProfileResponse#next_token #next_token} => String
6944
7330
  #
7331
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7332
+ #
6945
7333
  # @example Request syntax with placeholder values
6946
7334
  #
6947
7335
  # resp = client.list_targets_for_security_profile({
@@ -6987,6 +7375,8 @@ module Aws::IoT
6987
7375
  # * {Types::ListThingGroupsResponse#thing_groups #thing_groups} => Array&lt;Types::GroupNameAndArn&gt;
6988
7376
  # * {Types::ListThingGroupsResponse#next_token #next_token} => String
6989
7377
  #
7378
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7379
+ #
6990
7380
  # @example Request syntax with placeholder values
6991
7381
  #
6992
7382
  # resp = client.list_thing_groups({
@@ -7027,6 +7417,8 @@ module Aws::IoT
7027
7417
  # * {Types::ListThingGroupsForThingResponse#thing_groups #thing_groups} => Array&lt;Types::GroupNameAndArn&gt;
7028
7418
  # * {Types::ListThingGroupsForThingResponse#next_token #next_token} => String
7029
7419
  #
7420
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7421
+ #
7030
7422
  # @example Request syntax with placeholder values
7031
7423
  #
7032
7424
  # resp = client.list_thing_groups_for_thing({
@@ -7098,6 +7490,8 @@ module Aws::IoT
7098
7490
  # * {Types::ListThingRegistrationTaskReportsResponse#report_type #report_type} => String
7099
7491
  # * {Types::ListThingRegistrationTaskReportsResponse#next_token #next_token} => String
7100
7492
  #
7493
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7494
+ #
7101
7495
  # @example Request syntax with placeholder values
7102
7496
  #
7103
7497
  # resp = client.list_thing_registration_task_reports({
@@ -7137,6 +7531,8 @@ module Aws::IoT
7137
7531
  # * {Types::ListThingRegistrationTasksResponse#task_ids #task_ids} => Array&lt;String&gt;
7138
7532
  # * {Types::ListThingRegistrationTasksResponse#next_token #next_token} => String
7139
7533
  #
7534
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7535
+ #
7140
7536
  # @example Request syntax with placeholder values
7141
7537
  #
7142
7538
  # resp = client.list_thing_registration_tasks({
@@ -7174,6 +7570,8 @@ module Aws::IoT
7174
7570
  # * {Types::ListThingTypesResponse#thing_types #thing_types} => Array&lt;Types::ThingTypeDefinition&gt;
7175
7571
  # * {Types::ListThingTypesResponse#next_token #next_token} => String
7176
7572
  #
7573
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7574
+ #
7177
7575
  # @example Request syntax with placeholder values
7178
7576
  #
7179
7577
  # resp = client.list_thing_types({
@@ -7208,6 +7606,13 @@ module Aws::IoT
7208
7606
  # in the registry that contain an attribute **Color** with the value
7209
7607
  # **Red**.
7210
7608
  #
7609
+ # <note markdown="1"> You will not be charged for calling this API if an `Access denied`
7610
+ # error is returned. You will also not be charged if no attributes or
7611
+ # pagination token was provided in request and no pagination token and
7612
+ # no results were returned.
7613
+ #
7614
+ # </note>
7615
+ #
7211
7616
  # @option params [String] :next_token
7212
7617
  # The token to retrieve the next set of results.
7213
7618
  #
@@ -7228,6 +7633,8 @@ module Aws::IoT
7228
7633
  # * {Types::ListThingsResponse#things #things} => Array&lt;Types::ThingAttribute&gt;
7229
7634
  # * {Types::ListThingsResponse#next_token #next_token} => String
7230
7635
  #
7636
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7637
+ #
7231
7638
  # @example Request syntax with placeholder values
7232
7639
  #
7233
7640
  # resp = client.list_things({
@@ -7272,6 +7679,8 @@ module Aws::IoT
7272
7679
  # * {Types::ListThingsInBillingGroupResponse#things #things} => Array&lt;String&gt;
7273
7680
  # * {Types::ListThingsInBillingGroupResponse#next_token #next_token} => String
7274
7681
  #
7682
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7683
+ #
7275
7684
  # @example Request syntax with placeholder values
7276
7685
  #
7277
7686
  # resp = client.list_things_in_billing_group({
@@ -7313,6 +7722,8 @@ module Aws::IoT
7313
7722
  # * {Types::ListThingsInThingGroupResponse#things #things} => Array&lt;String&gt;
7314
7723
  # * {Types::ListThingsInThingGroupResponse#next_token #next_token} => String
7315
7724
  #
7725
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7726
+ #
7316
7727
  # @example Request syntax with placeholder values
7317
7728
  #
7318
7729
  # resp = client.list_things_in_thing_group({
@@ -7348,6 +7759,8 @@ module Aws::IoT
7348
7759
  # * {Types::ListTopicRuleDestinationsResponse#destination_summaries #destination_summaries} => Array&lt;Types::TopicRuleDestinationSummary&gt;
7349
7760
  # * {Types::ListTopicRuleDestinationsResponse#next_token #next_token} => String
7350
7761
  #
7762
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7763
+ #
7351
7764
  # @example Request syntax with placeholder values
7352
7765
  #
7353
7766
  # resp = client.list_topic_rule_destinations({
@@ -7390,6 +7803,8 @@ module Aws::IoT
7390
7803
  # * {Types::ListTopicRulesResponse#rules #rules} => Array&lt;Types::TopicRuleListItem&gt;
7391
7804
  # * {Types::ListTopicRulesResponse#next_token #next_token} => String
7392
7805
  #
7806
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7807
+ #
7393
7808
  # @example Request syntax with placeholder values
7394
7809
  #
7395
7810
  # resp = client.list_topic_rules({
@@ -7434,6 +7849,8 @@ module Aws::IoT
7434
7849
  # * {Types::ListV2LoggingLevelsResponse#log_target_configurations #log_target_configurations} => Array&lt;Types::LogTargetConfiguration&gt;
7435
7850
  # * {Types::ListV2LoggingLevelsResponse#next_token #next_token} => String
7436
7851
  #
7852
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7853
+ #
7437
7854
  # @example Request syntax with placeholder values
7438
7855
  #
7439
7856
  # resp = client.list_v2_logging_levels({
@@ -7487,6 +7904,8 @@ module Aws::IoT
7487
7904
  # * {Types::ListViolationEventsResponse#violation_events #violation_events} => Array&lt;Types::ViolationEvent&gt;
7488
7905
  # * {Types::ListViolationEventsResponse#next_token #next_token} => String
7489
7906
  #
7907
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
7908
+ #
7490
7909
  # @example Request syntax with placeholder values
7491
7910
  #
7492
7911
  # resp = client.list_violation_events({
@@ -7808,6 +8227,10 @@ module Aws::IoT
7808
8227
 
7809
8228
  # Remove the specified thing from the specified group.
7810
8229
  #
8230
+ # You must specify either a `thingGroupArn` or a `thingGroupName` to
8231
+ # identify the thing group and either a `thingArn` or a `thingName` to
8232
+ # identify the thing to remove from the thing group.
8233
+ #
7811
8234
  # @option params [String] :thing_group_name
7812
8235
  # The group name.
7813
8236
  #
@@ -8538,7 +8961,11 @@ module Aws::IoT
8538
8961
  # gateway.
8539
8962
  #
8540
8963
  # @option params [String] :principal
8541
- # The principal.
8964
+ # The principal. Valid principals are CertificateArn
8965
+ # (arn:aws:iot:*region*\:*accountId*\:cert/*certificateId*),
8966
+ # thingGroupArn
8967
+ # (arn:aws:iot:*region*\:*accountId*\:thinggroup/*groupName*) and
8968
+ # CognitoId (*region*\:*id*).
8542
8969
  #
8543
8970
  # @option params [String] :cognito_identity_pool_id
8544
8971
  # The Cognito identity pool ID.
@@ -8798,6 +9225,58 @@ module Aws::IoT
8798
9225
  req.send_request(options)
8799
9226
  end
8800
9227
 
9228
+ # Updates a Device Defender audit suppression.
9229
+ #
9230
+ # @option params [required, String] :check_name
9231
+ # An audit check name. Checks must be enabled for your account. (Use
9232
+ # `DescribeAccountAuditConfiguration` to see the list of all checks,
9233
+ # including those that are enabled or use
9234
+ # `UpdateAccountAuditConfiguration` to select which checks are enabled.)
9235
+ #
9236
+ # @option params [required, Types::ResourceIdentifier] :resource_identifier
9237
+ # Information that identifies the noncompliant resource.
9238
+ #
9239
+ # @option params [Time,DateTime,Date,Integer,String] :expiration_date
9240
+ # The expiration date (epoch timestamp in seconds) that you want the
9241
+ # suppression to adhere to.
9242
+ #
9243
+ # @option params [Boolean] :suppress_indefinitely
9244
+ # Indicates whether a suppression should exist indefinitely or not.
9245
+ #
9246
+ # @option params [String] :description
9247
+ # The description of the audit suppression.
9248
+ #
9249
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
9250
+ #
9251
+ # @example Request syntax with placeholder values
9252
+ #
9253
+ # resp = client.update_audit_suppression({
9254
+ # check_name: "AuditCheckName", # required
9255
+ # resource_identifier: { # required
9256
+ # device_certificate_id: "CertificateId",
9257
+ # ca_certificate_id: "CertificateId",
9258
+ # cognito_identity_pool_id: "CognitoIdentityPoolId",
9259
+ # client_id: "ClientId",
9260
+ # policy_version_identifier: {
9261
+ # policy_name: "PolicyName",
9262
+ # policy_version_id: "PolicyVersionId",
9263
+ # },
9264
+ # account: "AwsAccountId",
9265
+ # iam_role_arn: "RoleArn",
9266
+ # role_alias_arn: "RoleAliasArn",
9267
+ # },
9268
+ # expiration_date: Time.now,
9269
+ # suppress_indefinitely: false,
9270
+ # description: "AuditDescription",
9271
+ # })
9272
+ #
9273
+ # @overload update_audit_suppression(params = {})
9274
+ # @param [Hash] params ({})
9275
+ def update_audit_suppression(params = {}, options = {})
9276
+ req = build_request(:update_audit_suppression, params)
9277
+ req.send_request(options)
9278
+ end
9279
+
8801
9280
  # Updates an authorizer.
8802
9281
  #
8803
9282
  # @option params [required, String] :authorizer_name
@@ -8929,12 +9408,13 @@ module Aws::IoT
8929
9408
  # Updates the status of the specified certificate. This operation is
8930
9409
  # idempotent.
8931
9410
  #
8932
- # Moving a certificate from the ACTIVE state (including REVOKED) will
8933
- # not disconnect currently connected devices, but these devices will be
8934
- # unable to reconnect.
9411
+ # Certificates must be in the ACTIVE state to authenticate devices that
9412
+ # use a certificate to connect to AWS IoT.
8935
9413
  #
8936
- # The ACTIVE state is required to authenticate devices connecting to AWS
8937
- # IoT using a certificate.
9414
+ # Within a few minutes of updating a certificate from the ACTIVE state
9415
+ # to any other state, AWS IoT disconnects all devices that used that
9416
+ # certificate to connect. Devices cannot use a certificate that is not
9417
+ # in the ACTIVE state to reconnect.
8938
9418
  #
8939
9419
  # @option params [required, String] :certificate_id
8940
9420
  # The ID of the certificate. (The last part of the certificate ARN
@@ -9927,7 +10407,7 @@ module Aws::IoT
9927
10407
  params: params,
9928
10408
  config: config)
9929
10409
  context[:gem_name] = 'aws-sdk-iot'
9930
- context[:gem_version] = '1.51.1'
10410
+ context[:gem_version] = '1.56.0'
9931
10411
  Seahorse::Client::Request.new(handlers, context)
9932
10412
  end
9933
10413