oci.StackMonitoring.MaintenanceWindowsRetryFailedOperation
Explore with Pulumi AI
This resource provides the Maintenance Windows Retry Failed Operation resource in Oracle Cloud Infrastructure Stack Monitoring service.
Retry the last failed operation. The operation failed will be the most recent one. It won’t apply for previous failed operations.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMaintenanceWindowsRetryFailedOperation = new oci.stackmonitoring.MaintenanceWindowsRetryFailedOperation("test_maintenance_windows_retry_failed_operation", {maintenanceWindowId: testMaintenanceWindow.id});
import pulumi
import pulumi_oci as oci
test_maintenance_windows_retry_failed_operation = oci.stack_monitoring.MaintenanceWindowsRetryFailedOperation("test_maintenance_windows_retry_failed_operation", 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.NewMaintenanceWindowsRetryFailedOperation(ctx, "test_maintenance_windows_retry_failed_operation", &StackMonitoring.MaintenanceWindowsRetryFailedOperationArgs{
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 testMaintenanceWindowsRetryFailedOperation = new Oci.StackMonitoring.MaintenanceWindowsRetryFailedOperation("test_maintenance_windows_retry_failed_operation", 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.MaintenanceWindowsRetryFailedOperation;
import com.pulumi.oci.StackMonitoring.MaintenanceWindowsRetryFailedOperationArgs;
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 testMaintenanceWindowsRetryFailedOperation = new MaintenanceWindowsRetryFailedOperation("testMaintenanceWindowsRetryFailedOperation", MaintenanceWindowsRetryFailedOperationArgs.builder()
.maintenanceWindowId(testMaintenanceWindow.id())
.build());
}
}
resources:
testMaintenanceWindowsRetryFailedOperation:
type: oci:StackMonitoring:MaintenanceWindowsRetryFailedOperation
name: test_maintenance_windows_retry_failed_operation
properties:
maintenanceWindowId: ${testMaintenanceWindow.id}
Create MaintenanceWindowsRetryFailedOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MaintenanceWindowsRetryFailedOperation(name: string, args: MaintenanceWindowsRetryFailedOperationArgs, opts?: CustomResourceOptions);
@overload
def MaintenanceWindowsRetryFailedOperation(resource_name: str,
args: MaintenanceWindowsRetryFailedOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MaintenanceWindowsRetryFailedOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
maintenance_window_id: Optional[str] = None)
func NewMaintenanceWindowsRetryFailedOperation(ctx *Context, name string, args MaintenanceWindowsRetryFailedOperationArgs, opts ...ResourceOption) (*MaintenanceWindowsRetryFailedOperation, error)
public MaintenanceWindowsRetryFailedOperation(string name, MaintenanceWindowsRetryFailedOperationArgs args, CustomResourceOptions? opts = null)
public MaintenanceWindowsRetryFailedOperation(String name, MaintenanceWindowsRetryFailedOperationArgs args)
public MaintenanceWindowsRetryFailedOperation(String name, MaintenanceWindowsRetryFailedOperationArgs args, CustomResourceOptions options)
type: oci:StackMonitoring:MaintenanceWindowsRetryFailedOperation
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 MaintenanceWindowsRetryFailedOperationArgs
- 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 MaintenanceWindowsRetryFailedOperationArgs
- 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 MaintenanceWindowsRetryFailedOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MaintenanceWindowsRetryFailedOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MaintenanceWindowsRetryFailedOperationArgs
- 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 maintenanceWindowsRetryFailedOperationResource = new Oci.StackMonitoring.MaintenanceWindowsRetryFailedOperation("maintenanceWindowsRetryFailedOperationResource", new()
{
MaintenanceWindowId = "string",
});
example, err := StackMonitoring.NewMaintenanceWindowsRetryFailedOperation(ctx, "maintenanceWindowsRetryFailedOperationResource", &StackMonitoring.MaintenanceWindowsRetryFailedOperationArgs{
MaintenanceWindowId: pulumi.String("string"),
})
var maintenanceWindowsRetryFailedOperationResource = new MaintenanceWindowsRetryFailedOperation("maintenanceWindowsRetryFailedOperationResource", MaintenanceWindowsRetryFailedOperationArgs.builder()
.maintenanceWindowId("string")
.build());
maintenance_windows_retry_failed_operation_resource = oci.stack_monitoring.MaintenanceWindowsRetryFailedOperation("maintenanceWindowsRetryFailedOperationResource", maintenance_window_id="string")
const maintenanceWindowsRetryFailedOperationResource = new oci.stackmonitoring.MaintenanceWindowsRetryFailedOperation("maintenanceWindowsRetryFailedOperationResource", {maintenanceWindowId: "string"});
type: oci:StackMonitoring:MaintenanceWindowsRetryFailedOperation
properties:
maintenanceWindowId: string
MaintenanceWindowsRetryFailedOperation 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 MaintenanceWindowsRetryFailedOperation 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 MaintenanceWindowsRetryFailedOperation 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 MaintenanceWindowsRetryFailedOperation Resource
Get an existing MaintenanceWindowsRetryFailedOperation 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?: MaintenanceWindowsRetryFailedOperationState, opts?: CustomResourceOptions): MaintenanceWindowsRetryFailedOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
maintenance_window_id: Optional[str] = None) -> MaintenanceWindowsRetryFailedOperation
func GetMaintenanceWindowsRetryFailedOperation(ctx *Context, name string, id IDInput, state *MaintenanceWindowsRetryFailedOperationState, opts ...ResourceOption) (*MaintenanceWindowsRetryFailedOperation, error)
public static MaintenanceWindowsRetryFailedOperation Get(string name, Input<string> id, MaintenanceWindowsRetryFailedOperationState? state, CustomResourceOptions? opts = null)
public static MaintenanceWindowsRetryFailedOperation get(String name, Output<String> id, MaintenanceWindowsRetryFailedOperationState 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
MaintenanceWindowsRetryFailedOperation can be imported using the id
, e.g.
$ pulumi import oci:StackMonitoring/maintenanceWindowsRetryFailedOperation:MaintenanceWindowsRetryFailedOperation test_maintenance_windows_retry_failed_operation "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.