checkpoint.ManagementTime
Explore with Pulumi AI
This resource allows you to execute Check Point Time.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as checkpoint from "@pulumi/checkpoint";
const example = new checkpoint.ManagementApplicationSite("example", {});
import pulumi
import pulumi_checkpoint as checkpoint
example = checkpoint.ManagementApplicationSite("example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/checkpoint/v2/checkpoint"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := checkpoint.NewManagementApplicationSite(ctx, "example", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Checkpoint = Pulumi.Checkpoint;
return await Deployment.RunAsync(() =>
{
var example = new Checkpoint.ManagementApplicationSite("example");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.checkpoint.ManagementApplicationSite;
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 ManagementApplicationSite("example");
}
}
resources:
example:
type: checkpoint:ManagementApplicationSite
Create ManagementTime Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagementTime(name: string, args?: ManagementTimeArgs, opts?: CustomResourceOptions);
@overload
def ManagementTime(resource_name: str,
args: Optional[ManagementTimeArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ManagementTime(resource_name: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
end: Optional[Mapping[str, str]] = None,
end_never: Optional[bool] = None,
hours_ranges: Optional[Sequence[ManagementTimeHoursRangeArgs]] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_time_id: Optional[str] = None,
name: Optional[str] = None,
recurrence: Optional[ManagementTimeRecurrenceArgs] = None,
start: Optional[Mapping[str, str]] = None,
start_now: Optional[bool] = None,
tags: Optional[Sequence[str]] = None)
func NewManagementTime(ctx *Context, name string, args *ManagementTimeArgs, opts ...ResourceOption) (*ManagementTime, error)
public ManagementTime(string name, ManagementTimeArgs? args = null, CustomResourceOptions? opts = null)
public ManagementTime(String name, ManagementTimeArgs args)
public ManagementTime(String name, ManagementTimeArgs args, CustomResourceOptions options)
type: checkpoint:ManagementTime
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 ManagementTimeArgs
- 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 ManagementTimeArgs
- 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 ManagementTimeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagementTimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagementTimeArgs
- 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 managementTimeResource = new Checkpoint.ManagementTime("managementTimeResource", new()
{
Color = "string",
Comments = "string",
End =
{
{ "string", "string" },
},
EndNever = false,
HoursRanges = new[]
{
new Checkpoint.Inputs.ManagementTimeHoursRangeArgs
{
Enabled = false,
From = "string",
Index = 0,
To = "string",
},
},
IgnoreErrors = false,
IgnoreWarnings = false,
ManagementTimeId = "string",
Name = "string",
Recurrence = new Checkpoint.Inputs.ManagementTimeRecurrenceArgs
{
Days = new[]
{
"string",
},
Month = "string",
Pattern = "string",
Weekdays = new[]
{
"string",
},
},
Start =
{
{ "string", "string" },
},
StartNow = false,
Tags = new[]
{
"string",
},
});
example, err := checkpoint.NewManagementTime(ctx, "managementTimeResource", &checkpoint.ManagementTimeArgs{
Color: pulumi.String("string"),
Comments: pulumi.String("string"),
End: pulumi.StringMap{
"string": pulumi.String("string"),
},
EndNever: pulumi.Bool(false),
HoursRanges: checkpoint.ManagementTimeHoursRangeArray{
&checkpoint.ManagementTimeHoursRangeArgs{
Enabled: pulumi.Bool(false),
From: pulumi.String("string"),
Index: pulumi.Float64(0),
To: pulumi.String("string"),
},
},
IgnoreErrors: pulumi.Bool(false),
IgnoreWarnings: pulumi.Bool(false),
ManagementTimeId: pulumi.String("string"),
Name: pulumi.String("string"),
Recurrence: &checkpoint.ManagementTimeRecurrenceArgs{
Days: pulumi.StringArray{
pulumi.String("string"),
},
Month: pulumi.String("string"),
Pattern: pulumi.String("string"),
Weekdays: pulumi.StringArray{
pulumi.String("string"),
},
},
Start: pulumi.StringMap{
"string": pulumi.String("string"),
},
StartNow: pulumi.Bool(false),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var managementTimeResource = new ManagementTime("managementTimeResource", ManagementTimeArgs.builder()
.color("string")
.comments("string")
.end(Map.of("string", "string"))
.endNever(false)
.hoursRanges(ManagementTimeHoursRangeArgs.builder()
.enabled(false)
.from("string")
.index(0)
.to("string")
.build())
.ignoreErrors(false)
.ignoreWarnings(false)
.managementTimeId("string")
.name("string")
.recurrence(ManagementTimeRecurrenceArgs.builder()
.days("string")
.month("string")
.pattern("string")
.weekdays("string")
.build())
.start(Map.of("string", "string"))
.startNow(false)
.tags("string")
.build());
management_time_resource = checkpoint.ManagementTime("managementTimeResource",
color="string",
comments="string",
end={
"string": "string",
},
end_never=False,
hours_ranges=[{
"enabled": False,
"from_": "string",
"index": 0,
"to": "string",
}],
ignore_errors=False,
ignore_warnings=False,
management_time_id="string",
name="string",
recurrence={
"days": ["string"],
"month": "string",
"pattern": "string",
"weekdays": ["string"],
},
start={
"string": "string",
},
start_now=False,
tags=["string"])
const managementTimeResource = new checkpoint.ManagementTime("managementTimeResource", {
color: "string",
comments: "string",
end: {
string: "string",
},
endNever: false,
hoursRanges: [{
enabled: false,
from: "string",
index: 0,
to: "string",
}],
ignoreErrors: false,
ignoreWarnings: false,
managementTimeId: "string",
name: "string",
recurrence: {
days: ["string"],
month: "string",
pattern: "string",
weekdays: ["string"],
},
start: {
string: "string",
},
startNow: false,
tags: ["string"],
});
type: checkpoint:ManagementTime
properties:
color: string
comments: string
end:
string: string
endNever: false
hoursRanges:
- enabled: false
from: string
index: 0
to: string
ignoreErrors: false
ignoreWarnings: false
managementTimeId: string
name: string
recurrence:
days:
- string
month: string
pattern: string
weekdays:
- string
start:
string: string
startNow: false
tags:
- string
ManagementTime Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagementTime resource accepts the following input properties:
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- End Dictionary<string, string>
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- End
Never bool - End never.
- Hours
Ranges List<ManagementTime Hours Range> - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Time stringId - Name string
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- Recurrence
Management
Time Recurrence - Days recurrence.
- Start Dictionary<string, string>
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- Start
Now bool - Start immediately.
- List<string>
- Collection of tag identifiers.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- End map[string]string
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- End
Never bool - End never.
- Hours
Ranges []ManagementTime Hours Range Args - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Time stringId - Name string
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- Recurrence
Management
Time Recurrence Args - Days recurrence.
- Start map[string]string
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- Start
Now bool - Start immediately.
- []string
- Collection of tag identifiers.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- end Map<String,String>
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end
Never Boolean - End never.
- hours
Ranges List<ManagementTime Hours Range> - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Time StringId - name String
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence
Management
Time Recurrence - Days recurrence.
- start Map<String,String>
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start
Now Boolean - Start immediately.
- List<String>
- Collection of tag identifiers.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- end {[key: string]: string}
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end
Never boolean - End never.
- hours
Ranges ManagementTime Hours Range[] - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore
Errors boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Time stringId - name string
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence
Management
Time Recurrence - Days recurrence.
- start {[key: string]: string}
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start
Now boolean - Start immediately.
- string[]
- Collection of tag identifiers.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- end Mapping[str, str]
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end_
never bool - End never.
- hours_
ranges Sequence[ManagementTime Hours Range Args] - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore_
errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore_
warnings bool - Apply changes ignoring warnings.
- management_
time_ strid - name str
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence
Management
Time Recurrence Args - Days recurrence.
- start Mapping[str, str]
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start_
now bool - Start immediately.
- Sequence[str]
- Collection of tag identifiers.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- end Map<String>
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end
Never Boolean - End never.
- hours
Ranges List<Property Map> - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Time StringId - name String
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence Property Map
- Days recurrence.
- start Map<String>
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start
Now Boolean - Start immediately.
- List<String>
- Collection of tag identifiers.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagementTime 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 ManagementTime Resource
Get an existing ManagementTime 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?: ManagementTimeState, opts?: CustomResourceOptions): ManagementTime
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
color: Optional[str] = None,
comments: Optional[str] = None,
end: Optional[Mapping[str, str]] = None,
end_never: Optional[bool] = None,
hours_ranges: Optional[Sequence[ManagementTimeHoursRangeArgs]] = None,
ignore_errors: Optional[bool] = None,
ignore_warnings: Optional[bool] = None,
management_time_id: Optional[str] = None,
name: Optional[str] = None,
recurrence: Optional[ManagementTimeRecurrenceArgs] = None,
start: Optional[Mapping[str, str]] = None,
start_now: Optional[bool] = None,
tags: Optional[Sequence[str]] = None) -> ManagementTime
func GetManagementTime(ctx *Context, name string, id IDInput, state *ManagementTimeState, opts ...ResourceOption) (*ManagementTime, error)
public static ManagementTime Get(string name, Input<string> id, ManagementTimeState? state, CustomResourceOptions? opts = null)
public static ManagementTime get(String name, Output<String> id, ManagementTimeState state, CustomResourceOptions options)
resources: _: type: checkpoint:ManagementTime get: id: ${id}
- 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.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- End Dictionary<string, string>
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- End
Never bool - End never.
- Hours
Ranges List<ManagementTime Hours Range> - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Time stringId - Name string
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- Recurrence
Management
Time Recurrence - Days recurrence.
- Start Dictionary<string, string>
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- Start
Now bool - Start immediately.
- List<string>
- Collection of tag identifiers.
- Color string
- Color of the object. Should be one of existing colors.
- Comments string
- Comments string.
- End map[string]string
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- End
Never bool - End never.
- Hours
Ranges []ManagementTime Hours Range Args - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- Ignore
Errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- Ignore
Warnings bool - Apply changes ignoring warnings.
- Management
Time stringId - Name string
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- Recurrence
Management
Time Recurrence Args - Days recurrence.
- Start map[string]string
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- Start
Now bool - Start immediately.
- []string
- Collection of tag identifiers.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- end Map<String,String>
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end
Never Boolean - End never.
- hours
Ranges List<ManagementTime Hours Range> - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Time StringId - name String
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence
Management
Time Recurrence - Days recurrence.
- start Map<String,String>
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start
Now Boolean - Start immediately.
- List<String>
- Collection of tag identifiers.
- color string
- Color of the object. Should be one of existing colors.
- comments string
- Comments string.
- end {[key: string]: string}
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end
Never boolean - End never.
- hours
Ranges ManagementTime Hours Range[] - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore
Errors boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings boolean - Apply changes ignoring warnings.
- management
Time stringId - name string
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence
Management
Time Recurrence - Days recurrence.
- start {[key: string]: string}
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start
Now boolean - Start immediately.
- string[]
- Collection of tag identifiers.
- color str
- Color of the object. Should be one of existing colors.
- comments str
- Comments string.
- end Mapping[str, str]
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end_
never bool - End never.
- hours_
ranges Sequence[ManagementTime Hours Range Args] - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore_
errors bool - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore_
warnings bool - Apply changes ignoring warnings.
- management_
time_ strid - name str
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence
Management
Time Recurrence Args - Days recurrence.
- start Mapping[str, str]
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start_
now bool - Start immediately.
- Sequence[str]
- Collection of tag identifiers.
- color String
- Color of the object. Should be one of existing colors.
- comments String
- Comments string.
- end Map<String>
- End time. Note: Each gateway may interpret this time differently according to its time zone.
- end
Never Boolean - End never.
- hours
Ranges List<Property Map> - Hours recurrence. Note: Each gateway may interpret this time differently according to its time zone.
- ignore
Errors Boolean - Apply changes ignoring errors. You won't be able to publish such a changes. If ignore-warnings flag was omitted - warnings will also be ignored.
- ignore
Warnings Boolean - Apply changes ignoring warnings.
- management
Time StringId - name String
- Time object name. Cannot be more than 11 characters. Should be unique in the domain.
- recurrence Property Map
- Days recurrence.
- start Map<String>
- Starting time. Note: Each gateway may interpret this time differently according to its time zone.
- start
Now Boolean - Start immediately.
- List<String>
- Collection of tag identifiers.
Supporting Types
ManagementTimeHoursRange, ManagementTimeHoursRangeArgs
ManagementTimeRecurrence, ManagementTimeRecurrenceArgs
- Days List<string>
- Valid on specific days. Multiple options, support range of days in months. Example:["1","3","9-20"].
- Month string
- Valid on month. Example: "1", "2","12","Any".
- Pattern string
- Valid on "Daily", "Weekly", "Monthly" base.
- Weekdays List<string>
- Valid on weekdays. Example: "Sun", "Mon"..."Sat".
- days List<String>
- Valid on specific days. Multiple options, support range of days in months. Example:["1","3","9-20"].
- month String
- Valid on month. Example: "1", "2","12","Any".
- pattern String
- Valid on "Daily", "Weekly", "Monthly" base.
- weekdays List<String>
- Valid on weekdays. Example: "Sun", "Mon"..."Sat".
- days List<String>
- Valid on specific days. Multiple options, support range of days in months. Example:["1","3","9-20"].
- month String
- Valid on month. Example: "1", "2","12","Any".
- pattern String
- Valid on "Daily", "Weekly", "Monthly" base.
- weekdays List<String>
- Valid on weekdays. Example: "Sun", "Mon"..."Sat".
Package Details
- Repository
- checkpoint checkpointsw/terraform-provider-checkpoint
- License
- Notes
- This Pulumi package is based on the
checkpoint
Terraform Provider.