@aws-sdk/client-iot 3.509.0 → 3.513.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.
Files changed (42) hide show
  1. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +1 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  3. package/dist-cjs/index.js +68 -7
  4. package/dist-cjs/runtimeConfig.shared.js +10 -0
  5. package/dist-es/IoTClient.js +17 -4
  6. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  8. package/dist-es/protocols/Aws_restJson1.js +3 -0
  9. package/dist-es/runtimeConfig.shared.js +10 -0
  10. package/dist-es/runtimeExtensions.js +3 -0
  11. package/dist-types/IoTClient.d.ts +13 -11
  12. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  13. package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
  14. package/dist-types/commands/CreateDomainConfigurationCommand.d.ts +3 -0
  15. package/dist-types/commands/DeleteCustomMetricCommand.d.ts +1 -2
  16. package/dist-types/commands/DescribeDomainConfigurationCommand.d.ts +3 -0
  17. package/dist-types/commands/DescribeEndpointCommand.d.ts +5 -1
  18. package/dist-types/commands/GetRegistrationCodeCommand.d.ts +3 -0
  19. package/dist-types/commands/ListOutgoingCertificatesCommand.d.ts +1 -2
  20. package/dist-types/commands/UpdateDomainConfigurationCommand.d.ts +3 -0
  21. package/dist-types/extensionConfiguration.d.ts +2 -1
  22. package/dist-types/models/models_0.d.ts +19 -12
  23. package/dist-types/models/models_1.d.ts +18 -23
  24. package/dist-types/models/models_2.d.ts +28 -1
  25. package/dist-types/runtimeConfig.browser.d.ts +5 -3
  26. package/dist-types/runtimeConfig.d.ts +4 -2
  27. package/dist-types/runtimeConfig.native.d.ts +6 -4
  28. package/dist-types/runtimeConfig.shared.d.ts +2 -0
  29. package/dist-types/ts3.4/IoTClient.d.ts +11 -9
  30. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  31. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
  32. package/dist-types/ts3.4/commands/DeleteCustomMetricCommand.d.ts +4 -2
  33. package/dist-types/ts3.4/commands/ListOutgoingCertificatesCommand.d.ts +4 -2
  34. package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
  35. package/dist-types/ts3.4/models/models_0.d.ts +4 -3
  36. package/dist-types/ts3.4/models/models_1.d.ts +5 -5
  37. package/dist-types/ts3.4/models/models_2.d.ts +7 -0
  38. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +5 -5
  39. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -4
  40. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -8
  41. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
  42. package/package.json +16 -16
@@ -27,6 +27,9 @@ declare const GetRegistrationCodeCommand_base: {
27
27
  /**
28
28
  * @public
29
29
  * <p>Gets a registration code used to register a CA certificate with IoT.</p>
30
+ * <p>IoT will create a registration code as part of this API call if the registration
31
+ * code doesn't exist or has been deleted. If you already have a registration code, this API
32
+ * call will return the same registration code.</p>
30
33
  * <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetRegistrationCode</a> action.</p>
31
34
  * @example
32
35
  * Use a bare-bones client and the command you need to make an API call.
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { IoTClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IoTClient";
4
- import { ListOutgoingCertificatesRequest } from "../models/models_1";
5
- import { ListOutgoingCertificatesResponse } from "../models/models_2";
4
+ import { ListOutgoingCertificatesRequest, ListOutgoingCertificatesResponse } from "../models/models_2";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -46,6 +46,9 @@ declare const UpdateDomainConfigurationCommand_base: {
46
46
  * tlsConfig: { // TlsConfig
47
47
  * securityPolicy: "STRING_VALUE",
48
48
  * },
49
+ * serverCertificateConfig: { // ServerCertificateConfig
50
+ * enableOCSPCheck: true || false,
51
+ * },
49
52
  * };
50
53
  * const command = new UpdateDomainConfigurationCommand(input);
51
54
  * const response = await client.send(command);
@@ -1,8 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  /**
5
6
  * @internal
6
7
  */
7
- export interface IoTExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
8
+ export interface IoTExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
8
9
  }
