// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS SageMaker */ export interface SagemakerEndpointConfigurationConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#kms_key_arn SagemakerEndpointConfiguration#kms_key_arn} */ readonly kmsKeyArn?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#name SagemakerEndpointConfiguration#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#tags SagemakerEndpointConfiguration#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#tags_all SagemakerEndpointConfiguration#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * async_inference_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#async_inference_config SagemakerEndpointConfiguration#async_inference_config} */ readonly asyncInferenceConfig?: SagemakerEndpointConfigurationAsyncInferenceConfig; /** * data_capture_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#data_capture_config SagemakerEndpointConfiguration#data_capture_config} */ readonly dataCaptureConfig?: SagemakerEndpointConfigurationDataCaptureConfig; /** * production_variants block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#production_variants SagemakerEndpointConfiguration#production_variants} */ readonly productionVariants: SagemakerEndpointConfigurationProductionVariants[]; } export interface SagemakerEndpointConfigurationAsyncInferenceConfigClientConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#max_concurrent_invocations_per_instance SagemakerEndpointConfiguration#max_concurrent_invocations_per_instance} */ readonly maxConcurrentInvocationsPerInstance?: number; } export function sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToTerraform(struct?: SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference | SagemakerEndpointConfigurationAsyncInferenceConfigClientConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { max_concurrent_invocations_per_instance: cdktf.numberToTerraform(struct!.maxConcurrentInvocationsPerInstance), } } export class SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): SagemakerEndpointConfigurationAsyncInferenceConfigClientConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._maxConcurrentInvocationsPerInstance !== undefined) { hasAnyValues = true; internalValueResult.maxConcurrentInvocationsPerInstance = this._maxConcurrentInvocationsPerInstance; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: SagemakerEndpointConfigurationAsyncInferenceConfigClientConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._maxConcurrentInvocationsPerInstance = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxConcurrentInvocationsPerInstance = value.maxConcurrentInvocationsPerInstance; } } // max_concurrent_invocations_per_instance - computed: false, optional: true, required: false private _maxConcurrentInvocationsPerInstance?: number; public get maxConcurrentInvocationsPerInstance() { return this.getNumberAttribute('max_concurrent_invocations_per_instance'); } public set maxConcurrentInvocationsPerInstance(value: number) { this._maxConcurrentInvocationsPerInstance = value; } public resetMaxConcurrentInvocationsPerInstance() { this._maxConcurrentInvocationsPerInstance = undefined; } // Temporarily expose input value. Use with caution. public get maxConcurrentInvocationsPerInstanceInput() { return this._maxConcurrentInvocationsPerInstance; } } export interface SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#error_topic SagemakerEndpointConfiguration#error_topic} */ readonly errorTopic?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#success_topic SagemakerEndpointConfiguration#success_topic} */ readonly successTopic?: string; } export function sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToTerraform(struct?: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference | SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { error_topic: cdktf.stringToTerraform(struct!.errorTopic), success_topic: cdktf.stringToTerraform(struct!.successTopic), } } export class SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._errorTopic !== undefined) { hasAnyValues = true; internalValueResult.errorTopic = this._errorTopic; } if (this._successTopic !== undefined) { hasAnyValues = true; internalValueResult.successTopic = this._successTopic; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._errorTopic = undefined; this._successTopic = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._errorTopic = value.errorTopic; this._successTopic = value.successTopic; } } // error_topic - computed: false, optional: true, required: false private _errorTopic?: string; public get errorTopic() { return this.getStringAttribute('error_topic'); } public set errorTopic(value: string) { this._errorTopic = value; } public resetErrorTopic() { this._errorTopic = undefined; } // Temporarily expose input value. Use with caution. public get errorTopicInput() { return this._errorTopic; } // success_topic - computed: false, optional: true, required: false private _successTopic?: string; public get successTopic() { return this.getStringAttribute('success_topic'); } public set successTopic(value: string) { this._successTopic = value; } public resetSuccessTopic() { this._successTopic = undefined; } // Temporarily expose input value. Use with caution. public get successTopicInput() { return this._successTopic; } } export interface SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#kms_key_id SagemakerEndpointConfiguration#kms_key_id} */ readonly kmsKeyId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#s3_output_path SagemakerEndpointConfiguration#s3_output_path} */ readonly s3OutputPath: string; /** * notification_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#notification_config SagemakerEndpointConfiguration#notification_config} */ readonly notificationConfig?: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig; } export function sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToTerraform(struct?: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference | SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { kms_key_id: cdktf.stringToTerraform(struct!.kmsKeyId), s3_output_path: cdktf.stringToTerraform(struct!.s3OutputPath), notification_config: sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToTerraform(struct!.notificationConfig), } } export class SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._kmsKeyId !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyId = this._kmsKeyId; } if (this._s3OutputPath !== undefined) { hasAnyValues = true; internalValueResult.s3OutputPath = this._s3OutputPath; } if (this._notificationConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.notificationConfig = this._notificationConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._kmsKeyId = undefined; this._s3OutputPath = undefined; this._notificationConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._kmsKeyId = value.kmsKeyId; this._s3OutputPath = value.s3OutputPath; this._notificationConfig.internalValue = value.notificationConfig; } } // kms_key_id - computed: false, optional: true, required: false private _kmsKeyId?: string; public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } public set kmsKeyId(value: string) { this._kmsKeyId = value; } public resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyIdInput() { return this._kmsKeyId; } // s3_output_path - computed: false, optional: false, required: true private _s3OutputPath?: string; public get s3OutputPath() { return this.getStringAttribute('s3_output_path'); } public set s3OutputPath(value: string) { this._s3OutputPath = value; } // Temporarily expose input value. Use with caution. public get s3OutputPathInput() { return this._s3OutputPath; } // notification_config - computed: false, optional: true, required: false private _notificationConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference(this as any, "notification_config", true); public get notificationConfig() { return this._notificationConfig; } public putNotificationConfig(value: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfig) { this._notificationConfig.internalValue = value; } public resetNotificationConfig() { this._notificationConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get notificationConfigInput() { return this._notificationConfig.internalValue; } } export interface SagemakerEndpointConfigurationAsyncInferenceConfig { /** * client_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#client_config SagemakerEndpointConfiguration#client_config} */ readonly clientConfig?: SagemakerEndpointConfigurationAsyncInferenceConfigClientConfig; /** * output_config block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#output_config SagemakerEndpointConfiguration#output_config} */ readonly outputConfig: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfig; } export function sagemakerEndpointConfigurationAsyncInferenceConfigToTerraform(struct?: SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference | SagemakerEndpointConfigurationAsyncInferenceConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { client_config: sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToTerraform(struct!.clientConfig), output_config: sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToTerraform(struct!.outputConfig), } } export class SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): SagemakerEndpointConfigurationAsyncInferenceConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._clientConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.clientConfig = this._clientConfig?.internalValue; } if (this._outputConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.outputConfig = this._outputConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: SagemakerEndpointConfigurationAsyncInferenceConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._clientConfig.internalValue = undefined; this._outputConfig.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientConfig.internalValue = value.clientConfig; this._outputConfig.internalValue = value.outputConfig; } } // client_config - computed: false, optional: true, required: false private _clientConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference(this as any, "client_config", true); public get clientConfig() { return this._clientConfig; } public putClientConfig(value: SagemakerEndpointConfigurationAsyncInferenceConfigClientConfig) { this._clientConfig.internalValue = value; } public resetClientConfig() { this._clientConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get clientConfigInput() { return this._clientConfig.internalValue; } // output_config - computed: false, optional: false, required: true private _outputConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference(this as any, "output_config", true); public get outputConfig() { return this._outputConfig; } public putOutputConfig(value: SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfig) { this._outputConfig.internalValue = value; } // Temporarily expose input value. Use with caution. public get outputConfigInput() { return this._outputConfig.internalValue; } } export interface SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeader { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#csv_content_types SagemakerEndpointConfiguration#csv_content_types} */ readonly csvContentTypes?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#json_content_types SagemakerEndpointConfiguration#json_content_types} */ readonly jsonContentTypes?: string[]; } export function sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToTerraform(struct?: SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference | SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeader): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { csv_content_types: cdktf.listMapper(cdktf.stringToTerraform)(struct!.csvContentTypes), json_content_types: cdktf.listMapper(cdktf.stringToTerraform)(struct!.jsonContentTypes), } } export class SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeader | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._csvContentTypes !== undefined) { hasAnyValues = true; internalValueResult.csvContentTypes = this._csvContentTypes; } if (this._jsonContentTypes !== undefined) { hasAnyValues = true; internalValueResult.jsonContentTypes = this._jsonContentTypes; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeader | undefined) { if (value === undefined) { this.isEmptyObject = false; this._csvContentTypes = undefined; this._jsonContentTypes = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._csvContentTypes = value.csvContentTypes; this._jsonContentTypes = value.jsonContentTypes; } } // csv_content_types - computed: false, optional: true, required: false private _csvContentTypes?: string[]; public get csvContentTypes() { return this.getListAttribute('csv_content_types'); } public set csvContentTypes(value: string[]) { this._csvContentTypes = value; } public resetCsvContentTypes() { this._csvContentTypes = undefined; } // Temporarily expose input value. Use with caution. public get csvContentTypesInput() { return this._csvContentTypes; } // json_content_types - computed: false, optional: true, required: false private _jsonContentTypes?: string[]; public get jsonContentTypes() { return this.getListAttribute('json_content_types'); } public set jsonContentTypes(value: string[]) { this._jsonContentTypes = value; } public resetJsonContentTypes() { this._jsonContentTypes = undefined; } // Temporarily expose input value. Use with caution. public get jsonContentTypesInput() { return this._jsonContentTypes; } } export interface SagemakerEndpointConfigurationDataCaptureConfigCaptureOptions { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#capture_mode SagemakerEndpointConfiguration#capture_mode} */ readonly captureMode: string; } export function sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToTerraform(struct?: SagemakerEndpointConfigurationDataCaptureConfigCaptureOptions): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { capture_mode: cdktf.stringToTerraform(struct!.captureMode), } } export interface SagemakerEndpointConfigurationDataCaptureConfig { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#destination_s3_uri SagemakerEndpointConfiguration#destination_s3_uri} */ readonly destinationS3Uri: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#enable_capture SagemakerEndpointConfiguration#enable_capture} */ readonly enableCapture?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#initial_sampling_percentage SagemakerEndpointConfiguration#initial_sampling_percentage} */ readonly initialSamplingPercentage: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#kms_key_id SagemakerEndpointConfiguration#kms_key_id} */ readonly kmsKeyId?: string; /** * capture_content_type_header block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#capture_content_type_header SagemakerEndpointConfiguration#capture_content_type_header} */ readonly captureContentTypeHeader?: SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeader; /** * capture_options block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#capture_options SagemakerEndpointConfiguration#capture_options} */ readonly captureOptions: SagemakerEndpointConfigurationDataCaptureConfigCaptureOptions[]; } export function sagemakerEndpointConfigurationDataCaptureConfigToTerraform(struct?: SagemakerEndpointConfigurationDataCaptureConfigOutputReference | SagemakerEndpointConfigurationDataCaptureConfig): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { destination_s3_uri: cdktf.stringToTerraform(struct!.destinationS3Uri), enable_capture: cdktf.booleanToTerraform(struct!.enableCapture), initial_sampling_percentage: cdktf.numberToTerraform(struct!.initialSamplingPercentage), kms_key_id: cdktf.stringToTerraform(struct!.kmsKeyId), capture_content_type_header: sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToTerraform(struct!.captureContentTypeHeader), capture_options: cdktf.listMapper(sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToTerraform)(struct!.captureOptions), } } export class SagemakerEndpointConfigurationDataCaptureConfigOutputReference extends cdktf.ComplexObject { private isEmptyObject = false; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param isSingleItem True if this is a block, false if it's a list */ public constructor(terraformResource: cdktf.ITerraformResource, terraformAttribute: string, isSingleItem: boolean) { super(terraformResource, terraformAttribute, isSingleItem); } public get internalValue(): SagemakerEndpointConfigurationDataCaptureConfig | undefined { let hasAnyValues = this.isEmptyObject; const internalValueResult: any = {}; if (this._destinationS3Uri !== undefined) { hasAnyValues = true; internalValueResult.destinationS3Uri = this._destinationS3Uri; } if (this._enableCapture !== undefined) { hasAnyValues = true; internalValueResult.enableCapture = this._enableCapture; } if (this._initialSamplingPercentage !== undefined) { hasAnyValues = true; internalValueResult.initialSamplingPercentage = this._initialSamplingPercentage; } if (this._kmsKeyId !== undefined) { hasAnyValues = true; internalValueResult.kmsKeyId = this._kmsKeyId; } if (this._captureContentTypeHeader?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.captureContentTypeHeader = this._captureContentTypeHeader?.internalValue; } if (this._captureOptions !== undefined) { hasAnyValues = true; internalValueResult.captureOptions = this._captureOptions; } return hasAnyValues ? internalValueResult : undefined; } public set internalValue(value: SagemakerEndpointConfigurationDataCaptureConfig | undefined) { if (value === undefined) { this.isEmptyObject = false; this._destinationS3Uri = undefined; this._enableCapture = undefined; this._initialSamplingPercentage = undefined; this._kmsKeyId = undefined; this._captureContentTypeHeader.internalValue = undefined; this._captureOptions = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._destinationS3Uri = value.destinationS3Uri; this._enableCapture = value.enableCapture; this._initialSamplingPercentage = value.initialSamplingPercentage; this._kmsKeyId = value.kmsKeyId; this._captureContentTypeHeader.internalValue = value.captureContentTypeHeader; this._captureOptions = value.captureOptions; } } // destination_s3_uri - computed: false, optional: false, required: true private _destinationS3Uri?: string; public get destinationS3Uri() { return this.getStringAttribute('destination_s3_uri'); } public set destinationS3Uri(value: string) { this._destinationS3Uri = value; } // Temporarily expose input value. Use with caution. public get destinationS3UriInput() { return this._destinationS3Uri; } // enable_capture - computed: false, optional: true, required: false private _enableCapture?: boolean | cdktf.IResolvable; public get enableCapture() { return this.getBooleanAttribute('enable_capture') as any; } public set enableCapture(value: boolean | cdktf.IResolvable) { this._enableCapture = value; } public resetEnableCapture() { this._enableCapture = undefined; } // Temporarily expose input value. Use with caution. public get enableCaptureInput() { return this._enableCapture; } // initial_sampling_percentage - computed: false, optional: false, required: true private _initialSamplingPercentage?: number; public get initialSamplingPercentage() { return this.getNumberAttribute('initial_sampling_percentage'); } public set initialSamplingPercentage(value: number) { this._initialSamplingPercentage = value; } // Temporarily expose input value. Use with caution. public get initialSamplingPercentageInput() { return this._initialSamplingPercentage; } // kms_key_id - computed: false, optional: true, required: false private _kmsKeyId?: string; public get kmsKeyId() { return this.getStringAttribute('kms_key_id'); } public set kmsKeyId(value: string) { this._kmsKeyId = value; } public resetKmsKeyId() { this._kmsKeyId = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyIdInput() { return this._kmsKeyId; } // capture_content_type_header - computed: false, optional: true, required: false private _captureContentTypeHeader = new SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference(this as any, "capture_content_type_header", true); public get captureContentTypeHeader() { return this._captureContentTypeHeader; } public putCaptureContentTypeHeader(value: SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeader) { this._captureContentTypeHeader.internalValue = value; } public resetCaptureContentTypeHeader() { this._captureContentTypeHeader.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get captureContentTypeHeaderInput() { return this._captureContentTypeHeader.internalValue; } // capture_options - computed: false, optional: false, required: true private _captureOptions?: SagemakerEndpointConfigurationDataCaptureConfigCaptureOptions[]; public get captureOptions() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('capture_options') as any; } public set captureOptions(value: SagemakerEndpointConfigurationDataCaptureConfigCaptureOptions[]) { this._captureOptions = value; } // Temporarily expose input value. Use with caution. public get captureOptionsInput() { return this._captureOptions; } } export interface SagemakerEndpointConfigurationProductionVariants { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#accelerator_type SagemakerEndpointConfiguration#accelerator_type} */ readonly acceleratorType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#initial_instance_count SagemakerEndpointConfiguration#initial_instance_count} */ readonly initialInstanceCount: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#initial_variant_weight SagemakerEndpointConfiguration#initial_variant_weight} */ readonly initialVariantWeight?: number; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#instance_type SagemakerEndpointConfiguration#instance_type} */ readonly instanceType: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#model_name SagemakerEndpointConfiguration#model_name} */ readonly modelName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html#variant_name SagemakerEndpointConfiguration#variant_name} */ readonly variantName?: string; } export function sagemakerEndpointConfigurationProductionVariantsToTerraform(struct?: SagemakerEndpointConfigurationProductionVariants): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { accelerator_type: cdktf.stringToTerraform(struct!.acceleratorType), initial_instance_count: cdktf.numberToTerraform(struct!.initialInstanceCount), initial_variant_weight: cdktf.numberToTerraform(struct!.initialVariantWeight), instance_type: cdktf.stringToTerraform(struct!.instanceType), model_name: cdktf.stringToTerraform(struct!.modelName), variant_name: cdktf.stringToTerraform(struct!.variantName), } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html aws_sagemaker_endpoint_configuration} */ export class SagemakerEndpointConfiguration extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_sagemaker_endpoint_configuration"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/sagemaker_endpoint_configuration.html aws_sagemaker_endpoint_configuration} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options SagemakerEndpointConfigurationConfig */ public constructor(scope: Construct, id: string, config: SagemakerEndpointConfigurationConfig) { super(scope, id, { terraformResourceType: 'aws_sagemaker_endpoint_configuration', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._kmsKeyArn = config.kmsKeyArn; this._name = config.name; this._tags = config.tags; this._tagsAll = config.tagsAll; this._asyncInferenceConfig.internalValue = config.asyncInferenceConfig; this._dataCaptureConfig.internalValue = config.dataCaptureConfig; this._productionVariants = config.productionVariants; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // kms_key_arn - computed: false, optional: true, required: false private _kmsKeyArn?: string; public get kmsKeyArn() { return this.getStringAttribute('kms_key_arn'); } public set kmsKeyArn(value: string) { this._kmsKeyArn = value; } public resetKmsKeyArn() { this._kmsKeyArn = undefined; } // Temporarily expose input value. Use with caution. public get kmsKeyArnInput() { return this._kmsKeyArn; } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // tags - computed: false, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // async_inference_config - computed: false, optional: true, required: false private _asyncInferenceConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference(this as any, "async_inference_config", true); public get asyncInferenceConfig() { return this._asyncInferenceConfig; } public putAsyncInferenceConfig(value: SagemakerEndpointConfigurationAsyncInferenceConfig) { this._asyncInferenceConfig.internalValue = value; } public resetAsyncInferenceConfig() { this._asyncInferenceConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get asyncInferenceConfigInput() { return this._asyncInferenceConfig.internalValue; } // data_capture_config - computed: false, optional: true, required: false private _dataCaptureConfig = new SagemakerEndpointConfigurationDataCaptureConfigOutputReference(this as any, "data_capture_config", true); public get dataCaptureConfig() { return this._dataCaptureConfig; } public putDataCaptureConfig(value: SagemakerEndpointConfigurationDataCaptureConfig) { this._dataCaptureConfig.internalValue = value; } public resetDataCaptureConfig() { this._dataCaptureConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. public get dataCaptureConfigInput() { return this._dataCaptureConfig.internalValue; } // production_variants - computed: false, optional: false, required: true private _productionVariants?: SagemakerEndpointConfigurationProductionVariants[]; public get productionVariants() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('production_variants') as any; } public set productionVariants(value: SagemakerEndpointConfigurationProductionVariants[]) { this._productionVariants = value; } // Temporarily expose input value. Use with caution. public get productionVariantsInput() { return this._productionVariants; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { kms_key_arn: cdktf.stringToTerraform(this._kmsKeyArn), name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), async_inference_config: sagemakerEndpointConfigurationAsyncInferenceConfigToTerraform(this._asyncInferenceConfig.internalValue), data_capture_config: sagemakerEndpointConfigurationDataCaptureConfigToTerraform(this._dataCaptureConfig.internalValue), production_variants: cdktf.listMapper(sagemakerEndpointConfigurationProductionVariantsToTerraform)(this._productionVariants), }; } }