sysdig.SecureAwsMlPolicy
Explore with Pulumi AI
Example Usage
Create SecureAwsMlPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecureAwsMlPolicy(name: string, args: SecureAwsMlPolicyArgs, opts?: CustomResourceOptions);
@overload
def SecureAwsMlPolicy(resource_name: str,
args: SecureAwsMlPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecureAwsMlPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
rules: Optional[Sequence[SecureAwsMlPolicyRuleArgs]] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
notification_channels: Optional[Sequence[float]] = None,
runbook: Optional[str] = None,
scope: Optional[str] = None,
secure_aws_ml_policy_id: Optional[str] = None,
severity: Optional[float] = None,
timeouts: Optional[SecureAwsMlPolicyTimeoutsArgs] = None,
type: Optional[str] = None)
func NewSecureAwsMlPolicy(ctx *Context, name string, args SecureAwsMlPolicyArgs, opts ...ResourceOption) (*SecureAwsMlPolicy, error)
public SecureAwsMlPolicy(string name, SecureAwsMlPolicyArgs args, CustomResourceOptions? opts = null)
public SecureAwsMlPolicy(String name, SecureAwsMlPolicyArgs args)
public SecureAwsMlPolicy(String name, SecureAwsMlPolicyArgs args, CustomResourceOptions options)
type: sysdig:SecureAwsMlPolicy
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 SecureAwsMlPolicyArgs
- 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 SecureAwsMlPolicyArgs
- 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 SecureAwsMlPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecureAwsMlPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecureAwsMlPolicyArgs
- 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 secureAwsMlPolicyResource = new Sysdig.SecureAwsMlPolicy("secureAwsMlPolicyResource", new()
{
Description = "string",
Rules = new[]
{
new Sysdig.Inputs.SecureAwsMlPolicyRuleArgs
{
Description = "string",
AnomalousConsoleLogin = new Sysdig.Inputs.SecureAwsMlPolicyRuleAnomalousConsoleLoginArgs
{
Threshold = 0,
Enabled = false,
},
Id = 0,
Name = "string",
Tags = new[]
{
"string",
},
Version = 0,
},
},
Enabled = false,
Name = "string",
NotificationChannels = new[]
{
0,
},
Runbook = "string",
Scope = "string",
SecureAwsMlPolicyId = "string",
Severity = 0,
Timeouts = new Sysdig.Inputs.SecureAwsMlPolicyTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
Type = "string",
});
example, err := sysdig.NewSecureAwsMlPolicy(ctx, "secureAwsMlPolicyResource", &sysdig.SecureAwsMlPolicyArgs{
Description: pulumi.String("string"),
Rules: sysdig.SecureAwsMlPolicyRuleArray{
&sysdig.SecureAwsMlPolicyRuleArgs{
Description: pulumi.String("string"),
AnomalousConsoleLogin: &sysdig.SecureAwsMlPolicyRuleAnomalousConsoleLoginArgs{
Threshold: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
},
Id: pulumi.Float64(0),
Name: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
Version: pulumi.Float64(0),
},
},
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
NotificationChannels: pulumi.Float64Array{
pulumi.Float64(0),
},
Runbook: pulumi.String("string"),
Scope: pulumi.String("string"),
SecureAwsMlPolicyId: pulumi.String("string"),
Severity: pulumi.Float64(0),
Timeouts: &sysdig.SecureAwsMlPolicyTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var secureAwsMlPolicyResource = new SecureAwsMlPolicy("secureAwsMlPolicyResource", SecureAwsMlPolicyArgs.builder()
.description("string")
.rules(SecureAwsMlPolicyRuleArgs.builder()
.description("string")
.anomalousConsoleLogin(SecureAwsMlPolicyRuleAnomalousConsoleLoginArgs.builder()
.threshold(0)
.enabled(false)
.build())
.id(0)
.name("string")
.tags("string")
.version(0)
.build())
.enabled(false)
.name("string")
.notificationChannels(0)
.runbook("string")
.scope("string")
.secureAwsMlPolicyId("string")
.severity(0)
.timeouts(SecureAwsMlPolicyTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.type("string")
.build());
secure_aws_ml_policy_resource = sysdig.SecureAwsMlPolicy("secureAwsMlPolicyResource",
description="string",
rules=[{
"description": "string",
"anomalous_console_login": {
"threshold": 0,
"enabled": False,
},
"id": 0,
"name": "string",
"tags": ["string"],
"version": 0,
}],
enabled=False,
name="string",
notification_channels=[0],
runbook="string",
scope="string",
secure_aws_ml_policy_id="string",
severity=0,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
type="string")
const secureAwsMlPolicyResource = new sysdig.SecureAwsMlPolicy("secureAwsMlPolicyResource", {
description: "string",
rules: [{
description: "string",
anomalousConsoleLogin: {
threshold: 0,
enabled: false,
},
id: 0,
name: "string",
tags: ["string"],
version: 0,
}],
enabled: false,
name: "string",
notificationChannels: [0],
runbook: "string",
scope: "string",
secureAwsMlPolicyId: "string",
severity: 0,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
type: "string",
});
type: sysdig:SecureAwsMlPolicy
properties:
description: string
enabled: false
name: string
notificationChannels:
- 0
rules:
- anomalousConsoleLogin:
enabled: false
threshold: 0
description: string
id: 0
name: string
tags:
- string
version: 0
runbook: string
scope: string
secureAwsMlPolicyId: string
severity: 0
timeouts:
create: string
delete: string
read: string
update: string
type: string
SecureAwsMlPolicy 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 SecureAwsMlPolicy resource accepts the following input properties:
- Description string
- (Required) Rule description.
- Rules
List<Secure
Aws Ml Policy Rule> - Enabled bool
- Whether the policy is enabled or not.
- Name string
- The name of the Secure managed policy.
- Notification
Channels List<double> - IDs of the notification channels to send alerts to when the policy is fired.
- Runbook string
- Customer provided url that provides a runbook for a given policy.
- Scope string
- The application scope for the policy.
- Secure
Aws stringMl Policy Id - The id for the policy.
- Severity double
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- Timeouts
Secure
Aws Ml Policy Timeouts - Type string
- Description string
- (Required) Rule description.
- Rules
[]Secure
Aws Ml Policy Rule Args - Enabled bool
- Whether the policy is enabled or not.
- Name string
- The name of the Secure managed policy.
- Notification
Channels []float64 - IDs of the notification channels to send alerts to when the policy is fired.
- Runbook string
- Customer provided url that provides a runbook for a given policy.
- Scope string
- The application scope for the policy.
- Secure
Aws stringMl Policy Id - The id for the policy.
- Severity float64
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- Timeouts
Secure
Aws Ml Policy Timeouts Args - Type string
- description String
- (Required) Rule description.
- rules
List<Secure
Aws Ml Policy Rule> - enabled Boolean
- Whether the policy is enabled or not.
- name String
- The name of the Secure managed policy.
- notification
Channels List<Double> - IDs of the notification channels to send alerts to when the policy is fired.
- runbook String
- Customer provided url that provides a runbook for a given policy.
- scope String
- The application scope for the policy.
- secure
Aws StringMl Policy Id - The id for the policy.
- severity Double
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts
Secure
Aws Ml Policy Timeouts - type String
- description string
- (Required) Rule description.
- rules
Secure
Aws Ml Policy Rule[] - enabled boolean
- Whether the policy is enabled or not.
- name string
- The name of the Secure managed policy.
- notification
Channels number[] - IDs of the notification channels to send alerts to when the policy is fired.
- runbook string
- Customer provided url that provides a runbook for a given policy.
- scope string
- The application scope for the policy.
- secure
Aws stringMl Policy Id - The id for the policy.
- severity number
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts
Secure
Aws Ml Policy Timeouts - type string
- description str
- (Required) Rule description.
- rules
Sequence[Secure
Aws Ml Policy Rule Args] - enabled bool
- Whether the policy is enabled or not.
- name str
- The name of the Secure managed policy.
- notification_
channels Sequence[float] - IDs of the notification channels to send alerts to when the policy is fired.
- runbook str
- Customer provided url that provides a runbook for a given policy.
- scope str
- The application scope for the policy.
- secure_
aws_ strml_ policy_ id - The id for the policy.
- severity float
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts
Secure
Aws Ml Policy Timeouts Args - type str
- description String
- (Required) Rule description.
- rules List<Property Map>
- enabled Boolean
- Whether the policy is enabled or not.
- name String
- The name of the Secure managed policy.
- notification
Channels List<Number> - IDs of the notification channels to send alerts to when the policy is fired.
- runbook String
- Customer provided url that provides a runbook for a given policy.
- scope String
- The application scope for the policy.
- secure
Aws StringMl Policy Id - The id for the policy.
- severity Number
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts Property Map
- type String
Outputs
All input properties are implicitly available as output properties. Additionally, the SecureAwsMlPolicy resource produces the following output properties:
Look up Existing SecureAwsMlPolicy Resource
Get an existing SecureAwsMlPolicy 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?: SecureAwsMlPolicyState, opts?: CustomResourceOptions): SecureAwsMlPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
name: Optional[str] = None,
notification_channels: Optional[Sequence[float]] = None,
rules: Optional[Sequence[SecureAwsMlPolicyRuleArgs]] = None,
runbook: Optional[str] = None,
scope: Optional[str] = None,
secure_aws_ml_policy_id: Optional[str] = None,
severity: Optional[float] = None,
timeouts: Optional[SecureAwsMlPolicyTimeoutsArgs] = None,
type: Optional[str] = None,
version: Optional[float] = None) -> SecureAwsMlPolicy
func GetSecureAwsMlPolicy(ctx *Context, name string, id IDInput, state *SecureAwsMlPolicyState, opts ...ResourceOption) (*SecureAwsMlPolicy, error)
public static SecureAwsMlPolicy Get(string name, Input<string> id, SecureAwsMlPolicyState? state, CustomResourceOptions? opts = null)
public static SecureAwsMlPolicy get(String name, Output<String> id, SecureAwsMlPolicyState state, CustomResourceOptions options)
resources: _: type: sysdig:SecureAwsMlPolicy get: id: ${id}
- 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.
- Description string
- (Required) Rule description.
- Enabled bool
- Whether the policy is enabled or not.
- Name string
- The name of the Secure managed policy.
- Notification
Channels List<double> - IDs of the notification channels to send alerts to when the policy is fired.
- Rules
List<Secure
Aws Ml Policy Rule> - Runbook string
- Customer provided url that provides a runbook for a given policy.
- Scope string
- The application scope for the policy.
- Secure
Aws stringMl Policy Id - The id for the policy.
- Severity double
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- Timeouts
Secure
Aws Ml Policy Timeouts - Type string
- Version double
- Description string
- (Required) Rule description.
- Enabled bool
- Whether the policy is enabled or not.
- Name string
- The name of the Secure managed policy.
- Notification
Channels []float64 - IDs of the notification channels to send alerts to when the policy is fired.
- Rules
[]Secure
Aws Ml Policy Rule Args - Runbook string
- Customer provided url that provides a runbook for a given policy.
- Scope string
- The application scope for the policy.
- Secure
Aws stringMl Policy Id - The id for the policy.
- Severity float64
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- Timeouts
Secure
Aws Ml Policy Timeouts Args - Type string
- Version float64
- description String
- (Required) Rule description.
- enabled Boolean
- Whether the policy is enabled or not.
- name String
- The name of the Secure managed policy.
- notification
Channels List<Double> - IDs of the notification channels to send alerts to when the policy is fired.
- rules
List<Secure
Aws Ml Policy Rule> - runbook String
- Customer provided url that provides a runbook for a given policy.
- scope String
- The application scope for the policy.
- secure
Aws StringMl Policy Id - The id for the policy.
- severity Double
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts
Secure
Aws Ml Policy Timeouts - type String
- version Double
- description string
- (Required) Rule description.
- enabled boolean
- Whether the policy is enabled or not.
- name string
- The name of the Secure managed policy.
- notification
Channels number[] - IDs of the notification channels to send alerts to when the policy is fired.
- rules
Secure
Aws Ml Policy Rule[] - runbook string
- Customer provided url that provides a runbook for a given policy.
- scope string
- The application scope for the policy.
- secure
Aws stringMl Policy Id - The id for the policy.
- severity number
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts
Secure
Aws Ml Policy Timeouts - type string
- version number
- description str
- (Required) Rule description.
- enabled bool
- Whether the policy is enabled or not.
- name str
- The name of the Secure managed policy.
- notification_
channels Sequence[float] - IDs of the notification channels to send alerts to when the policy is fired.
- rules
Sequence[Secure
Aws Ml Policy Rule Args] - runbook str
- Customer provided url that provides a runbook for a given policy.
- scope str
- The application scope for the policy.
- secure_
aws_ strml_ policy_ id - The id for the policy.
- severity float
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts
Secure
Aws Ml Policy Timeouts Args - type str
- version float
- description String
- (Required) Rule description.
- enabled Boolean
- Whether the policy is enabled or not.
- name String
- The name of the Secure managed policy.
- notification
Channels List<Number> - IDs of the notification channels to send alerts to when the policy is fired.
- rules List<Property Map>
- runbook String
- Customer provided url that provides a runbook for a given policy.
- scope String
- The application scope for the policy.
- secure
Aws StringMl Policy Id - The id for the policy.
- severity Number
- The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
- timeouts Property Map
- type String
- version Number
Supporting Types
SecureAwsMlPolicyRule, SecureAwsMlPolicyRuleArgs
- Description string
- (Required) Rule description.
- Anomalous
Console SecureLogin Aws Ml Policy Rule Anomalous Console Login - (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
- Id double
- The id for the policy.
- Name string
- The name of the Secure managed policy.
- List<string>
- Version double
- Description string
- (Required) Rule description.
- Anomalous
Console SecureLogin Aws Ml Policy Rule Anomalous Console Login - (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
- Id float64
- The id for the policy.
- Name string
- The name of the Secure managed policy.
- []string
- Version float64
- description String
- (Required) Rule description.
- anomalous
Console SecureLogin Aws Ml Policy Rule Anomalous Console Login - (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
- id Double
- The id for the policy.
- name String
- The name of the Secure managed policy.
- List<String>
- version Double
- description string
- (Required) Rule description.
- anomalous
Console SecureLogin Aws Ml Policy Rule Anomalous Console Login - (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
- id number
- The id for the policy.
- name string
- The name of the Secure managed policy.
- string[]
- version number
- description str
- (Required) Rule description.
- anomalous_
console_ Securelogin Aws Ml Policy Rule Anomalous Console Login - (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
- id float
- The id for the policy.
- name str
- The name of the Secure managed policy.
- Sequence[str]
- version float
- description String
- (Required) Rule description.
- anomalous
Console Property MapLogin - (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
- id Number
- The id for the policy.
- name String
- The name of the Secure managed policy.
- List<String>
- version Number
SecureAwsMlPolicyRuleAnomalousConsoleLogin, SecureAwsMlPolicyRuleAnomalousConsoleLoginArgs
SecureAwsMlPolicyTimeouts, SecureAwsMlPolicyTimeoutsArgs
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.