Skip to content

Commit f6bd19e

Browse files
author
awstools
committed
feat(client-appstream): This release includes CertificateBasedAuthProperties in CreateDirectoryConfig and UpdateDirectoryConfig.
1 parent 30ddc67 commit f6bd19e

File tree

5 files changed

+1227
-816
lines changed

5 files changed

+1227
-816
lines changed

clients/client-appstream/src/AppStream.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ export class AppStream extends AppStreamClient {
624624
}
625625

626626
/**
627-
* <p>Creates a fleet. A fleet consists of streaming instances that run a specified image when using Always-On or On-Demand.</p>
627+
* <p>Creates a fleet. A fleet consists of streaming instances that your users access for their applications and desktops.</p>
628628
*/
629629
public createFleet(args: CreateFleetCommandInput, options?: __HttpHandlerOptions): Promise<CreateFleetCommandOutput>;
630630
public createFleet(args: CreateFleetCommandInput, cb: (err: any, data?: CreateFleetCommandOutput) => void): void;

clients/client-appstream/src/commands/CreateFleetCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export interface CreateFleetCommandInput extends CreateFleetRequest {}
2929
export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataBearer {}
3030

3131
/**
32-
* <p>Creates a fleet. A fleet consists of streaming instances that run a specified image when using Always-On or On-Demand.</p>
32+
* <p>Creates a fleet. A fleet consists of streaming instances that your users access for their applications and desktops.</p>
3333
* @example
3434
* Use a bare-bones client and the command you need to make an API call.
3535
* ```javascript

clients/client-appstream/src/models/models_0.ts

+104-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ export interface AppBlock {
118118
CreatedTime?: Date;
119119
}
120120

121-
export type PlatformType = "AMAZON_LINUX2" | "WINDOWS" | "WINDOWS_SERVER_2016" | "WINDOWS_SERVER_2019";
121+
export enum PlatformType {
122+
AMAZON_LINUX2 = "AMAZON_LINUX2",
123+
WINDOWS = "WINDOWS",
124+
WINDOWS_SERVER_2016 = "WINDOWS_SERVER_2016",
125+
WINDOWS_SERVER_2019 = "WINDOWS_SERVER_2019",
126+
}
122127

123128
/**
124129
* <p>Describes an application in the application catalog.</p>
@@ -509,6 +514,7 @@ export class InvalidAccountStatusException extends __BaseException {
509514

510515
export enum AuthenticationType {
511516
API = "API",
517+
AWS_AD = "AWS_AD",
512518
SAML = "SAML",
513519
USERPOOL = "USERPOOL",
514520
}
@@ -597,6 +603,33 @@ export interface BatchDisassociateUserStackResult {
597603
errors?: UserStackAssociationError[];
598604
}
599605

606+
export enum CertificateBasedAuthStatus {
607+
DISABLED = "DISABLED",
608+
ENABLED = "ENABLED",
609+
ENABLED_NO_DIRECTORY_LOGIN_FALLBACK = "ENABLED_NO_DIRECTORY_LOGIN_FALLBACK",
610+
}
611+
612+
/**
613+
* <p>The certificate-based authentication properties used to authenticate SAML 2.0 Identity
614+
* Provider (IdP) user identities to Active Directory domain-joined streaming instances.
615+
* Fallback is turned on by default when certificate-based authentication is <b>Enabled</b> . Fallback allows users to log in using their AD
616+
* domain password if certificate-based authentication is unsuccessful, or to unlock a
617+
* desktop lock screen. <b>Enabled_no_directory_login_fallback</b> enables certificate-based
618+
* authentication, but does not allow users to log in using their AD domain password. Users
619+
* will be disconnected to re-authenticate using certificates.</p>
620+
*/
621+
export interface CertificateBasedAuthProperties {
622+
/**
623+
* <p>The status of the certificate-based authentication properties.</p>
624+
*/
625+
Status?: CertificateBasedAuthStatus | string;
626+
627+
/**
628+
* <p>The ARN of the AWS Certificate Manager Private CA resource.</p>
629+
*/
630+
CertificateAuthorityArn?: string;
631+
}
632+
600633
/**
601634
* <p>Describes the capacity for a fleet.</p>
602635
*/
@@ -845,6 +878,17 @@ export interface CreateDirectoryConfigRequest {
845878
* <p>The credentials for the service account used by the fleet or image builder to connect to the directory.</p>
846879
*/
847880
ServiceAccountCredentials?: ServiceAccountCredentials;
881+
882+
/**
883+
* <p>The certificate-based authentication properties used to authenticate SAML 2.0 Identity
884+
* Provider (IdP) user identities to Active Directory domain-joined streaming instances.
885+
* Fallback is turned on by default when certificate-based authentication is <b>Enabled</b> . Fallback allows users to log in using their AD
886+
* domain password if certificate-based authentication is unsuccessful, or to unlock a
887+
* desktop lock screen. <b>Enabled_no_directory_login_fallback</b> enables certificate-based
888+
* authentication, but does not allow users to log in using their AD domain password. Users
889+
* will be disconnected to re-authenticate using certificates.</p>
890+
*/
891+
CertificateBasedAuthProperties?: CertificateBasedAuthProperties;
848892
}
849893

