1. Packages
  2. Scaleway
  3. API Docs
  4. CockpitAlertManager
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

scaleway.CockpitAlertManager

Explore with Pulumi AI

scaleway logo
Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse

    Creates and manages Scaleway Cockpit Alert Managers.

    For more information consult the documentation.

    Create CockpitAlertManager Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CockpitAlertManager(name: string, args?: CockpitAlertManagerArgs, opts?: CustomResourceOptions);
    @overload
    def CockpitAlertManager(resource_name: str,
                            args: Optional[CockpitAlertManagerArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CockpitAlertManager(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            contact_points: Optional[Sequence[CockpitAlertManagerContactPointArgs]] = None,
                            enable_managed_alerts: Optional[bool] = None,
                            project_id: Optional[str] = None,
                            region: Optional[str] = None)
    func NewCockpitAlertManager(ctx *Context, name string, args *CockpitAlertManagerArgs, opts ...ResourceOption) (*CockpitAlertManager, error)
    public CockpitAlertManager(string name, CockpitAlertManagerArgs? args = null, CustomResourceOptions? opts = null)
    public CockpitAlertManager(String name, CockpitAlertManagerArgs args)
    public CockpitAlertManager(String name, CockpitAlertManagerArgs args, CustomResourceOptions options)
    
    type: scaleway:CockpitAlertManager
    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 CockpitAlertManagerArgs
    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 CockpitAlertManagerArgs
    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 CockpitAlertManagerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CockpitAlertManagerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CockpitAlertManagerArgs
    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 cockpitAlertManagerResource = new Scaleway.CockpitAlertManager("cockpitAlertManagerResource", new()
    {
        ContactPoints = new[]
        {
            new Scaleway.Inputs.CockpitAlertManagerContactPointArgs
            {
                Email = "string",
            },
        },
        EnableManagedAlerts = false,
        ProjectId = "string",
        Region = "string",
    });
    
    example, err := scaleway.NewCockpitAlertManager(ctx, "cockpitAlertManagerResource", &scaleway.CockpitAlertManagerArgs{
    	ContactPoints: scaleway.CockpitAlertManagerContactPointArray{
    		&scaleway.CockpitAlertManagerContactPointArgs{
    			Email: pulumi.String("string"),
    		},
    	},
    	EnableManagedAlerts: pulumi.Bool(false),
    	ProjectId:           pulumi.String("string"),
    	Region:              pulumi.String("string"),
    })
    
    var cockpitAlertManagerResource = new CockpitAlertManager("cockpitAlertManagerResource", CockpitAlertManagerArgs.builder()
        .contactPoints(CockpitAlertManagerContactPointArgs.builder()
            .email("string")
            .build())
        .enableManagedAlerts(false)
        .projectId("string")
        .region("string")
        .build());
    
    cockpit_alert_manager_resource = scaleway.CockpitAlertManager("cockpitAlertManagerResource",
        contact_points=[scaleway.CockpitAlertManagerContactPointArgs(
            email="string",
        )],
        enable_managed_alerts=False,
        project_id="string",
        region="string")
    
    const cockpitAlertManagerResource = new scaleway.CockpitAlertManager("cockpitAlertManagerResource", {
        contactPoints: [{
            email: "string",
        }],
        enableManagedAlerts: false,
        projectId: "string",
        region: "string",
    });
    
    type: scaleway:CockpitAlertManager
    properties:
        contactPoints:
            - email: string
        enableManagedAlerts: false
        projectId: string
        region: string
    

    CockpitAlertManager Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CockpitAlertManager resource accepts the following input properties:

    ContactPoints List<Pulumiverse.Scaleway.Inputs.CockpitAlertManagerContactPoint>
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    EnableManagedAlerts bool
    Indicates whether the alert manager should be enabled. Defaults to true.
    ProjectId string
    project_id) The ID of the project the cockpit is associated with.
    Region string
    region) The region in which alert_manager should be created.
    ContactPoints []CockpitAlertManagerContactPointArgs
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    EnableManagedAlerts bool
    Indicates whether the alert manager should be enabled. Defaults to true.
    ProjectId string
    project_id) The ID of the project the cockpit is associated with.
    Region string
    region) The region in which alert_manager should be created.
    contactPoints List<CockpitAlertManagerContactPoint>
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enableManagedAlerts Boolean
    Indicates whether the alert manager should be enabled. Defaults to true.
    projectId String
    project_id) The ID of the project the cockpit is associated with.
    region String
    region) The region in which alert_manager should be created.
    contactPoints CockpitAlertManagerContactPoint[]
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enableManagedAlerts boolean
    Indicates whether the alert manager should be enabled. Defaults to true.
    projectId string
    project_id) The ID of the project the cockpit is associated with.
    region string
    region) The region in which alert_manager should be created.
    contact_points Sequence[CockpitAlertManagerContactPointArgs]
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enable_managed_alerts bool
    Indicates whether the alert manager should be enabled. Defaults to true.
    project_id str
    project_id) The ID of the project the cockpit is associated with.
    region str
    region) The region in which alert_manager should be created.
    contactPoints List<Property Map>
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enableManagedAlerts Boolean
    Indicates whether the alert manager should be enabled. Defaults to true.
    projectId String
    project_id) The ID of the project the cockpit is associated with.
    region String
    region) The region in which alert_manager should be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CockpitAlertManager resource produces the following output properties:

    AlertManagerUrl string
    Alert manager URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    AlertManagerUrl string
    Alert manager URL.
    Id string
    The provider-assigned unique ID for this managed resource.
    alertManagerUrl String
    Alert manager URL.
    id String
    The provider-assigned unique ID for this managed resource.
    alertManagerUrl string
    Alert manager URL.
    id string
    The provider-assigned unique ID for this managed resource.
    alert_manager_url str
    Alert manager URL.
    id str
    The provider-assigned unique ID for this managed resource.
    alertManagerUrl String
    Alert manager URL.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CockpitAlertManager Resource

    Get an existing CockpitAlertManager 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?: CockpitAlertManagerState, opts?: CustomResourceOptions): CockpitAlertManager
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_manager_url: Optional[str] = None,
            contact_points: Optional[Sequence[CockpitAlertManagerContactPointArgs]] = None,
            enable_managed_alerts: Optional[bool] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None) -> CockpitAlertManager
    func GetCockpitAlertManager(ctx *Context, name string, id IDInput, state *CockpitAlertManagerState, opts ...ResourceOption) (*CockpitAlertManager, error)
    public static CockpitAlertManager Get(string name, Input<string> id, CockpitAlertManagerState? state, CustomResourceOptions? opts = null)
    public static CockpitAlertManager get(String name, Output<String> id, CockpitAlertManagerState 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.
    The following state arguments are supported:
    AlertManagerUrl string
    Alert manager URL.
    ContactPoints List<Pulumiverse.Scaleway.Inputs.CockpitAlertManagerContactPoint>
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    EnableManagedAlerts bool
    Indicates whether the alert manager should be enabled. Defaults to true.
    ProjectId string
    project_id) The ID of the project the cockpit is associated with.
    Region string
    region) The region in which alert_manager should be created.
    AlertManagerUrl string
    Alert manager URL.
    ContactPoints []CockpitAlertManagerContactPointArgs
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    EnableManagedAlerts bool
    Indicates whether the alert manager should be enabled. Defaults to true.
    ProjectId string
    project_id) The ID of the project the cockpit is associated with.
    Region string
    region) The region in which alert_manager should be created.
    alertManagerUrl String
    Alert manager URL.
    contactPoints List<CockpitAlertManagerContactPoint>
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enableManagedAlerts Boolean
    Indicates whether the alert manager should be enabled. Defaults to true.
    projectId String
    project_id) The ID of the project the cockpit is associated with.
    region String
    region) The region in which alert_manager should be created.
    alertManagerUrl string
    Alert manager URL.
    contactPoints CockpitAlertManagerContactPoint[]
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enableManagedAlerts boolean
    Indicates whether the alert manager should be enabled. Defaults to true.
    projectId string
    project_id) The ID of the project the cockpit is associated with.
    region string
    region) The region in which alert_manager should be created.
    alert_manager_url str
    Alert manager URL.
    contact_points Sequence[CockpitAlertManagerContactPointArgs]
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enable_managed_alerts bool
    Indicates whether the alert manager should be enabled. Defaults to true.
    project_id str
    project_id) The ID of the project the cockpit is associated with.
    region str
    region) The region in which alert_manager should be created.
    alertManagerUrl String
    Alert manager URL.
    contactPoints List<Property Map>
    A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
    enableManagedAlerts Boolean
    Indicates whether the alert manager should be enabled. Defaults to true.
    projectId String
    project_id) The ID of the project the cockpit is associated with.
    region String
    region) The region in which alert_manager should be created.

    Supporting Types

    CockpitAlertManagerContactPoint, CockpitAlertManagerContactPointArgs

    Email string
    Email addresses for the alert receivers
    Email string
    Email addresses for the alert receivers
    email String
    Email addresses for the alert receivers
    email string
    Email addresses for the alert receivers
    email str
    Email addresses for the alert receivers
    email String
    Email addresses for the alert receivers

    Import

    Alert managers can be imported using the project ID, e.g.

    bash

    $ pulumi import scaleway:index/cockpitAlertManager:CockpitAlertManager main fr-par/11111111-1111-1111-1111-111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.14.0 published on Thursday, Jun 6, 2024 by pulumiverse