Skip to content

Commit

Permalink
chore: Updates version to 0.66.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Aug 26, 2024
1 parent 42ec966 commit ea5922d
Show file tree
Hide file tree
Showing 7 changed files with 559 additions and 45 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ let package = Package(
.awsSDKHTTPAuth,
.awsSDKIdentity
],
path: "Sources/Core/AWSClientRuntime/Sources",
path: "Sources/Core/AWSClientRuntime/Sources/AWSClientRuntime",
resources: [
.process("AWSClientRuntime/Resources")
.process("Resources"),
]
),
.target(
Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.65.0
0.66.0

Large diffs are not rendered by default.

412 changes: 373 additions & 39 deletions Sources/Services/AWSIoTSiteWise/Sources/AWSIoTSiteWise/Models.swift

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ extension ListAssetModelCompositeModelsInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListAssetModelCompositeModelsInput {
return ListAssetModelCompositeModelsInput(
assetModelId: self.assetModelId,
assetModelVersion: self.assetModelVersion,
maxResults: self.maxResults,
nextToken: token
)}
Expand Down Expand Up @@ -308,6 +309,7 @@ extension ListAssetModelPropertiesInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListAssetModelPropertiesInput {
return ListAssetModelPropertiesInput(
assetModelId: self.assetModelId,
assetModelVersion: self.assetModelVersion,
filter: self.filter,
maxResults: self.maxResults,
nextToken: token
Expand Down Expand Up @@ -340,6 +342,7 @@ extension ListAssetModelsInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> ListAssetModelsInput {
return ListAssetModelsInput(
assetModelTypes: self.assetModelTypes,
assetModelVersion: self.assetModelVersion,
maxResults: self.maxResults,
nextToken: token
)}
Expand Down
159 changes: 159 additions & 0 deletions Sources/Services/AWSWorkSpaces/Sources/AWSWorkSpaces/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4789,9 +4789,62 @@ public struct DescribeWorkspaceBundlesOutput {
}
}

extension WorkSpacesClientTypes {

public enum DescribeWorkspaceDirectoriesFilterName: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case userIdentityType
case workspaceType
case sdkUnknown(Swift.String)

public static var allCases: [DescribeWorkspaceDirectoriesFilterName] {
return [
.userIdentityType,
.workspaceType
]
}

public init?(rawValue: Swift.String) {
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
self = value ?? Self.sdkUnknown(rawValue)
}

public var rawValue: Swift.String {
switch self {
case .userIdentityType: return "USER_IDENTITY_TYPE"
case .workspaceType: return "WORKSPACE_TYPE"
case let .sdkUnknown(s): return s
}
}
}
}

extension WorkSpacesClientTypes {
/// Describes the filter conditions for the WorkSpaces to return.
public struct DescribeWorkspaceDirectoriesFilter {
/// The name of the WorkSpaces to filter.
/// This member is required.
public var name: WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilterName?
/// The values for filtering WorkSpaces
/// This member is required.
public var values: [Swift.String]?

public init(
name: WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilterName? = nil,
values: [Swift.String]? = nil
)
{
self.name = name
self.values = values
}
}

}

public struct DescribeWorkspaceDirectoriesInput {
/// The identifiers of the directories. If the value is null, all directories are retrieved.
public var directoryIds: [Swift.String]?
/// The filter condition for the WorkSpaces.
public var filters: [WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilter]?
/// The maximum number of directories to return.
public var limit: Swift.Int?
/// If you received a NextToken from a previous call that was paginated, provide this token to receive the next set of results.
Expand All @@ -4801,12 +4854,14 @@ public struct DescribeWorkspaceDirectoriesInput {

public init(
directoryIds: [Swift.String]? = nil,
filters: [WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilter]? = nil,
limit: Swift.Int? = nil,
nextToken: Swift.String? = nil,
workspaceDirectoryNames: [Swift.String]? = nil
)
{
self.directoryIds = directoryIds
self.filters = filters
self.limit = limit
self.nextToken = nextToken
self.workspaceDirectoryNames = workspaceDirectoryNames
Expand All @@ -4817,13 +4872,15 @@ extension WorkSpacesClientTypes {

public enum WorkspaceDirectoryType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case adConnector
case awsIamIdentityCenter
case customerManaged
case simpleAd
case sdkUnknown(Swift.String)

public static var allCases: [WorkspaceDirectoryType] {
return [
.adConnector,
.awsIamIdentityCenter,
.customerManaged,
.simpleAd
]
Expand All @@ -4837,6 +4894,7 @@ extension WorkSpacesClientTypes {
public var rawValue: Swift.String {
switch self {
case .adConnector: return "AD_CONNECTOR"
case .awsIamIdentityCenter: return "AWS_IAM_IDENTITY_CENTER"
case .customerManaged: return "CUSTOMER_MANAGED"
case .simpleAd: return "SIMPLE_AD"
case let .sdkUnknown(s): return s
Expand All @@ -4845,6 +4903,46 @@ extension WorkSpacesClientTypes {
}
}

extension WorkSpacesClientTypes {
/// Specifies the configurations of the identity center.
public struct IDCConfig {
/// The Amazon Resource Name (ARN) of the application.
public var applicationArn: Swift.String?
/// The Amazon Resource Name (ARN) of the identity center instance.
public var instanceArn: Swift.String?

public init(
applicationArn: Swift.String? = nil,
instanceArn: Swift.String? = nil
)
{
self.applicationArn = applicationArn
self.instanceArn = instanceArn
}
}

}

extension WorkSpacesClientTypes {
/// Specifies the configurations of the Microsoft Entra.
public struct MicrosoftEntraConfig {
/// The Amazon Resource Name (ARN) of the application config.
public var applicationConfigSecretArn: Swift.String?
/// The identifier of the tenant.
public var tenantId: Swift.String?

public init(
applicationConfigSecretArn: Swift.String? = nil,
tenantId: Swift.String? = nil
)
{
self.applicationConfigSecretArn = applicationConfigSecretArn
self.tenantId = tenantId
}
}

}

extension WorkSpacesClientTypes {

public enum SamlStatusEnum: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
Expand Down Expand Up @@ -5230,12 +5328,14 @@ extension WorkSpacesClientTypes {

public enum UserIdentityType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case awsDirectoryService
case awsIamIdentityCenter
case customerManaged
case sdkUnknown(Swift.String)

public static var allCases: [UserIdentityType] {
return [
.awsDirectoryService,
.awsIamIdentityCenter,
.customerManaged
]
}
Expand All @@ -5248,6 +5348,7 @@ extension WorkSpacesClientTypes {
public var rawValue: Swift.String {
switch self {
case .awsDirectoryService: return "AWS_DIRECTORY_SERVICE"
case .awsIamIdentityCenter: return "AWS_IAM_IDENTITY_CENTER"
case .customerManaged: return "CUSTOMER_MANAGED"
case let .sdkUnknown(s): return s
}
Expand Down Expand Up @@ -5351,8 +5452,12 @@ extension WorkSpacesClientTypes {
public var errorMessage: Swift.String?
/// The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
public var iamRoleId: Swift.String?
/// Specifies details about identity center configurations.
public var idcConfig: WorkSpacesClientTypes.IDCConfig?
/// The identifiers of the IP access control groups associated with the directory.
public var ipGroupIds: [Swift.String]?
/// Specifies details about Microsoft Entra configurations.
public var microsoftEntraConfig: WorkSpacesClientTypes.MicrosoftEntraConfig?
/// The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
public var registrationCode: Swift.String?
/// Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider.
Expand Down Expand Up @@ -5393,7 +5498,9 @@ extension WorkSpacesClientTypes {
dnsIpAddresses: [Swift.String]? = nil,
errorMessage: Swift.String? = nil,
iamRoleId: Swift.String? = nil,
idcConfig: WorkSpacesClientTypes.IDCConfig? = nil,
ipGroupIds: [Swift.String]? = nil,
microsoftEntraConfig: WorkSpacesClientTypes.MicrosoftEntraConfig? = nil,
registrationCode: Swift.String? = nil,
samlProperties: WorkSpacesClientTypes.SamlProperties? = nil,
selfservicePermissions: WorkSpacesClientTypes.SelfservicePermissions? = nil,
Expand All @@ -5420,7 +5527,9 @@ extension WorkSpacesClientTypes {
self.dnsIpAddresses = dnsIpAddresses
self.errorMessage = errorMessage
self.iamRoleId = iamRoleId
self.idcConfig = idcConfig
self.ipGroupIds = ipGroupIds
self.microsoftEntraConfig = microsoftEntraConfig
self.registrationCode = registrationCode
self.samlProperties = samlProperties
self.selfservicePermissions = selfservicePermissions
Expand Down Expand Up @@ -7157,6 +7266,10 @@ public struct RegisterWorkspaceDirectoryInput {
public var enableSelfService: Swift.Bool?
/// Indicates whether Amazon WorkDocs is enabled or disabled. If you have enabled this parameter and WorkDocs is not available in the Region, you will receive an OperationNotSupportedException error. Set EnableWorkDocs to disabled, and try again.
public var enableWorkDocs: Swift.Bool?
/// The Amazon Resource Name (ARN) of the identity center instance.
public var idcInstanceArn: Swift.String?
/// The details about Microsoft Entra config.
public var microsoftEntraConfig: WorkSpacesClientTypes.MicrosoftEntraConfig?
/// The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the subnets are in supported Availability Zones. The subnets must also be in separate Availability Zones. If these conditions are not met, you will receive an OperationNotSupportedException error.
public var subnetIds: [Swift.String]?
/// The tags associated with the directory.
Expand All @@ -7177,6 +7290,8 @@ public struct RegisterWorkspaceDirectoryInput {
directoryId: Swift.String? = nil,
enableSelfService: Swift.Bool? = nil,
enableWorkDocs: Swift.Bool? = nil,
idcInstanceArn: Swift.String? = nil,
microsoftEntraConfig: WorkSpacesClientTypes.MicrosoftEntraConfig? = nil,
subnetIds: [Swift.String]? = nil,
tags: [WorkSpacesClientTypes.Tag]? = nil,
tenancy: WorkSpacesClientTypes.Tenancy? = nil,
Expand All @@ -7190,6 +7305,8 @@ public struct RegisterWorkspaceDirectoryInput {
self.directoryId = directoryId
self.enableSelfService = enableSelfService
self.enableWorkDocs = enableWorkDocs
self.idcInstanceArn = idcInstanceArn
self.microsoftEntraConfig = microsoftEntraConfig
self.subnetIds = subnetIds
self.tags = tags
self.tenancy = tenancy
Expand Down Expand Up @@ -8679,6 +8796,7 @@ extension DescribeWorkspaceDirectoriesInput {
static func write(value: DescribeWorkspaceDirectoriesInput?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["DirectoryIds"].writeList(value.directoryIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["Filters"].writeList(value.filters, memberWritingClosure: WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilter.write(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["Limit"].write(value.limit)
try writer["NextToken"].write(value.nextToken)
try writer["WorkspaceDirectoryNames"].writeList(value.workspaceDirectoryNames, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
Expand Down Expand Up @@ -8967,6 +9085,8 @@ extension RegisterWorkspaceDirectoryInput {
try writer["DirectoryId"].write(value.directoryId)
try writer["EnableSelfService"].write(value.enableSelfService)
try writer["EnableWorkDocs"].write(value.enableWorkDocs)
try writer["IdcInstanceArn"].write(value.idcInstanceArn)
try writer["MicrosoftEntraConfig"].write(value.microsoftEntraConfig, with: WorkSpacesClientTypes.MicrosoftEntraConfig.write(value:to:))
try writer["SubnetIds"].writeList(value.subnetIds, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["Tags"].writeList(value.tags, memberWritingClosure: WorkSpacesClientTypes.Tag.write(value:to:), memberNodeInfo: "member", isFlattened: false)
try writer["Tenancy"].write(value.tenancy)
Expand Down Expand Up @@ -12492,10 +12612,12 @@ extension WorkSpacesClientTypes.WorkspaceDirectory {
value.selfservicePermissions = try reader["SelfservicePermissions"].readIfPresent(with: WorkSpacesClientTypes.SelfservicePermissions.read(from:))
value.samlProperties = try reader["SamlProperties"].readIfPresent(with: WorkSpacesClientTypes.SamlProperties.read(from:))
value.certificateBasedAuthProperties = try reader["CertificateBasedAuthProperties"].readIfPresent(with: WorkSpacesClientTypes.CertificateBasedAuthProperties.read(from:))
value.microsoftEntraConfig = try reader["MicrosoftEntraConfig"].readIfPresent(with: WorkSpacesClientTypes.MicrosoftEntraConfig.read(from:))
value.workspaceDirectoryName = try reader["WorkspaceDirectoryName"].readIfPresent()
value.workspaceDirectoryDescription = try reader["WorkspaceDirectoryDescription"].readIfPresent()
value.userIdentityType = try reader["UserIdentityType"].readIfPresent()
value.workspaceType = try reader["WorkspaceType"].readIfPresent()
value.idcConfig = try reader["IDCConfig"].readIfPresent(with: WorkSpacesClientTypes.IDCConfig.read(from:))
value.activeDirectoryConfig = try reader["ActiveDirectoryConfig"].readIfPresent(with: WorkSpacesClientTypes.ActiveDirectoryConfig.read(from:))
value.streamingProperties = try reader["StreamingProperties"].readIfPresent(with: WorkSpacesClientTypes.StreamingProperties.read(from:))
value.errorMessage = try reader["ErrorMessage"].readIfPresent()
Expand Down Expand Up @@ -12575,6 +12697,34 @@ extension WorkSpacesClientTypes.ActiveDirectoryConfig {
}
}

extension WorkSpacesClientTypes.IDCConfig {

static func read(from reader: SmithyJSON.Reader) throws -> WorkSpacesClientTypes.IDCConfig {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = WorkSpacesClientTypes.IDCConfig()
value.instanceArn = try reader["InstanceArn"].readIfPresent()
value.applicationArn = try reader["ApplicationArn"].readIfPresent()
return value
}
}

extension WorkSpacesClientTypes.MicrosoftEntraConfig {

static func write(value: WorkSpacesClientTypes.MicrosoftEntraConfig?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["ApplicationConfigSecretArn"].write(value.applicationConfigSecretArn)
try writer["TenantId"].write(value.tenantId)
}

static func read(from reader: SmithyJSON.Reader) throws -> WorkSpacesClientTypes.MicrosoftEntraConfig {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = WorkSpacesClientTypes.MicrosoftEntraConfig()
value.tenantId = try reader["TenantId"].readIfPresent()
value.applicationConfigSecretArn = try reader["ApplicationConfigSecretArn"].readIfPresent()
return value
}
}

extension WorkSpacesClientTypes.CertificateBasedAuthProperties {

static func write(value: WorkSpacesClientTypes.CertificateBasedAuthProperties?, to writer: SmithyJSON.Writer) throws {
Expand Down Expand Up @@ -12813,6 +12963,15 @@ extension WorkSpacesClientTypes.ApplicationSettingsRequest {
}
}

extension WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilter {

static func write(value: WorkSpacesClientTypes.DescribeWorkspaceDirectoriesFilter?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["Name"].write(value.name)
try writer["Values"].writeList(value.values, memberWritingClosure: SmithyReadWrite.WritingClosures.writeString(value:to:), memberNodeInfo: "member", isFlattened: false)
}
}

extension WorkSpacesClientTypes.DescribeWorkspacesPoolsFilter {

static func write(value: WorkSpacesClientTypes.DescribeWorkspacesPoolsFilter?, to writer: SmithyJSON.Writer) throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ extension DescribeWorkspaceDirectoriesInput: ClientRuntime.PaginateToken {
public func usingPaginationToken(_ token: Swift.String) -> DescribeWorkspaceDirectoriesInput {
return DescribeWorkspaceDirectoriesInput(
directoryIds: self.directoryIds,
filters: self.filters,
limit: self.limit,
nextToken: token,
workspaceDirectoryNames: self.workspaceDirectoryNames
Expand Down

0 comments on commit ea5922d

Please sign in to comment.