@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
994 lines • 469 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SagemakerEndpointConfiguration = exports.SagemakerEndpointConfigurationShadowProductionVariantsList = exports.SagemakerEndpointConfigurationShadowProductionVariantsOutputReference = exports.SagemakerEndpointConfigurationShadowProductionVariantsServerlessConfigOutputReference = exports.SagemakerEndpointConfigurationShadowProductionVariantsRoutingConfigList = exports.SagemakerEndpointConfigurationShadowProductionVariantsRoutingConfigOutputReference = exports.SagemakerEndpointConfigurationShadowProductionVariantsManagedInstanceScalingOutputReference = exports.SagemakerEndpointConfigurationShadowProductionVariantsCoreDumpConfigOutputReference = exports.SagemakerEndpointConfigurationProductionVariantsList = exports.SagemakerEndpointConfigurationProductionVariantsOutputReference = exports.SagemakerEndpointConfigurationProductionVariantsServerlessConfigOutputReference = exports.SagemakerEndpointConfigurationProductionVariantsRoutingConfigList = exports.SagemakerEndpointConfigurationProductionVariantsRoutingConfigOutputReference = exports.SagemakerEndpointConfigurationProductionVariantsManagedInstanceScalingOutputReference = exports.SagemakerEndpointConfigurationProductionVariantsCoreDumpConfigOutputReference = exports.SagemakerEndpointConfigurationDataCaptureConfigOutputReference = exports.SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList = exports.SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference = exports.SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference = exports.SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference = exports.SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference = exports.SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference = exports.SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference = void 0;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToHclTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToHclTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToHclTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToHclTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToHclTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToHclTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigToTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigToTerraform;
exports.sagemakerEndpointConfigurationAsyncInferenceConfigToHclTerraform = sagemakerEndpointConfigurationAsyncInferenceConfigToHclTerraform;
exports.sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToTerraform = sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToTerraform;
exports.sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToHclTerraform = sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToHclTerraform;
exports.sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToTerraform = sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToTerraform;
exports.sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToHclTerraform = sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToHclTerraform;
exports.sagemakerEndpointConfigurationDataCaptureConfigToTerraform = sagemakerEndpointConfigurationDataCaptureConfigToTerraform;
exports.sagemakerEndpointConfigurationDataCaptureConfigToHclTerraform = sagemakerEndpointConfigurationDataCaptureConfigToHclTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsCoreDumpConfigToTerraform = sagemakerEndpointConfigurationProductionVariantsCoreDumpConfigToTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsCoreDumpConfigToHclTerraform = sagemakerEndpointConfigurationProductionVariantsCoreDumpConfigToHclTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsManagedInstanceScalingToTerraform = sagemakerEndpointConfigurationProductionVariantsManagedInstanceScalingToTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsManagedInstanceScalingToHclTerraform = sagemakerEndpointConfigurationProductionVariantsManagedInstanceScalingToHclTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsRoutingConfigToTerraform = sagemakerEndpointConfigurationProductionVariantsRoutingConfigToTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsRoutingConfigToHclTerraform = sagemakerEndpointConfigurationProductionVariantsRoutingConfigToHclTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsServerlessConfigToTerraform = sagemakerEndpointConfigurationProductionVariantsServerlessConfigToTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsServerlessConfigToHclTerraform = sagemakerEndpointConfigurationProductionVariantsServerlessConfigToHclTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsToTerraform = sagemakerEndpointConfigurationProductionVariantsToTerraform;
exports.sagemakerEndpointConfigurationProductionVariantsToHclTerraform = sagemakerEndpointConfigurationProductionVariantsToHclTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsCoreDumpConfigToTerraform = sagemakerEndpointConfigurationShadowProductionVariantsCoreDumpConfigToTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsCoreDumpConfigToHclTerraform = sagemakerEndpointConfigurationShadowProductionVariantsCoreDumpConfigToHclTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsManagedInstanceScalingToTerraform = sagemakerEndpointConfigurationShadowProductionVariantsManagedInstanceScalingToTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsManagedInstanceScalingToHclTerraform = sagemakerEndpointConfigurationShadowProductionVariantsManagedInstanceScalingToHclTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsRoutingConfigToTerraform = sagemakerEndpointConfigurationShadowProductionVariantsRoutingConfigToTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsRoutingConfigToHclTerraform = sagemakerEndpointConfigurationShadowProductionVariantsRoutingConfigToHclTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsServerlessConfigToTerraform = sagemakerEndpointConfigurationShadowProductionVariantsServerlessConfigToTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsServerlessConfigToHclTerraform = sagemakerEndpointConfigurationShadowProductionVariantsServerlessConfigToHclTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsToTerraform = sagemakerEndpointConfigurationShadowProductionVariantsToTerraform;
exports.sagemakerEndpointConfigurationShadowProductionVariantsToHclTerraform = sagemakerEndpointConfigurationShadowProductionVariantsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
};
}
function sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
max_concurrent_invocations_per_instance: {
value: cdktf.numberToHclTerraform(struct.maxConcurrentInvocationsPerInstance),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._maxConcurrentInvocationsPerInstance !== undefined) {
hasAnyValues = true;
internalValueResult.maxConcurrentInvocationsPerInstance = this._maxConcurrentInvocationsPerInstance;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxConcurrentInvocationsPerInstance = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxConcurrentInvocationsPerInstance = value.maxConcurrentInvocationsPerInstance;
}
}
get maxConcurrentInvocationsPerInstance() {
return this.getNumberAttribute('max_concurrent_invocations_per_instance');
}
set maxConcurrentInvocationsPerInstance(value) {
this._maxConcurrentInvocationsPerInstance = value;
}
resetMaxConcurrentInvocationsPerInstance() {
this._maxConcurrentInvocationsPerInstance = undefined;
}
// Temporarily expose input value. Use with caution.
get maxConcurrentInvocationsPerInstanceInput() {
return this._maxConcurrentInvocationsPerInstance;
}
}
exports.SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference = SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference;
_a = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
include_inference_response_in: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.includeInferenceResponseIn),
success_topic: cdktf.stringToTerraform(struct.successTopic),
};
}
function sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
error_topic: {
value: cdktf.stringToHclTerraform(struct.errorTopic),
isBlock: false,
type: "simple",
storageClassType: "string",
},
include_inference_response_in: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.includeInferenceResponseIn),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
success_topic: {
value: cdktf.stringToHclTerraform(struct.successTopic),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._errorTopic !== undefined) {
hasAnyValues = true;
internalValueResult.errorTopic = this._errorTopic;
}
if (this._includeInferenceResponseIn !== undefined) {
hasAnyValues = true;
internalValueResult.includeInferenceResponseIn = this._includeInferenceResponseIn;
}
if (this._successTopic !== undefined) {
hasAnyValues = true;
internalValueResult.successTopic = this._successTopic;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._errorTopic = undefined;
this._includeInferenceResponseIn = undefined;
this._successTopic = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._errorTopic = value.errorTopic;
this._includeInferenceResponseIn = value.includeInferenceResponseIn;
this._successTopic = value.successTopic;
}
}
get errorTopic() {
return this.getStringAttribute('error_topic');
}
set errorTopic(value) {
this._errorTopic = value;
}
resetErrorTopic() {
this._errorTopic = undefined;
}
// Temporarily expose input value. Use with caution.
get errorTopicInput() {
return this._errorTopic;
}
get includeInferenceResponseIn() {
return cdktf.Fn.tolist(this.getListAttribute('include_inference_response_in'));
}
set includeInferenceResponseIn(value) {
this._includeInferenceResponseIn = value;
}
resetIncludeInferenceResponseIn() {
this._includeInferenceResponseIn = undefined;
}
// Temporarily expose input value. Use with caution.
get includeInferenceResponseInInput() {
return this._includeInferenceResponseIn;
}
get successTopic() {
return this.getStringAttribute('success_topic');
}
set successTopic(value) {
this._successTopic = value;
}
resetSuccessTopic() {
this._successTopic = undefined;
}
// Temporarily expose input value. Use with caution.
get successTopicInput() {
return this._successTopic;
}
}
exports.SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference = SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference;
_b = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference[_b] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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_failure_path: cdktf.stringToTerraform(struct.s3FailurePath),
s3_output_path: cdktf.stringToTerraform(struct.s3OutputPath),
notification_config: sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToTerraform(struct.notificationConfig),
};
}
function sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
kms_key_id: {
value: cdktf.stringToHclTerraform(struct.kmsKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
s3_failure_path: {
value: cdktf.stringToHclTerraform(struct.s3FailurePath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
s3_output_path: {
value: cdktf.stringToHclTerraform(struct.s3OutputPath),
isBlock: false,
type: "simple",
storageClassType: "string",
},
notification_config: {
value: sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigToHclTerraform(struct.notificationConfig),
isBlock: true,
type: "list",
storageClassType: "SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// notification_config - computed: false, optional: true, required: false
this._notificationConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigNotificationConfigOutputReference(this, "notification_config");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._kmsKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyId = this._kmsKeyId;
}
if (this._s3FailurePath !== undefined) {
hasAnyValues = true;
internalValueResult.s3FailurePath = this._s3FailurePath;
}
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;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKeyId = undefined;
this._s3FailurePath = undefined;
this._s3OutputPath = undefined;
this._notificationConfig.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKeyId = value.kmsKeyId;
this._s3FailurePath = value.s3FailurePath;
this._s3OutputPath = value.s3OutputPath;
this._notificationConfig.internalValue = value.notificationConfig;
}
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
resetKmsKeyId() {
this._kmsKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyIdInput() {
return this._kmsKeyId;
}
get s3FailurePath() {
return this.getStringAttribute('s3_failure_path');
}
set s3FailurePath(value) {
this._s3FailurePath = value;
}
resetS3FailurePath() {
this._s3FailurePath = undefined;
}
// Temporarily expose input value. Use with caution.
get s3FailurePathInput() {
return this._s3FailurePath;
}
get s3OutputPath() {
return this.getStringAttribute('s3_output_path');
}
set s3OutputPath(value) {
this._s3OutputPath = value;
}
// Temporarily expose input value. Use with caution.
get s3OutputPathInput() {
return this._s3OutputPath;
}
get notificationConfig() {
return this._notificationConfig;
}
putNotificationConfig(value) {
this._notificationConfig.internalValue = value;
}
resetNotificationConfig() {
this._notificationConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get notificationConfigInput() {
return this._notificationConfig.internalValue;
}
}
exports.SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference = SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference;
_c = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference[_c] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationAsyncInferenceConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
};
}
function sagemakerEndpointConfigurationAsyncInferenceConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
client_config: {
value: sagemakerEndpointConfigurationAsyncInferenceConfigClientConfigToHclTerraform(struct.clientConfig),
isBlock: true,
type: "list",
storageClassType: "SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigList",
},
output_config: {
value: sagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigToHclTerraform(struct.outputConfig),
isBlock: true,
type: "list",
storageClassType: "SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// client_config - computed: false, optional: true, required: false
this._clientConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigClientConfigOutputReference(this, "client_config");
// output_config - computed: false, optional: false, required: true
this._outputConfig = new SagemakerEndpointConfigurationAsyncInferenceConfigOutputConfigOutputReference(this, "output_config");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
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;
}
set internalValue(value) {
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;
}
}
get clientConfig() {
return this._clientConfig;
}
putClientConfig(value) {
this._clientConfig.internalValue = value;
}
resetClientConfig() {
this._clientConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get clientConfigInput() {
return this._clientConfig.internalValue;
}
get outputConfig() {
return this._outputConfig;
}
putOutputConfig(value) {
this._outputConfig.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get outputConfigInput() {
return this._outputConfig.internalValue;
}
}
exports.SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference = SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference;
_d = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference[_d] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationAsyncInferenceConfigOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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, false)(struct.csvContentTypes),
json_content_types: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.jsonContentTypes),
};
}
function sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
csv_content_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.csvContentTypes),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
json_content_types: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.jsonContentTypes),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._csvContentTypes !== undefined) {
hasAnyValues = true;
internalValueResult.csvContentTypes = this._csvContentTypes;
}
if (this._jsonContentTypes !== undefined) {
hasAnyValues = true;
internalValueResult.jsonContentTypes = this._jsonContentTypes;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
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;
}
}
get csvContentTypes() {
return cdktf.Fn.tolist(this.getListAttribute('csv_content_types'));
}
set csvContentTypes(value) {
this._csvContentTypes = value;
}
resetCsvContentTypes() {
this._csvContentTypes = undefined;
}
// Temporarily expose input value. Use with caution.
get csvContentTypesInput() {
return this._csvContentTypes;
}
get jsonContentTypes() {
return cdktf.Fn.tolist(this.getListAttribute('json_content_types'));
}
set jsonContentTypes(value) {
this._jsonContentTypes = value;
}
resetJsonContentTypes() {
this._jsonContentTypes = undefined;
}
// Temporarily expose input value. Use with caution.
get jsonContentTypesInput() {
return this._jsonContentTypes;
}
}
exports.SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference = SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference;
_e = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference[_e] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
};
}
function sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
capture_mode: {
value: cdktf.stringToHclTerraform(struct.captureMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._captureMode !== undefined) {
hasAnyValues = true;
internalValueResult.captureMode = this._captureMode;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._captureMode = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._captureMode = value.captureMode;
}
}
get captureMode() {
return this.getStringAttribute('capture_mode');
}
set captureMode(value) {
this._captureMode = value;
}
// Temporarily expose input value. Use with caution.
get captureModeInput() {
return this._captureMode;
}
}
exports.SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference = SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference;
_f = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference[_f] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference", version: "21.22.1" };
class SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList extends cdktf.ComplexList {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(terraformResource, terraformAttribute, wrapsSet) {
super(terraformResource, terraformAttribute, wrapsSet);
this.terraformResource = terraformResource;
this.terraformAttribute = terraformAttribute;
this.wrapsSet = wrapsSet;
}
/**
* @param index the index of the item to return
*/
get(index) {
return new SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList = SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList;
_g = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList[_g] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList", version: "21.22.1" };
function sagemakerEndpointConfigurationDataCaptureConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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, true)(struct.captureOptions),
};
}
function sagemakerEndpointConfigurationDataCaptureConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
destination_s3_uri: {
value: cdktf.stringToHclTerraform(struct.destinationS3Uri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
enable_capture: {
value: cdktf.booleanToHclTerraform(struct.enableCapture),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
initial_sampling_percentage: {
value: cdktf.numberToHclTerraform(struct.initialSamplingPercentage),
isBlock: false,
type: "simple",
storageClassType: "number",
},
kms_key_id: {
value: cdktf.stringToHclTerraform(struct.kmsKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
capture_content_type_header: {
value: sagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderToHclTerraform(struct.captureContentTypeHeader),
isBlock: true,
type: "list",
storageClassType: "SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderList",
},
capture_options: {
value: cdktf.listMapperHcl(sagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsToHclTerraform, true)(struct.captureOptions),
isBlock: true,
type: "list",
storageClassType: "SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationDataCaptureConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
// capture_content_type_header - computed: false, optional: true, required: false
this._captureContentTypeHeader = new SagemakerEndpointConfigurationDataCaptureConfigCaptureContentTypeHeaderOutputReference(this, "capture_content_type_header");
// capture_options - computed: false, optional: false, required: true
this._captureOptions = new SagemakerEndpointConfigurationDataCaptureConfigCaptureOptionsList(this, "capture_options", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
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?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.captureOptions = this._captureOptions?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._destinationS3Uri = undefined;
this._enableCapture = undefined;
this._initialSamplingPercentage = undefined;
this._kmsKeyId = undefined;
this._captureContentTypeHeader.internalValue = undefined;
this._captureOptions.internalValue = 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.internalValue = value.captureOptions;
}
}
get destinationS3Uri() {
return this.getStringAttribute('destination_s3_uri');
}
set destinationS3Uri(value) {
this._destinationS3Uri = value;
}
// Temporarily expose input value. Use with caution.
get destinationS3UriInput() {
return this._destinationS3Uri;
}
get enableCapture() {
return this.getBooleanAttribute('enable_capture');
}
set enableCapture(value) {
this._enableCapture = value;
}
resetEnableCapture() {
this._enableCapture = undefined;
}
// Temporarily expose input value. Use with caution.
get enableCaptureInput() {
return this._enableCapture;
}
get initialSamplingPercentage() {
return this.getNumberAttribute('initial_sampling_percentage');
}
set initialSamplingPercentage(value) {
this._initialSamplingPercentage = value;
}
// Temporarily expose input value. Use with caution.
get initialSamplingPercentageInput() {
return this._initialSamplingPercentage;
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
resetKmsKeyId() {
this._kmsKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyIdInput() {
return this._kmsKeyId;
}
get captureContentTypeHeader() {
return this._captureContentTypeHeader;
}
putCaptureContentTypeHeader(value) {
this._captureContentTypeHeader.internalValue = value;
}
resetCaptureContentTypeHeader() {
this._captureContentTypeHeader.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get captureContentTypeHeaderInput() {
return this._captureContentTypeHeader.internalValue;
}
get captureOptions() {
return this._captureOptions;
}
putCaptureOptions(value) {
this._captureOptions.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get captureOptionsInput() {
return this._captureOptions.internalValue;
}
}
exports.SagemakerEndpointConfigurationDataCaptureConfigOutputReference = SagemakerEndpointConfigurationDataCaptureConfigOutputReference;
_h = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationDataCaptureConfigOutputReference[_h] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationDataCaptureConfigOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationProductionVariantsCoreDumpConfigToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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),
kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId),
};
}
function sagemakerEndpointConfigurationProductionVariantsCoreDumpConfigToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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");
}
const attrs = {
destination_s3_uri: {
value: cdktf.stringToHclTerraform(struct.destinationS3Uri),
isBlock: false,
type: "simple",
storageClassType: "string",
},
kms_key_id: {
value: cdktf.stringToHclTerraform(struct.kmsKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class SagemakerEndpointConfigurationProductionVariantsCoreDumpConfigOutputReference extends cdktf.ComplexObject {
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
constructor(terraformResource, terraformAttribute) {
super(terraformResource, terraformAttribute, false, 0);
this.isEmptyObject = false;
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._destinationS3Uri !== undefined) {
hasAnyValues = true;
internalValueResult.destinationS3Uri = this._destinationS3Uri;
}
if (this._kmsKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyId = this._kmsKeyId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._destinationS3Uri = undefined;
this._kmsKeyId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._destinationS3Uri = value.destinationS3Uri;
this._kmsKeyId = value.kmsKeyId;
}
}
get destinationS3Uri() {
return this.getStringAttribute('destination_s3_uri');
}
set destinationS3Uri(value) {
this._destinationS3Uri = value;
}
// Temporarily expose input value. Use with caution.
get destinationS3UriInput() {
return this._destinationS3Uri;
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
resetKmsKeyId() {
this._kmsKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyIdInput() {
return this._kmsKeyId;
}
}
exports.SagemakerEndpointConfigurationProductionVariantsCoreDumpConfigOutputReference = SagemakerEndpointConfigurationProductionVariantsCoreDumpConfigOutputReference;
_j = JSII_RTTI_SYMBOL_1;
SagemakerEndpointConfigurationProductionVariantsCoreDumpConfigOutputReference[_j] = { fqn: "@cdktf/provider-aws.sagemakerEndpointConfiguration.SagemakerEndpointConfigurationProductionVariantsCoreDumpConfigOutputReference", version: "21.22.1" };
function sagemakerEndpointConfigurationProductionVariantsManagedInstanceScalingToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tok