dynatrace.VulnerabilityAlerting
Explore with Pulumi AI
Create VulnerabilityAlerting Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VulnerabilityAlerting(name: string, args: VulnerabilityAlertingArgs, opts?: CustomResourceOptions);
@overload
def VulnerabilityAlerting(resource_name: str,
args: VulnerabilityAlertingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VulnerabilityAlerting(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
enabled_risk_levels: Optional[Sequence[str]] = None,
enabled_trigger_events: Optional[Sequence[str]] = None,
management_zone: Optional[str] = None,
name: Optional[str] = None)
func NewVulnerabilityAlerting(ctx *Context, name string, args VulnerabilityAlertingArgs, opts ...ResourceOption) (*VulnerabilityAlerting, error)
public VulnerabilityAlerting(string name, VulnerabilityAlertingArgs args, CustomResourceOptions? opts = null)
public VulnerabilityAlerting(String name, VulnerabilityAlertingArgs args)
public VulnerabilityAlerting(String name, VulnerabilityAlertingArgs args, CustomResourceOptions options)
type: dynatrace:VulnerabilityAlerting
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 VulnerabilityAlertingArgs
- 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 VulnerabilityAlertingArgs
- 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 VulnerabilityAlertingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VulnerabilityAlertingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VulnerabilityAlertingArgs
- 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 vulnerabilityAlertingResource = new Dynatrace.VulnerabilityAlerting("vulnerabilityAlertingResource", new()
{
Enabled = false,
EnabledRiskLevels = new[]
{
"string",
},
EnabledTriggerEvents = new[]
{
"string",
},
ManagementZone = "string",
Name = "string",
});
example, err := dynatrace.NewVulnerabilityAlerting(ctx, "vulnerabilityAlertingResource", &dynatrace.VulnerabilityAlertingArgs{
Enabled: pulumi.Bool(false),
EnabledRiskLevels: pulumi.StringArray{
pulumi.String("string"),
},
EnabledTriggerEvents: pulumi.StringArray{
pulumi.String("string"),
},
ManagementZone: pulumi.String("string"),
Name: pulumi.String("string"),
})
var vulnerabilityAlertingResource = new VulnerabilityAlerting("vulnerabilityAlertingResource", VulnerabilityAlertingArgs.builder()
.enabled(false)
.enabledRiskLevels("string")
.enabledTriggerEvents("string")
.managementZone("string")
.name("string")
.build());
vulnerability_alerting_resource = dynatrace.VulnerabilityAlerting("vulnerabilityAlertingResource",
enabled=False,
enabled_risk_levels=["string"],
enabled_trigger_events=["string"],
management_zone="string",
name="string")
const vulnerabilityAlertingResource = new dynatrace.VulnerabilityAlerting("vulnerabilityAlertingResource", {
enabled: false,
enabledRiskLevels: ["string"],
enabledTriggerEvents: ["string"],
managementZone: "string",
name: "string",
});
type: dynatrace:VulnerabilityAlerting
properties:
enabled: false
enabledRiskLevels:
- string
enabledTriggerEvents:
- string
managementZone: string
name: string
VulnerabilityAlerting 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 VulnerabilityAlerting resource accepts the following input properties:
- Enabled bool
- Alerting profile is enabled (
true
) or disabled (false
) - Enabled
Risk List<string>Levels - List of risk levels to alert
- Enabled
Trigger List<string>Events - List of events to alert
- Management
Zone string - Alert only if the following management zone is affected (optional)
- Name string
- Alerting profile name
- Enabled bool
- Alerting profile is enabled (
true
) or disabled (false
) - Enabled
Risk []stringLevels - List of risk levels to alert
- Enabled
Trigger []stringEvents - List of events to alert
- Management
Zone string - Alert only if the following management zone is affected (optional)
- Name string
- Alerting profile name
- enabled Boolean
- Alerting profile is enabled (
true
) or disabled (false
) - enabled
Risk List<String>Levels - List of risk levels to alert
- enabled
Trigger List<String>Events - List of events to alert
- management
Zone String - Alert only if the following management zone is affected (optional)
- name String
- Alerting profile name
- enabled boolean
- Alerting profile is enabled (
true
) or disabled (false
) - enabled
Risk string[]Levels - List of risk levels to alert
- enabled
Trigger string[]Events - List of events to alert
- management
Zone string - Alert only if the following management zone is affected (optional)
- name string
- Alerting profile name
- enabled bool
- Alerting profile is enabled (
true
) or disabled (false
) - enabled_
risk_ Sequence[str]levels - List of risk levels to alert
- enabled_
trigger_ Sequence[str]events - List of events to alert
- management_
zone str - Alert only if the following management zone is affected (optional)
- name str
- Alerting profile name
- enabled Boolean
- Alerting profile is enabled (
true
) or disabled (false
) - enabled
Risk List<String>Levels - List of risk levels to alert
- enabled
Trigger List<String>Events - List of events to alert
- management
Zone String - Alert only if the following management zone is affected (optional)
- name String
- Alerting profile name
Outputs
All input properties are implicitly available as output properties. Additionally, the VulnerabilityAlerting 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 VulnerabilityAlerting Resource
Get an existing VulnerabilityAlerting 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?: VulnerabilityAlertingState, opts?: CustomResourceOptions): VulnerabilityAlerting
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
enabled_risk_levels: Optional[Sequence[str]] = None,
enabled_trigger_events: Optional[Sequence[str]] = None,
management_zone: Optional[str] = None,
name: Optional[str] = None) -> VulnerabilityAlerting
func GetVulnerabilityAlerting(ctx *Context, name string, id IDInput, state *VulnerabilityAlertingState, opts ...ResourceOption) (*VulnerabilityAlerting, error)
public static VulnerabilityAlerting Get(string name, Input<string> id, VulnerabilityAlertingState? state, CustomResourceOptions? opts = null)
public static VulnerabilityAlerting get(String name, Output<String> id, VulnerabilityAlertingState 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.
- Enabled bool
- Alerting profile is enabled (
true
) or disabled (false
) - Enabled
Risk List<string>Levels - List of risk levels to alert
- Enabled
Trigger List<string>Events - List of events to alert
- Management
Zone string - Alert only if the following management zone is affected (optional)
- Name string
- Alerting profile name
- Enabled bool
- Alerting profile is enabled (
true
) or disabled (false
) - Enabled
Risk []stringLevels - List of risk levels to alert
- Enabled
Trigger []stringEvents - List of events to alert
- Management
Zone string - Alert only if the following management zone is affected (optional)
- Name string
- Alerting profile name
- enabled Boolean
- Alerting profile is enabled (
true
) or disabled (false
) - enabled
Risk List<String>Levels - List of risk levels to alert
- enabled
Trigger List<String>Events - List of events to alert
- management
Zone String - Alert only if the following management zone is affected (optional)
- name String
- Alerting profile name
- enabled boolean
- Alerting profile is enabled (
true
) or disabled (false
) - enabled
Risk string[]Levels - List of risk levels to alert
- enabled
Trigger string[]Events - List of events to alert
- management
Zone string - Alert only if the following management zone is affected (optional)
- name string
- Alerting profile name
- enabled bool
- Alerting profile is enabled (
true
) or disabled (false
) - enabled_
risk_ Sequence[str]levels - List of risk levels to alert
- enabled_
trigger_ Sequence[str]events - List of events to alert
- management_
zone str - Alert only if the following management zone is affected (optional)
- name str
- Alerting profile name
- enabled Boolean
- Alerting profile is enabled (
true
) or disabled (false
) - enabled
Risk List<String>Levels - List of risk levels to alert
- enabled
Trigger List<String>Events - List of events to alert
- management
Zone String - Alert only if the following management zone is affected (optional)
- name String
- Alerting profile name
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.