Skip to content
v2.278.0

TimeBasedAutoScalingProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opsworks as opsworks } from 'aws-cdk-lib';
const timeBasedAutoScalingProperty: opsworks.CfnInstance.TimeBasedAutoScalingProperty = {
  friday: {
    fridayKey: 'friday',
  },
  monday: {
    mondayKey: 'monday',
  },
  saturday: {
    saturdayKey: 'saturday',
  },
  sunday: {
    sundayKey: 'sunday',
  },
  thursday: {
    thursdayKey: 'thursday',
  },
  tuesday: {
    tuesdayKey: 'tuesday',
  },
  wednesday: {
    wednesdayKey: 'wednesday',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opsworks as opsworks

time_based_auto_scaling_property = opsworks.CfnInstance.TimeBasedAutoScalingProperty(
    friday={
        "friday_key": "friday"
    },
    monday={
        "monday_key": "monday"
    },
    saturday={
        "saturday_key": "saturday"
    },
    sunday={
        "sunday_key": "sunday"
    },
    thursday={
        "thursday_key": "thursday"
    },
    tuesday={
        "tuesday_key": "tuesday"
    },
    wednesday={
        "wednesday_key": "wednesday"
    }
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opsworks.*;

TimeBasedAutoScalingProperty timeBasedAutoScalingProperty = TimeBasedAutoScalingProperty.builder()
        .friday(Map.of(
                "fridayKey", "friday"))
        .monday(Map.of(
                "mondayKey", "monday"))
        .saturday(Map.of(
                "saturdayKey", "saturday"))
        .sunday(Map.of(
                "sundayKey", "sunday"))
        .thursday(Map.of(
                "thursdayKey", "thursday"))
        .tuesday(Map.of(
                "tuesdayKey", "tuesday"))
        .wednesday(Map.of(
                "wednesdayKey", "wednesday"))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;

var timeBasedAutoScalingProperty = new TimeBasedAutoScalingProperty {
    Friday = new Dictionary<string, string> {
        { "fridayKey", "friday" }
    },
    Monday = new Dictionary<string, string> {
        { "mondayKey", "monday" }
    },
    Saturday = new Dictionary<string, string> {
        { "saturdayKey", "saturday" }
    },
    Sunday = new Dictionary<string, string> {
        { "sundayKey", "sunday" }
    },
    Thursday = new Dictionary<string, string> {
        { "thursdayKey", "thursday" }
    },
    Tuesday = new Dictionary<string, string> {
        { "tuesdayKey", "tuesday" }
    },
    Wednesday = new Dictionary<string, string> {
        { "wednesdayKey", "wednesday" }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

timeBasedAutoScalingProperty := &TimeBasedAutoScalingProperty{
	Friday: map[string]*string{
		"fridayKey": jsii.String("friday"),
	},
	Monday: map[string]*string{
		"mondayKey": jsii.String("monday"),
	},
	Saturday: map[string]*string{
		"saturdayKey": jsii.String("saturday"),
	},
	Sunday: map[string]*string{
		"sundayKey": jsii.String("sunday"),
	},
	Thursday: map[string]*string{
		"thursdayKey": jsii.String("thursday"),
	},
	Tuesday: map[string]*string{
		"tuesdayKey": jsii.String("tuesday"),
	},
	Wednesday: map[string]*string{
		"wednesdayKey": jsii.String("wednesday"),
	},
}

Properties ​

fridayoptionalIResolvable | { [key: string]: string }fridayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]fridayoptionalIResolvableFridayoptionalIResolvableFridayoptionalinterface{} #
The schedule for Friday.
mondayoptionalIResolvable | { [key: string]: string }mondayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]mondayoptionalIResolvableMondayoptionalIResolvableMondayoptionalinterface{} #
The schedule for Monday.
saturdayoptionalIResolvable | { [key: string]: string }saturdayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]saturdayoptionalIResolvableSaturdayoptionalIResolvableSaturdayoptionalinterface{} #
The schedule for Saturday.
sundayoptionalIResolvable | { [key: string]: string }sundayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]sundayoptionalIResolvableSundayoptionalIResolvableSundayoptionalinterface{} #
The schedule for Sunday.
thursdayoptionalIResolvable | { [key: string]: string }thursdayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]thursdayoptionalIResolvableThursdayoptionalIResolvableThursdayoptionalinterface{} #
The schedule for Thursday.
tuesdayoptionalIResolvable | { [key: string]: string }tuesdayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]tuesdayoptionalIResolvableTuesdayoptionalIResolvableTuesdayoptionalinterface{} #
The schedule for Tuesday.
wednesdayoptionalIResolvable | { [key: string]: string }wednesdayoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]wednesdayoptionalIResolvableWednesdayoptionalIResolvableWednesdayoptionalinterface{} #
The schedule for Wednesday.