oci.StackMonitoring.MaintenanceWindowsStop
Explore with Pulumi AI
This resource provides the Maintenance Windows Stop resource in Oracle Cloud Infrastructure Stack Monitoring service.
Stop a maintenance window before the end time is reached.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaintenanceWindowsStop = new oci.stackmonitoring.MaintenanceWindowsStop("test_maintenance_windows_stop", {maintenanceWindowId: testMaintenanceWindow.id});
import pulumi
import pulumi_oci as oci
test_maintenance_windows_stop = oci.stack_monitoring.MaintenanceWindowsStop("test_maintenance_windows_stop", maintenance_window_id=test_maintenance_window["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/StackMonitoring"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := StackMonitoring.NewMaintenanceWindowsStop(ctx, "test_maintenance_windows_stop", &StackMonitoring.MaintenanceWindowsStopArgs{
MaintenanceWindowId: pulumi.Any(testMaintenanceWindow.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testMaintenanceWindowsStop = new Oci.StackMonitoring.MaintenanceWindowsStop("test_maintenance_windows_stop", new()
{
MaintenanceWindowId = testMaintenanceWindow.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.StackMonitoring.MaintenanceWindowsStop;
import com.pulumi.oci.StackMonitoring.MaintenanceWindowsStopArgs;
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 testMaintenanceWindowsStop = new MaintenanceWindowsStop("testMaintenanceWindowsStop", MaintenanceWindowsStopArgs.builder()
.maintenanceWindowId(testMaintenanceWindow.id())
.build());
}
}
resources:
testMaintenanceWindowsStop:
type: oci:StackMonitoring:MaintenanceWindowsStop
name: test_maintenance_windows_stop
properties:
maintenanceWindowId: ${testMaintenanceWindow.id}
Create MaintenanceWindowsStop Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MaintenanceWindowsStop(name: string, args: MaintenanceWindowsStopArgs, opts?: CustomResourceOptions);
@overload
def MaintenanceWindowsStop(resource_name: str,
args: MaintenanceWindowsStopArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MaintenanceWindowsStop(resource_name: str,
opts: Optional[ResourceOptions] = None,
maintenance_window_id: Optional[str] = None)
func NewMaintenanceWindowsStop(ctx *Context, name string, args MaintenanceWindowsStopArgs, opts ...ResourceOption) (*MaintenanceWindowsStop, error)
public MaintenanceWindowsStop(string name, MaintenanceWindowsStopArgs args, CustomResourceOptions? opts = null)
public MaintenanceWindowsStop(String name, MaintenanceWindowsStopArgs args)
public MaintenanceWindowsStop(String name, MaintenanceWindowsStopArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MaintenanceWindowsStop
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 MaintenanceWindowsStopArgs
- 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 MaintenanceWindowsStopArgs
- 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 MaintenanceWindowsStopArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MaintenanceWindowsStopArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MaintenanceWindowsStopArgs
- 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 maintenanceWindowsStopResource = new Oci.StackMonitoring.MaintenanceWindowsStop("maintenanceWindowsStopResource", new()
{
MaintenanceWindowId = "string",
});
example, err := StackMonitoring.NewMaintenanceWindowsStop(ctx, "maintenanceWindowsStopResource", &StackMonitoring.MaintenanceWindowsStopArgs{
MaintenanceWindowId: pulumi.String("string"),
})
var maintenanceWindowsStopResource = new MaintenanceWindowsStop("maintenanceWindowsStopResource", MaintenanceWindowsStopArgs.builder()
.maintenanceWindowId("string")
.build());
maintenance_windows_stop_resource = oci.stack_monitoring.MaintenanceWindowsStop("maintenanceWindowsStopResource", maintenance_window_id="string")
const maintenanceWindowsStopResource = new oci.stackmonitoring.MaintenanceWindowsStop("maintenanceWindowsStopResource", {maintenanceWindowId: "string"});
type: oci:StackMonitoring:MaintenanceWindowsStop
properties:
maintenanceWindowId: string
MaintenanceWindowsStop 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 MaintenanceWindowsStop resource accepts the following input properties:
- Maintenance
Window stringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Maintenance
Window stringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance
Window StringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance
Window stringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance_
window_ strid The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance
Window StringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the MaintenanceWindowsStop 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 MaintenanceWindowsStop Resource
Get an existing MaintenanceWindowsStop 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?: MaintenanceWindowsStopState, opts?: CustomResourceOptions): MaintenanceWindowsStop
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
maintenance_window_id: Optional[str] = None) -> MaintenanceWindowsStop
func GetMaintenanceWindowsStop(ctx *Context, name string, id IDInput, state *MaintenanceWindowsStopState, opts ...ResourceOption) (*MaintenanceWindowsStop, error)
public static MaintenanceWindowsStop Get(string name, Input<string> id, MaintenanceWindowsStopState? state, CustomResourceOptions? opts = null)
public static MaintenanceWindowsStop get(String name, Output<String> id, MaintenanceWindowsStopState 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.
- Maintenance
Window stringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Maintenance
Window stringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance
Window StringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance
Window stringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance_
window_ strid The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- maintenance
Window StringId The OCID of maintenance window.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
MaintenanceWindowsStop can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/maintenanceWindowsStop:MaintenanceWindowsStop test_maintenance_windows_stop "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.