@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,032 lines • 309 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, _z, _0, _1, _2, _3, _4;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RekognitionStreamProcessorSettingsOutputReference = exports.rekognitionStreamProcessorSettingsToHclTerraform = exports.rekognitionStreamProcessorSettingsToTerraform = exports.RekognitionStreamProcessorSettingsFaceSearchList = exports.RekognitionStreamProcessorSettingsFaceSearchOutputReference = exports.rekognitionStreamProcessorSettingsFaceSearchToHclTerraform = exports.rekognitionStreamProcessorSettingsFaceSearchToTerraform = exports.RekognitionStreamProcessorSettingsConnectedHomeList = exports.RekognitionStreamProcessorSettingsConnectedHomeOutputReference = exports.rekognitionStreamProcessorSettingsConnectedHomeToHclTerraform = exports.rekognitionStreamProcessorSettingsConnectedHomeToTerraform = exports.RekognitionStreamProcessorRegionsOfInterestList = exports.RekognitionStreamProcessorRegionsOfInterestOutputReference = exports.rekognitionStreamProcessorRegionsOfInterestToHclTerraform = exports.rekognitionStreamProcessorRegionsOfInterestToTerraform = exports.RekognitionStreamProcessorRegionsOfInterestPolygonList = exports.RekognitionStreamProcessorRegionsOfInterestPolygonOutputReference = exports.rekognitionStreamProcessorRegionsOfInterestPolygonToHclTerraform = exports.rekognitionStreamProcessorRegionsOfInterestPolygonToTerraform = exports.RekognitionStreamProcessorRegionsOfInterestBoundingBoxOutputReference = exports.rekognitionStreamProcessorRegionsOfInterestBoundingBoxToHclTerraform = exports.rekognitionStreamProcessorRegionsOfInterestBoundingBoxToTerraform = exports.RekognitionStreamProcessorOutputList = exports.RekognitionStreamProcessorOutputOutputReference = exports.rekognitionStreamProcessorOutputToHclTerraform = exports.rekognitionStreamProcessorOutputToTerraform = exports.RekognitionStreamProcessorOutputS3DestinationList = exports.RekognitionStreamProcessorOutputS3DestinationOutputReference = exports.rekognitionStreamProcessorOutputS3DestinationToHclTerraform = exports.rekognitionStreamProcessorOutputS3DestinationToTerraform = exports.RekognitionStreamProcessorOutputKinesisDataStreamList = exports.RekognitionStreamProcessorOutputKinesisDataStreamOutputReference = exports.rekognitionStreamProcessorOutputKinesisDataStreamToHclTerraform = exports.rekognitionStreamProcessorOutputKinesisDataStreamToTerraform = exports.RekognitionStreamProcessorNotificationChannelList = exports.RekognitionStreamProcessorNotificationChannelOutputReference = exports.rekognitionStreamProcessorNotificationChannelToHclTerraform = exports.rekognitionStreamProcessorNotificationChannelToTerraform = exports.RekognitionStreamProcessorInputList = exports.RekognitionStreamProcessorInputOutputReference = exports.rekognitionStreamProcessorInputToHclTerraform = exports.rekognitionStreamProcessorInputToTerraform = exports.RekognitionStreamProcessorInputKinesisVideoStreamList = exports.RekognitionStreamProcessorInputKinesisVideoStreamOutputReference = exports.rekognitionStreamProcessorInputKinesisVideoStreamToHclTerraform = exports.rekognitionStreamProcessorInputKinesisVideoStreamToTerraform = exports.RekognitionStreamProcessorDataSharingPreferenceList = exports.RekognitionStreamProcessorDataSharingPreferenceOutputReference = exports.rekognitionStreamProcessorDataSharingPreferenceToHclTerraform = exports.rekognitionStreamProcessorDataSharingPreferenceToTerraform = void 0;
exports.RekognitionStreamProcessor = exports.RekognitionStreamProcessorTimeoutsOutputReference = exports.rekognitionStreamProcessorTimeoutsToHclTerraform = exports.rekognitionStreamProcessorTimeoutsToTerraform = exports.RekognitionStreamProcessorSettingsList = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function rekognitionStreamProcessorDataSharingPreferenceToTerraform(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 {
opt_in: cdktf.booleanToTerraform(struct.optIn),
};
}
exports.rekognitionStreamProcessorDataSharingPreferenceToTerraform = rekognitionStreamProcessorDataSharingPreferenceToTerraform;
function rekognitionStreamProcessorDataSharingPreferenceToHclTerraform(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 = {
opt_in: {
value: cdktf.booleanToHclTerraform(struct.optIn),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorDataSharingPreferenceToHclTerraform = rekognitionStreamProcessorDataSharingPreferenceToHclTerraform;
class RekognitionStreamProcessorDataSharingPreferenceOutputReference 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._optIn !== undefined) {
hasAnyValues = true;
internalValueResult.optIn = this._optIn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._optIn = 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._optIn = value.optIn;
}
}
get optIn() {
return this.getBooleanAttribute('opt_in');
}
set optIn(value) {
this._optIn = value;
}
// Temporarily expose input value. Use with caution.
get optInInput() {
return this._optIn;
}
}
exports.RekognitionStreamProcessorDataSharingPreferenceOutputReference = RekognitionStreamProcessorDataSharingPreferenceOutputReference;
_a = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorDataSharingPreferenceOutputReference[_a] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorDataSharingPreferenceOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorDataSharingPreferenceList 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 RekognitionStreamProcessorDataSharingPreferenceOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorDataSharingPreferenceList = RekognitionStreamProcessorDataSharingPreferenceList;
_b = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorDataSharingPreferenceList[_b] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorDataSharingPreferenceList", version: "19.50.0" };
function rekognitionStreamProcessorInputKinesisVideoStreamToTerraform(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 {
arn: cdktf.stringToTerraform(struct.arn),
};
}
exports.rekognitionStreamProcessorInputKinesisVideoStreamToTerraform = rekognitionStreamProcessorInputKinesisVideoStreamToTerraform;
function rekognitionStreamProcessorInputKinesisVideoStreamToHclTerraform(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 = {
arn: {
value: cdktf.stringToHclTerraform(struct.arn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorInputKinesisVideoStreamToHclTerraform = rekognitionStreamProcessorInputKinesisVideoStreamToHclTerraform;
class RekognitionStreamProcessorInputKinesisVideoStreamOutputReference 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._arn !== undefined) {
hasAnyValues = true;
internalValueResult.arn = this._arn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._arn = 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._arn = value.arn;
}
}
get arn() {
return this.getStringAttribute('arn');
}
set arn(value) {
this._arn = value;
}
// Temporarily expose input value. Use with caution.
get arnInput() {
return this._arn;
}
}
exports.RekognitionStreamProcessorInputKinesisVideoStreamOutputReference = RekognitionStreamProcessorInputKinesisVideoStreamOutputReference;
_c = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorInputKinesisVideoStreamOutputReference[_c] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorInputKinesisVideoStreamOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorInputKinesisVideoStreamList 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 RekognitionStreamProcessorInputKinesisVideoStreamOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorInputKinesisVideoStreamList = RekognitionStreamProcessorInputKinesisVideoStreamList;
_d = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorInputKinesisVideoStreamList[_d] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorInputKinesisVideoStreamList", version: "19.50.0" };
function rekognitionStreamProcessorInputToTerraform(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 {
kinesis_video_stream: cdktf.listMapper(rekognitionStreamProcessorInputKinesisVideoStreamToTerraform, true)(struct.kinesisVideoStream),
};
}
exports.rekognitionStreamProcessorInputToTerraform = rekognitionStreamProcessorInputToTerraform;
function rekognitionStreamProcessorInputToHclTerraform(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 = {
kinesis_video_stream: {
value: cdktf.listMapperHcl(rekognitionStreamProcessorInputKinesisVideoStreamToHclTerraform, true)(struct.kinesisVideoStream),
isBlock: true,
type: "list",
storageClassType: "RekognitionStreamProcessorInputKinesisVideoStreamList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorInputToHclTerraform = rekognitionStreamProcessorInputToHclTerraform;
class RekognitionStreamProcessorInputOutputReference 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;
// kinesis_video_stream - computed: false, optional: true, required: false
this._kinesisVideoStream = new RekognitionStreamProcessorInputKinesisVideoStreamList(this, "kinesis_video_stream", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._kinesisVideoStream?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.kinesisVideoStream = this._kinesisVideoStream?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._kinesisVideoStream.internalValue = 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._kinesisVideoStream.internalValue = value.kinesisVideoStream;
}
}
get kinesisVideoStream() {
return this._kinesisVideoStream;
}
putKinesisVideoStream(value) {
this._kinesisVideoStream.internalValue = value;
}
resetKinesisVideoStream() {
this._kinesisVideoStream.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get kinesisVideoStreamInput() {
return this._kinesisVideoStream.internalValue;
}
}
exports.RekognitionStreamProcessorInputOutputReference = RekognitionStreamProcessorInputOutputReference;
_e = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorInputOutputReference[_e] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorInputOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorInputList 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 RekognitionStreamProcessorInputOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorInputList = RekognitionStreamProcessorInputList;
_f = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorInputList[_f] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorInputList", version: "19.50.0" };
function rekognitionStreamProcessorNotificationChannelToTerraform(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 {
sns_topic_arn: cdktf.stringToTerraform(struct.snsTopicArn),
};
}
exports.rekognitionStreamProcessorNotificationChannelToTerraform = rekognitionStreamProcessorNotificationChannelToTerraform;
function rekognitionStreamProcessorNotificationChannelToHclTerraform(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 = {
sns_topic_arn: {
value: cdktf.stringToHclTerraform(struct.snsTopicArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorNotificationChannelToHclTerraform = rekognitionStreamProcessorNotificationChannelToHclTerraform;
class RekognitionStreamProcessorNotificationChannelOutputReference 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._snsTopicArn !== undefined) {
hasAnyValues = true;
internalValueResult.snsTopicArn = this._snsTopicArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._snsTopicArn = 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._snsTopicArn = value.snsTopicArn;
}
}
get snsTopicArn() {
return this.getStringAttribute('sns_topic_arn');
}
set snsTopicArn(value) {
this._snsTopicArn = value;
}
resetSnsTopicArn() {
this._snsTopicArn = undefined;
}
// Temporarily expose input value. Use with caution.
get snsTopicArnInput() {
return this._snsTopicArn;
}
}
exports.RekognitionStreamProcessorNotificationChannelOutputReference = RekognitionStreamProcessorNotificationChannelOutputReference;
_g = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorNotificationChannelOutputReference[_g] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorNotificationChannelOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorNotificationChannelList 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 RekognitionStreamProcessorNotificationChannelOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorNotificationChannelList = RekognitionStreamProcessorNotificationChannelList;
_h = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorNotificationChannelList[_h] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorNotificationChannelList", version: "19.50.0" };
function rekognitionStreamProcessorOutputKinesisDataStreamToTerraform(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 {
arn: cdktf.stringToTerraform(struct.arn),
};
}
exports.rekognitionStreamProcessorOutputKinesisDataStreamToTerraform = rekognitionStreamProcessorOutputKinesisDataStreamToTerraform;
function rekognitionStreamProcessorOutputKinesisDataStreamToHclTerraform(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 = {
arn: {
value: cdktf.stringToHclTerraform(struct.arn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorOutputKinesisDataStreamToHclTerraform = rekognitionStreamProcessorOutputKinesisDataStreamToHclTerraform;
class RekognitionStreamProcessorOutputKinesisDataStreamOutputReference 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._arn !== undefined) {
hasAnyValues = true;
internalValueResult.arn = this._arn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._arn = 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._arn = value.arn;
}
}
get arn() {
return this.getStringAttribute('arn');
}
set arn(value) {
this._arn = value;
}
resetArn() {
this._arn = undefined;
}
// Temporarily expose input value. Use with caution.
get arnInput() {
return this._arn;
}
}
exports.RekognitionStreamProcessorOutputKinesisDataStreamOutputReference = RekognitionStreamProcessorOutputKinesisDataStreamOutputReference;
_j = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorOutputKinesisDataStreamOutputReference[_j] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorOutputKinesisDataStreamOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorOutputKinesisDataStreamList 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 RekognitionStreamProcessorOutputKinesisDataStreamOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorOutputKinesisDataStreamList = RekognitionStreamProcessorOutputKinesisDataStreamList;
_k = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorOutputKinesisDataStreamList[_k] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorOutputKinesisDataStreamList", version: "19.50.0" };
function rekognitionStreamProcessorOutputS3DestinationToTerraform(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 {
bucket: cdktf.stringToTerraform(struct.bucket),
key_prefix: cdktf.stringToTerraform(struct.keyPrefix),
};
}
exports.rekognitionStreamProcessorOutputS3DestinationToTerraform = rekognitionStreamProcessorOutputS3DestinationToTerraform;
function rekognitionStreamProcessorOutputS3DestinationToHclTerraform(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 = {
bucket: {
value: cdktf.stringToHclTerraform(struct.bucket),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key_prefix: {
value: cdktf.stringToHclTerraform(struct.keyPrefix),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorOutputS3DestinationToHclTerraform = rekognitionStreamProcessorOutputS3DestinationToHclTerraform;
class RekognitionStreamProcessorOutputS3DestinationOutputReference 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._bucket !== undefined) {
hasAnyValues = true;
internalValueResult.bucket = this._bucket;
}
if (this._keyPrefix !== undefined) {
hasAnyValues = true;
internalValueResult.keyPrefix = this._keyPrefix;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._bucket = undefined;
this._keyPrefix = 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._bucket = value.bucket;
this._keyPrefix = value.keyPrefix;
}
}
get bucket() {
return this.getStringAttribute('bucket');
}
set bucket(value) {
this._bucket = value;
}
resetBucket() {
this._bucket = undefined;
}
// Temporarily expose input value. Use with caution.
get bucketInput() {
return this._bucket;
}
get keyPrefix() {
return this.getStringAttribute('key_prefix');
}
set keyPrefix(value) {
this._keyPrefix = value;
}
resetKeyPrefix() {
this._keyPrefix = undefined;
}
// Temporarily expose input value. Use with caution.
get keyPrefixInput() {
return this._keyPrefix;
}
}
exports.RekognitionStreamProcessorOutputS3DestinationOutputReference = RekognitionStreamProcessorOutputS3DestinationOutputReference;
_l = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorOutputS3DestinationOutputReference[_l] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorOutputS3DestinationOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorOutputS3DestinationList 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 RekognitionStreamProcessorOutputS3DestinationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorOutputS3DestinationList = RekognitionStreamProcessorOutputS3DestinationList;
_m = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorOutputS3DestinationList[_m] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorOutputS3DestinationList", version: "19.50.0" };
function rekognitionStreamProcessorOutputToTerraform(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 {
kinesis_data_stream: cdktf.listMapper(rekognitionStreamProcessorOutputKinesisDataStreamToTerraform, true)(struct.kinesisDataStream),
s3_destination: cdktf.listMapper(rekognitionStreamProcessorOutputS3DestinationToTerraform, true)(struct.s3Destination),
};
}
exports.rekognitionStreamProcessorOutputToTerraform = rekognitionStreamProcessorOutputToTerraform;
function rekognitionStreamProcessorOutputToHclTerraform(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 = {
kinesis_data_stream: {
value: cdktf.listMapperHcl(rekognitionStreamProcessorOutputKinesisDataStreamToHclTerraform, true)(struct.kinesisDataStream),
isBlock: true,
type: "list",
storageClassType: "RekognitionStreamProcessorOutputKinesisDataStreamList",
},
s3_destination: {
value: cdktf.listMapperHcl(rekognitionStreamProcessorOutputS3DestinationToHclTerraform, true)(struct.s3Destination),
isBlock: true,
type: "list",
storageClassType: "RekognitionStreamProcessorOutputS3DestinationList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorOutputToHclTerraform = rekognitionStreamProcessorOutputToHclTerraform;
class RekognitionStreamProcessorOutputOutputReference 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;
// kinesis_data_stream - computed: false, optional: true, required: false
this._kinesisDataStream = new RekognitionStreamProcessorOutputKinesisDataStreamList(this, "kinesis_data_stream", false);
// s3_destination - computed: false, optional: true, required: false
this._s3Destination = new RekognitionStreamProcessorOutputS3DestinationList(this, "s3_destination", false);
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._kinesisDataStream?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.kinesisDataStream = this._kinesisDataStream?.internalValue;
}
if (this._s3Destination?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.s3Destination = this._s3Destination?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._kinesisDataStream.internalValue = undefined;
this._s3Destination.internalValue = 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._kinesisDataStream.internalValue = value.kinesisDataStream;
this._s3Destination.internalValue = value.s3Destination;
}
}
get kinesisDataStream() {
return this._kinesisDataStream;
}
putKinesisDataStream(value) {
this._kinesisDataStream.internalValue = value;
}
resetKinesisDataStream() {
this._kinesisDataStream.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get kinesisDataStreamInput() {
return this._kinesisDataStream.internalValue;
}
get s3Destination() {
return this._s3Destination;
}
putS3Destination(value) {
this._s3Destination.internalValue = value;
}
resetS3Destination() {
this._s3Destination.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get s3DestinationInput() {
return this._s3Destination.internalValue;
}
}
exports.RekognitionStreamProcessorOutputOutputReference = RekognitionStreamProcessorOutputOutputReference;
_o = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorOutputOutputReference[_o] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorOutputOutputReference", version: "19.50.0" };
class RekognitionStreamProcessorOutputList 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 RekognitionStreamProcessorOutputOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.RekognitionStreamProcessorOutputList = RekognitionStreamProcessorOutputList;
_p = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorOutputList[_p] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorOutputList", version: "19.50.0" };
function rekognitionStreamProcessorRegionsOfInterestBoundingBoxToTerraform(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 {
height: cdktf.numberToTerraform(struct.height),
left: cdktf.numberToTerraform(struct.left),
top: cdktf.numberToTerraform(struct.top),
width: cdktf.numberToTerraform(struct.width),
};
}
exports.rekognitionStreamProcessorRegionsOfInterestBoundingBoxToTerraform = rekognitionStreamProcessorRegionsOfInterestBoundingBoxToTerraform;
function rekognitionStreamProcessorRegionsOfInterestBoundingBoxToHclTerraform(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 = {
height: {
value: cdktf.numberToHclTerraform(struct.height),
isBlock: false,
type: "simple",
storageClassType: "number",
},
left: {
value: cdktf.numberToHclTerraform(struct.left),
isBlock: false,
type: "simple",
storageClassType: "number",
},
top: {
value: cdktf.numberToHclTerraform(struct.top),
isBlock: false,
type: "simple",
storageClassType: "number",
},
width: {
value: cdktf.numberToHclTerraform(struct.width),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorRegionsOfInterestBoundingBoxToHclTerraform = rekognitionStreamProcessorRegionsOfInterestBoundingBoxToHclTerraform;
class RekognitionStreamProcessorRegionsOfInterestBoundingBoxOutputReference 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);
this.isEmptyObject = false;
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._height !== undefined) {
hasAnyValues = true;
internalValueResult.height = this._height;
}
if (this._left !== undefined) {
hasAnyValues = true;
internalValueResult.left = this._left;
}
if (this._top !== undefined) {
hasAnyValues = true;
internalValueResult.top = this._top;
}
if (this._width !== undefined) {
hasAnyValues = true;
internalValueResult.width = this._width;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._height = undefined;
this._left = undefined;
this._top = undefined;
this._width = 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._height = value.height;
this._left = value.left;
this._top = value.top;
this._width = value.width;
}
}
get height() {
return this.getNumberAttribute('height');
}
set height(value) {
this._height = value;
}
resetHeight() {
this._height = undefined;
}
// Temporarily expose input value. Use with caution.
get heightInput() {
return this._height;
}
get left() {
return this.getNumberAttribute('left');
}
set left(value) {
this._left = value;
}
resetLeft() {
this._left = undefined;
}
// Temporarily expose input value. Use with caution.
get leftInput() {
return this._left;
}
get top() {
return this.getNumberAttribute('top');
}
set top(value) {
this._top = value;
}
resetTop() {
this._top = undefined;
}
// Temporarily expose input value. Use with caution.
get topInput() {
return this._top;
}
get width() {
return this.getNumberAttribute('width');
}
set width(value) {
this._width = value;
}
resetWidth() {
this._width = undefined;
}
// Temporarily expose input value. Use with caution.
get widthInput() {
return this._width;
}
}
exports.RekognitionStreamProcessorRegionsOfInterestBoundingBoxOutputReference = RekognitionStreamProcessorRegionsOfInterestBoundingBoxOutputReference;
_q = JSII_RTTI_SYMBOL_1;
RekognitionStreamProcessorRegionsOfInterestBoundingBoxOutputReference[_q] = { fqn: "@cdktf/provider-aws.rekognitionStreamProcessor.RekognitionStreamProcessorRegionsOfInterestBoundingBoxOutputReference", version: "19.50.0" };
function rekognitionStreamProcessorRegionsOfInterestPolygonToTerraform(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 {
x: cdktf.numberToTerraform(struct.x),
y: cdktf.numberToTerraform(struct.y),
};
}
exports.rekognitionStreamProcessorRegionsOfInterestPolygonToTerraform = rekognitionStreamProcessorRegionsOfInterestPolygonToTerraform;
function rekognitionStreamProcessorRegionsOfInterestPolygonToHclTerraform(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 = {
x: {
value: cdktf.numberToHclTerraform(struct.x),
isBlock: false,
type: "simple",
storageClassType: "number",
},
y: {
value: cdktf.numberToHclTerraform(struct.y),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.rekognitionStreamProcessorRegionsOfInterestPolygonToHclTerraform = rekognitionStreamProcessorRegionsOfInterestPolygonToHclTerraform;
class RekognitionStreamProcessorRegionsOfInterestPolygonOutputReference 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, ter