import * as core from "@terrascript/core"; export interface AlarmsArgs extends core.SchemaArgs { alarmName: string | core.StringOut; } export class Alarms extends core.Schema { @core.attr(String) public alarmName!: string | core.StringOut; } export interface AutoRollbackConfigurationArgs extends core.SchemaArgs { alarms?: core.Array | core.ArrayOut; } export class AutoRollbackConfiguration extends core.Schema { @core.attr(Alarms, { kind: "array" }) public alarms?: core.Array | core.ArrayOut; } export interface LinearStepSizeArgs extends core.SchemaArgs { type: string | core.StringOut; value: number | core.NumberOut; } export class LinearStepSize extends core.Schema { @core.attr(String) public type!: string | core.StringOut; @core.attr(Number) public value!: number | core.NumberOut; } export interface CanarySizeArgs extends core.SchemaArgs { type: string | core.StringOut; value: number | core.NumberOut; } export class CanarySize extends core.Schema { @core.attr(String) public type!: string | core.StringOut; @core.attr(Number) public value!: number | core.NumberOut; } export interface TrafficRoutingConfigurationArgs extends core.SchemaArgs { canarySize?: CanarySize; linearStepSize?: LinearStepSize; type: string | core.StringOut; waitIntervalInSeconds: number | core.NumberOut; } export class TrafficRoutingConfiguration extends core.Schema { @core.attr(CanarySize) public canarySize?: CanarySize; @core.attr(LinearStepSize) public linearStepSize?: LinearStepSize; @core.attr(String) public type!: string | core.StringOut; @core.attr(Number) public waitIntervalInSeconds!: number | core.NumberOut; } export interface BlueGreenUpdatePolicyArgs extends core.SchemaArgs { maximumExecutionTimeoutInSeconds?: number | core.NumberOut; terminationWaitInSeconds?: number | core.NumberOut; trafficRoutingConfiguration: TrafficRoutingConfiguration; } export class BlueGreenUpdatePolicy extends core.Schema { @core.attr(Number) public maximumExecutionTimeoutInSeconds?: number | core.NumberOut; @core.attr(Number) public terminationWaitInSeconds?: number | core.NumberOut; @core.attr(TrafficRoutingConfiguration) public trafficRoutingConfiguration!: TrafficRoutingConfiguration; } export interface DeploymentConfigArgs extends core.SchemaArgs { autoRollbackConfiguration?: AutoRollbackConfiguration; blueGreenUpdatePolicy: BlueGreenUpdatePolicy; } export class DeploymentConfig extends core.Schema { @core.attr(AutoRollbackConfiguration) public autoRollbackConfiguration?: AutoRollbackConfiguration; @core.attr(BlueGreenUpdatePolicy) public blueGreenUpdatePolicy!: BlueGreenUpdatePolicy; } export interface EndpointArgs extends core.ResourceArgs { /** * (Optional) The deployment configuration for an endpoint, which contains the desired deployment strat * egy and rollback configurations. See [Deployment Config](#deployment-config). */ deploymentConfig?: DeploymentConfig; /** * (Required) The name of the endpoint configuration to use. */ endpointConfigName: string | core.StringOut; /** * (Optional) The name of the endpoint. If omitted, Terraform will assign a random, unique name. */ name?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Endpoint extends core.Resource { /** * The Amazon Resource Name (ARN) assigned by AWS to this endpoint. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The deployment configuration for an endpoint, which contains the desired deployment strat * egy and rollback configurations. See [Deployment Config](#deployment-config). */ @core.attr(DeploymentConfig) public deploymentConfig?: DeploymentConfig; /** * (Required) The name of the endpoint configuration to use. */ @core.attr(String) public endpointConfigName!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The name of the endpoint. If omitted, Terraform will assign a random, unique name. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; constructor(name: string, args?: EndpointArgs) { super(name, "aws_sagemaker_endpoint", args); } public override getNamespace(): string { return "aws_sagemaker"; } }