Documentation ¶
Index ¶
- type AccessDeniedException
- type AlertManagerDefinitionDescription
- type AlertManagerDefinitionStatus
- type AlertManagerDefinitionStatusCode
- type AmpConfiguration
- type ConflictException
- type Destination
- type DestinationMemberAmpConfiguration
- type EksConfiguration
- type InternalServerException
- type LoggingConfigurationMetadata
- type LoggingConfigurationStatus
- type LoggingConfigurationStatusCode
- type ResourceNotFoundException
- type RuleGroupsNamespaceDescription
- type RuleGroupsNamespaceStatus
- type RuleGroupsNamespaceStatusCode
- type RuleGroupsNamespaceSummary
- type ScrapeConfiguration
- type ScrapeConfigurationMemberConfigurationBlob
- type ScraperDescription
- type ScraperStatus
- type ScraperStatusCode
- type ScraperSummary
- type ServiceQuotaExceededException
- type Source
- type SourceMemberEksConfiguration
- type ThrottlingException
- type UnknownUnionMember
- type ValidationException
- type ValidationExceptionField
- type ValidationExceptionReason
- type WorkspaceDescription
- type WorkspaceStatus
- type WorkspaceStatusCode
- type WorkspaceSummary
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessDeniedException ¶
type AccessDeniedException struct { Message *string ErrorCodeOverride *string // contains filtered or unexported fields }
User does not have sufficient access to perform this action.
func (*AccessDeniedException) Error ¶
func (e *AccessDeniedException) Error() string
func (*AccessDeniedException) ErrorCode ¶
func (e *AccessDeniedException) ErrorCode() string
func (*AccessDeniedException) ErrorFault ¶
func (e *AccessDeniedException) ErrorFault() smithy.ErrorFault
func (*AccessDeniedException) ErrorMessage ¶
func (e *AccessDeniedException) ErrorMessage() string
type AlertManagerDefinitionDescription ¶ added in v1.6.0
type AlertManagerDefinitionDescription struct { // The time when the alert manager definition was created. // // This member is required. CreatedAt *time.Time // The alert manager definition. // // This member is required. Data []byte // The time when the alert manager definition was modified. // // This member is required. ModifiedAt *time.Time // The status of alert manager definition. // // This member is required. Status *AlertManagerDefinitionStatus // contains filtered or unexported fields }
Represents the properties of an alert manager definition.
type AlertManagerDefinitionStatus ¶ added in v1.6.0
type AlertManagerDefinitionStatus struct { // Status code of this definition. // // This member is required. StatusCode AlertManagerDefinitionStatusCode // The reason for failure if any. StatusReason *string // contains filtered or unexported fields }
Represents the status of a definition.
type AlertManagerDefinitionStatusCode ¶ added in v1.6.0
type AlertManagerDefinitionStatusCode string
const ( // Definition is being created. Update/Deletion is disallowed until definition is // ACTIVE and workspace status is ACTIVE. AlertManagerDefinitionStatusCodeCreating AlertManagerDefinitionStatusCode = "CREATING" // Definition has been created/updated. Update/Deletion is disallowed until // definition is ACTIVE and workspace status is ACTIVE. AlertManagerDefinitionStatusCodeActive AlertManagerDefinitionStatusCode = "ACTIVE" // Definition is being updated. Update/Deletion is disallowed until definition is // ACTIVE and workspace status is ACTIVE. AlertManagerDefinitionStatusCodeUpdating AlertManagerDefinitionStatusCode = "UPDATING" // Definition is being deleting. Update/Deletion is disallowed until definition is // ACTIVE and workspace status is ACTIVE. AlertManagerDefinitionStatusCodeDeleting AlertManagerDefinitionStatusCode = "DELETING" // Definition creation failed. AlertManagerDefinitionStatusCodeCreationFailed AlertManagerDefinitionStatusCode = "CREATION_FAILED" // Definition update failed. AlertManagerDefinitionStatusCodeUpdateFailed AlertManagerDefinitionStatusCode = "UPDATE_FAILED" )
Enum values for AlertManagerDefinitionStatusCode
func (AlertManagerDefinitionStatusCode) Values ¶ added in v1.6.0
func (AlertManagerDefinitionStatusCode) Values() []AlertManagerDefinitionStatusCode
Values returns all known values for AlertManagerDefinitionStatusCode. 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 AmpConfiguration ¶ added in v1.20.0
type AmpConfiguration struct { // The ARN of an AMP workspace. // // This member is required. WorkspaceArn *string // contains filtered or unexported fields }
A representation of an AMP destination.
type ConflictException ¶
type ConflictException struct { Message *string ErrorCodeOverride *string ResourceId *string ResourceType *string // contains filtered or unexported fields }
Updating or deleting a resource can cause an inconsistent state.
func (*ConflictException) Error ¶
func (e *ConflictException) Error() string
func (*ConflictException) ErrorCode ¶
func (e *ConflictException) ErrorCode() string
func (*ConflictException) ErrorFault ¶
func (e *ConflictException) ErrorFault() smithy.ErrorFault
func (*ConflictException) ErrorMessage ¶
func (e *ConflictException) ErrorMessage() string
type Destination ¶ added in v1.20.0
type Destination interface {
// contains filtered or unexported methods
}
A representation of a destination that a scraper can produce metrics to.
The following types satisfy this interface:
DestinationMemberAmpConfiguration
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/amp/types" ) func main() { var union types.Destination // type switches can be used to check the union value switch v := union.(type) { case *types.DestinationMemberAmpConfiguration: _ = v.Value // Value is types.AmpConfiguration case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type DestinationMemberAmpConfiguration ¶ added in v1.20.0
type DestinationMemberAmpConfiguration struct { Value AmpConfiguration // contains filtered or unexported fields }
A representation of an AMP destination.
type EksConfiguration ¶ added in v1.20.0
type EksConfiguration struct { // The ARN of an EKS cluster. // // This member is required. ClusterArn *string // A list of subnet IDs specified for VPC configuration. // // This member is required. SubnetIds []string // A list of security group IDs specified for VPC configuration. SecurityGroupIds []string // contains filtered or unexported fields }
A representation of an EKS source.
type InternalServerException ¶
type InternalServerException struct { Message *string ErrorCodeOverride *string RetryAfterSeconds *int32 // contains filtered or unexported fields }
Unexpected error during processing of request.
func (*InternalServerException) Error ¶
func (e *InternalServerException) Error() string
func (*InternalServerException) ErrorCode ¶
func (e *InternalServerException) ErrorCode() string
func (*InternalServerException) ErrorFault ¶
func (e *InternalServerException) ErrorFault() smithy.ErrorFault
func (*InternalServerException) ErrorMessage ¶
func (e *InternalServerException) ErrorMessage() string
type LoggingConfigurationMetadata ¶ added in v1.15.0
type LoggingConfigurationMetadata struct { // The time when the logging configuration was created. // // This member is required. CreatedAt *time.Time // The ARN of the CW log group to which the vended log data will be published. // // This member is required. LogGroupArn *string // The time when the logging configuration was modified. // // This member is required. ModifiedAt *time.Time // The status of the logging configuration. // // This member is required. Status *LoggingConfigurationStatus // The workspace where the logging configuration exists. // // This member is required. Workspace *string // contains filtered or unexported fields }
Represents the properties of a logging configuration metadata.
type LoggingConfigurationStatus ¶ added in v1.15.0
type LoggingConfigurationStatus struct { // Status code of the logging configuration. // // This member is required. StatusCode LoggingConfigurationStatusCode // The reason for failure if any. StatusReason *string // contains filtered or unexported fields }
Represents the status of a logging configuration.
type LoggingConfigurationStatusCode ¶ added in v1.15.0
type LoggingConfigurationStatusCode string
const ( // Logging configuration is being created. Update/Deletion is disallowed until // logging configuration is ACTIVE and workspace status is ACTIVE. LoggingConfigurationStatusCodeCreating LoggingConfigurationStatusCode = "CREATING" // Logging configuration has been created/updated. Update/Deletion is disallowed // until logging configuration is ACTIVE and workspace status is ACTIVE. LoggingConfigurationStatusCodeActive LoggingConfigurationStatusCode = "ACTIVE" // Logging configuration is being updated. Update/Deletion is disallowed until // logging configuration is ACTIVE and workspace status is ACTIVE. LoggingConfigurationStatusCodeUpdating LoggingConfigurationStatusCode = "UPDATING" // Logging configuration is being deleting. Update/Deletion is disallowed until // logging configuration is ACTIVE and workspace status is ACTIVE. LoggingConfigurationStatusCodeDeleting LoggingConfigurationStatusCode = "DELETING" // Logging configuration creation failed. LoggingConfigurationStatusCodeCreationFailed LoggingConfigurationStatusCode = "CREATION_FAILED" // Logging configuration update failed. LoggingConfigurationStatusCodeUpdateFailed LoggingConfigurationStatusCode = "UPDATE_FAILED" )
Enum values for LoggingConfigurationStatusCode
func (LoggingConfigurationStatusCode) Values ¶ added in v1.15.0
func (LoggingConfigurationStatusCode) Values() []LoggingConfigurationStatusCode
Values returns all known values for LoggingConfigurationStatusCode. 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 ResourceNotFoundException ¶
type ResourceNotFoundException struct { Message *string ErrorCodeOverride *string ResourceId *string ResourceType *string // contains filtered or unexported fields }
Request references a resource which does not exist.
func (*ResourceNotFoundException) Error ¶
func (e *ResourceNotFoundException) Error() string
func (*ResourceNotFoundException) ErrorCode ¶
func (e *ResourceNotFoundException) ErrorCode() string
func (*ResourceNotFoundException) ErrorFault ¶
func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault
func (*ResourceNotFoundException) ErrorMessage ¶
func (e *ResourceNotFoundException) ErrorMessage() string
type RuleGroupsNamespaceDescription ¶ added in v1.6.0
type RuleGroupsNamespaceDescription struct { // The Amazon Resource Name (ARN) of this rule groups namespace. // // This member is required. Arn *string // The time when the rule groups namespace was created. // // This member is required. CreatedAt *time.Time // The rule groups namespace data. // // This member is required. Data []byte // The time when the rule groups namespace was modified. // // This member is required. ModifiedAt *time.Time // The rule groups namespace name. // // This member is required. Name *string // The status of rule groups namespace. // // This member is required. Status *RuleGroupsNamespaceStatus // The tags of this rule groups namespace. Tags map[string]string // contains filtered or unexported fields }
Represents a description of the rule groups namespace.
type RuleGroupsNamespaceStatus ¶ added in v1.6.0
type RuleGroupsNamespaceStatus struct { // Status code of this namespace. // // This member is required. StatusCode RuleGroupsNamespaceStatusCode // The reason for failure if any. StatusReason *string // contains filtered or unexported fields }
Represents the status of a namespace.
type RuleGroupsNamespaceStatusCode ¶ added in v1.6.0
type RuleGroupsNamespaceStatusCode string
const ( // Namespace is being created. Update/Deletion is disallowed until namespace is // ACTIVE and workspace status is ACTIVE. RuleGroupsNamespaceStatusCodeCreating RuleGroupsNamespaceStatusCode = "CREATING" // Namespace has been created/updated. Update/Deletion is disallowed until // namespace is ACTIVE and workspace status is ACTIVE. RuleGroupsNamespaceStatusCodeActive RuleGroupsNamespaceStatusCode = "ACTIVE" // Namespace is being updated. Update/Deletion is disallowed until namespace is // ACTIVE and workspace status is ACTIVE. RuleGroupsNamespaceStatusCodeUpdating RuleGroupsNamespaceStatusCode = "UPDATING" // Namespace is being deleting. Update/Deletion is disallowed until namespace is // ACTIVE and workspace status is ACTIVE. RuleGroupsNamespaceStatusCodeDeleting RuleGroupsNamespaceStatusCode = "DELETING" // Namespace creation failed. RuleGroupsNamespaceStatusCodeCreationFailed RuleGroupsNamespaceStatusCode = "CREATION_FAILED" // Namespace update failed. RuleGroupsNamespaceStatusCodeUpdateFailed RuleGroupsNamespaceStatusCode = "UPDATE_FAILED" )
Enum values for RuleGroupsNamespaceStatusCode
func (RuleGroupsNamespaceStatusCode) Values ¶ added in v1.6.0
func (RuleGroupsNamespaceStatusCode) Values() []RuleGroupsNamespaceStatusCode
Values returns all known values for RuleGroupsNamespaceStatusCode. 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 RuleGroupsNamespaceSummary ¶ added in v1.6.0
type RuleGroupsNamespaceSummary struct { // The Amazon Resource Name (ARN) of this rule groups namespace. // // This member is required. Arn *string // The time when the rule groups namespace was created. // // This member is required. CreatedAt *time.Time // The time when the rule groups namespace was modified. // // This member is required. ModifiedAt *time.Time // The rule groups namespace name. // // This member is required. Name *string // The status of rule groups namespace. // // This member is required. Status *RuleGroupsNamespaceStatus // The tags of this rule groups namespace. Tags map[string]string // contains filtered or unexported fields }
Represents a summary of the rule groups namespace.
type ScrapeConfiguration ¶ added in v1.20.0
type ScrapeConfiguration interface {
// contains filtered or unexported methods
}
A representation of a Prometheus configuration file.
The following types satisfy this interface:
ScrapeConfigurationMemberConfigurationBlob
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/amp/types" ) func main() { var union types.ScrapeConfiguration // type switches can be used to check the union value switch v := union.(type) { case *types.ScrapeConfigurationMemberConfigurationBlob: _ = v.Value // Value is []byte case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type ScrapeConfigurationMemberConfigurationBlob ¶ added in v1.20.0
type ScrapeConfigurationMemberConfigurationBlob struct { Value []byte // contains filtered or unexported fields }
Binary data representing a Prometheus configuration file.
type ScraperDescription ¶ added in v1.20.0
type ScraperDescription struct { // The Amazon Resource Name (ARN) of this scraper. // // This member is required. Arn *string // The time when the scraper was created. // // This member is required. CreatedAt *time.Time // The destination that the scraper is producing metrics to. // // This member is required. Destination Destination // The time when the scraper was last modified. // // This member is required. LastModifiedAt *time.Time // The Amazon Resource Name (ARN) of the IAM role that provides permissions for // the scraper to dsicover, collect, and produce metrics on your behalf. // // This member is required. RoleArn *string // The configuration used to create the scraper. // // This member is required. ScrapeConfiguration ScrapeConfiguration // Unique string identifying this scraper. // // This member is required. ScraperId *string // The source that the scraper is discovering and collecting metrics from. // // This member is required. Source Source // The status of this scraper. // // This member is required. Status *ScraperStatus // Alias of this scraper. Alias *string // The reason for failure if any. StatusReason *string // The tags of this scraper. Tags map[string]string // contains filtered or unexported fields }
Represents the properties of a scraper.
type ScraperStatus ¶ added in v1.20.0
type ScraperStatus struct { // Status code of this scraper. // // This member is required. StatusCode ScraperStatusCode // contains filtered or unexported fields }
Represents the status of a scraper.
type ScraperStatusCode ¶ added in v1.20.0
type ScraperStatusCode string
const ( // Scraper is being created. Deletion is disallowed until status is ACTIVE. ScraperStatusCodeCreating ScraperStatusCode = "CREATING" // Scraper has been created and is usable. ScraperStatusCodeActive ScraperStatusCode = "ACTIVE" // Scraper is being deleted. Deletions are allowed only when status is ACTIVE. ScraperStatusCodeDeleting ScraperStatusCode = "DELETING" // Scraper creation failed. ScraperStatusCodeCreationFailed ScraperStatusCode = "CREATION_FAILED" // Scraper deletion failed. ScraperStatusCodeDeletionFailed ScraperStatusCode = "DELETION_FAILED" )
Enum values for ScraperStatusCode
func (ScraperStatusCode) Values ¶ added in v1.20.0
func (ScraperStatusCode) Values() []ScraperStatusCode
Values returns all known values for ScraperStatusCode. 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 ScraperSummary ¶ added in v1.20.0
type ScraperSummary struct { // The Amazon Resource Name (ARN) of this scraper. // // This member is required. Arn *string // The time when the scraper was created. // // This member is required. CreatedAt *time.Time // The destination that the scraper is producing metrics to. // // This member is required. Destination Destination // The time when the scraper was last modified. // // This member is required. LastModifiedAt *time.Time // The Amazon Resource Name (ARN) of the IAM role that provides permissions for // the scraper to dsicover, collect, and produce metrics on your behalf. // // This member is required. RoleArn *string // Unique string identifying this scraper. // // This member is required. ScraperId *string // The source that the scraper is discovering and collecting metrics from. // // This member is required. Source Source // The status of this scraper. // // This member is required. Status *ScraperStatus // Alias of this scraper. Alias *string // The reason for failure if any. StatusReason *string // The tags of this scraper. Tags map[string]string // contains filtered or unexported fields }
Represents a summary of the properties of a scraper.
type ServiceQuotaExceededException ¶
type ServiceQuotaExceededException struct { Message *string ErrorCodeOverride *string ResourceId *string ResourceType *string ServiceCode *string QuotaCode *string // contains filtered or unexported fields }
Request would cause a service quota to be exceeded.
func (*ServiceQuotaExceededException) Error ¶
func (e *ServiceQuotaExceededException) Error() string
func (*ServiceQuotaExceededException) ErrorCode ¶
func (e *ServiceQuotaExceededException) ErrorCode() string
func (*ServiceQuotaExceededException) ErrorFault ¶
func (e *ServiceQuotaExceededException) ErrorFault() smithy.ErrorFault
func (*ServiceQuotaExceededException) ErrorMessage ¶
func (e *ServiceQuotaExceededException) ErrorMessage() string
type Source ¶ added in v1.20.0
type Source interface {
// contains filtered or unexported methods
}
A representation of a source that a scraper can discover and collect metrics from.
The following types satisfy this interface:
SourceMemberEksConfiguration
Example (OutputUsage) ¶
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/amp/types" ) func main() { var union types.Source // type switches can be used to check the union value switch v := union.(type) { case *types.SourceMemberEksConfiguration: _ = v.Value // Value is types.EksConfiguration case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
Output:
type SourceMemberEksConfiguration ¶ added in v1.20.0
type SourceMemberEksConfiguration struct { Value EksConfiguration // contains filtered or unexported fields }
A representation of an EKS source.
type ThrottlingException ¶
type ThrottlingException struct { Message *string ErrorCodeOverride *string ServiceCode *string QuotaCode *string RetryAfterSeconds *int32 // contains filtered or unexported fields }
Request was denied due to request throttling.
func (*ThrottlingException) Error ¶
func (e *ThrottlingException) Error() string
func (*ThrottlingException) ErrorCode ¶
func (e *ThrottlingException) ErrorCode() string
func (*ThrottlingException) ErrorFault ¶
func (e *ThrottlingException) ErrorFault() smithy.ErrorFault
func (*ThrottlingException) ErrorMessage ¶
func (e *ThrottlingException) ErrorMessage() string
type UnknownUnionMember ¶ added in v1.20.0
type UnknownUnionMember struct { Tag string Value []byte // contains filtered or unexported fields }
UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.
type ValidationException ¶
type ValidationException struct { Message *string ErrorCodeOverride *string Reason ValidationExceptionReason FieldList []ValidationExceptionField // contains filtered or unexported fields }
The input fails to satisfy the constraints specified by an AWS service.
func (*ValidationException) Error ¶
func (e *ValidationException) Error() string
func (*ValidationException) ErrorCode ¶
func (e *ValidationException) ErrorCode() string
func (*ValidationException) ErrorFault ¶
func (e *ValidationException) ErrorFault() smithy.ErrorFault
func (*ValidationException) ErrorMessage ¶
func (e *ValidationException) ErrorMessage() string
type ValidationExceptionField ¶
type ValidationExceptionField struct { // Message describing why the field failed validation. // // This member is required. Message *string // The field name. // // This member is required. Name *string // contains filtered or unexported fields }
Stores information about a field passed inside a request that resulted in an exception.
type ValidationExceptionReason ¶
type ValidationExceptionReason string
const ( ValidationExceptionReasonUnknownOperation ValidationExceptionReason = "UNKNOWN_OPERATION" ValidationExceptionReasonCannotParse ValidationExceptionReason = "CANNOT_PARSE" ValidationExceptionReasonFieldValidationFailed ValidationExceptionReason = "FIELD_VALIDATION_FAILED" ValidationExceptionReasonOther ValidationExceptionReason = "OTHER" )
Enum values for ValidationExceptionReason
func (ValidationExceptionReason) Values ¶
func (ValidationExceptionReason) Values() []ValidationExceptionReason
Values returns all known values for ValidationExceptionReason. 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 WorkspaceDescription ¶
type WorkspaceDescription struct { // The Amazon Resource Name (ARN) of this workspace. // // This member is required. Arn *string // The time when the workspace was created. // // This member is required. CreatedAt *time.Time // The status of this workspace. // // This member is required. Status *WorkspaceStatus // Unique string identifying this workspace. // // This member is required. WorkspaceId *string // Alias of this workspace. Alias *string // The customer managed KMS key of this workspace. KmsKeyArn *string // Prometheus endpoint URI. PrometheusEndpoint *string // The tags of this workspace. Tags map[string]string // contains filtered or unexported fields }
Represents the properties of a workspace.
type WorkspaceStatus ¶
type WorkspaceStatus struct { // Status code of this workspace. // // This member is required. StatusCode WorkspaceStatusCode // contains filtered or unexported fields }
Represents the status of a workspace.
type WorkspaceStatusCode ¶
type WorkspaceStatusCode string
const ( // Workspace is being created. Deletion is disallowed until status is ACTIVE. WorkspaceStatusCodeCreating WorkspaceStatusCode = "CREATING" // Workspace has been created and is usable. WorkspaceStatusCodeActive WorkspaceStatusCode = "ACTIVE" // Workspace is being updated. Updates are allowed only when status is ACTIVE. WorkspaceStatusCodeUpdating WorkspaceStatusCode = "UPDATING" // Workspace is being deleted. Deletions are allowed only when status is ACTIVE. WorkspaceStatusCodeDeleting WorkspaceStatusCode = "DELETING" // Workspace creation failed. Refer to WorkspaceStatus.failureReason for more // details. WorkspaceStatusCodeCreationFailed WorkspaceStatusCode = "CREATION_FAILED" )
Enum values for WorkspaceStatusCode
func (WorkspaceStatusCode) Values ¶
func (WorkspaceStatusCode) Values() []WorkspaceStatusCode
Values returns all known values for WorkspaceStatusCode. 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 WorkspaceSummary ¶
type WorkspaceSummary struct { // The AmazonResourceName of this workspace. // // This member is required. Arn *string // The time when the workspace was created. // // This member is required. CreatedAt *time.Time // The status of this workspace. // // This member is required. Status *WorkspaceStatus // Unique string identifying this workspace. // // This member is required. WorkspaceId *string // Alias of this workspace. Alias *string // Customer managed KMS key ARN for this workspace KmsKeyArn *string // The tags of this workspace. Tags map[string]string // contains filtered or unexported fields }
Represents a summary of the properties of a workspace.