1. Packages
  2. Datadog Provider
  3. API Docs
  4. AgentlessScanningAwsScanOptions
Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi

datadog.AgentlessScanningAwsScanOptions

Explore with Pulumi AI

datadog logo
Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi

    Provides a Datadog Agentless Scanning AWS scan options resource. This can be used to activate and configure Agentless scan options for an AWS account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datadog from "@pulumi/datadog";
    
    // Configure agentless scanning for an AWS account
    const example = new datadog.AgentlessScanningAwsScanOptions("example", {
        awsAccountId: "123456789012",
        lambda: true,
        sensitiveData: false,
        vulnContainersOs: true,
        vulnHostOs: true,
    });
    
    import pulumi
    import pulumi_datadog as datadog
    
    # Configure agentless scanning for an AWS account
    example = datadog.AgentlessScanningAwsScanOptions("example",
        aws_account_id="123456789012",
        lambda_=True,
        sensitive_data=False,
        vuln_containers_os=True,
        vuln_host_os=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Configure agentless scanning for an AWS account
    		_, err := datadog.NewAgentlessScanningAwsScanOptions(ctx, "example", &datadog.AgentlessScanningAwsScanOptionsArgs{
    			AwsAccountId:     pulumi.String("123456789012"),
    			Lambda:           pulumi.Bool(true),
    			SensitiveData:    pulumi.Bool(false),
    			VulnContainersOs: pulumi.Bool(true),
    			VulnHostOs:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datadog = Pulumi.Datadog;
    
    return await Deployment.RunAsync(() => 
    {
        // Configure agentless scanning for an AWS account
        var example = new Datadog.AgentlessScanningAwsScanOptions("example", new()
        {
            AwsAccountId = "123456789012",
            Lambda = true,
            SensitiveData = false,
            VulnContainersOs = true,
            VulnHostOs = true,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.AgentlessScanningAwsScanOptions;
    import com.pulumi.datadog.AgentlessScanningAwsScanOptionsArgs;
    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) {
            // Configure agentless scanning for an AWS account
            var example = new AgentlessScanningAwsScanOptions("example", AgentlessScanningAwsScanOptionsArgs.builder()
                .awsAccountId("123456789012")
                .lambda(true)
                .sensitiveData(false)
                .vulnContainersOs(true)
                .vulnHostOs(true)
                .build());
    
        }
    }
    
    resources:
      # Configure agentless scanning for an AWS account
      example:
        type: datadog:AgentlessScanningAwsScanOptions
        properties:
          awsAccountId: '123456789012'
          lambda: true
          sensitiveData: false
          vulnContainersOs: true
          vulnHostOs: true
    

    Create AgentlessScanningAwsScanOptions Resource

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

    Constructor syntax

    new AgentlessScanningAwsScanOptions(name: string, args: AgentlessScanningAwsScanOptionsArgs, opts?: CustomResourceOptions);
    @overload
    def AgentlessScanningAwsScanOptions(resource_name: str,
                                        args: AgentlessScanningAwsScanOptionsArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AgentlessScanningAwsScanOptions(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        aws_account_id: Optional[str] = None,
                                        lambda_: Optional[bool] = None,
                                        sensitive_data: Optional[bool] = None,
                                        vuln_containers_os: Optional[bool] = None,
                                        vuln_host_os: Optional[bool] = None)
    func NewAgentlessScanningAwsScanOptions(ctx *Context, name string, args AgentlessScanningAwsScanOptionsArgs, opts ...ResourceOption) (*AgentlessScanningAwsScanOptions, error)
    public AgentlessScanningAwsScanOptions(string name, AgentlessScanningAwsScanOptionsArgs args, CustomResourceOptions? opts = null)
    public AgentlessScanningAwsScanOptions(String name, AgentlessScanningAwsScanOptionsArgs args)
    public AgentlessScanningAwsScanOptions(String name, AgentlessScanningAwsScanOptionsArgs args, CustomResourceOptions options)
    
    type: datadog:AgentlessScanningAwsScanOptions
    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 AgentlessScanningAwsScanOptionsArgs
    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 AgentlessScanningAwsScanOptionsArgs
    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 AgentlessScanningAwsScanOptionsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AgentlessScanningAwsScanOptionsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AgentlessScanningAwsScanOptionsArgs
    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 agentlessScanningAwsScanOptionsResource = new Datadog.AgentlessScanningAwsScanOptions("agentlessScanningAwsScanOptionsResource", new()
    {
        AwsAccountId = "string",
        Lambda = false,
        SensitiveData = false,
        VulnContainersOs = false,
        VulnHostOs = false,
    });
    
    example, err := datadog.NewAgentlessScanningAwsScanOptions(ctx, "agentlessScanningAwsScanOptionsResource", &datadog.AgentlessScanningAwsScanOptionsArgs{
    	AwsAccountId:     pulumi.String("string"),
    	Lambda:           pulumi.Bool(false),
    	SensitiveData:    pulumi.Bool(false),
    	VulnContainersOs: pulumi.Bool(false),
    	VulnHostOs:       pulumi.Bool(false),
    })
    
    var agentlessScanningAwsScanOptionsResource = new AgentlessScanningAwsScanOptions("agentlessScanningAwsScanOptionsResource", AgentlessScanningAwsScanOptionsArgs.builder()
        .awsAccountId("string")
        .lambda(false)
        .sensitiveData(false)
        .vulnContainersOs(false)
        .vulnHostOs(false)
        .build());
    
    agentless_scanning_aws_scan_options_resource = datadog.AgentlessScanningAwsScanOptions("agentlessScanningAwsScanOptionsResource",
        aws_account_id="string",
        lambda_=False,
        sensitive_data=False,
        vuln_containers_os=False,
        vuln_host_os=False)
    
    const agentlessScanningAwsScanOptionsResource = new datadog.AgentlessScanningAwsScanOptions("agentlessScanningAwsScanOptionsResource", {
        awsAccountId: "string",
        lambda: false,
        sensitiveData: false,
        vulnContainersOs: false,
        vulnHostOs: false,
    });
    
    type: datadog:AgentlessScanningAwsScanOptions
    properties:
        awsAccountId: string
        lambda: false
        sensitiveData: false
        vulnContainersOs: false
        vulnHostOs: false
    

    AgentlessScanningAwsScanOptions 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 AgentlessScanningAwsScanOptions resource accepts the following input properties:

    AwsAccountId string
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    Lambda bool
    Indicates if scanning of Lambda functions is enabled.
    SensitiveData bool
    Indicates if scanning for sensitive data is enabled.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    AwsAccountId string
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    Lambda bool
    Indicates if scanning of Lambda functions is enabled.
    SensitiveData bool
    Indicates if scanning for sensitive data is enabled.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    awsAccountId String
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda Boolean
    Indicates if scanning of Lambda functions is enabled.
    sensitiveData Boolean
    Indicates if scanning for sensitive data is enabled.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    awsAccountId string
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda boolean
    Indicates if scanning of Lambda functions is enabled.
    sensitiveData boolean
    Indicates if scanning for sensitive data is enabled.
    vulnContainersOs boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    aws_account_id str
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda_ bool
    Indicates if scanning of Lambda functions is enabled.
    sensitive_data bool
    Indicates if scanning for sensitive data is enabled.
    vuln_containers_os bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    vuln_host_os bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    awsAccountId String
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda Boolean
    Indicates if scanning of Lambda functions is enabled.
    sensitiveData Boolean
    Indicates if scanning for sensitive data is enabled.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AgentlessScanningAwsScanOptions 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 AgentlessScanningAwsScanOptions Resource

    Get an existing AgentlessScanningAwsScanOptions 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?: AgentlessScanningAwsScanOptionsState, opts?: CustomResourceOptions): AgentlessScanningAwsScanOptions
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            aws_account_id: Optional[str] = None,
            lambda_: Optional[bool] = None,
            sensitive_data: Optional[bool] = None,
            vuln_containers_os: Optional[bool] = None,
            vuln_host_os: Optional[bool] = None) -> AgentlessScanningAwsScanOptions
    func GetAgentlessScanningAwsScanOptions(ctx *Context, name string, id IDInput, state *AgentlessScanningAwsScanOptionsState, opts ...ResourceOption) (*AgentlessScanningAwsScanOptions, error)
    public static AgentlessScanningAwsScanOptions Get(string name, Input<string> id, AgentlessScanningAwsScanOptionsState? state, CustomResourceOptions? opts = null)
    public static AgentlessScanningAwsScanOptions get(String name, Output<String> id, AgentlessScanningAwsScanOptionsState state, CustomResourceOptions options)
    resources:  _:    type: datadog:AgentlessScanningAwsScanOptions    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.
    The following state arguments are supported:
    AwsAccountId string
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    Lambda bool
    Indicates if scanning of Lambda functions is enabled.
    SensitiveData bool
    Indicates if scanning for sensitive data is enabled.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    AwsAccountId string
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    Lambda bool
    Indicates if scanning of Lambda functions is enabled.
    SensitiveData bool
    Indicates if scanning for sensitive data is enabled.
    VulnContainersOs bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    VulnHostOs bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    awsAccountId String
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda Boolean
    Indicates if scanning of Lambda functions is enabled.
    sensitiveData Boolean
    Indicates if scanning for sensitive data is enabled.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    awsAccountId string
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda boolean
    Indicates if scanning of Lambda functions is enabled.
    sensitiveData boolean
    Indicates if scanning for sensitive data is enabled.
    vulnContainersOs boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.
    aws_account_id str
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda_ bool
    Indicates if scanning of Lambda functions is enabled.
    sensitive_data bool
    Indicates if scanning for sensitive data is enabled.
    vuln_containers_os bool
    Indicates if scanning for vulnerabilities in containers is enabled.
    vuln_host_os bool
    Indicates if scanning for vulnerabilities in hosts is enabled.
    awsAccountId String
    The AWS account ID for which agentless scanning is configured. Must be a valid AWS account ID.
    lambda Boolean
    Indicates if scanning of Lambda functions is enabled.
    sensitiveData Boolean
    Indicates if scanning for sensitive data is enabled.
    vulnContainersOs Boolean
    Indicates if scanning for vulnerabilities in containers is enabled.
    vulnHostOs Boolean
    Indicates if scanning for vulnerabilities in hosts is enabled.

    Import

    The pulumi import command can be used, for example:

    #!/bin/sh

    Import existing agentless scanning AWS scan options by AWS account ID

    $ pulumi import datadog:index/agentlessScanningAwsScanOptions:AgentlessScanningAwsScanOptions example 123456789012
    

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

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi