AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

DescribeTagsInput

import "github.com/aws/aws-sdk-go/service/redshift"

type DescribeTagsInput struct { Marker *string `type:"string"` MaxRecords *int64 `type:"integer"` ResourceName *string `type:"string"` ResourceType *string `type:"string"` TagKeys []*string `locationNameList:"TagKey" type:"list"` TagValues []*string `locationNameList:"TagValue" type:"list"` }

Marker

Type: *string

A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the marker parameter and retrying the command. If the marker field is empty, all response records have been retrieved for the request.

MaxRecords

Type: *int64

The maximum number or response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.

ResourceName

Type: *string

The Amazon Resource Name (ARN) for which you want to describe the tag or tags. For example, arn:aws:redshift:us-east-1:123456789:cluster:t1.

ResourceType

Type: *string

The type of resource with which you want to view tags. Valid resource types are:

  • Cluster

  • CIDR/IP

  • EC2 security group

  • Snapshot

  • Cluster security group

  • Subnet group

  • HSM connection

  • HSM certificate

  • Parameter group

  • Snapshot copy grant

For more information about Amazon Redshift resource types and constructing ARNs, go to Specifying Policy Elements: Actions, Effects, Resources, and Principals (https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-overview.html#redshift-iam-access-control-specify-actions) in the Amazon Redshift Cluster Management Guide.

TagKeys

Type: []*string

A tag key or keys for which you want to return all matching resources that are associated with the specified key or keys. For example, suppose that you have resources tagged with keys called owner and environment. If you specify both of these tag keys in the request, Amazon Redshift returns a response with all resources that have either or both of these tag keys associated with them.

TagValues

Type: []*string

A tag value or values for which you want to return all matching resources that are associated with the specified value or values. For example, suppose that you have resources tagged with values called admin and test. If you specify both of these tag values in the request, Amazon Redshift returns a response with all resources that have either or both of these tag values associated with them.

Method

GoString

func (s DescribeTagsInput) GoString() string

GoString returns the string representation

SetMarker

func (s *DescribeTagsInput) SetMarker(v string) *DescribeTagsInput

SetMarker sets the Marker field's value.

SetMaxRecords

func (s *DescribeTagsInput) SetMaxRecords(v int64) *DescribeTagsInput

SetMaxRecords sets the MaxRecords field's value.

SetResourceName

func (s *DescribeTagsInput) SetResourceName(v string) *DescribeTagsInput

SetResourceName sets the ResourceName field's value.

SetResourceType

func (s *DescribeTagsInput) SetResourceType(v string) *DescribeTagsInput

SetResourceType sets the ResourceType field's value.

SetTagKeys

func (s *DescribeTagsInput) SetTagKeys(v []*string) *DescribeTagsInput

SetTagKeys sets the TagKeys field's value.

SetTagValues

func (s *DescribeTagsInput) SetTagValues(v []*string) *DescribeTagsInput

SetTagValues sets the TagValues field's value.

String

func (s DescribeTagsInput) String() string

String returns the string representation

On this page: