Show / Hide Table of Contents

Class AssessmentTarget

Provides a Inspector assessment target

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var bar = new Aws.Inspector.ResourceGroup("bar", new Aws.Inspector.ResourceGroupArgs
    {
        Tags = 
        {
            { "Env", "bar" },
            { "Name", "foo" },
        },
    });
    var foo = new Aws.Inspector.AssessmentTarget("foo", new Aws.Inspector.AssessmentTargetArgs
    {
        ResourceGroupArn = bar.Arn,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
AssessmentTarget
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Inspector
Assembly: Pulumi.Aws.dll
Syntax
public class AssessmentTarget : CustomResource

Constructors

View Source

AssessmentTarget(String, AssessmentTargetArgs, CustomResourceOptions)

Create a AssessmentTarget resource with the given unique name, arguments, and options.

Declaration
public AssessmentTarget(string name, AssessmentTargetArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

AssessmentTargetArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

The target assessment ARN.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the assessment target.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupArn

Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

Declaration
public Output<string> ResourceGroupArn { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, AssessmentTargetState, CustomResourceOptions)

Get an existing AssessmentTarget resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static AssessmentTarget Get(string name, Input<string> id, AssessmentTargetState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

AssessmentTargetState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
AssessmentTarget
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.