Skip to content

Commit

Permalink
Add AwsIAMServiceResolvedConditionKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 28, 2024
1 parent cff79a1 commit bbcb93f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SotoSmithyAWS/Smithy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ extension Smithy {
AwsIAMActionPermissionDescriptionTrait.self,
AwsIAMConditionKeyValueTrait.self,
AwsIAMDisableConditionKeyInferenceTrait.self,
AwsIAMServiceResolvedConditionKeys.self,
AwsIAMSupportPrincipalTypesTrait.self,
AwsIAMResourceTrait.self,
// API Gateway traits
Expand Down
11 changes: 11 additions & 0 deletions Sources/SotoSmithyAWS/Traits/AwsIAMTraits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServiceShape>() }
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"
Expand Down

0 comments on commit bbcb93f

Please sign in to comment.