850894
/**
@@ -870,6 +914,17 @@ export interface DirectoryConfig {
870914
* <p>The time the directory configuration was created.</p>
871915
*/
872916
CreatedTime?: Date;
917+
918+
/**
919+
* <p>The certificate-based authentication properties used to authenticate SAML 2.0 Identity
920+
* Provider (IdP) user identities to Active Directory domain-joined streaming instances.
921+
* Fallback is turned on by default when certificate-based authentication is <b>Enabled</b> . Fallback allows users to log in using their AD
922+
* domain password if certificate-based authentication is unsuccessful, or to unlock a
923+
* desktop lock screen. <b>Enabled_no_directory_login_fallback</b> enables certificate-based
924+
* authentication, but does not allow users to log in using their AD domain password. Users
925+
* will be disconnected to re-authenticate using certificates.</p>
926+
*/
927+
CertificateBasedAuthProperties?: CertificateBasedAuthProperties;
873928
}
874929

875930
export interface CreateDirectoryConfigResult {
@@ -1121,6 +1176,12 @@ export interface CreateFleetRequest {
11211176
* <p>stream.standard.large</p>
11221177
* </li>
11231178
* <li>
1179+
* <p>stream.standard.xlarge</p>
1180+
* </li>
1181+
* <li>
1182+
* <p>stream.standard.2xlarge</p>
1183+
* </li>
1184+
* <li>
11241185
* <p>stream.compute.large</p>
11251186
* </li>
11261187
* <li>
@@ -1219,6 +1280,15 @@ export interface CreateFleetRequest {
12191280
* <li>
12201281
* <p>stream.standard.medium</p>
12211282
* </li>
1283+
* <li>
1284+
* <p>stream.standard.large</p>
1285+
* </li>
1286+
* <li>
1287+
* <p>stream.standard.xlarge</p>
1288+
* </li>
1289+
* <li>
1290+
* <p>stream.standard.2xlarge</p>
1291+
* </li>
12221292
* </ul>
12231293
*/
12241294
InstanceType: string | undefined;
@@ -3873,6 +3943,17 @@ export interface UpdateDirectoryConfigRequest {
38733943
* <p>The credentials for the service account used by the fleet or image builder to connect to the directory.</p>
38743944
*/
38753945
ServiceAccountCredentials?: ServiceAccountCredentials;
3946+
3947+
/**
3948+
* <p>The certificate-based authentication properties used to authenticate SAML 2.0 Identity
3949+
* Provider (IdP) user identities to Active Directory domain-joined streaming instances.
3950+
* Fallback is turned on by default when certificate-based authentication is <b>Enabled</b> . Fallback allows users to log in using their AD
3951+
* domain password if certificate-based authentication is unsuccessful, or to unlock a
3952+
* desktop lock screen. <b>Enabled_no_directory_login_fallback</b> enables certificate-based
3953+
* authentication, but does not allow users to log in using their AD domain password. Users
3954+
* will be disconnected to re-authenticate using certificates.</p>
3955+
*/
3956+
CertificateBasedAuthProperties?: CertificateBasedAuthProperties;
38763957
}
38773958

38783959
export interface UpdateDirectoryConfigResult {
@@ -3945,6 +4026,12 @@ export interface UpdateFleetRequest {
39454026
* <p>stream.standard.large</p>
39464027
* </li>
39474028
* <li>
4029+
* <p>stream.standard.xlarge</p>
4030+
* </li>
4031+
* <li>
4032+
* <p>stream.standard.2xlarge</p>
4033+
* </li>
4034+
* <li>
39484035
* <p>stream.compute.large</p>
39494036
* </li>
39504037
* <li>
@@ -4043,6 +4130,15 @@ export interface UpdateFleetRequest {
40434130
* <li>
40444131
* <p>stream.standard.medium</p>
40454132
* </li>
4133+
* <li>
4134+
* <p>stream.standard.large</p>
4135+
* </li>
4136+
* <li>
4137+
* <p>stream.standard.xlarge</p>
4138+
* </li>
4139+
* <li>
4140+
* <p>stream.standard.2xlarge</p>
4141+
* </li>
40464142
* </ul>
40474143
*/
40484144
InstanceType?: string;
@@ -4428,6 +4524,13 @@ export const BatchDisassociateUserStackResultFilterSensitiveLog = (obj: BatchDis
44284524
...(obj.errors && { errors: obj.errors.map((item) => UserStackAssociationErrorFilterSensitiveLog(item)) }),
44294525
});
44304526

4527+
/**
4528+
* @internal
4529+
*/
4530+
export const CertificateBasedAuthPropertiesFilterSensitiveLog = (obj: CertificateBasedAuthProperties): any => ({
4531+
...obj,
4532+
});
4533+
44314534
/**
44324535
* @internal
44334536
*/

clients/client-appstream/src/protocols/Aws_json1_1.ts

+37
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ import {
179179
BatchAssociateUserStackResult,
180180
BatchDisassociateUserStackRequest,
181181
BatchDisassociateUserStackResult,
182+
CertificateBasedAuthProperties,
182183
ComputeCapacity,
183184
ComputeCapacityStatus,
184185
ConcurrentModificationException,
@@ -4609,6 +4610,16 @@ const serializeAws_json1_1BatchDisassociateUserStackRequest = (
46094610
};
46104611
};
46114612

4613+
const serializeAws_json1_1CertificateBasedAuthProperties = (
4614+
input: CertificateBasedAuthProperties,
4615+
context: __SerdeContext
4616+
): any => {
4617+
return {
4618+
...(input.CertificateAuthorityArn != null && { CertificateAuthorityArn: input.CertificateAuthorityArn }),
4619+
...(input.Status != null && { Status: input.Status }),
4620+
};
4621+
};
4622+
46124623
const serializeAws_json1_1ComputeCapacity = (input: ComputeCapacity, context: __SerdeContext): any => {
46134624
return {
46144625
...(input.DesiredInstances != null && { DesiredInstances: input.DesiredInstances }),
@@ -4669,6 +4680,12 @@ const serializeAws_json1_1CreateDirectoryConfigRequest = (
46694680
context: __SerdeContext
46704681
): any => {
46714682
return {
4683+
...(input.CertificateBasedAuthProperties != null && {
4684+
CertificateBasedAuthProperties: serializeAws_json1_1CertificateBasedAuthProperties(
4685+
input.CertificateBasedAuthProperties,
4686+
context
4687+
),
4688+
}),
46724689
...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
46734690
...(input.OrganizationalUnitDistinguishedNames != null && {
46744691
OrganizationalUnitDistinguishedNames: serializeAws_json1_1OrganizationalUnitDistinguishedNamesList(
@@ -5434,6 +5451,12 @@ const serializeAws_json1_1UpdateDirectoryConfigRequest = (
54345451
context: __SerdeContext
54355452
): any => {
54365453
return {
5454+
...(input.CertificateBasedAuthProperties != null && {
5455+
CertificateBasedAuthProperties: serializeAws_json1_1CertificateBasedAuthProperties(
5456+
input.CertificateBasedAuthProperties,
5457+
context
5458+
),
5459+
}),
54375460
...(input.DirectoryName != null && { DirectoryName: input.DirectoryName }),
54385461
...(input.OrganizationalUnitDistinguishedNames != null && {
54395462
OrganizationalUnitDistinguishedNames: serializeAws_json1_1OrganizationalUnitDistinguishedNamesList(
@@ -5768,6 +5791,16 @@ const deserializeAws_json1_1BatchDisassociateUserStackResult = (
57685791
} as any;
57695792
};
57705793

5794+
const deserializeAws_json1_1CertificateBasedAuthProperties = (
5795+
output: any,
5796+
context: __SerdeContext
5797+
): CertificateBasedAuthProperties => {
5798+
return {
5799+
CertificateAuthorityArn: __expectString(output.CertificateAuthorityArn),
5800+
Status: __expectString(output.Status),
5801+
} as any;
5802+
};
5803+
57715804
const deserializeAws_json1_1ComputeCapacityStatus = (output: any, context: __SerdeContext): ComputeCapacityStatus => {
57725805
return {
57735806
Available: __expectInt32(output.Available),
@@ -6111,6 +6144,10 @@ const deserializeAws_json1_1DescribeUserStackAssociationsResult = (
61116144

61126145
const deserializeAws_json1_1DirectoryConfig = (output: any, context: __SerdeContext): DirectoryConfig => {
61136146
return {
6147+
CertificateBasedAuthProperties:
6148+
output.CertificateBasedAuthProperties != null
6149+
? deserializeAws_json1_1CertificateBasedAuthProperties(output.CertificateBasedAuthProperties, context)
6150+
: undefined,
61146151
CreatedTime:
61156152
output.CreatedTime != null
61166153
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTime)))

0 commit comments

Comments
 (0)