ise.deviceadmin.TimeAndDateCondition
Explore with Pulumi AI
This resource can manage a Device Admin Time And Date Condition.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ise from "@pulumi/ise";
const example = new ise.deviceadmin.TimeAndDateCondition("example", {
name: "Cond1",
description: "My description",
isNegate: false,
weekDays: ["Monday"],
weekDaysExceptions: ["Tuesday"],
startDate: "2022-05-06",
endDate: "2022-05-10",
exceptionStartDate: "2022-06-06",
exceptionEndDate: "2022-06-10",
startTime: "08:00",
endTime: "15:00",
exceptionStartTime: "20:00",
exceptionEndTime: "22:00",
});
import pulumi
import pulumi_ise as ise
example = ise.deviceadmin.TimeAndDateCondition("example",
name="Cond1",
description="My description",
is_negate=False,
week_days=["Monday"],
week_days_exceptions=["Tuesday"],
start_date="2022-05-06",
end_date="2022-05-10",
exception_start_date="2022-06-06",
exception_end_date="2022-06-10",
start_time="08:00",
end_time="15:00",
exception_start_time="20:00",
exception_end_time="22:00")
package main
import (
"github.com/pulumi/pulumi-ise/sdk/go/ise/deviceadmin"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceadmin.NewTimeAndDateCondition(ctx, "example", &deviceadmin.TimeAndDateConditionArgs{
Name: pulumi.String("Cond1"),
Description: pulumi.String("My description"),
IsNegate: pulumi.Bool(false),
WeekDays: pulumi.StringArray{
pulumi.String("Monday"),
},
WeekDaysExceptions: pulumi.StringArray{
pulumi.String("Tuesday"),
},
StartDate: pulumi.String("2022-05-06"),
EndDate: pulumi.String("2022-05-10"),
ExceptionStartDate: pulumi.String("2022-06-06"),
ExceptionEndDate: pulumi.String("2022-06-10"),
StartTime: pulumi.String("08:00"),
EndTime: pulumi.String("15:00"),
ExceptionStartTime: pulumi.String("20:00"),
ExceptionEndTime: pulumi.String("22:00"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ise = Pulumi.Ise;
return await Deployment.RunAsync(() =>
{
var example = new Ise.DeviceAdmin.TimeAndDateCondition("example", new()
{
Name = "Cond1",
Description = "My description",
IsNegate = false,
WeekDays = new[]
{
"Monday",
},
WeekDaysExceptions = new[]
{
"Tuesday",
},
StartDate = "2022-05-06",
EndDate = "2022-05-10",
ExceptionStartDate = "2022-06-06",
ExceptionEndDate = "2022-06-10",
StartTime = "08:00",
EndTime = "15:00",
ExceptionStartTime = "20:00",
ExceptionEndTime = "22:00",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ise.deviceadmin.TimeAndDateCondition;
import com.pulumi.ise.deviceadmin.TimeAndDateConditionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new TimeAndDateCondition("example", TimeAndDateConditionArgs.builder()
.name("Cond1")
.description("My description")
.isNegate(false)
.weekDays("Monday")
.weekDaysExceptions("Tuesday")
.startDate("2022-05-06")
.endDate("2022-05-10")
.exceptionStartDate("2022-06-06")
.exceptionEndDate("2022-06-10")
.startTime("08:00")
.endTime("15:00")
.exceptionStartTime("20:00")
.exceptionEndTime("22:00")
.build());
}
}
resources:
example:
type: ise:deviceadmin:TimeAndDateCondition
properties:
name: Cond1
description: My description
isNegate: false
weekDays:
- Monday
weekDaysExceptions:
- Tuesday
startDate: 2022-05-06
endDate: 2022-05-10
exceptionStartDate: 2022-06-06
exceptionEndDate: 2022-06-10
startTime: 08:00
endTime: 15:00
exceptionStartTime: 20:00
exceptionEndTime: 22:00
Create TimeAndDateCondition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TimeAndDateCondition(name: string, args?: TimeAndDateConditionArgs, opts?: CustomResourceOptions);
@overload
def TimeAndDateCondition(resource_name: str,
args: Optional[TimeAndDateConditionArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def TimeAndDateCondition(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
end_date: Optional[str] = None,
end_time: Optional[str] = None,
exception_end_date: Optional[str] = None,
exception_end_time: Optional[str] = None,
exception_start_date: Optional[str] = None,
exception_start_time: Optional[str] = None,
is_negate: Optional[bool] = None,
name: Optional[str] = None,
start_date: Optional[str] = None,
start_time: Optional[str] = None,
week_days: Optional[Sequence[str]] = None,
week_days_exceptions: Optional[Sequence[str]] = None)
func NewTimeAndDateCondition(ctx *Context, name string, args *TimeAndDateConditionArgs, opts ...ResourceOption) (*TimeAndDateCondition, error)
public TimeAndDateCondition(string name, TimeAndDateConditionArgs? args = null, CustomResourceOptions? opts = null)
public TimeAndDateCondition(String name, TimeAndDateConditionArgs args)
public TimeAndDateCondition(String name, TimeAndDateConditionArgs args, CustomResourceOptions options)
type: ise:deviceadmin:TimeAndDateCondition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TimeAndDateConditionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TimeAndDateConditionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TimeAndDateConditionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TimeAndDateConditionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TimeAndDateConditionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var timeAndDateConditionResource = new Ise.DeviceAdmin.TimeAndDateCondition("timeAndDateConditionResource", new()
{
Description = "string",
EndDate = "string",
EndTime = "string",
ExceptionEndDate = "string",
ExceptionEndTime = "string",
ExceptionStartDate = "string",
ExceptionStartTime = "string",
IsNegate = false,
Name = "string",
StartDate = "string",
StartTime = "string",
WeekDays = new[]
{
"string",
},
WeekDaysExceptions = new[]
{
"string",
},
});
example, err := deviceadmin.NewTimeAndDateCondition(ctx, "timeAndDateConditionResource", &deviceadmin.TimeAndDateConditionArgs{
Description: pulumi.String("string"),
EndDate: pulumi.String("string"),
EndTime: pulumi.String("string"),
ExceptionEndDate: pulumi.String("string"),
ExceptionEndTime: pulumi.String("string"),
ExceptionStartDate: pulumi.String("string"),
ExceptionStartTime: pulumi.String("string"),
IsNegate: pulumi.Bool(false),
Name: pulumi.String("string"),
StartDate: pulumi.String("string"),
StartTime: pulumi.String("string"),
WeekDays: pulumi.StringArray{
pulumi.String("string"),
},
WeekDaysExceptions: pulumi.StringArray{
pulumi.String("string"),
},
})
var timeAndDateConditionResource = new TimeAndDateCondition("timeAndDateConditionResource", TimeAndDateConditionArgs.builder()
.description("string")
.endDate("string")
.endTime("string")
.exceptionEndDate("string")
.exceptionEndTime("string")
.exceptionStartDate("string")
.exceptionStartTime("string")
.isNegate(false)
.name("string")
.startDate("string")
.startTime("string")
.weekDays("string")
.weekDaysExceptions("string")
.build());
time_and_date_condition_resource = ise.deviceadmin.TimeAndDateCondition("timeAndDateConditionResource",
description="string",
end_date="string",
end_time="string",
exception_end_date="string",
exception_end_time="string",
exception_start_date="string",
exception_start_time="string",
is_negate=False,
name="string",
start_date="string",
start_time="string",
week_days=["string"],
week_days_exceptions=["string"])
const timeAndDateConditionResource = new ise.deviceadmin.TimeAndDateCondition("timeAndDateConditionResource", {
description: "string",
endDate: "string",
endTime: "string",
exceptionEndDate: "string",
exceptionEndTime: "string",
exceptionStartDate: "string",
exceptionStartTime: "string",
isNegate: false,
name: "string",
startDate: "string",
startTime: "string",
weekDays: ["string"],
weekDaysExceptions: ["string"],
});
type: ise:deviceadmin:TimeAndDateCondition
properties:
description: string
endDate: string
endTime: string
exceptionEndDate: string
exceptionEndTime: string
exceptionStartDate: string
exceptionStartTime: string
isNegate: false
name: string
startDate: string
startTime: string
weekDays:
- string
weekDaysExceptions:
- string
TimeAndDateCondition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The TimeAndDateCondition resource accepts the following input properties:
- Description string
- Condition description
- End
Date string - End date
- End
Time string - End time
- Exception
End stringDate - Exception end date
- Exception
End stringTime - Exception end time
- Exception
Start stringDate - Exception start date
- Exception
Start stringTime - Exception start time
- Is
Negate bool - Indicates whereas this condition is in negate mode
- Name string
- Condition name
- Start
Date string - Start date
- Start
Time string - Start time
- Week
Days List<string> - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - Week
Days List<string>Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- Description string
- Condition description
- End
Date string - End date
- End
Time string - End time
- Exception
End stringDate - Exception end date
- Exception
End stringTime - Exception end time
- Exception
Start stringDate - Exception start date
- Exception
Start stringTime - Exception start time
- Is
Negate bool - Indicates whereas this condition is in negate mode
- Name string
- Condition name
- Start
Date string - Start date
- Start
Time string - Start time
- Week
Days []string - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - Week
Days []stringExceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description String
- Condition description
- end
Date String - End date
- end
Time String - End time
- exception
End StringDate - Exception end date
- exception
End StringTime - Exception end time
- exception
Start StringDate - Exception start date
- exception
Start StringTime - Exception start time
- is
Negate Boolean - Indicates whereas this condition is in negate mode
- name String
- Condition name
- start
Date String - Start date
- start
Time String - Start time
- week
Days List<String> - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week
Days List<String>Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description string
- Condition description
- end
Date string - End date
- end
Time string - End time
- exception
End stringDate - Exception end date
- exception
End stringTime - Exception end time
- exception
Start stringDate - Exception start date
- exception
Start stringTime - Exception start time
- is
Negate boolean - Indicates whereas this condition is in negate mode
- name string
- Condition name
- start
Date string - Start date
- start
Time string - Start time
- week
Days string[] - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week
Days string[]Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description str
- Condition description
- end_
date str - End date
- end_
time str - End time
- exception_
end_ strdate - Exception end date
- exception_
end_ strtime - Exception end time
- exception_
start_ strdate - Exception start date
- exception_
start_ strtime - Exception start time
- is_
negate bool - Indicates whereas this condition is in negate mode
- name str
- Condition name
- start_
date str - Start date
- start_
time str - Start time
- week_
days Sequence[str] - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week_
days_ Sequence[str]exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description String
- Condition description
- end
Date String - End date
- end
Time String - End time
- exception
End StringDate - Exception end date
- exception
End StringTime - Exception end time
- exception
Start StringDate - Exception start date
- exception
Start StringTime - Exception start time
- is
Negate Boolean - Indicates whereas this condition is in negate mode
- name String
- Condition name
- start
Date String - Start date
- start
Time String - Start time
- week
Days List<String> - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week
Days List<String>Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
Outputs
All input properties are implicitly available as output properties. Additionally, the TimeAndDateCondition resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TimeAndDateCondition Resource
Get an existing TimeAndDateCondition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TimeAndDateConditionState, opts?: CustomResourceOptions): TimeAndDateCondition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
end_date: Optional[str] = None,
end_time: Optional[str] = None,
exception_end_date: Optional[str] = None,
exception_end_time: Optional[str] = None,
exception_start_date: Optional[str] = None,
exception_start_time: Optional[str] = None,
is_negate: Optional[bool] = None,
name: Optional[str] = None,
start_date: Optional[str] = None,
start_time: Optional[str] = None,
week_days: Optional[Sequence[str]] = None,
week_days_exceptions: Optional[Sequence[str]] = None) -> TimeAndDateCondition
func GetTimeAndDateCondition(ctx *Context, name string, id IDInput, state *TimeAndDateConditionState, opts ...ResourceOption) (*TimeAndDateCondition, error)
public static TimeAndDateCondition Get(string name, Input<string> id, TimeAndDateConditionState? state, CustomResourceOptions? opts = null)
public static TimeAndDateCondition get(String name, Output<String> id, TimeAndDateConditionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- Condition description
- End
Date string - End date
- End
Time string - End time
- Exception
End stringDate - Exception end date
- Exception
End stringTime - Exception end time
- Exception
Start stringDate - Exception start date
- Exception
Start stringTime - Exception start time
- Is
Negate bool - Indicates whereas this condition is in negate mode
- Name string
- Condition name
- Start
Date string - Start date
- Start
Time string - Start time
- Week
Days List<string> - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - Week
Days List<string>Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- Description string
- Condition description
- End
Date string - End date
- End
Time string - End time
- Exception
End stringDate - Exception end date
- Exception
End stringTime - Exception end time
- Exception
Start stringDate - Exception start date
- Exception
Start stringTime - Exception start time
- Is
Negate bool - Indicates whereas this condition is in negate mode
- Name string
- Condition name
- Start
Date string - Start date
- Start
Time string - Start time
- Week
Days []string - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - Week
Days []stringExceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description String
- Condition description
- end
Date String - End date
- end
Time String - End time
- exception
End StringDate - Exception end date
- exception
End StringTime - Exception end time
- exception
Start StringDate - Exception start date
- exception
Start StringTime - Exception start time
- is
Negate Boolean - Indicates whereas this condition is in negate mode
- name String
- Condition name
- start
Date String - Start date
- start
Time String - Start time
- week
Days List<String> - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week
Days List<String>Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description string
- Condition description
- end
Date string - End date
- end
Time string - End time
- exception
End stringDate - Exception end date
- exception
End stringTime - Exception end time
- exception
Start stringDate - Exception start date
- exception
Start stringTime - Exception start time
- is
Negate boolean - Indicates whereas this condition is in negate mode
- name string
- Condition name
- start
Date string - Start date
- start
Time string - Start time
- week
Days string[] - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week
Days string[]Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description str
- Condition description
- end_
date str - End date
- end_
time str - End time
- exception_
end_ strdate - Exception end date
- exception_
end_ strtime - Exception end time
- exception_
start_ strdate - Exception start date
- exception_
start_ strtime - Exception start time
- is_
negate bool - Indicates whereas this condition is in negate mode
- name str
- Condition name
- start_
date str - Start date
- start_
time str - Start time
- week_
days Sequence[str] - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week_
days_ Sequence[str]exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
- description String
- Condition description
- end
Date String - End date
- end
Time String - End time
- exception
End StringDate - Exception end date
- exception
End StringTime - Exception end time
- exception
Start StringDate - Exception start date
- exception
Start StringTime - Exception start time
- is
Negate Boolean - Indicates whereas this condition is in negate mode
- name String
- Condition name
- start
Date String - Start date
- start
Time String - Start time
- week
Days List<String> - Defines for which days this condition will be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
. Default - List of all week days. - week
Days List<String>Exceptions - Defines for which days this condition will NOT be matched. List of weekdays -
Monday
,Tuesday
,Wednesday
,Thursday
,Friday
,Saturday
,Sunday
.
Import
$ pulumi import ise:deviceadmin/timeAndDateCondition:TimeAndDateCondition example "76d24097-41c4-4558-a4d0-a8c07ac08470"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ise pulumi/pulumi-ise
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ise
Terraform Provider.