@@ -3658,6 +3658,20 @@ export declare class CertificateValidationException extends __BaseException {
3658
3658
  */
3659
3659
  constructor(opts: __ExceptionOptionType<CertificateValidationException, __BaseException>);
3660
3660
  }
3661
+ /**
3662
+ * @public
3663
+ * <p>The server certificate configuration.</p>
3664
+ */
3665
+ export interface ServerCertificateConfig {
3666
+ /**
3667
+ * @public
3668
+ * <p>A Boolean value that indicates whether Online Certificate Status Protocol (OCSP) server
3669
+ * certificate check is enabled or not.</p>
3670
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-custom-domain-ocsp-config.html">Configuring OCSP server-certificate stapling in domain
3671
+ * configuration</a> from Amazon Web Services IoT Core Developer Guide.</p>
3672
+ */
3673
+ enableOCSPCheck?: boolean;
3674
+ }
3661
3675
  /**
3662
3676
  * @public
3663
3677
  * @enum
@@ -3740,6 +3754,11 @@ export interface CreateDomainConfigurationRequest {
3740
3754
  * <p>An object that specifies the TLS configuration for a domain.</p>
3741
3755
  */
3742
3756
  tlsConfig?: TlsConfig;
3757
+ /**
3758
+ * @public
3759
+ * <p>The server certificate configuration.</p>
3760
+ */
3761
+ serverCertificateConfig?: ServerCertificateConfig;
3743
3762
  }
3744
3763
  /**
3745
3764
  * @public
@@ -6609,18 +6628,6 @@ export interface DeleteCertificateProviderRequest {
6609
6628
  */
6610
6629
  export interface DeleteCertificateProviderResponse {
6611
6630
  }
6612
- /**
6613
- * @public
6614
- */
6615
- export interface DeleteCustomMetricRequest {
6616
- /**
6617
- * @public
6618
- * <p>
6619
- * The name of the custom metric.
6620
- * </p>
6621
- */
6622
- metricName: string | undefined;
6623
- }
6624
6631
  /**
6625
6632
  * @internal
6626
6633
  */
@@ -1,6 +1,18 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { IoTServiceException as __BaseException } from "./IoTServiceException";
3
- import { AbortConfig, Action, ActiveViolation, AggregationType, AlertTarget, AlertTargetType, AuditCheckConfiguration, AuditCheckDetails, AuditFinding, AuditFrequency, AuditMitigationActionExecutionMetadata, AuditMitigationActionsExecutionStatus, AuditMitigationActionsTaskMetadata, AuditMitigationActionsTaskStatus, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditNotificationType, AuditSuppression, AuditTaskMetadata, AuditTaskStatus, AuditTaskType, AuthorizerConfig, AuthorizerDescription, AuthorizerStatus, AuthorizerSummary, AutoRegistrationStatus, AwsJobExecutionsRolloutConfig, AwsJobPresignedUrlConfig, Behavior, BillingGroupProperties, CertificateProviderOperation, CustomMetricType, DayOfWeek, DimensionType, DimensionValueOperator, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MaintenanceWindow, MetricsExportConfig, MetricToRetain, MetricValue, MitigationActionParams, OTAUpdateFile, OTAUpdateStatus, PackageVersionStatus, Policy, PresignedUrlConfig, Protocol, ProvisioningHook, ResourceIdentifier, SchedulingConfig, ServiceType, StreamFile, TargetSelection, TaskStatisticsForAuditCheck, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestination, VerificationState } from "./models_0";
3
+ import { AbortConfig, Action, ActiveViolation, AggregationType, AlertTarget, AlertTargetType, AuditCheckConfiguration, AuditCheckDetails, AuditFinding, AuditFrequency, AuditMitigationActionExecutionMetadata, AuditMitigationActionsExecutionStatus, AuditMitigationActionsTaskMetadata, AuditMitigationActionsTaskStatus, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditNotificationType, AuditSuppression, AuditTaskMetadata, AuditTaskStatus, AuditTaskType, AuthorizerConfig, AuthorizerDescription, AuthorizerStatus, AuthorizerSummary, AutoRegistrationStatus, AwsJobExecutionsRolloutConfig, AwsJobPresignedUrlConfig, Behavior, BillingGroupProperties, CertificateProviderOperation, CustomMetricType, DayOfWeek, DimensionType, DimensionValueOperator, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MaintenanceWindow, MetricsExportConfig, MetricToRetain, MetricValue, MitigationActionParams, OTAUpdateFile, OTAUpdateStatus, PackageVersionStatus, Policy, PresignedUrlConfig, Protocol, ProvisioningHook, ResourceIdentifier, SchedulingConfig, ServerCertificateConfig, ServiceType, StreamFile, TargetSelection, TaskStatisticsForAuditCheck, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestination, VerificationState } from "./models_0";
4
+ /**
5
+ * @public
6
+ */
7
+ export interface DeleteCustomMetricRequest {
8
+ /**
9
+ * @public
10
+ * <p>
11
+ * The name of the custom metric.
12
+ * </p>
13
+ */
14
+ metricName: string | undefined;
15
+ }
4
16
  /**
5
17
  * @public
6
18
  */
@@ -1687,6 +1699,11 @@ export interface DescribeDomainConfigurationResponse {
1687
1699
  * <p>An object that specifies the TLS configuration for a domain.</p>
1688
1700
  */
1689
1701
  tlsConfig?: TlsConfig;
1702
+ /**
1703
+ * @public
1704
+ * <p>The server certificate configuration.</p>
1705
+ */
1706
+ serverCertificateConfig?: ServerCertificateConfig;
1690
1707
  }
1691
1708
  /**
1692
1709
  * @public
@@ -6504,28 +6521,6 @@ export interface ListOTAUpdatesResponse {
6504
6521
  */
6505
6522
  nextToken?: string;
6506
6523
  }
6507
- /**
6508
- * @public
6509
- * <p>The input to the ListOutgoingCertificates operation.</p>
6510
- */
6511
- export interface ListOutgoingCertificatesRequest {
6512
- /**
6513
- * @public
6514
- * <p>The result page size.</p>
6515
- */
6516
- pageSize?: number;
6517
- /**
6518
- * @public
6519
- * <p>The marker for the next set of results.</p>
6520
- */
6521
- marker?: string;
6522
- /**
6523
- * @public
6524
- * <p>Specifies the order for results. If True, the results are returned in ascending
6525
- * order, based on the creation date.</p>
6526
- */
6527
- ascendingOrder?: boolean;
6528
- }
6529
6524
  /**
6530
6525
  * @internal
6531
6526
  */
@@ -1,7 +1,29 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { IoTServiceException as __BaseException } from "./IoTServiceException";
3
- import { AbortConfig, AggregationType, AlertTarget, AlertTargetType, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditNotificationType, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CertificateProviderOperation, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricsExportConfig, MetricToRetain, MetricValue, MitigationActionParams, PackageVersionStatus, Policy, PresignedUrlConfig, ProvisioningHook, RelatedResource, ResourceIdentifier, StreamFile, Tag, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
3
+ import { AbortConfig, AggregationType, AlertTarget, AlertTargetType, AttributePayload, AuditCheckConfiguration, AuditFrequency, AuditMitigationActionsTaskTarget, AuditNotificationTarget, AuditNotificationType, AuthInfo, AuthorizerConfig, AuthorizerStatus, AuthResult, AutoRegistrationStatus, Behavior, BillingGroupProperties, CertificateProviderOperation, CustomMetricType, DayOfWeek, DimensionType, FleetMetricUnit, JobExecutionsRetryConfig, JobExecutionsRolloutConfig, LogLevel, MetricsExportConfig, MetricToRetain, MetricValue, MitigationActionParams, PackageVersionStatus, Policy, PresignedUrlConfig, ProvisioningHook, RelatedResource, ResourceIdentifier, ServerCertificateConfig, StreamFile, Tag, TemplateType, ThingGroupProperties, ThingTypeProperties, TimeoutConfig, TlsConfig, TopicRuleDestinationStatus, TopicRulePayload, VerificationState, ViolationEventAdditionalInfo } from "./models_0";
4
4
  import { BehaviorCriteriaType, CACertificateStatus, CertificateMode, CertificateStatus, Configuration, DetectMitigationActionsTaskTarget, DomainConfigurationStatus, EventType, GroupNameAndArn, LogTargetType, RegistrationConfig, Status, ThingGroupIndexingConfiguration, ThingIndexingConfiguration, ThingTypeMetadata, VersionUpdateByJobsConfig, ViolationEventOccurrenceRange } from "./models_1";
5
+ /**
6
+ * @public
7
+ * <p>The input to the ListOutgoingCertificates operation.</p>
8
+ */
9
+ export interface ListOutgoingCertificatesRequest {
10
+ /**
11
+ * @public
12
+ * <p>The result page size.</p>
13
+ */
14
+ pageSize?: number;
15
+ /**
16
+ * @public
17
+ * <p>The marker for the next set of results.</p>
18
+ */
19
+ marker?: string;
20
+ /**
21
+ * @public
22
+ * <p>Specifies the order for results. If True, the results are returned in ascending
23
+ * order, based on the creation date.</p>
24
+ */
25
+ ascendingOrder?: boolean;
26
+ }
5
27
  /**
6
28
  * @public
7
29
  * <p>A certificate that has been transferred but not yet accepted.</p>
@@ -3312,6 +3334,11 @@ export interface UpdateDomainConfigurationRequest {
3312
3334
  * <p>An object that specifies the TLS configuration for a domain.</p>
3313
3335
  */
3314
3336
  tlsConfig?: TlsConfig;
3337
+ /**
3338
+ * @public
3339
+ * <p>The server certificate configuration.</p>
3340
+ */
3341
+ serverCertificateConfig?: ServerCertificateConfig;
3315
3342
  }
