From bbcb93f66e035231f59ca05b0a3645932df5a1bf Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Thu, 28 Mar 2024 12:18:32 +0000 Subject: [PATCH] Add AwsIAMServiceResolvedConditionKeys --- Sources/SotoSmithyAWS/Smithy.swift | 1 + Sources/SotoSmithyAWS/Traits/AwsIAMTraits.swift | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Sources/SotoSmithyAWS/Smithy.swift b/Sources/SotoSmithyAWS/Smithy.swift index 86a6ecd..9903184 100644 --- a/Sources/SotoSmithyAWS/Smithy.swift +++ b/Sources/SotoSmithyAWS/Smithy.swift @@ -54,6 +54,7 @@ extension Smithy { AwsIAMActionPermissionDescriptionTrait.self, AwsIAMConditionKeyValueTrait.self, AwsIAMDisableConditionKeyInferenceTrait.self, + AwsIAMServiceResolvedConditionKeys.self, AwsIAMSupportPrincipalTypesTrait.self, AwsIAMResourceTrait.self, // API Gateway traits diff --git a/Sources/SotoSmithyAWS/Traits/AwsIAMTraits.swift b/Sources/SotoSmithyAWS/Traits/AwsIAMTraits.swift index 29b0c20..8b53490 100644 --- a/Sources/SotoSmithyAWS/Traits/AwsIAMTraits.swift +++ b/Sources/SotoSmithyAWS/Traits/AwsIAMTraits.swift @@ -98,6 +98,17 @@ public struct AwsIAMDefineConditionKeysTrait: SingleValueTrait { } } +/// Specifies the list of IAM condition keys which must be resolved by the service, as opposed +/// to the value being pulled from the request. +public struct AwsIAMServiceResolvedConditionKeys: SingleValueTrait { + public static let staticName: ShapeId = "aws.iam#serviceResolvedConditionKeys" + public var selector: Selector { TypeSelector() } + public let value: [String] + public init(value: [String]) { + self.value = value + } +} + /// Uses the associated member’s value for the specified condition key. public struct AwsIAMConditionKeyValueTrait: SingleValueTrait { public static let staticName: ShapeId = "aws.iam#conditionKeyValue"