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.

This is the response object from the ListResourceScanResources operation.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.CloudFormation.Model.ListResourceScanResourcesResponse

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

Syntax

C#
public class ListResourceScanResourcesResponse : AmazonWebServiceResponse

The ListResourceScanResourcesResponse type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property NextToken System.String

Gets and sets the property NextToken.

If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListResourceScanResources again and use that value for the NextToken parameter. If the request returns all results, NextToken is set to an empty string.

Public Property Resources System.Collections.Generic.List<Amazon.CloudFormation.Model.ScannedResource>

Gets and sets the property Resources.

List of up to MaxResults resources in the specified resource scan that match all of the specified filters.

Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

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 Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5