// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package resourcegroupstaggingapi import ( "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/internal/awsutil" ) var _ aws.Config var _ = awsutil.Prettify // Information that shows whether a resource is compliant with the effective // tag policy, including details on any noncompliant tag keys. type ComplianceDetails struct { _ struct{} `type:"structure"` // Whether a resource is compliant with the effective tag policy. ComplianceStatus *bool `type:"boolean"` // These are keys defined in the effective policy that are on the resource with // either incorrect case treatment or noncompliant values. KeysWithNoncompliantValues []string `type:"list"` // These tag keys on the resource are noncompliant with the effective tag policy. NoncompliantKeys []string `type:"list"` } // String returns the string representation func (s ComplianceDetails) String() string { return awsutil.Prettify(s) } // Information about the errors that are returned for each failed resource. // This information can include InternalServiceException and InvalidParameterException // errors. It can also include any valid error code returned by the AWS service // that hosts the resource that the ARN key represents. // // The following are common error codes that you might receive from other AWS // services: // // * InternalServiceException – This can mean that the Resource Groups // Tagging API didn't receive a response from another AWS service. It can // also mean the the resource type in the request is not supported by the // Resource Groups Tagging API. In these cases, it's safe to retry the request // and then call GetResources (http://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html) // to verify the changes. // // * AccessDeniedException – This can mean that you need permission to // calling tagging operations in the AWS service that contains the resource. // For example, to use the Resource Groups Tagging API to tag a CloudWatch // alarm resource, you need permission to call TagResources (http://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_TagResources.html) // and TagResource (http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_TagResource.html) // in the CloudWatch API. // // For more information on errors that are generated from other AWS services, // see the documentation for that service. type FailureInfo struct { _ struct{} `type:"structure"` // The code of the common error. Valid values include InternalServiceException, // InvalidParameterException, and any valid error code returned by the AWS service // that hosts the resource that you want to tag. ErrorCode ErrorCode `type:"string" enum:"true"` // The message of the common error. ErrorMessage *string `type:"string"` // The HTTP status code of the common error. StatusCode *int64 `type:"integer"` } // String returns the string representation func (s FailureInfo) String() string { return awsutil.Prettify(s) } // A list of resource ARNs and the tags (keys and values) that are associated // with each. type ResourceTagMapping struct { _ struct{} `type:"structure"` // Information that shows whether a resource is compliant with the effective // tag policy, including details on any noncompliant tag keys. ComplianceDetails *ComplianceDetails `type:"structure"` // The ARN of the resource. ResourceARN *string `min:"1" type:"string"` // The tags that have been applied to one or more AWS resources. Tags []Tag `type:"list"` } // String returns the string representation func (s ResourceTagMapping) String() string { return awsutil.Prettify(s) } // A count of noncompliant resources. type Summary struct { _ struct{} `type:"structure"` // The timestamp that shows when this summary was generated in this Region. LastUpdated *string `type:"string"` // The count of noncompliant resources. NonCompliantResources *int64 `type:"long"` // The AWS Region that the summary applies to. Region *string `min:"1" type:"string"` // The AWS resource type. ResourceType *string `type:"string"` // The account identifier or the root identifier of the organization. If you // don't know the root ID, you can call the AWS Organizations ListRoots (http://docs.aws.amazon.com/organizations/latest/APIReference/API_ListRoots.html) // API. TargetId *string `min:"6" type:"string"` // Whether the target is an account, an OU, or the organization root. TargetIdType TargetIdType `type:"string" enum:"true"` } // String returns the string representation func (s Summary) String() string { return awsutil.Prettify(s) } // The metadata that you apply to AWS resources to help you categorize and organize // them. Each tag consists of a key and a value, both of which you define. For // more information, see Tagging AWS Resources (http://docs.aws.amazon.com/general/latest/gr/aws_tagging.html) // in the AWS General Reference. type Tag struct { _ struct{} `type:"structure"` // One part of a key-value pair that makes up a tag. A key is a general label // that acts like a category for more specific tag values. // // Key is a required field Key *string `min:"1" type:"string" required:"true"` // One part of a key-value pair that make up a tag. A value acts as a descriptor // within a tag category (key). The value can be empty or null. // // Value is a required field Value *string `type:"string" required:"true"` } // String returns the string representation func (s Tag) String() string { return awsutil.Prettify(s) } // A list of tags (keys and values) that are used to specify the associated // resources. type TagFilter struct { _ struct{} `type:"structure"` // One part of a key-value pair that makes up a tag. A key is a general label // that acts like a category for more specific tag values. Key *string `min:"1" type:"string"` // One part of a key-value pair that make up a tag. A value acts as a descriptor // within a tag category (key). The value can be empty or null. Values []string `type:"list"` } // String returns the string representation func (s TagFilter) String() string { return awsutil.Prettify(s) } // Validate inspects the fields of the type to determine if they are valid. func (s *TagFilter) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "TagFilter"} if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(aws.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }