1. Packages
  2. Sysdig Provider
  3. API Docs
  4. getSecureAwsMlPolicy
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.getSecureAwsMlPolicy

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const policy = sysdig.getSecureAwsMlPolicy({
        name: "ML Policy 1",
    });
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    policy = sysdig.get_secure_aws_ml_policy(name="ML Policy 1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sysdig.LookupSecureAwsMlPolicy(ctx, &sysdig.LookupSecureAwsMlPolicyArgs{
    			Name: "ML Policy 1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var policy = Sysdig.GetSecureAwsMlPolicy.Invoke(new()
        {
            Name = "ML Policy 1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SysdigFunctions;
    import com.pulumi.sysdig.inputs.GetSecureAwsMlPolicyArgs;
    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) {
            final var policy = SysdigFunctions.getSecureAwsMlPolicy(GetSecureAwsMlPolicyArgs.builder()
                .name("ML Policy 1")
                .build());
    
        }
    }
    
    variables:
      policy:
        fn::invoke:
          function: sysdig:getSecureAwsMlPolicy
          arguments:
            name: ML Policy 1
    

    Using getSecureAwsMlPolicy

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getSecureAwsMlPolicy(args: GetSecureAwsMlPolicyArgs, opts?: InvokeOptions): Promise<GetSecureAwsMlPolicyResult>
    function getSecureAwsMlPolicyOutput(args: GetSecureAwsMlPolicyOutputArgs, opts?: InvokeOptions): Output<GetSecureAwsMlPolicyResult>
    def get_secure_aws_ml_policy(id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 timeouts: Optional[GetSecureAwsMlPolicyTimeouts] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetSecureAwsMlPolicyResult
    def get_secure_aws_ml_policy_output(id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 timeouts: Optional[pulumi.Input[GetSecureAwsMlPolicyTimeoutsArgs]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetSecureAwsMlPolicyResult]
    func LookupSecureAwsMlPolicy(ctx *Context, args *LookupSecureAwsMlPolicyArgs, opts ...InvokeOption) (*LookupSecureAwsMlPolicyResult, error)
    func LookupSecureAwsMlPolicyOutput(ctx *Context, args *LookupSecureAwsMlPolicyOutputArgs, opts ...InvokeOption) LookupSecureAwsMlPolicyResultOutput

    > Note: This function is named LookupSecureAwsMlPolicy in the Go SDK.

    public static class GetSecureAwsMlPolicy 
    {
        public static Task<GetSecureAwsMlPolicyResult> InvokeAsync(GetSecureAwsMlPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetSecureAwsMlPolicyResult> Invoke(GetSecureAwsMlPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSecureAwsMlPolicyResult> getSecureAwsMlPolicy(GetSecureAwsMlPolicyArgs args, InvokeOptions options)
    public static Output<GetSecureAwsMlPolicyResult> getSecureAwsMlPolicy(GetSecureAwsMlPolicyArgs args, InvokeOptions options)
    
    fn::invoke:
      function: sysdig:index/getSecureAwsMlPolicy:getSecureAwsMlPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Secure managed policy.
    Id string
    The id for the policy.
    Timeouts GetSecureAwsMlPolicyTimeouts
    Name string
    The name of the Secure managed policy.
    Id string
    The id for the policy.
    Timeouts GetSecureAwsMlPolicyTimeouts
    name String
    The name of the Secure managed policy.
    id String
    The id for the policy.
    timeouts GetSecureAwsMlPolicyTimeouts
    name string
    The name of the Secure managed policy.
    id string
    The id for the policy.
    timeouts GetSecureAwsMlPolicyTimeouts
    name str
    The name of the Secure managed policy.
    id str
    The id for the policy.
    timeouts GetSecureAwsMlPolicyTimeouts
    name String
    The name of the Secure managed policy.
    id String
    The id for the policy.
    timeouts Property Map

    getSecureAwsMlPolicy Result

    The following output properties are available:

    Description string
    (Required) Rule description.
    Enabled bool
    Whether the policy is enabled or not.
    Id string
    The id for the policy.
    Name string
    NotificationChannels List<double>
    IDs of the notification channels to send alerts to when the policy is fired.
    Rules List<GetSecureAwsMlPolicyRule>
    Runbook string
    Customer provided url that provides a runbook for a given policy.
    Scope string
    The application scope 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).
    Type string
    Version double
    Timeouts GetSecureAwsMlPolicyTimeouts
    Description string
    (Required) Rule description.
    Enabled bool
    Whether the policy is enabled or not.
    Id string
    The id for the policy.
    Name string
    NotificationChannels []float64
    IDs of the notification channels to send alerts to when the policy is fired.
    Rules []GetSecureAwsMlPolicyRule
    Runbook string
    Customer provided url that provides a runbook for a given policy.
    Scope string
    The application scope 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).
    Type string
    Version float64
    Timeouts GetSecureAwsMlPolicyTimeouts
    description String
    (Required) Rule description.
    enabled Boolean
    Whether the policy is enabled or not.
    id String
    The id for the policy.
    name String
    notificationChannels List<Double>
    IDs of the notification channels to send alerts to when the policy is fired.
    rules List<GetSecureAwsMlPolicyRule>
    runbook String
    Customer provided url that provides a runbook for a given policy.
    scope String
    The application scope 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).
    type String
    version Double
    timeouts GetSecureAwsMlPolicyTimeouts
    description string
    (Required) Rule description.
    enabled boolean
    Whether the policy is enabled or not.
    id string
    The id for the policy.
    name string
    notificationChannels number[]
    IDs of the notification channels to send alerts to when the policy is fired.
    rules GetSecureAwsMlPolicyRule[]
    runbook string
    Customer provided url that provides a runbook for a given policy.
    scope string
    The application scope 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).
    type string
    version number
    timeouts GetSecureAwsMlPolicyTimeouts
    description str
    (Required) Rule description.
    enabled bool
    Whether the policy is enabled or not.
    id str
    The id for the policy.
    name str
    notification_channels Sequence[float]
    IDs of the notification channels to send alerts to when the policy is fired.
    rules Sequence[GetSecureAwsMlPolicyRule]
    runbook str
    Customer provided url that provides a runbook for a given policy.
    scope str
    The application scope 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).
    type str
    version float
    timeouts GetSecureAwsMlPolicyTimeouts
    description String
    (Required) Rule description.
    enabled Boolean
    Whether the policy is enabled or not.
    id String
    The id for the policy.
    name String
    notificationChannels 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.
    severity Number
    The severity of Secure policy. The accepted values are: 0, 1, 2, 3 (High), 4, 5 (Medium), 6 (Low) and 7 (Info).
    type String
    version Number
    timeouts Property Map

    Supporting Types

    GetSecureAwsMlPolicyRule

    AnomalousConsoleLogins List<GetSecureAwsMlPolicyRuleAnomalousConsoleLogin>
    (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
    Description string
    (Required) Rule description.
    Id double
    The id for the policy.
    Name string
    The name of the Secure managed policy.
    Tags List<string>
    Version double
    AnomalousConsoleLogins []GetSecureAwsMlPolicyRuleAnomalousConsoleLogin
    (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
    Description string
    (Required) Rule description.
    Id float64
    The id for the policy.
    Name string
    The name of the Secure managed policy.
    Tags []string
    Version float64
    anomalousConsoleLogins List<GetSecureAwsMlPolicyRuleAnomalousConsoleLogin>
    (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
    description String
    (Required) Rule description.
    id Double
    The id for the policy.
    name String
    The name of the Secure managed policy.
    tags List<String>
    version Double
    anomalousConsoleLogins GetSecureAwsMlPolicyRuleAnomalousConsoleLogin[]
    (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
    description string
    (Required) Rule description.
    id number
    The id for the policy.
    name string
    The name of the Secure managed policy.
    tags string[]
    version number
    anomalous_console_logins Sequence[GetSecureAwsMlPolicyRuleAnomalousConsoleLogin]
    (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
    description str
    (Required) Rule description.
    id float
    The id for the policy.
    name str
    The name of the Secure managed policy.
    tags Sequence[str]
    version float
    anomalousConsoleLogins List<Property Map>
    (Required) This attribute allows you to activate anomaly detection for console logins and adjust its settings.
    description String
    (Required) Rule description.
    id Number
    The id for the policy.
    name String
    The name of the Secure managed policy.
    tags List<String>
    version Number

    GetSecureAwsMlPolicyRuleAnomalousConsoleLogin

    Enabled bool
    Whether the policy is enabled or not.
    Threshold double
    (Required) Trigger at or above confidence level.
    Enabled bool
    Whether the policy is enabled or not.
    Threshold float64
    (Required) Trigger at or above confidence level.
    enabled Boolean
    Whether the policy is enabled or not.
    threshold Double
    (Required) Trigger at or above confidence level.
    enabled boolean
    Whether the policy is enabled or not.
    threshold number
    (Required) Trigger at or above confidence level.
    enabled bool
    Whether the policy is enabled or not.
    threshold float
    (Required) Trigger at or above confidence level.
    enabled Boolean
    Whether the policy is enabled or not.
    threshold Number
    (Required) Trigger at or above confidence level.

    GetSecureAwsMlPolicyTimeouts

    Read string
    Read string
    read String
    read string
    read str
    read String

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs