types

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequestException

type BadRequestException struct {
	Message *string
}

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
}

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

type ForbiddenException

type ForbiddenException struct {
	Message *string
}

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 name of the resource group.
	//
	// This member is required.
	Name *string

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

	// The description of the resource group.
	Description *string
}

A resource group that contains AWS 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 AWS Region and AWS 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.

  • GroupConfiguration () - Use a service configuration to

associate the group with an AWS service. The configuration specifies which resource types can be included in the group.

type GroupConfiguration

type GroupConfiguration struct {

	// The current status of an attempt to update the group configuration.
	Status GroupConfigurationStatus

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

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

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

A service configuration associated with a resource group. The configuration options are determined by the AWS 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.

type GroupConfigurationItem

type GroupConfigurationItem struct {

	// Specifies the type of group configuration item. Each item must have a unique
	// value for type. You can specify the following string values:
	//
	//     *
	// AWS::EC2::CapacityReservationPool For more information about EC2 capacity
	// reservation groups, see Working with capacity reservation groups
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group)
	// in the EC2 Users Guide.
	//
	//     * AWS::ResourceGroups::Generic - Supports
	// parameters that configure the behavior of resource groups of any type.
	//
	// This member is required.
	Type *string

	// A collection of parameters for this group configuration item.
	Parameters []*GroupConfigurationParameter
}

An item in a group configuration. A group configuration can have one or more items.

type GroupConfigurationParameter

type GroupConfigurationParameter struct {

	// The name of the group configuration parameter. You can specify the following
	// string values:
	//
	//     * For configuration item type
	// AWS::ResourceGroups::Generic:
	//
	//         * allowed-resource-types Specifies the
	// types of resources that you can add to this group by using the GroupResources ()
	// operation.
	//
	//     * For configuration item type
	// AWS::EC2::CapacityReservationPool:
	//
	//         * None - This configuration item
	// type doesn't support any parameters.
	//
	//     For more information about EC2
	// capacity reservation groups, see Working with capacity reservation groups
	// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-using.html#create-cr-group)
	// in the EC2 Users Guide.
	//
	// This member is required.
	Name *string

	// The values of for this parameter. You can specify the following string value:
	//
	//
	// * For item type allowed-resource-types: the only supported parameter value is
	// AWS::EC2::CapacityReservation.
	Values []*string
}

A parameter for a group configuration item.

type GroupConfigurationStatus

type GroupConfigurationStatus string
const (
	GroupConfigurationStatusUpdating        GroupConfigurationStatus = "UPDATING"
	GroupConfigurationStatusUpdate_complete GroupConfigurationStatus = "UPDATE_COMPLETE"
	GroupConfigurationStatusUpdate_failed   GroupConfigurationStatus = "UPDATE_FAILED"
)

Enum values for GroupConfigurationStatus

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
}

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

type GroupIdentifier

type GroupIdentifier struct {

	// The name of the resource group.
	GroupName *string

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

The unique identifiers for a resource group.

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 AWS resources are members of the
	// associated resource group.
	//
	// This member is required.
	ResourceQuery *ResourceQuery
}

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

type InternalServerErrorException

type InternalServerErrorException struct {
	Message *string
}

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 MethodNotAllowedException

type MethodNotAllowedException struct {
	Message *string
}

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
}

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 QueryError

type QueryError struct {

	// A message that explains the ErrorCode value. Messages might state that the
	// specified CloudFormation stack does not exist (or no longer exists). For
	// CLOUDFORMATION_STACK_INACTIVE, the message typically states that the
	// CloudFormation stack has a status that is not (or no longer) active, such as
	// CREATE_FAILED.
	Message *string

	// Possible values are CLOUDFORMATION_STACK_INACTIVE and
	// CLOUDFORMATION_STACK_NOT_EXISTING.
	ErrorCode QueryErrorCode
}

A two-part error structure that can occur in ListGroupResources or SearchResources operations on CloudFormation stack-based queries. The error occurs if the CloudFormation stack on which the query is based either does not exist, or has a status that renders the stack inactive. A QueryError occurrence does not necessarily mean that AWS Resource Groups could not complete the operation, but the resulting group might have no member resources.

type QueryErrorCode

type QueryErrorCode string
const (
	QueryErrorCodeCloudformation_stack_inactive     QueryErrorCode = "CLOUDFORMATION_STACK_INACTIVE"
	QueryErrorCodeCloudformation_stack_not_existing QueryErrorCode = "CLOUDFORMATION_STACK_NOT_EXISTING"
)

Enum values for QueryErrorCode

type QueryType

type QueryType string
const (
	QueryTypeTag_filters_1_0          QueryType = "TAG_FILTERS_1_0"
	QueryTypeCloudformation_stack_1_0 QueryType = "CLOUDFORMATION_STACK_1_0"
)

Enum values for QueryType

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
}

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

type ResourceIdentifier

type ResourceIdentifier struct {

	// The resource type of a resource, such as AWS::EC2::Instance.
	ResourceType *string

	// The ARN of a resource.
	ResourceArn *string
}

The ARN of a resource, and its resource type.

type ResourceQuery

type ResourceQuery struct {

	// The query that defines a group or a search.
	//
	// This member is required.
	Query *string

	// The type of the query. You can use the following values:
	//
	//     *
	// CLOUDFORMATION_STACK_1_0: A JSON syntax that lets you specify a CloudFormation
	// stack ARN.
	//
	//     * TAG_FILTERS_1_0: A JSON syntax that lets you specify a
	// collection of simple tag filters for resource types and tags, as supported by
	// the AWS Tagging API ResourceTypeFilters parameter of the tagging:GetResources
	// (https://docs.aws.amazon.com/resourcegroupstagging/latest/APIReference/API_GetResources.html#resourcegrouptagging-GetResources-request-ResourceTypeFilters)
	// operation. 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:
	// [{"Key":"Stage","Values":["Test","Deploy"]},{"Key":"Version","Values":["1","2"]}]
	// The results of this query could include the following.
	//
	//         * An EC2
	// instance that has the following two tags: {"Key":"Stage","Value":"Deploy"}, and
	// {"Key":"Version","Value":"2"}
	//
	//         * An S3 bucket that has the following two
	// tags: {"Key":"Stage","Value":"Test"}, and {"Key":"Version","Value":"1"}
	//
	//     The
	// query would not include the following items in the results, however.
	//
	//         *
	// An EC2 instance that has only the following tag:
	// {"Key":"Stage","Value":"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: {"Key":"Stage","Value":"Archived"},
	// and {"Key":"Version","Value":"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.
	//
	// This member is required.
	Type QueryType
}

The query that is used to define a resource group or a search for resources.

type TooManyRequestsException

type TooManyRequestsException struct {
	Message *string
}

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
}

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