Pulumi Cloud v0.27.1 published on Thursday, Nov 14, 2024 by Pulumi
pulumiservice.DriftSchedule
Explore with Pulumi AI
A cron schedule to run drift detection.
Create DriftSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DriftSchedule(name: string, args: DriftScheduleArgs, opts?: CustomResourceOptions);
@overload
def DriftSchedule(resource_name: str,
args: DriftScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DriftSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
schedule_cron: Optional[str] = None,
stack: Optional[str] = None,
auto_remediate: Optional[bool] = None)
func NewDriftSchedule(ctx *Context, name string, args DriftScheduleArgs, opts ...ResourceOption) (*DriftSchedule, error)
public DriftSchedule(string name, DriftScheduleArgs args, CustomResourceOptions? opts = null)
public DriftSchedule(String name, DriftScheduleArgs args)
public DriftSchedule(String name, DriftScheduleArgs args, CustomResourceOptions options)
type: pulumiservice:DriftSchedule
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 DriftScheduleArgs
- 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 DriftScheduleArgs
- 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 DriftScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DriftScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DriftScheduleArgs
- 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 driftScheduleResource = new PulumiService.DriftSchedule("driftScheduleResource", new()
{
Organization = "string",
Project = "string",
ScheduleCron = "string",
Stack = "string",
AutoRemediate = false,
});
example, err := pulumiservice.NewDriftSchedule(ctx, "driftScheduleResource", &pulumiservice.DriftScheduleArgs{
Organization: pulumi.String("string"),
Project: pulumi.String("string"),
ScheduleCron: pulumi.String("string"),
Stack: pulumi.String("string"),
AutoRemediate: pulumi.Bool(false),
})
var driftScheduleResource = new DriftSchedule("driftScheduleResource", DriftScheduleArgs.builder()
.organization("string")
.project("string")
.scheduleCron("string")
.stack("string")
.autoRemediate(false)
.build());
drift_schedule_resource = pulumiservice.DriftSchedule("driftScheduleResource",
organization="string",
project="string",
schedule_cron="string",
stack="string",
auto_remediate=False)
const driftScheduleResource = new pulumiservice.DriftSchedule("driftScheduleResource", {
organization: "string",
project: "string",
scheduleCron: "string",
stack: "string",
autoRemediate: false,
});
type: pulumiservice:DriftSchedule
properties:
autoRemediate: false
organization: string
project: string
scheduleCron: string
stack: string
DriftSchedule 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 DriftSchedule resource accepts the following input properties:
- Organization string
- Organization name.
- Project string
- Project name.
- Schedule
Cron string - Cron expression for when to run drift detection.
- Stack string
- Stack name.
- Auto
Remediate bool - Whether any drift detected should be remediated after a drift run.
- Organization string
- Organization name.
- Project string
- Project name.
- Schedule
Cron string - Cron expression for when to run drift detection.
- Stack string
- Stack name.
- Auto
Remediate bool - Whether any drift detected should be remediated after a drift run.
- organization String
- Organization name.
- project String
- Project name.
- schedule
Cron String - Cron expression for when to run drift detection.
- stack String
- Stack name.
- auto
Remediate Boolean - Whether any drift detected should be remediated after a drift run.
- organization string
- Organization name.
- project string
- Project name.
- schedule
Cron string - Cron expression for when to run drift detection.
- stack string
- Stack name.
- auto
Remediate boolean - Whether any drift detected should be remediated after a drift run.
- organization str
- Organization name.
- project str
- Project name.
- schedule_
cron str - Cron expression for when to run drift detection.
- stack str
- Stack name.
- auto_
remediate bool - Whether any drift detected should be remediated after a drift run.
- organization String
- Organization name.
- project String
- Project name.
- schedule
Cron String - Cron expression for when to run drift detection.
- stack String
- Stack name.
- auto
Remediate Boolean - Whether any drift detected should be remediated after a drift run.
Outputs
All input properties are implicitly available as output properties. Additionally, the DriftSchedule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Id string - Schedule ID of the created schedule, assigned by Pulumi Cloud.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Id string - Schedule ID of the created schedule, assigned by Pulumi Cloud.
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Id String - Schedule ID of the created schedule, assigned by Pulumi Cloud.
- id string
- The provider-assigned unique ID for this managed resource.
- schedule
Id string - Schedule ID of the created schedule, assigned by Pulumi Cloud.
- id str
- The provider-assigned unique ID for this managed resource.
- schedule_
id str - Schedule ID of the created schedule, assigned by Pulumi Cloud.
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Id String - Schedule ID of the created schedule, assigned by Pulumi Cloud.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0