types

package
v1.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountSettings added in v1.14.0

type AccountSettings struct {

	// The desired target status of the group lifecycle events feature. If
	GroupLifecycleEventsDesiredStatus GroupLifecycleEventsDesiredStatus

	// The current status of the group lifecycle events feature.
	GroupLifecycleEventsStatus GroupLifecycleEventsStatus

	// The text of any error message occurs during an attempt to turn group lifecycle
	// events on or off.
	GroupLifecycleEventsStatusMessage *string
	// contains filtered or unexported fields
}

The Resource Groups settings for this Amazon Web Services account.

type BadRequestException

type BadRequestException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request includes one or more parameters that violate validation rules.

func (*BadRequestException) Error

func (e *BadRequestException) Error() string

func (*BadRequestException) ErrorCode

func (e *BadRequestException) ErrorCode() string

func (*BadRequestException) ErrorFault

func (e *BadRequestException) ErrorFault() smithy.ErrorFault

func (*BadRequestException) ErrorMessage

func (e *BadRequestException) ErrorMessage() string

type FailedResource

type FailedResource struct {

	// The error code associated with the failure.
	ErrorCode *string

	// The error message text associated with the failure.
	ErrorMessage *string

	// The ARN of the resource that failed to be added or removed.
	ResourceArn *string
	// contains filtered or unexported fields
}

A resource that failed to be added to or removed from a group.

type ForbiddenException

type ForbiddenException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The caller isn't authorized to make the request. Check permissions.

func (*ForbiddenException) Error

func (e *ForbiddenException) Error() string

func (*ForbiddenException) ErrorCode

func (e *ForbiddenException) ErrorCode() string

func (*ForbiddenException) ErrorFault

func (e *ForbiddenException) ErrorFault() smithy.ErrorFault

func (*ForbiddenException) ErrorMessage

func (e *ForbiddenException) ErrorMessage() string

type Group

type Group struct {

	// The ARN of the resource group.
	//
	// This member is required.
	GroupArn *string

	// The name of the resource group.
	//
	// This member is required.
	Name *string

	// The description of the resource group.
	Description *string
	// contains filtered or unexported fields
}

A resource group that contains Amazon Web Services resources. You can assign resources to the group by associating either of the following elements with the group:

  • ResourceQuery - Use a resource query to specify a set of tag keys and values. All resources in the same Amazon Web Services Region and Amazon Web Services account that have those keys with the same values are included in the group. You can add a resource query when you create the group, or later by using the PutGroupConfiguration operation.
  • GroupConfiguration - Use a service configuration to associate the group with an Amazon Web Services service. The configuration specifies which resource types can be included in the group.

type GroupConfiguration

type GroupConfiguration struct {

	// The configuration currently associated with the group and in effect.
	Configuration []GroupConfigurationItem

	// If present, the reason why a request to update the group configuration failed.
	FailureReason *string

	// If present, the new configuration that is in the process of being applied to
	// the group.
	ProposedConfiguration []GroupConfigurationItem

	// The current status of an attempt to update the group configuration.
	Status GroupConfigurationStatus
	// contains filtered or unexported fields
}

A service configuration associated with a resource group. The configuration options are determined by the Amazon Web Services service that defines the Type , and specifies which resources can be included in the group. You can add a service configuration when you create the group by using CreateGroup , or later by using the PutGroupConfiguration operation. For details about group service configuration syntax, see Service configurations for resource groups (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html) .

type GroupConfigurationItem

type GroupConfigurationItem struct {

	// Specifies the type of group configuration item. Each item must have a unique
	// value for type . For the list of types that you can specify for a configuration
	// item, see Supported resource types and parameters (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types)
	// .
	//
	// This member is required.
	Type *string

	// A collection of parameters for this group configuration item. For the list of
	// parameters that you can use with each configuration item type, see Supported
	// resource types and parameters (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types)
	// .
	Parameters []GroupConfigurationParameter
	// contains filtered or unexported fields
}

