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 GetTags operation. Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CostExplorer.AmazonCostExplorerRequest
      Amazon.CostExplorer.Model.GetTagsRequest

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

Syntax

C#
public class GetTagsRequest : AmazonCostExplorerRequest
         IAmazonWebServiceRequest

The GetTagsRequest type exposes the following members

Constructors

NameDescription
Public Method GetTagsRequest()

Properties

NameTypeDescription
Public Property Filter Amazon.CostExplorer.Model.Expression

Gets and sets the property Filter.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

This field is only used when SortBy is provided in the request. The maximum number of objects that are returned for this request. If MaxResults isn't specified with SortBy, the request returns 1000 results as the default value for this parameter.

For GetTags, MaxResults has an upper quota of 1000.

Public Property NextPageToken System.String

Gets and sets the property NextPageToken.

The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.

Public Property SearchString System.String

Gets and sets the property SearchString.

The value that you want to search for.

Public Property SortBy System.Collections.Generic.List<Amazon.CostExplorer.Model.SortDefinition>

Gets and sets the property SortBy.

The value that you want to sort the data by.

The key represents cost and usage metrics. The following values are supported:

  • BlendedCost

  • UnblendedCost

  • AmortizedCost

  • NetAmortizedCost

  • NetUnblendedCost

  • UsageQuantity

  • NormalizedUsageAmount

The supported values for SortOrder are ASCENDING and DESCENDING.

When you use SortBy, NextPageToken and SearchString aren't supported.

Public Property TagKey System.String

Gets and sets the property TagKey.

The key of the tag that you want to return values for.

Public Property TimePeriod Amazon.CostExplorer.Model.DateInterval

Gets and sets the property TimePeriod.

The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.

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