import * as core from "@terrascript/core"; export interface NetworkArgs extends core.SchemaArgs { securityGroupIds: core.Array | core.ArrayOut; subnetIds: core.Array | core.ArrayOut; vpcId: string | core.StringOut; } export class Network extends core.Schema { @core.attr(String, { kind: "array" }) public securityGroupIds!: core.Array | core.ArrayOut; @core.attr(String, { kind: "array" }) public subnetIds!: core.Array | core.ArrayOut; @core.attr(String) public vpcId!: string | core.StringOut; } export interface IdentityProviderArgs extends core.SchemaArgs { samlMetadata: string | core.StringOut; type: string | core.StringOut; } export class IdentityProvider extends core.Schema { @core.attr(String) public samlMetadata!: string | core.StringOut; @core.attr(String) public type!: string | core.StringOut; } export interface FleetArgs extends core.ResourceArgs { /** * (Optional) The ARN of the Amazon Kinesis data stream that receives the audit events. Kinesis data st * ream name must begin with `"AmazonWorkLink-"`. */ auditStreamArn?: string | core.StringOut; /** * (Optional) The certificate chain, including intermediate certificates and the root certificate autho * rity certificate used to issue device certificates. */ deviceCaCertificate?: string | core.StringOut; /** * (Optional) The name of the fleet. */ displayName?: string | core.StringOut; /** * (Optional) Provide this to allow manage the identity provider configuration for the fleet. Fields do * cumented below. */ identityProvider?: IdentityProvider; /** * (Required) A region-unique name for the AMI. */ name: string | core.StringOut; /** * (Optional) Provide this to allow manage the company network configuration for the fleet. Fields docu * mented below. */ network?: Network; /** * (Optional) The option to optimize for better performance by routing traffic through the closest AWS * Region to users, which may be outside of your home Region. Defaults to `true`. */ optimizeForEndUserLocation?: boolean | core.BooleanOut; } export class Fleet extends core.Resource { /** * The ARN of the created WorkLink Fleet. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The ARN of the Amazon Kinesis data stream that receives the audit events. Kinesis data st * ream name must begin with `"AmazonWorkLink-"`. */ @core.attr(String) public auditStreamArn?: string | core.StringOut; /** * The identifier used by users to sign in to the Amazon WorkLink app. */ @core.attr(String, { computed: true }) public companyCode!: string | core.StringOut; /** * The time that the fleet was created. */ @core.attr(String, { computed: true }) public createdTime!: string | core.StringOut; /** * (Optional) The certificate chain, including intermediate certificates and the root certificate autho * rity certificate used to issue device certificates. */ @core.attr(String) public deviceCaCertificate?: string | core.StringOut; /** * (Optional) The name of the fleet. */ @core.attr(String) public displayName?: string | core.StringOut; /** * The ARN of the created WorkLink Fleet. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Provide this to allow manage the identity provider configuration for the fleet. Fields do * cumented below. */ @core.attr(IdentityProvider) public identityProvider?: IdentityProvider; /** * The time that the fleet was last updated. */ @core.attr(String, { computed: true }) public lastUpdatedTime!: string | core.StringOut; /** * (Required) A region-unique name for the AMI. */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) Provide this to allow manage the company network configuration for the fleet. Fields docu * mented below. */ @core.attr(Network) public network?: Network; /** * (Optional) The option to optimize for better performance by routing traffic through the closest AWS * Region to users, which may be outside of your home Region. Defaults to `true`. */ @core.attr(Boolean) public optimizeForEndUserLocation?: boolean | core.BooleanOut; constructor(name: string, args?: FleetArgs) { super(name, "aws_worklink_fleet", args); } public override getNamespace(): string { return "aws_worklink"; } }