An item in a group configuration. A group service configuration can have one or more items. For details about group service configuration syntax, see Service configurations for resource groups (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html) .

type GroupConfigurationParameter

type GroupConfigurationParameter struct {

	// The name of the group configuration parameter. For the list of parameters that
	// you can use with each configuration item type, see Supported resource types and
	// parameters (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types)
	// .
	//
	// This member is required.
	Name *string

	// The value or values to be used for the specified parameter. For the list of
	// values you can use with each parameter, see Supported resource types and
	// parameters (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html#about-slg-types)
	// .
	Values []string
	// contains filtered or unexported fields
}

A parameter for a group configuration item. For details about group service configuration syntax, see Service configurations for resource groups (https://docs.aws.amazon.com/ARG/latest/APIReference/about-slg.html) .

type GroupConfigurationStatus

type GroupConfigurationStatus string
const (
	GroupConfigurationStatusUpdating       GroupConfigurationStatus = "UPDATING"
	GroupConfigurationStatusUpdateComplete GroupConfigurationStatus = "UPDATE_COMPLETE"
	GroupConfigurationStatusUpdateFailed   GroupConfigurationStatus = "UPDATE_FAILED"
)

Enum values for GroupConfigurationStatus

func (GroupConfigurationStatus) Values added in v0.29.0

Values returns all known values for GroupConfigurationStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type GroupFilter

type GroupFilter struct {

	// The name of the filter. Filter names are case-sensitive.
	//
	// This member is required.
	Name GroupFilterName

	// One or more filter values. Allowed filter values vary by group filter name, and
	// are case-sensitive.
	//
	// This member is required.
	Values []string
	// contains filtered or unexported fields
}

A filter collection that you can use to restrict the results from a List operation to only those you want to include.

type GroupFilterName

type GroupFilterName string
const (
	GroupFilterNameResourceType      GroupFilterName = "resource-type"
	GroupFilterNameConfigurationType GroupFilterName = "configuration-type"
)

Enum values for GroupFilterName

func (GroupFilterName) Values added in v0.29.0

func (GroupFilterName) Values() []GroupFilterName

Values returns all known values for GroupFilterName. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type GroupIdentifier

type GroupIdentifier struct {

	// The ARN of the resource group.
	GroupArn *string

	// The name of the resource group.
	GroupName *string
	// contains filtered or unexported fields
}

The unique identifiers for a resource group.

type GroupLifecycleEventsDesiredStatus added in v1.14.0

type GroupLifecycleEventsDesiredStatus string
const (
	GroupLifecycleEventsDesiredStatusActive   GroupLifecycleEventsDesiredStatus = "ACTIVE"
	GroupLifecycleEventsDesiredStatusInactive GroupLifecycleEventsDesiredStatus = "INACTIVE"
)

Enum values for GroupLifecycleEventsDesiredStatus

func (GroupLifecycleEventsDesiredStatus) Values added in v1.14.0

Values returns all known values for GroupLifecycleEventsDesiredStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type GroupLifecycleEventsStatus added in v1.14.0

type GroupLifecycleEventsStatus string
const (
	GroupLifecycleEventsStatusActive     GroupLifecycleEventsStatus = "ACTIVE"
	GroupLifecycleEventsStatusInactive   GroupLifecycleEventsStatus = "INACTIVE"
	GroupLifecycleEventsStatusInProgress GroupLifecycleEventsStatus = "IN_PROGRESS"
	GroupLifecycleEventsStatusError      GroupLifecycleEventsStatus = "ERROR"
)

Enum values for GroupLifecycleEventsStatus

func (GroupLifecycleEventsStatus) Values added in v1.14.0

Values returns all known values for GroupLifecycleEventsStatus. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type GroupQuery

type GroupQuery struct {

	// The name of the resource group that is associated with the specified resource
	// query.
	//
	// This member is required.
	GroupName *string

	// The resource query that determines which Amazon Web Services resources are
	// members of the associated resource group.
	//
	// This member is required.
	ResourceQuery *ResourceQuery
	// contains filtered or unexported fields
}

A mapping of a query attached to a resource group that determines the Amazon Web Services resources that are members of the group.

type InternalServerErrorException

type InternalServerErrorException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

An internal error occurred while processing the request. Try again later.

func (*InternalServerErrorException) Error

func (*InternalServerErrorException) ErrorCode

func (e *InternalServerErrorException) ErrorCode() string

func (*InternalServerErrorException) ErrorFault

func (*InternalServerErrorException) ErrorMessage

func (e *InternalServerErrorException) ErrorMessage() string

type ListGroupResourcesItem added in v1.2.0

type ListGroupResourcesItem struct {

	// A structure that contains the ARN of a resource and its resource type.
	Identifier *ResourceIdentifier

	// A structure that contains the status of this resource's membership in the
	// group. This field is present in the response only if the group is of type
	// AWS::EC2::HostManagement .
	Status *ResourceStatus
	// contains filtered or unexported fields
}

A structure returned by the ListGroupResources operation that contains identity and group membership status information for one of the resources in the group.

type MethodNotAllowedException

type MethodNotAllowedException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request uses an HTTP method that isn't allowed for the specified resource.

func (*MethodNotAllowedException) Error

func (e *MethodNotAllowedException) Error() string

func (*MethodNotAllowedException) ErrorCode

func (e *MethodNotAllowedException) ErrorCode() string

func (*MethodNotAllowedException) ErrorFault

func (*MethodNotAllowedException) ErrorMessage

func (e *MethodNotAllowedException) ErrorMessage() string

type NotFoundException

type NotFoundException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

One or more of the specified resources don't exist.

func (*NotFoundException) Error

func (e *NotFoundException) Error() string

func (*NotFoundException) ErrorCode

func (e *NotFoundException) ErrorCode() string

func (*NotFoundException) ErrorFault

func (e *NotFoundException) ErrorFault() smithy.ErrorFault

func (*NotFoundException) ErrorMessage

func (e *NotFoundException) ErrorMessage() string

type PendingResource added in v1.2.0

type PendingResource struct {

	// The Amazon resource name (ARN) of the resource that's in a pending state.
	ResourceArn *string
	// contains filtered or unexported fields
}

A structure that identifies a resource that is currently pending addition to the group as a member. Adding a resource to a resource group happens asynchronously as a background task and this one isn't completed yet.

type QueryError

type QueryError struct {

	// Specifies the error code that was raised.
	ErrorCode QueryErrorCode

	// A message that explains the ErrorCode .
	Message *string
	// contains filtered or unexported fields
}

A two-part error structure that can occur in ListGroupResources or SearchResources .

type QueryErrorCode

type QueryErrorCode string
const (
	QueryErrorCodeCloudformationStackInactive        QueryErrorCode = "CLOUDFORMATION_STACK_INACTIVE"
	QueryErrorCodeCloudformationStackNotExisting     QueryErrorCode = "CLOUDFORMATION_STACK_NOT_EXISTING"
	QueryErrorCodeCloudformationStackUnassumableRole QueryErrorCode = "CLOUDFORMATION_STACK_UNASSUMABLE_ROLE"
	QueryErrorCodeResourceTypeNotSupported           QueryErrorCode = "RESOURCE_TYPE_NOT_SUPPORTED"
)

Enum values for QueryErrorCode

func (QueryErrorCode) Values added in v0.29.0

func (QueryErrorCode) Values() []QueryErrorCode

Values returns all known values for QueryErrorCode. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type QueryType

type QueryType string
const (
	QueryTypeTagFilters10          QueryType = "TAG_FILTERS_1_0"
	QueryTypeCloudformationStack10 QueryType = "CLOUDFORMATION_STACK_1_0"
)

Enum values for QueryType

func (QueryType) Values added in v0.29.0

func (QueryType) Values() []QueryType

Values returns all known values for QueryType. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ResourceFilter

type ResourceFilter struct {

	// The name of the filter. Filter names are case-sensitive.
	//
	// This member is required.
	Name ResourceFilterName

	// One or more filter values. Allowed filter values vary by resource filter name,
	// and are case-sensitive.
	//
	// This member is required.
	Values []string
	// contains filtered or unexported fields
}

A filter name and value pair that is used to obtain more specific results from a list of resources.

type ResourceFilterName

type ResourceFilterName string
const (
	ResourceFilterNameResourceType ResourceFilterName = "resource-type"
)

Enum values for ResourceFilterName

func (ResourceFilterName) Values added in v0.29.0

Values returns all known values for ResourceFilterName. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type ResourceIdentifier

type ResourceIdentifier struct {

	// The ARN of a resource.
	ResourceArn *string

	// The resource type of a resource, such as AWS::EC2::Instance .
	ResourceType *string
	// contains filtered or unexported fields
}

A structure that contains the ARN of a resource and its resource type.

type ResourceQuery

type ResourceQuery struct {

	// The query that defines a group or a search. The contents depends on the value
	// of the Type element.
	//   - ResourceTypeFilters – Applies to all ResourceQuery objects of either Type .
	//   This element contains one of the following two items:
	//   - The value AWS::AllSupported . This causes the ResourceQuery to match
	//   resources of any resource type that also match the query.
	//   - A list (a JSON array) of resource type identifiers that limit the query to
	//   only resources of the specified types. For the complete list of resource types
	//   that you can use in the array value for ResourceTypeFilters , see Resources
	//   you can use with Resource Groups and Tag Editor (https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html)
	//   in the Resource Groups User Guide. Example: "ResourceTypeFilters":
	//   ["AWS::AllSupported"] or "ResourceTypeFilters": ["AWS::EC2::Instance",
	//   "AWS::S3::Bucket"]
	//   - TagFilters – applicable only if Type = TAG_FILTERS_1_0 . The Query contains
	//   a JSON string that represents a collection of simple tag filters. The JSON
	//   string uses a syntax similar to the GetResources (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html)
	//   operation, but uses only the ResourceTypeFilters (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-ResourceTypeFilters)
	//   and TagFilters (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-TagFiltersTagFilters)
	//   fields. If you specify more than one tag key, only resources that match all tag
	//   keys, and at least one value of each specified tag key, are returned in your
	//   query. If you specify more than one value for a tag key, a resource matches the
	//   filter if it has a tag key value that matches any of the specified values. For
	//   example, consider the following sample query for resources that have two tags,
	//   Stage and Version , with two values each:
	//   [{"Stage":["Test","Deploy"]},{"Version":["1","2"]}] The results of this
	//   resource query could include the following.
	//   - An Amazon EC2 instance that has the following two tags: {"Stage":"Deploy"} ,
	//   and {"Version":"2"}
	//   - An S3 bucket that has the following two tags: {"Stage":"Test"} , and
	//   {"Version":"1"} The resource query results would not include the following
	//   items in the results, however.
	//   - An Amazon EC2 instance that has only the following tag: {"Stage":"Deploy"} .
	//   The instance does not have all of the tag keys specified in the filter, so it is
	//   excluded from the results.
	//   - An RDS database that has the following two tags: {"Stage":"Archived"} and
	//   {"Version":"4"} The database has all of the tag keys, but none of those keys
	//   has an associated value that matches at least one of the specified values in the
	//   filter. Example: "TagFilters": [ { "Key": "Stage", "Values": [ "Gamma",
	//   "Beta" ] }
	//   - StackIdentifier – applicable only if Type = CLOUDFORMATION_STACK_1_0 . The
	//   value of this parameter is the Amazon Resource Name (ARN) of the CloudFormation
	//   stack whose resources you want included in the group.
	//
	// This member is required.
	Query *string

	// The type of the query to perform. This can have one of two values:
	//   - CLOUDFORMATION_STACK_1_0: Specifies that you want the group to contain the
	//   members of an CloudFormation stack. The Query contains a StackIdentifier
	//   element with an ARN for a CloudFormation stack.
	//   - TAG_FILTERS_1_0: Specifies that you want the group to include resource that
	//   have tags that match the query.
	//
	// This member is required.
	Type QueryType
	// contains filtered or unexported fields
}

The query you can use to define a resource group or a search for resources. A ResourceQuery specifies both a query Type and a Query string as JSON string objects. See the examples section for example JSON strings. For more information about creating a resource group with a resource query, see Build queries and groups in Resource Groups (https://docs.aws.amazon.com/ARG/latest/userguide/gettingstarted-query.html) in the Resource Groups User Guide When you combine all of the elements together into a single string, any double quotes that are embedded inside another double quote pair must be escaped by preceding the embedded double quote with a backslash character (\). For example, a complete ResourceQuery parameter must be formatted like the following CLI parameter example: --resource-query '{"Type":"TAG_FILTERS_1_0","Query":"{\"ResourceTypeFilters\":[\"AWS::AllSupported\"],\"TagFilters\":[{\"Key\":\"Stage\",\"Values\":[\"Test\"]}]}"}' In the preceding example, all of the double quote characters in the value part of the Query element must be escaped because the value itself is surrounded by double quotes. For more information, see Quoting strings (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-parameters-quoting-strings.html) in the Command Line Interface User Guide. For the complete list of resource types that you can use in the array value for ResourceTypeFilters , see Resources you can use with Resource Groups and Tag Editor (https://docs.aws.amazon.com/ARG/latest/userguide/supported-resources.html) in the Resource Groups User Guide. For example: "ResourceTypeFilters":["AWS::S3::Bucket", "AWS::EC2::Instance"]

type ResourceStatus added in v1.2.0

type ResourceStatus struct {

	// The current status.
	Name ResourceStatusValue
	// contains filtered or unexported fields
}

A structure that identifies the current group membership status for a resource. Adding a resource to a resource group is performed asynchronously as a background task. A PENDING status indicates, for this resource, that the process isn't completed yet.

type ResourceStatusValue added in v1.2.0

type ResourceStatusValue string
const (
	ResourceStatusValuePending ResourceStatusValue = "PENDING"
)

Enum values for ResourceStatusValue

func (ResourceStatusValue) Values added in v1.2.0

Values returns all known values for ResourceStatusValue. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.

type TooManyRequestsException

type TooManyRequestsException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

You've exceeded throttling limits by making too many requests in a period of time.

func (*TooManyRequestsException) Error

func (e *TooManyRequestsException) Error() string

func (*TooManyRequestsException) ErrorCode

func (e *TooManyRequestsException) ErrorCode() string

func (*TooManyRequestsException) ErrorFault

func (e *TooManyRequestsException) ErrorFault() smithy.ErrorFault

func (*TooManyRequestsException) ErrorMessage

func (e *TooManyRequestsException) ErrorMessage() string

type UnauthorizedException

type UnauthorizedException struct {
	Message *string

	ErrorCodeOverride *string
	// contains filtered or unexported fields
}

The request was rejected because it doesn't have valid credentials for the target resource.

func (*UnauthorizedException) Error

func (e *UnauthorizedException) Error() string

func (*UnauthorizedException) ErrorCode

func (e *UnauthorizedException) ErrorCode() string

func (*UnauthorizedException) ErrorFault

func (e *UnauthorizedException) ErrorFault() smithy.ErrorFault

func (*UnauthorizedException) ErrorMessage

func (e *UnauthorizedException) ErrorMessage() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL