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,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Inspector
Assembly: Pulumi.Aws.dll
Syntax
public class AssessmentTarget : CustomResource
Constructors
View SourceAssessmentTarget(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 SourceArn
The target assessment ARN.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the assessment target.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |