1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. inspector
  5. getAssessmentTarget

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.inspector.getAssessmentTarget

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Resource Type definition for AWS::Inspector::AssessmentTarget

Using getAssessmentTarget

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 getAssessmentTarget(args: GetAssessmentTargetArgs, opts?: InvokeOptions): Promise<GetAssessmentTargetResult>
function getAssessmentTargetOutput(args: GetAssessmentTargetOutputArgs, opts?: InvokeOptions): Output<GetAssessmentTargetResult>
Copy
def get_assessment_target(arn: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAssessmentTargetResult
def get_assessment_target_output(arn: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAssessmentTargetResult]
Copy
func LookupAssessmentTarget(ctx *Context, args *LookupAssessmentTargetArgs, opts ...InvokeOption) (*LookupAssessmentTargetResult, error)
func LookupAssessmentTargetOutput(ctx *Context, args *LookupAssessmentTargetOutputArgs, opts ...InvokeOption) LookupAssessmentTargetResultOutput
Copy

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

public static class GetAssessmentTarget 
{
    public static Task<GetAssessmentTargetResult> InvokeAsync(GetAssessmentTargetArgs args, InvokeOptions? opts = null)
    public static Output<GetAssessmentTargetResult> Invoke(GetAssessmentTargetInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAssessmentTargetResult> getAssessmentTarget(GetAssessmentTargetArgs args, InvokeOptions options)
public static Output<GetAssessmentTargetResult> getAssessmentTarget(GetAssessmentTargetArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:inspector:getAssessmentTarget
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
Arn This property is required. string
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
arn This property is required. String
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
arn This property is required. string
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
arn This property is required. str
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
arn This property is required. String
The Amazon Resource Name (ARN) that specifies the assessment target that is created.

getAssessmentTarget Result

The following output properties are available:

Arn string
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
ResourceGroupArn string
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
Arn string
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
ResourceGroupArn string
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
arn String
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
resourceGroupArn String
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
arn string
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
resourceGroupArn string
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
arn str
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
resource_group_arn str
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
arn String
The Amazon Resource Name (ARN) that specifies the assessment target that is created.
resourceGroupArn String
The ARN that specifies the resource group that is used to create the assessment target. If resourceGroupArn is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi