AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ListResourceScanResources operation. Lists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudFormation.AmazonCloudFormationRequest
      Amazon.CloudFormation.Model.ListResourceScanResourcesRequest

Namespace: Amazon.CloudFormation.Model
Assembly: AWSSDK.CloudFormation.dll
Version: 3.x.y.z

Syntax

C#
public class ListResourceScanResourcesRequest : AmazonCloudFormationRequest
         IAmazonWebServiceRequest

The ListResourceScanResourcesRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

If the number of available results exceeds this maximum, the response includes a NextToken value that you can use for the NextToken parameter to get the next set of results. By default the ListResourceScanResources API action will return at most 100 results in each response. The maximum value is 100.

Public Property NextToken System.String

Gets and sets the property NextToken.

A string that identifies the next page of resource scan results.

Public Property ResourceIdentifier System.String

Gets and sets the property ResourceIdentifier.

If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).

Public Property ResourceScanId System.String

Gets and sets the property ResourceScanId.

The Amazon Resource Name (ARN) of the resource scan.

Public Property ResourceTypePrefix System.String

Gets and sets the property ResourceTypePrefix.

If specified, the returned resources will be of any of the resource types with the specified prefix.

Public Property TagKey System.String

Gets and sets the property TagKey.

If specified, the returned resources will have a matching tag key.

Public Property TagValue System.String

Gets and sets the property TagValue.

If specified, the returned resources will have a matching tag value.

Examples

This example lists the resources in your resource scan

To list the resources in your resource scan


var client = new AmazonCloudFormationClient();
var response = client.ListResourceScanResources(new ListResourceScanResourcesRequest 
{
    ResourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceScan/c19304f6-c4f1-4ff8-8e1f-35162e41d7e1"
});

string nextToken = response.NextToken;
List<ScannedResource> resources = response.Resources;

            

This example lists the resources in your resource scan filtering only the resources that start with the passed in prefix

To list the resources in your resource scan for specific resource type


var client = new AmazonCloudFormationClient();
var response = client.ListResourceScanResources(new ListResourceScanResourcesRequest 
{
    ResourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceScan/c19304f6-c4f1-4ff8-8e1f-35162e41d7e1",
    ResourceTypePrefix = "AWS::S3"
});

string nextToken = response.NextToken;
List<ScannedResource> resources = response.Resources;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5