scaleway.CockpitAlertManager
Explore with Pulumi AI
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:
- Contact
Points List<Pulumiverse.Scaleway. Inputs. Cockpit Alert Manager Contact Point> - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- Enable
Managed boolAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- Project
Id 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 []CockpitAlert Manager Contact Point Args - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- Enable
Managed boolAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- Project
Id 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 List<CockpitAlert Manager Contact Point> - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable
Managed BooleanAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- project
Id 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 CockpitAlert Manager Contact Point[] - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable
Managed booleanAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- project
Id 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[CockpitAlert Manager Contact Point Args] - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable_
managed_ boolalerts - 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.
- contact
Points List<Property Map> - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable
Managed BooleanAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- project
Id 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:
- Alert
Manager stringUrl - Alert manager URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- Alert
Manager stringUrl - Alert manager URL.
- Id string
- The provider-assigned unique ID for this managed resource.
- alert
Manager StringUrl - Alert manager URL.
- id String
- The provider-assigned unique ID for this managed resource.
- alert
Manager stringUrl - Alert manager URL.
- id string
- The provider-assigned unique ID for this managed resource.
- alert_
manager_ strurl - Alert manager URL.
- id str
- The provider-assigned unique ID for this managed resource.
- alert
Manager StringUrl - 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.
- Alert
Manager stringUrl - Alert manager URL.
- Contact
Points List<Pulumiverse.Scaleway. Inputs. Cockpit Alert Manager Contact Point> - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- Enable
Managed boolAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- Project
Id 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 stringUrl - Alert manager URL.
- Contact
Points []CockpitAlert Manager Contact Point Args - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- Enable
Managed boolAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- Project
Id 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 StringUrl - Alert manager URL.
- contact
Points List<CockpitAlert Manager Contact Point> - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable
Managed BooleanAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- project
Id 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 stringUrl - Alert manager URL.
- contact
Points CockpitAlert Manager Contact Point[] - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable
Managed booleanAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- project
Id 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_ strurl - Alert manager URL.
- contact_
points Sequence[CockpitAlert Manager Contact Point Args] - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable_
managed_ boolalerts - 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.
- alert
Manager StringUrl - Alert manager URL.
- contact
Points List<Property Map> - A list of contact points with email addresses for the alert receivers. Each map should contain a single key email.
- enable
Managed BooleanAlerts - Indicates whether the alert manager should be enabled. Defaults to true.
- project
Id 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.