This provider is currently in preview.
pulumiservice.EnvironmentRotationSchedule
Explore with Pulumi AI
This provider is currently in preview.
A scheduled recurring or single time environment rotation.
Create EnvironmentRotationSchedule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnvironmentRotationSchedule(name: string, args: EnvironmentRotationScheduleArgs, opts?: CustomResourceOptions);
@overload
def EnvironmentRotationSchedule(resource_name: str,
args: EnvironmentRotationScheduleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def EnvironmentRotationSchedule(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment: Optional[str] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
schedule_cron: Optional[str] = None,
timestamp: Optional[str] = None)
func NewEnvironmentRotationSchedule(ctx *Context, name string, args EnvironmentRotationScheduleArgs, opts ...ResourceOption) (*EnvironmentRotationSchedule, error)
public EnvironmentRotationSchedule(string name, EnvironmentRotationScheduleArgs args, CustomResourceOptions? opts = null)
public EnvironmentRotationSchedule(String name, EnvironmentRotationScheduleArgs args)
public EnvironmentRotationSchedule(String name, EnvironmentRotationScheduleArgs args, CustomResourceOptions options)
type: pulumiservice:EnvironmentRotationSchedule
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 EnvironmentRotationScheduleArgs
- 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 EnvironmentRotationScheduleArgs
- 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 EnvironmentRotationScheduleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EnvironmentRotationScheduleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EnvironmentRotationScheduleArgs
- 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 environmentRotationScheduleResource = new PulumiService.EnvironmentRotationSchedule("environmentRotationScheduleResource", new()
{
Environment = "string",
Organization = "string",
Project = "string",
ScheduleCron = "string",
Timestamp = "string",
});
example, err := pulumiservice.NewEnvironmentRotationSchedule(ctx, "environmentRotationScheduleResource", &pulumiservice.EnvironmentRotationScheduleArgs{
Environment: pulumi.String("string"),
Organization: pulumi.String("string"),
Project: pulumi.String("string"),
ScheduleCron: pulumi.String("string"),
Timestamp: pulumi.String("string"),
})
var environmentRotationScheduleResource = new EnvironmentRotationSchedule("environmentRotationScheduleResource", EnvironmentRotationScheduleArgs.builder()
.environment("string")
.organization("string")
.project("string")
.scheduleCron("string")
.timestamp("string")
.build());
environment_rotation_schedule_resource = pulumiservice.EnvironmentRotationSchedule("environmentRotationScheduleResource",
environment="string",
organization="string",
project="string",
schedule_cron="string",
timestamp="string")
const environmentRotationScheduleResource = new pulumiservice.EnvironmentRotationSchedule("environmentRotationScheduleResource", {
environment: "string",
organization: "string",
project: "string",
scheduleCron: "string",
timestamp: "string",
});
type: pulumiservice:EnvironmentRotationSchedule
properties:
environment: string
organization: string
project: string
scheduleCron: string
timestamp: string
EnvironmentRotationSchedule 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 EnvironmentRotationSchedule resource accepts the following input properties:
- Environment string
- Environment name.
- Organization string
- Organization name.
- Project string
- Project name.
- Schedule
Cron string - Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp.
- Timestamp string
- The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
- Environment string
- Environment name.
- Organization string
- Organization name.
- Project string
- Project name.
- Schedule
Cron string - Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp.
- Timestamp string
- The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
- environment String
- Environment name.
- organization String
- Organization name.
- project String
- Project name.
- schedule
Cron String - Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp.
- timestamp String
- The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
- environment string
- Environment name.
- organization string
- Organization name.
- project string
- Project name.
- schedule
Cron string - Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp.
- timestamp string
- The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
- environment str
- Environment name.
- organization str
- Organization name.
- project str
- Project name.
- schedule_
cron str - Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp.
- timestamp str
- The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
- environment String
- Environment name.
- organization String
- Organization name.
- project String
- Project name.
- schedule
Cron String - Cron expression for recurring scheduled rotations. If you are supplying this, do not supply timestamp.
- timestamp String
- The time at which the rotation should run, in ISO 8601 format. Eg: 2020-01-01T00:00:00Z. If you are supplying this, do not supply scheduleCron.
Outputs
All input properties are implicitly available as output properties. Additionally, the EnvironmentRotationSchedule 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 rotation schedule, assigned by Pulumi Cloud.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Id string - Schedule ID of the created rotation schedule, assigned by Pulumi Cloud.
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Id String - Schedule ID of the created rotation schedule, assigned by Pulumi Cloud.
- id string
- The provider-assigned unique ID for this managed resource.
- schedule
Id string - Schedule ID of the created rotation schedule, assigned by Pulumi Cloud.
- id str
- The provider-assigned unique ID for this managed resource.
- schedule_
id str - Schedule ID of the created rotation schedule, assigned by Pulumi Cloud.
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Id String - Schedule ID of the created rotation schedule, assigned by Pulumi Cloud.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.