aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 42.9 kB
JavaScript
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnScheduleGroup=exports.CfnSchedule=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnSchedulePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("endDate",cdk.validateString)(properties.endDate)),errors.collect(cdk.propertyValidator("flexibleTimeWindow",cdk.requiredValidator)(properties.flexibleTimeWindow)),errors.collect(cdk.propertyValidator("flexibleTimeWindow",CfnSchedule_FlexibleTimeWindowPropertyValidator)(properties.flexibleTimeWindow)),errors.collect(cdk.propertyValidator("groupName",cdk.validateString)(properties.groupName)),errors.collect(cdk.propertyValidator("kmsKeyArn",cdk.validateString)(properties.kmsKeyArn)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("scheduleExpression",cdk.requiredValidator)(properties.scheduleExpression)),errors.collect(cdk.propertyValidator("scheduleExpression",cdk.validateString)(properties.scheduleExpression)),errors.collect(cdk.propertyValidator("scheduleExpressionTimezone",cdk.validateString)(properties.scheduleExpressionTimezone)),errors.collect(cdk.propertyValidator("startDate",cdk.validateString)(properties.startDate)),errors.collect(cdk.propertyValidator("state",cdk.validateString)(properties.state)),errors.collect(cdk.propertyValidator("target",cdk.requiredValidator)(properties.target)),errors.collect(cdk.propertyValidator("target",CfnSchedule_TargetPropertyValidator)(properties.target)),errors.wrap('supplied properties not correct for "CfnScheduleProps"')}function cfnSchedulePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedulePropsValidator(properties).assertSuccess(),{FlexibleTimeWindow:cfnScheduleFlexibleTimeWindowPropertyToCloudFormation(properties.flexibleTimeWindow),ScheduleExpression:cdk.stringToCloudFormation(properties.scheduleExpression),Target:cfnScheduleTargetPropertyToCloudFormation(properties.target),Description:cdk.stringToCloudFormation(properties.description),EndDate:cdk.stringToCloudFormation(properties.endDate),GroupName:cdk.stringToCloudFormation(properties.groupName),KmsKeyArn:cdk.stringToCloudFormation(properties.kmsKeyArn),Name:cdk.stringToCloudFormation(properties.name),ScheduleExpressionTimezone:cdk.stringToCloudFormation(properties.scheduleExpressionTimezone),StartDate:cdk.stringToCloudFormation(properties.startDate),State:cdk.stringToCloudFormation(properties.state)}):properties}function CfnSchedulePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("flexibleTimeWindow","FlexibleTimeWindow",CfnScheduleFlexibleTimeWindowPropertyFromCloudFormation(properties.FlexibleTimeWindow)),ret.addPropertyResult("scheduleExpression","ScheduleExpression",cfn_parse.FromCloudFormation.getString(properties.ScheduleExpression)),ret.addPropertyResult("target","Target",CfnScheduleTargetPropertyFromCloudFormation(properties.Target)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("endDate","EndDate",properties.EndDate!=null?cfn_parse.FromCloudFormation.getString(properties.EndDate):void 0),ret.addPropertyResult("groupName","GroupName",properties.GroupName!=null?cfn_parse.FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("kmsKeyArn","KmsKeyArn",properties.KmsKeyArn!=null?cfn_parse.FromCloudFormation.getString(properties.KmsKeyArn):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("scheduleExpressionTimezone","ScheduleExpressionTimezone",properties.ScheduleExpressionTimezone!=null?cfn_parse.FromCloudFormation.getString(properties.ScheduleExpressionTimezone):void 0),ret.addPropertyResult("startDate","StartDate",properties.StartDate!=null?cfn_parse.FromCloudFormation.getString(properties.StartDate):void 0),ret.addPropertyResult("state","State",properties.State!=null?cfn_parse.FromCloudFormation.getString(properties.State):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSchedule extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSchedule.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_scheduler_CfnScheduleProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSchedule),error}cdk.requireProperty(props,"flexibleTimeWindow",this),cdk.requireProperty(props,"scheduleExpression",this),cdk.requireProperty(props,"target",this),this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.flexibleTimeWindow=props.flexibleTimeWindow,this.scheduleExpression=props.scheduleExpression,this.target=props.target,this.description=props.description,this.endDate=props.endDate,this.groupName=props.groupName,this.kmsKeyArn=props.kmsKeyArn,this.name=props.name,this.scheduleExpressionTimezone=props.scheduleExpressionTimezone,this.startDate=props.startDate,this.state=props.state}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSchedulePropsFromCloudFormation(resourceProperties),ret=new CfnSchedule(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnSchedule.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{flexibleTimeWindow:this.flexibleTimeWindow,scheduleExpression:this.scheduleExpression,target:this.target,description:this.description,endDate:this.endDate,groupName:this.groupName,kmsKeyArn:this.kmsKeyArn,name:this.name,scheduleExpressionTimezone:this.scheduleExpressionTimezone,startDate:this.startDate,state:this.state}}renderProperties(props){return cfnSchedulePropsToCloudFormation(props)}}exports.CfnSchedule=CfnSchedule,_a=JSII_RTTI_SYMBOL_1,CfnSchedule[_a]={fqn:"aws-cdk-lib.aws_scheduler.CfnSchedule",version:"2.70.0"},CfnSchedule.CFN_RESOURCE_TYPE_NAME="AWS::Scheduler::Schedule";function CfnSchedule_AwsVpcConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("assignPublicIp",cdk.validateString)(properties.assignPublicIp)),errors.collect(cdk.propertyValidator("securityGroups",cdk.listValidator(cdk.validateString))(properties.securityGroups)),errors.collect(cdk.propertyValidator("subnets",cdk.requiredValidator)(properties.subnets)),errors.collect(cdk.propertyValidator("subnets",cdk.listValidator(cdk.validateString))(properties.subnets)),errors.wrap('supplied properties not correct for "AwsVpcConfigurationProperty"')}function cfnScheduleAwsVpcConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_AwsVpcConfigurationPropertyValidator(properties).assertSuccess(),{AssignPublicIp:cdk.stringToCloudFormation(properties.assignPublicIp),SecurityGroups:cdk.listMapper(cdk.stringToCloudFormation)(properties.securityGroups),Subnets:cdk.listMapper(cdk.stringToCloudFormation)(properties.subnets)}):properties}function CfnScheduleAwsVpcConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("assignPublicIp","AssignPublicIp",properties.AssignPublicIp!=null?cfn_parse.FromCloudFormation.getString(properties.AssignPublicIp):void 0),ret.addPropertyResult("securityGroups","SecurityGroups",properties.SecurityGroups!=null?cfn_parse.FromCloudFormation.getStringArray(properties.SecurityGroups):void 0),ret.addPropertyResult("subnets","Subnets",cfn_parse.FromCloudFormation.getStringArray(properties.Subnets)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_CapacityProviderStrategyItemPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("base",cdk.validateNumber)(properties.base)),errors.collect(cdk.propertyValidator("capacityProvider",cdk.requiredValidator)(properties.capacityProvider)),errors.collect(cdk.propertyValidator("capacityProvider",cdk.validateString)(properties.capacityProvider)),errors.collect(cdk.propertyValidator("weight",cdk.validateNumber)(properties.weight)),errors.wrap('supplied properties not correct for "CapacityProviderStrategyItemProperty"')}function cfnScheduleCapacityProviderStrategyItemPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_CapacityProviderStrategyItemPropertyValidator(properties).assertSuccess(),{Base:cdk.numberToCloudFormation(properties.base),CapacityProvider:cdk.stringToCloudFormation(properties.capacityProvider),Weight:cdk.numberToCloudFormation(properties.weight)}):properties}function CfnScheduleCapacityProviderStrategyItemPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("base","Base",properties.Base!=null?cfn_parse.FromCloudFormation.getNumber(properties.Base):void 0),ret.addPropertyResult("capacityProvider","CapacityProvider",cfn_parse.FromCloudFormation.getString(properties.CapacityProvider)),ret.addPropertyResult("weight","Weight",properties.Weight!=null?cfn_parse.FromCloudFormation.getNumber(properties.Weight):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_DeadLetterConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.wrap('supplied properties not correct for "DeadLetterConfigProperty"')}function cfnScheduleDeadLetterConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_DeadLetterConfigPropertyValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn)}):properties}function CfnScheduleDeadLetterConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("arn","Arn",properties.Arn!=null?cfn_parse.FromCloudFormation.getString(properties.Arn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_EcsParametersPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("capacityProviderStrategy",cdk.listValidator(CfnSchedule_CapacityProviderStrategyItemPropertyValidator))(properties.capacityProviderStrategy)),errors.collect(cdk.propertyValidator("enableEcsManagedTags",cdk.validateBoolean)(properties.enableEcsManagedTags)),errors.collect(cdk.propertyValidator("enableExecuteCommand",cdk.validateBoolean)(properties.enableExecuteCommand)),errors.collect(cdk.propertyValidator("group",cdk.validateString)(properties.group)),errors.collect(cdk.propertyValidator("launchType",cdk.validateString)(properties.launchType)),errors.collect(cdk.propertyValidator("networkConfiguration",CfnSchedule_NetworkConfigurationPropertyValidator)(properties.networkConfiguration)),errors.collect(cdk.propertyValidator("placementConstraints",cdk.listValidator(CfnSchedule_PlacementConstraintPropertyValidator))(properties.placementConstraints)),errors.collect(cdk.propertyValidator("placementStrategy",cdk.listValidator(CfnSchedule_PlacementStrategyPropertyValidator))(properties.placementStrategy)),errors.collect(cdk.propertyValidator("platformVersion",cdk.validateString)(properties.platformVersion)),errors.collect(cdk.propertyValidator("propagateTags",cdk.validateString)(properties.propagateTags)),errors.collect(cdk.propertyValidator("referenceId",cdk.validateString)(properties.referenceId)),errors.collect(cdk.propertyValidator("tags",cdk.validateObject)(properties.tags)),errors.collect(cdk.propertyValidator("taskCount",cdk.validateNumber)(properties.taskCount)),errors.collect(cdk.propertyValidator("taskDefinitionArn",cdk.requiredValidator)(properties.taskDefinitionArn)),errors.collect(cdk.propertyValidator("taskDefinitionArn",cdk.validateString)(properties.taskDefinitionArn)),errors.wrap('supplied properties not correct for "EcsParametersProperty"')}function cfnScheduleEcsParametersPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_EcsParametersPropertyValidator(properties).assertSuccess(),{CapacityProviderStrategy:cdk.listMapper(cfnScheduleCapacityProviderStrategyItemPropertyToCloudFormation)(properties.capacityProviderStrategy),EnableECSManagedTags:cdk.booleanToCloudFormation(properties.enableEcsManagedTags),EnableExecuteCommand:cdk.booleanToCloudFormation(properties.enableExecuteCommand),Group:cdk.stringToCloudFormation(properties.group),LaunchType:cdk.stringToCloudFormation(properties.launchType),NetworkConfiguration:cfnScheduleNetworkConfigurationPropertyToCloudFormation(properties.networkConfiguration),PlacementConstraints:cdk.listMapper(cfnSchedulePlacementConstraintPropertyToCloudFormation)(properties.placementConstraints),PlacementStrategy:cdk.listMapper(cfnSchedulePlacementStrategyPropertyToCloudFormation)(properties.placementStrategy),PlatformVersion:cdk.stringToCloudFormation(properties.platformVersion),PropagateTags:cdk.stringToCloudFormation(properties.propagateTags),ReferenceId:cdk.stringToCloudFormation(properties.referenceId),Tags:cdk.objectToCloudFormation(properties.tags),TaskCount:cdk.numberToCloudFormation(properties.taskCount),TaskDefinitionArn:cdk.stringToCloudFormation(properties.taskDefinitionArn)}):properties}function CfnScheduleEcsParametersPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("capacityProviderStrategy","CapacityProviderStrategy",properties.CapacityProviderStrategy!=null?cfn_parse.FromCloudFormation.getArray(CfnScheduleCapacityProviderStrategyItemPropertyFromCloudFormation)(properties.CapacityProviderStrategy):void 0),ret.addPropertyResult("enableEcsManagedTags","EnableECSManagedTags",properties.EnableECSManagedTags!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EnableECSManagedTags):void 0),ret.addPropertyResult("enableExecuteCommand","EnableExecuteCommand",properties.EnableExecuteCommand!=null?cfn_parse.FromCloudFormation.getBoolean(properties.EnableExecuteCommand):void 0),ret.addPropertyResult("group","Group",properties.Group!=null?cfn_parse.FromCloudFormation.getString(properties.Group):void 0),ret.addPropertyResult("launchType","LaunchType",properties.LaunchType!=null?cfn_parse.FromCloudFormation.getString(properties.LaunchType):void 0),ret.addPropertyResult("networkConfiguration","NetworkConfiguration",properties.NetworkConfiguration!=null?CfnScheduleNetworkConfigurationPropertyFromCloudFormation(properties.NetworkConfiguration):void 0),ret.addPropertyResult("placementConstraints","PlacementConstraints",properties.PlacementConstraints!=null?cfn_parse.FromCloudFormation.getArray(CfnSchedulePlacementConstraintPropertyFromCloudFormation)(properties.PlacementConstraints):void 0),ret.addPropertyResult("placementStrategy","PlacementStrategy",properties.PlacementStrategy!=null?cfn_parse.FromCloudFormation.getArray(CfnSchedulePlacementStrategyPropertyFromCloudFormation)(properties.PlacementStrategy):void 0),ret.addPropertyResult("platformVersion","PlatformVersion",properties.PlatformVersion!=null?cfn_parse.FromCloudFormation.getString(properties.PlatformVersion):void 0),ret.addPropertyResult("propagateTags","PropagateTags",properties.PropagateTags!=null?cfn_parse.FromCloudFormation.getString(properties.PropagateTags):void 0),ret.addPropertyResult("referenceId","ReferenceId",properties.ReferenceId!=null?cfn_parse.FromCloudFormation.getString(properties.ReferenceId):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getAny(properties.Tags):void 0),ret.addPropertyResult("taskCount","TaskCount",properties.TaskCount!=null?cfn_parse.FromCloudFormation.getNumber(properties.TaskCount):void 0),ret.addPropertyResult("taskDefinitionArn","TaskDefinitionArn",cfn_parse.FromCloudFormation.getString(properties.TaskDefinitionArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_EventBridgeParametersPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("detailType",cdk.requiredValidator)(properties.detailType)),errors.collect(cdk.propertyValidator("detailType",cdk.validateString)(properties.detailType)),errors.collect(cdk.propertyValidator("source",cdk.requiredValidator)(properties.source)),errors.collect(cdk.propertyValidator("source",cdk.validateString)(properties.source)),errors.wrap('supplied properties not correct for "EventBridgeParametersProperty"')}function cfnScheduleEventBridgeParametersPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_EventBridgeParametersPropertyValidator(properties).assertSuccess(),{DetailType:cdk.stringToCloudFormation(properties.detailType),Source:cdk.stringToCloudFormation(properties.source)}):properties}function CfnScheduleEventBridgeParametersPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("detailType","DetailType",cfn_parse.FromCloudFormation.getString(properties.DetailType)),ret.addPropertyResult("source","Source",cfn_parse.FromCloudFormation.getString(properties.Source)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_FlexibleTimeWindowPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("maximumWindowInMinutes",cdk.validateNumber)(properties.maximumWindowInMinutes)),errors.collect(cdk.propertyValidator("mode",cdk.requiredValidator)(properties.mode)),errors.collect(cdk.propertyValidator("mode",cdk.validateString)(properties.mode)),errors.wrap('supplied properties not correct for "FlexibleTimeWindowProperty"')}function cfnScheduleFlexibleTimeWindowPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_FlexibleTimeWindowPropertyValidator(properties).assertSuccess(),{MaximumWindowInMinutes:cdk.numberToCloudFormation(properties.maximumWindowInMinutes),Mode:cdk.stringToCloudFormation(properties.mode)}):properties}function CfnScheduleFlexibleTimeWindowPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("maximumWindowInMinutes","MaximumWindowInMinutes",properties.MaximumWindowInMinutes!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaximumWindowInMinutes):void 0),ret.addPropertyResult("mode","Mode",cfn_parse.FromCloudFormation.getString(properties.Mode)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_KinesisParametersPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("partitionKey",cdk.requiredValidator)(properties.partitionKey)),errors.collect(cdk.propertyValidator("partitionKey",cdk.validateString)(properties.partitionKey)),errors.wrap('supplied properties not correct for "KinesisParametersProperty"')}function cfnScheduleKinesisParametersPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_KinesisParametersPropertyValidator(properties).assertSuccess(),{PartitionKey:cdk.stringToCloudFormation(properties.partitionKey)}):properties}function CfnScheduleKinesisParametersPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("partitionKey","PartitionKey",cfn_parse.FromCloudFormation.getString(properties.PartitionKey)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_NetworkConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("awsvpcConfiguration",CfnSchedule_AwsVpcConfigurationPropertyValidator)(properties.awsvpcConfiguration)),errors.wrap('supplied properties not correct for "NetworkConfigurationProperty"')}function cfnScheduleNetworkConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_NetworkConfigurationPropertyValidator(properties).assertSuccess(),{AwsvpcConfiguration:cfnScheduleAwsVpcConfigurationPropertyToCloudFormation(properties.awsvpcConfiguration)}):properties}function CfnScheduleNetworkConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("awsvpcConfiguration","AwsvpcConfiguration",properties.AwsvpcConfiguration!=null?CfnScheduleAwsVpcConfigurationPropertyFromCloudFormation(properties.AwsvpcConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_PlacementConstraintPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("expression",cdk.validateString)(properties.expression)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "PlacementConstraintProperty"')}function cfnSchedulePlacementConstraintPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_PlacementConstraintPropertyValidator(properties).assertSuccess(),{Expression:cdk.stringToCloudFormation(properties.expression),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSchedulePlacementConstraintPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("expression","Expression",properties.Expression!=null?cfn_parse.FromCloudFormation.getString(properties.Expression):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_PlacementStrategyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("field",cdk.validateString)(properties.field)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "PlacementStrategyProperty"')}function cfnSchedulePlacementStrategyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_PlacementStrategyPropertyValidator(properties).assertSuccess(),{Field:cdk.stringToCloudFormation(properties.field),Type:cdk.stringToCloudFormation(properties.type)}):properties}function CfnSchedulePlacementStrategyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("field","Field",properties.Field!=null?cfn_parse.FromCloudFormation.getString(properties.Field):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse.FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_RetryPolicyPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("maximumEventAgeInSeconds",cdk.validateNumber)(properties.maximumEventAgeInSeconds)),errors.collect(cdk.propertyValidator("maximumRetryAttempts",cdk.validateNumber)(properties.maximumRetryAttempts)),errors.wrap('supplied properties not correct for "RetryPolicyProperty"')}function cfnScheduleRetryPolicyPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_RetryPolicyPropertyValidator(properties).assertSuccess(),{MaximumEventAgeInSeconds:cdk.numberToCloudFormation(properties.maximumEventAgeInSeconds),MaximumRetryAttempts:cdk.numberToCloudFormation(properties.maximumRetryAttempts)}):properties}function CfnScheduleRetryPolicyPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("maximumEventAgeInSeconds","MaximumEventAgeInSeconds",properties.MaximumEventAgeInSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaximumEventAgeInSeconds):void 0),ret.addPropertyResult("maximumRetryAttempts","MaximumRetryAttempts",properties.MaximumRetryAttempts!=null?cfn_parse.FromCloudFormation.getNumber(properties.MaximumRetryAttempts):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_SageMakerPipelineParameterPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.requiredValidator)(properties.name)),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "SageMakerPipelineParameterProperty"')}function cfnScheduleSageMakerPipelineParameterPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_SageMakerPipelineParameterPropertyValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnScheduleSageMakerPipelineParameterPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",cfn_parse.FromCloudFormation.getString(properties.Name)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_SageMakerPipelineParametersPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("pipelineParameterList",cdk.listValidator(CfnSchedule_SageMakerPipelineParameterPropertyValidator))(properties.pipelineParameterList)),errors.wrap('supplied properties not correct for "SageMakerPipelineParametersProperty"')}function cfnScheduleSageMakerPipelineParametersPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_SageMakerPipelineParametersPropertyValidator(properties).assertSuccess(),{PipelineParameterList:cdk.listMapper(cfnScheduleSageMakerPipelineParameterPropertyToCloudFormation)(properties.pipelineParameterList)}):properties}function CfnScheduleSageMakerPipelineParametersPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("pipelineParameterList","PipelineParameterList",properties.PipelineParameterList!=null?cfn_parse.FromCloudFormation.getArray(CfnScheduleSageMakerPipelineParameterPropertyFromCloudFormation)(properties.PipelineParameterList):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_SqsParametersPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("messageGroupId",cdk.validateString)(properties.messageGroupId)),errors.wrap('supplied properties not correct for "SqsParametersProperty"')}function cfnScheduleSqsParametersPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_SqsParametersPropertyValidator(properties).assertSuccess(),{MessageGroupId:cdk.stringToCloudFormation(properties.messageGroupId)}):properties}function CfnScheduleSqsParametersPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("messageGroupId","MessageGroupId",properties.MessageGroupId!=null?cfn_parse.FromCloudFormation.getString(properties.MessageGroupId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnSchedule_TargetPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("arn",cdk.requiredValidator)(properties.arn)),errors.collect(cdk.propertyValidator("arn",cdk.validateString)(properties.arn)),errors.collect(cdk.propertyValidator("deadLetterConfig",CfnSchedule_DeadLetterConfigPropertyValidator)(properties.deadLetterConfig)),errors.collect(cdk.propertyValidator("ecsParameters",CfnSchedule_EcsParametersPropertyValidator)(properties.ecsParameters)),errors.collect(cdk.propertyValidator("eventBridgeParameters",CfnSchedule_EventBridgeParametersPropertyValidator)(properties.eventBridgeParameters)),errors.collect(cdk.propertyValidator("input",cdk.validateString)(properties.input)),errors.collect(cdk.propertyValidator("kinesisParameters",CfnSchedule_KinesisParametersPropertyValidator)(properties.kinesisParameters)),errors.collect(cdk.propertyValidator("retryPolicy",CfnSchedule_RetryPolicyPropertyValidator)(properties.retryPolicy)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),errors.collect(cdk.propertyValidator("roleArn",cdk.validateString)(properties.roleArn)),errors.collect(cdk.propertyValidator("sageMakerPipelineParameters",CfnSchedule_SageMakerPipelineParametersPropertyValidator)(properties.sageMakerPipelineParameters)),errors.collect(cdk.propertyValidator("sqsParameters",CfnSchedule_SqsParametersPropertyValidator)(properties.sqsParameters)),errors.wrap('supplied properties not correct for "TargetProperty"')}function cfnScheduleTargetPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchedule_TargetPropertyValidator(properties).assertSuccess(),{Arn:cdk.stringToCloudFormation(properties.arn),DeadLetterConfig:cfnScheduleDeadLetterConfigPropertyToCloudFormation(properties.deadLetterConfig),EcsParameters:cfnScheduleEcsParametersPropertyToCloudFormation(properties.ecsParameters),EventBridgeParameters:cfnScheduleEventBridgeParametersPropertyToCloudFormation(properties.eventBridgeParameters),Input:cdk.stringToCloudFormation(properties.input),KinesisParameters:cfnScheduleKinesisParametersPropertyToCloudFormation(properties.kinesisParameters),RetryPolicy:cfnScheduleRetryPolicyPropertyToCloudFormation(properties.retryPolicy),RoleArn:cdk.stringToCloudFormation(properties.roleArn),SageMakerPipelineParameters:cfnScheduleSageMakerPipelineParametersPropertyToCloudFormation(properties.sageMakerPipelineParameters),SqsParameters:cfnScheduleSqsParametersPropertyToCloudFormation(properties.sqsParameters)}):properties}function CfnScheduleTargetPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("arn","Arn",cfn_parse.FromCloudFormation.getString(properties.Arn)),ret.addPropertyResult("deadLetterConfig","DeadLetterConfig",properties.DeadLetterConfig!=null?CfnScheduleDeadLetterConfigPropertyFromCloudFormation(properties.DeadLetterConfig):void 0),ret.addPropertyResult("ecsParameters","EcsParameters",properties.EcsParameters!=null?CfnScheduleEcsParametersPropertyFromCloudFormation(properties.EcsParameters):void 0),ret.addPropertyResult("eventBridgeParameters","EventBridgeParameters",properties.EventBridgeParameters!=null?CfnScheduleEventBridgeParametersPropertyFromCloudFormation(properties.EventBridgeParameters):void 0),ret.addPropertyResult("input","Input",properties.Input!=null?cfn_parse.FromCloudFormation.getString(properties.Input):void 0),ret.addPropertyResult("kinesisParameters","KinesisParameters",properties.KinesisParameters!=null?CfnScheduleKinesisParametersPropertyFromCloudFormation(properties.KinesisParameters):void 0),ret.addPropertyResult("retryPolicy","RetryPolicy",properties.RetryPolicy!=null?CfnScheduleRetryPolicyPropertyFromCloudFormation(properties.RetryPolicy):void 0),ret.addPropertyResult("roleArn","RoleArn",cfn_parse.FromCloudFormation.getString(properties.RoleArn)),ret.addPropertyResult("sageMakerPipelineParameters","SageMakerPipelineParameters",properties.SageMakerPipelineParameters!=null?CfnScheduleSageMakerPipelineParametersPropertyFromCloudFormation(properties.SageMakerPipelineParameters):void 0),ret.addPropertyResult("sqsParameters","SqsParameters",properties.SqsParameters!=null?CfnScheduleSqsParametersPropertyFromCloudFormation(properties.SqsParameters):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduleGroupPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("name",cdk.validateString)(properties.name)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnScheduleGroupProps"')}function cfnScheduleGroupPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnScheduleGroupPropsValidator(properties).assertSuccess(),{Name:cdk.stringToCloudFormation(properties.name),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnScheduleGroupPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse.FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(cfn_parse.FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnScheduleGroup extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnScheduleGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_scheduler_CfnScheduleGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnScheduleGroup),error}this.attrArn=cdk.Token.asString(this.getAtt("Arn",cdk.ResolutionTypeHint.STRING)),this.attrCreationDate=cdk.Token.asString(this.getAtt("CreationDate",cdk.ResolutionTypeHint.STRING)),this.attrLastModificationDate=cdk.Token.asString(this.getAtt("LastModificationDate",cdk.ResolutionTypeHint.STRING)),this.attrState=cdk.Token.asString(this.getAtt("State",cdk.ResolutionTypeHint.STRING)),this.name=props.name,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::Scheduler::ScheduleGroup",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnScheduleGroupPropsFromCloudFormation(resourceProperties),ret=new CfnScheduleGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnScheduleGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{name:this.name,tags:this.tags.renderTags()}}renderProperties(props){return cfnScheduleGroupPropsToCloudFormation(props)}}exports.CfnScheduleGroup=CfnScheduleGroup,_b=JSII_RTTI_SYMBOL_1,CfnScheduleGroup[_b]={fqn:"aws-cdk-lib.aws_scheduler.CfnScheduleGroup",version:"2.70.0"},CfnScheduleGroup.CFN_RESOURCE_TYPE_NAME="AWS::Scheduler::ScheduleGroup";