3316
3343
  /**
3317
3344
  * @public
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
10
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
11
11
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -36,11 +36,13 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
36
36
  }) => import("@smithy/types").EndpointV2;
37
37
  tls?: boolean | undefined;
38
38
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
39
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
39
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
40
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
41
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTHttpAuthSchemeProvider;
42
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
40
43
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
41
44
  signingEscapePath?: boolean | undefined;
42
45
  systemClockOffset?: number | undefined;
43
46
  signingRegion?: string | undefined;
44
47
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
45
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
46
48
  };
@@ -21,9 +21,9 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
21
21
  serviceId: string;
22
22
  useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
23
23
  useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
24
- region: string | import("@smithy/types").Provider<any>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
26
24
  defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
25
+ region: string | import("@smithy/types").Provider<any>;
26
+ credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
27
27
  maxAttempts: number | import("@smithy/types").Provider<number>;
28
28
  retryMode: string | import("@smithy/types").Provider<string>;
29
29
  logger: import("@smithy/types").Logger;
@@ -35,11 +35,13 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
35
35
  }) => import("@smithy/types").EndpointV2;
36
36
  tls?: boolean | undefined;
37
37
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
38
- credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider<import("@smithy/types").AwsCredentialIdentity> | undefined;
38
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
39
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
40
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTHttpAuthSchemeProvider;
41
+ credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
39
42
  signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise<import("@smithy/types").RequestSigner>) | undefined;
40
43
  signingEscapePath?: boolean | undefined;
41
44
  systemClockOffset?: number | undefined;
42
45
  signingRegion?: string | undefined;
43
46
  signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined;
44
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
45
47
  };
@@ -11,6 +11,8 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
11
11
  logger?: import("@smithy/types").Logger | undefined;
12
12
  }) => import("@smithy/types").EndpointV2;
13
13
  extensions: import("./runtimeExtensions").RuntimeExtension[];
14
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTHttpAuthSchemeProvider;
15
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
14
16
  logger: import("@smithy/types").Logger;
15
17
  serviceId: string;
16
18
  urlParser: import("@smithy/types").UrlParser;
@@ -2,15 +2,10 @@ import {
2
2
  HostHeaderInputConfig,
3
3
  HostHeaderResolvedConfig,
4
4
  } from "@aws-sdk/middleware-host-header";
5
- import {
6
- AwsAuthInputConfig,
7
- AwsAuthResolvedConfig,
8
- } from "@aws-sdk/middleware-signing";
9
5
  import {
10
6
  UserAgentInputConfig,
11
7
  UserAgentResolvedConfig,
12
8
  } from "@aws-sdk/middleware-user-agent";
13
- import { Credentials as __Credentials } from "@aws-sdk/types";
14
9
  import {
15
10
  RegionInputConfig,
16
11
  RegionResolvedConfig,
@@ -31,6 +26,7 @@ import {
31
26
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
32
27
  } from "@smithy/smithy-client";
33
28
  import {
29
+ AwsCredentialIdentityProvider,
34
30
  BodyLengthCalculator as __BodyLengthCalculator,
35
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
36
32
  ChecksumConstructor as __ChecksumConstructor,
@@ -45,6 +41,10 @@ import {
45
41
  UrlParser as __UrlParser,
46
42
  UserAgent as __UserAgent,
47
43
  } from "@smithy/types";
44
+ import {
45
+ HttpAuthSchemeInputConfig,
46
+ HttpAuthSchemeResolvedConfig,
47
+ } from "./auth/httpAuthSchemeProvider";
48
48
  import {
49
49
  AcceptCertificateTransferCommandInput,
50
50
  AcceptCertificateTransferCommandOutput,
@@ -1600,9 +1600,9 @@ export interface ClientDefaults
1600
1600
  serviceId?: string;
1601
1601
  useDualstackEndpoint?: boolean | __Provider<boolean>;
1602
1602
  useFipsEndpoint?: boolean | __Provider<boolean>;
1603
- region?: string | __Provider<string>;
1604
- credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
1605
1603
  defaultUserAgentProvider?: Provider<__UserAgent>;
1604
+ region?: string | __Provider<string>;
1605
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
1606
1606
  maxAttempts?: number | __Provider<number>;
1607
1607
  retryMode?: string | __Provider<string>;
1608
1608
  logger?: __Logger;
@@ -1617,8 +1617,8 @@ export type IoTClientConfigType = Partial<
1617
1617
  EndpointInputConfig<EndpointParameters> &
1618
1618
  RetryInputConfig &
1619
1619
  HostHeaderInputConfig &
1620
- AwsAuthInputConfig &
1621
1620
  UserAgentInputConfig &
1621
+ HttpAuthSchemeInputConfig &
1622
1622
  ClientInputEndpointParameters;
1623
1623
  export interface IoTClientConfig extends IoTClientConfigType {}
1624
1624
  export type IoTClientResolvedConfigType =
@@ -1629,8 +1629,8 @@ export type IoTClientResolvedConfigType =
1629
1629
  EndpointResolvedConfig<EndpointParameters> &
1630
1630
  RetryResolvedConfig &
1631
1631
  HostHeaderResolvedConfig &
1632
- AwsAuthResolvedConfig &
1633
1632
  UserAgentResolvedConfig &
1633
+ HttpAuthSchemeResolvedConfig &
1634
1634
  ClientResolvedEndpointParameters;
1635
1635
  export interface IoTClientResolvedConfig extends IoTClientResolvedConfigType {}
1636
1636
  export declare class IoTClient extends __Client<
@@ -1642,4 +1642,6 @@ export declare class IoTClient extends __Client<
1642
1642
  readonly config: IoTClientResolvedConfig;
1643
1643
  constructor(...[configuration]: __CheckOptionalClientConfig<IoTClientConfig>);
1644
1644
  destroy(): void;
1645
+ private getDefaultHttpAuthSchemeParametersProvider;
1646
+ private getIdentityProviderConfigProvider;
1645
1647
  }
@@ -0,0 +1,32 @@
1
+ import {
2
+ AwsCredentialIdentity,
3
+ AwsCredentialIdentityProvider,
4
+ HttpAuthScheme,
5
+ } from "@smithy/types";
6
+ import { IoTHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
+ export interface HttpAuthExtensionConfiguration {
8
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
9
+ httpAuthSchemes(): HttpAuthScheme[];
10
+ setHttpAuthSchemeProvider(
11
+ httpAuthSchemeProvider: IoTHttpAuthSchemeProvider
12
+ ): void;
13
+ httpAuthSchemeProvider(): IoTHttpAuthSchemeProvider;
14
+ setCredentials(
15
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider
16
+ ): void;
17
+ credentials():
18
+ | AwsCredentialIdentity
19
+ | AwsCredentialIdentityProvider
20
+ | undefined;
21
+ }
22
+ export type HttpAuthRuntimeConfig = Partial<{
23
+ httpAuthSchemes: HttpAuthScheme[];
24
+ httpAuthSchemeProvider: IoTHttpAuthSchemeProvider;
25
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
26
+ }>;
27
+ export declare const getHttpAuthExtensionConfiguration: (
28
+ runtimeConfig: HttpAuthRuntimeConfig
29
+ ) => HttpAuthExtensionConfiguration;
30
+ export declare const resolveHttpAuthRuntimeConfig: (
31
+ config: HttpAuthExtensionConfiguration
32
+ ) => HttpAuthRuntimeConfig;
@@ -0,0 +1,43 @@
1
+ import {
2
+ AwsSdkSigV4AuthInputConfig,
3
+ AwsSdkSigV4AuthResolvedConfig,
4
+ AwsSdkSigV4PreviouslyResolved,
5
+ } from "@aws-sdk/core";
6
+ import {
7
+ HandlerExecutionContext,
8
+ HttpAuthScheme,
9
+ HttpAuthSchemeParameters,
10
+ HttpAuthSchemeParametersProvider,
11
+ HttpAuthSchemeProvider,
12
+ } from "@smithy/types";
13
+ import { IoTClientResolvedConfig } from "../IoTClient";
14
+ export interface IoTHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
15
+ region?: string;
16
+ }
17
+ export interface IoTHttpAuthSchemeParametersProvider
18
+ extends HttpAuthSchemeParametersProvider<
19
+ IoTClientResolvedConfig,
20
+ HandlerExecutionContext,
21
+ IoTHttpAuthSchemeParameters,
22
+ object
23
+ > {}
24
+ export declare const defaultIoTHttpAuthSchemeParametersProvider: (
25
+ config: IoTClientResolvedConfig,
26
+ context: HandlerExecutionContext,
27
+ input: object
28
+ ) => Promise<IoTHttpAuthSchemeParameters>;
29
+ export interface IoTHttpAuthSchemeProvider
30
+ extends HttpAuthSchemeProvider<IoTHttpAuthSchemeParameters> {}
31
+ export declare const defaultIoTHttpAuthSchemeProvider: IoTHttpAuthSchemeProvider;
32
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
33
+ httpAuthSchemes?: HttpAuthScheme[];
34
+ httpAuthSchemeProvider?: IoTHttpAuthSchemeProvider;
35
+ }
36
+ export interface HttpAuthSchemeResolvedConfig
37
+ extends AwsSdkSigV4AuthResolvedConfig {
38
+ readonly httpAuthSchemes: HttpAuthScheme[];
39
+ readonly httpAuthSchemeProvider: IoTHttpAuthSchemeProvider;
40
+ }
41
+ export declare const resolveHttpAuthSchemeConfig: <T>(
42
+ config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved
43
+ ) => T & HttpAuthSchemeResolvedConfig;
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../IoTClient";
8
- import { DeleteCustomMetricRequest } from "../models/models_0";
9
- import { DeleteCustomMetricResponse } from "../models/models_1";
8
+ import {
9
+ DeleteCustomMetricRequest,
10
+ DeleteCustomMetricResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer, $Command };
11
13
  export interface DeleteCustomMetricCommandInput
12
14
  extends DeleteCustomMetricRequest {}
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../IoTClient";
8
- import { ListOutgoingCertificatesRequest } from "../models/models_1";
9
- import { ListOutgoingCertificatesResponse } from "../models/models_2";
8
+ import {
9
+ ListOutgoingCertificatesRequest,
10
+ ListOutgoingCertificatesResponse,
11
+ } from "../models/models_2";
10
12
  export { __MetadataBearer, $Command };
11
13
  export interface ListOutgoingCertificatesCommandInput
12
14
  extends ListOutgoingCertificatesRequest {}
@@ -1,7 +1,9 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
2
  import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
4
5
  export interface IoTExtensionConfiguration
5
6
  extends HttpHandlerExtensionConfiguration,
6
7
  DefaultExtensionConfiguration,
7
- AwsRegionExtensionConfiguration {}
8
+ AwsRegionExtensionConfiguration,
9
+ HttpAuthExtensionConfiguration {}
@@ -976,6 +976,9 @@ export declare class CertificateValidationException extends __BaseException {
976
976
  opts: __ExceptionOptionType<CertificateValidationException, __BaseException>
977
977
  );
978
978
  }
979
+ export interface ServerCertificateConfig {
980
+ enableOCSPCheck?: boolean;
981
+ }
979
982
  export declare const ServiceType: {
980
983
  readonly CREDENTIAL_PROVIDER: "CREDENTIAL_PROVIDER";
981
984
  readonly DATA: "DATA";
@@ -994,6 +997,7 @@ export interface CreateDomainConfigurationRequest {
994
997
  serviceType?: ServiceType;
995
998
  tags?: Tag[];
996
999
  tlsConfig?: TlsConfig;
1000
+ serverCertificateConfig?: ServerCertificateConfig;
997
1001
  }
998
1002
  export interface CreateDomainConfigurationResponse {
999
1003
  domainConfigurationName?: string;
@@ -1743,9 +1747,6 @@ export interface DeleteCertificateProviderRequest {
1743
1747
  certificateProviderName: string | undefined;
1744
1748
  }
1745
1749
  export interface DeleteCertificateProviderResponse {}
1746
- export interface DeleteCustomMetricRequest {
1747
- metricName: string | undefined;
1748
- }
1749
1750
  export declare const KeyPairFilterSensitiveLog: (obj: KeyPair) => any;
1750
1751
  export declare const CreateKeysAndCertificateResponseFilterSensitiveLog: (
1751
1752
  obj: CreateKeysAndCertificateResponse
@@ -54,6 +54,7 @@ import {
54
54
  ProvisioningHook,
55
55
  ResourceIdentifier,
56
56
  SchedulingConfig,
57
+ ServerCertificateConfig,
57
58
  ServiceType,
58
59
  StreamFile,
59
60
  TargetSelection,
@@ -66,6 +67,9 @@ import {
66
67
  TopicRuleDestination,
67
68
  VerificationState,
68
69
  } from "./models_0";
70
+ export interface DeleteCustomMetricRequest {
71
+ metricName: string | undefined;
72
+ }
69
73
  export interface DeleteCustomMetricResponse {}
70
74
  export interface DeleteDimensionRequest {
71
75
  name: string | undefined;
@@ -471,6 +475,7 @@ export interface DescribeDomainConfigurationResponse {
471
475
  domainType?: DomainType;
472
476
  lastStatusChangeDate?: Date;
473
477
  tlsConfig?: TlsConfig;
478
+ serverCertificateConfig?: ServerCertificateConfig;
474
479
  }
475
480
  export interface DescribeEndpointRequest {
476
481
  endpointType?: string;
@@ -1584,11 +1589,6 @@ export interface ListOTAUpdatesResponse {
1584
1589
  otaUpdates?: OTAUpdateSummary[];
1585
1590
  nextToken?: string;
1586
1591
  }
1587
- export interface ListOutgoingCertificatesRequest {
1588
- pageSize?: number;
1589
- marker?: string;
1590
- ascendingOrder?: boolean;
1591
- }
1592
1592
  export declare const GetPackageResponseFilterSensitiveLog: (
1593
1593
  obj: GetPackageResponse
1594
1594
  ) => any;
@@ -36,6 +36,7 @@ import {
36
36
  ProvisioningHook,
37
37
  RelatedResource,
38
38
  ResourceIdentifier,
39
+ ServerCertificateConfig,
39
40
  StreamFile,
40
41
  Tag,
41
42
  TemplateType,
@@ -67,6 +68,11 @@ import {
67
68
  VersionUpdateByJobsConfig,
68
69
  ViolationEventOccurrenceRange,
69
70
  } from "./models_1";
71
+ export interface ListOutgoingCertificatesRequest {
72
+ pageSize?: number;
73
+ marker?: string;
74
+ ascendingOrder?: boolean;
75
+ }
70
76
  export interface OutgoingCertificate {
71
77
  certificateArn?: string;
72
78
  certificateId?: string;
@@ -854,6 +860,7 @@ export interface UpdateDomainConfigurationRequest {
854
860
  domainConfigurationStatus?: DomainConfigurationStatus;
855
861
  removeAuthorizerConfig?: boolean;
856
862
  tlsConfig?: TlsConfig;
863
+ serverCertificateConfig?: ServerCertificateConfig;
857
864
  }
858
865
  export interface UpdateDomainConfigurationResponse {
859
866
  domainConfigurationName?: string;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider: (
10
10
  input: any
11
- ) => import("@smithy/types").Provider<import("@aws-sdk/types").Credentials>;
11
+ ) => import("@smithy/types").AwsCredentialIdentityProvider;
12
12
  defaultUserAgentProvider: import("@smithy/types").Provider<
13
13
  import("@smithy/types").UserAgent
14
14
  >;
@@ -72,11 +72,12 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
72
72
  | import("@smithy/types").RetryStrategy
73
73
  | import("@smithy/types").RetryStrategyV2
74
74
  | undefined;
75
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
76
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
77
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTHttpAuthSchemeProvider;
75
78
  credentials?:
76
79
  | import("@smithy/types").AwsCredentialIdentity
77
- | import("@smithy/types").Provider<
78
- import("@smithy/types").AwsCredentialIdentity
79
- >
80
+ | import("@smithy/types").AwsCredentialIdentityProvider
80
81
  | undefined;
81
82
  signer?:
82
83
  | import("@smithy/types").RequestSigner
@@ -93,5 +94,4 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
93
94
  import("@smithy/signature-v4").SignatureV4CryptoInit
94
95
  ) => import("@smithy/types").RequestSigner)
95
96
  | undefined;
96
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
97
97
  };
@@ -76,11 +76,12 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
76
76
  | import("@smithy/types").RetryStrategy
77
77
  | import("@smithy/types").RetryStrategyV2
78
78
  | undefined;
79
+ customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
80
+ httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
81
+ httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTHttpAuthSchemeProvider;
79
82
  credentials?:
80
83
  | import("@smithy/types").AwsCredentialIdentity
81
- | import("@smithy/types").Provider<
82
- import("@smithy/types").AwsCredentialIdentity
83
- >
84
+ | import("@smithy/types").AwsCredentialIdentityProvider
84
85
  | undefined;
85
86
  signer?:
86
87
  | import("@smithy/types").RequestSigner
@@ -97,5 +98,4 @@ export declare const getRuntimeConfig: (config: IoTClientConfig) => {
97
98
  import("@smithy/signature-v4").SignatureV4CryptoInit
98
99
  ) => import("@smithy/types").RequestSigner)
99
100
  | undefined;
100
- customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
101
101
  };