1. Packages
  2. Cisco ISE
  3. API Docs
  4. deviceadmin
  5. TimeAndDateCondition
Cisco ISE v0.1.4 published on Friday, May 31, 2024 by Pulumi

ise.deviceadmin.TimeAndDateCondition

Explore with Pulumi AI

ise logo
Cisco ISE v0.1.4 published on Friday, May 31, 2024 by Pulumi

    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
    EndDate string
    End date
    EndTime string
    End time
    ExceptionEndDate string
    Exception end date
    ExceptionEndTime string
    Exception end time
    ExceptionStartDate string
    Exception start date
    ExceptionStartTime string
    Exception start time
    IsNegate bool
    Indicates whereas this condition is in negate mode
    Name string
    Condition name
    StartDate string
    Start date
    StartTime string
    Start time
    WeekDays 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.
    WeekDaysExceptions List<string>
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    Description string
    Condition description
    EndDate string
    End date
    EndTime string
    End time
    ExceptionEndDate string
    Exception end date
    ExceptionEndTime string
    Exception end time
    ExceptionStartDate string
    Exception start date
    ExceptionStartTime string
    Exception start time
    IsNegate bool
    Indicates whereas this condition is in negate mode
    Name string
    Condition name
    StartDate string
    Start date
    StartTime string
    Start time
    WeekDays []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.
    WeekDaysExceptions []string
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    description String
    Condition description
    endDate String
    End date
    endTime String
    End time
    exceptionEndDate String
    Exception end date
    exceptionEndTime String
    Exception end time
    exceptionStartDate String
    Exception start date
    exceptionStartTime String
    Exception start time
    isNegate Boolean
    Indicates whereas this condition is in negate mode
    name String
    Condition name
    startDate String
    Start date
    startTime String
    Start time
    weekDays 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.
    weekDaysExceptions List<String>
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    description string
    Condition description
    endDate string
    End date
    endTime string
    End time
    exceptionEndDate string
    Exception end date
    exceptionEndTime string
    Exception end time
    exceptionStartDate string
    Exception start date
    exceptionStartTime string
    Exception start time
    isNegate boolean
    Indicates whereas this condition is in negate mode
    name string
    Condition name
    startDate string
    Start date
    startTime string
    Start time
    weekDays 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.
    weekDaysExceptions string[]
    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_date str
    Exception end date
    exception_end_time str
    Exception end time
    exception_start_date str
    Exception start date
    exception_start_time str
    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_exceptions Sequence[str]
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    description String
    Condition description
    endDate String
    End date
    endTime String
    End time
    exceptionEndDate String
    Exception end date
    exceptionEndTime String
    Exception end time
    exceptionStartDate String
    Exception start date
    exceptionStartTime String
    Exception start time
    isNegate Boolean
    Indicates whereas this condition is in negate mode
    name String
    Condition name
    startDate String
    Start date
    startTime String
    Start time
    weekDays 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.
    weekDaysExceptions List<String>
    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.
    The following state arguments are supported:
    Description string
    Condition description
    EndDate string
    End date
    EndTime string
    End time
    ExceptionEndDate string
    Exception end date
    ExceptionEndTime string
    Exception end time
    ExceptionStartDate string
    Exception start date
    ExceptionStartTime string
    Exception start time
    IsNegate bool
    Indicates whereas this condition is in negate mode
    Name string
    Condition name
    StartDate string
    Start date
    StartTime string
    Start time
    WeekDays 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.
    WeekDaysExceptions List<string>
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    Description string
    Condition description
    EndDate string
    End date
    EndTime string
    End time
    ExceptionEndDate string
    Exception end date
    ExceptionEndTime string
    Exception end time
    ExceptionStartDate string
    Exception start date
    ExceptionStartTime string
    Exception start time
    IsNegate bool
    Indicates whereas this condition is in negate mode
    Name string
    Condition name
    StartDate string
    Start date
    StartTime string
    Start time
    WeekDays []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.
    WeekDaysExceptions []string
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    description String
    Condition description
    endDate String
    End date
    endTime String
    End time
    exceptionEndDate String
    Exception end date
    exceptionEndTime String
    Exception end time
    exceptionStartDate String
    Exception start date
    exceptionStartTime String
    Exception start time
    isNegate Boolean
    Indicates whereas this condition is in negate mode
    name String
    Condition name
    startDate String
    Start date
    startTime String
    Start time
    weekDays 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.
    weekDaysExceptions List<String>
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    description string
    Condition description
    endDate string
    End date
    endTime string
    End time
    exceptionEndDate string
    Exception end date
    exceptionEndTime string
    Exception end time
    exceptionStartDate string
    Exception start date
    exceptionStartTime string
    Exception start time
    isNegate boolean
    Indicates whereas this condition is in negate mode
    name string
    Condition name
    startDate string
    Start date
    startTime string
    Start time
    weekDays 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.
    weekDaysExceptions string[]
    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_date str
    Exception end date
    exception_end_time str
    Exception end time
    exception_start_date str
    Exception start date
    exception_start_time str
    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_exceptions Sequence[str]
    Defines for which days this condition will NOT be matched. List of weekdays - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
    description String
    Condition description
    endDate String
    End date
    endTime String
    End time
    exceptionEndDate String
    Exception end date
    exceptionEndTime String
    Exception end time
    exceptionStartDate String
    Exception start date
    exceptionStartTime String
    Exception start time
    isNegate Boolean
    Indicates whereas this condition is in negate mode
    name String
    Condition name
    startDate String
    Start date
    startTime String
    Start time
    weekDays 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.
    weekDaysExceptions List<String>
    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.
    ise logo
    Cisco ISE v0.1.4 published on Friday, May 31, 2024 by Pulumi