func AlertManagerDefinitionStatusCode_Values() []string
AlertManagerDefinitionStatusCode_Values returns all elements of the AlertManagerDefinitionStatusCode enum
func LoggingConfigurationStatusCode_Values() []string
LoggingConfigurationStatusCode_Values returns all elements of the LoggingConfigurationStatusCode enum
func RuleGroupsNamespaceStatusCode_Values() []string
RuleGroupsNamespaceStatusCode_Values returns all elements of the RuleGroupsNamespaceStatusCode enum
func ScraperStatusCode_Values() []string
ScraperStatusCode_Values returns all elements of the ScraperStatusCode enum
func ValidationExceptionReason_Values() []string
ValidationExceptionReason_Values returns all elements of the ValidationExceptionReason enum
func WorkspaceStatusCode_Values() []string
WorkspaceStatusCode_Values returns all elements of the WorkspaceStatusCode enum
type AccessDeniedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
You do not have sufficient access to perform this action.
func (s *AccessDeniedException) Code() string
Code returns the exception type name.
func (s *AccessDeniedException) Error() string
func (s AccessDeniedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AccessDeniedException) Message() string
Message returns the exception's message.
func (s *AccessDeniedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *AccessDeniedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *AccessDeniedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s AccessDeniedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AlertManagerDefinitionDescription struct { // The date and time that the alert manager definition was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // The actual alert manager definition. // // For details about the alert manager definition, see AlertManagedDefinitionData // (https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-AlertManagerDefinitionData.html). // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" type:"blob" required:"true"` // The date and time that the alert manager definition was most recently changed. // // ModifiedAt is a required field ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" required:"true"` // A structure that displays the current status of the alert manager definition.. // // Status is a required field Status *AlertManagerDefinitionStatus `locationName:"status" type:"structure" required:"true"` // contains filtered or unexported fields }
The details of an alert manager definition.
func (s AlertManagerDefinitionDescription) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AlertManagerDefinitionDescription) SetCreatedAt(v time.Time) *AlertManagerDefinitionDescription
SetCreatedAt sets the CreatedAt field's value.
func (s *AlertManagerDefinitionDescription) SetData(v []byte) *AlertManagerDefinitionDescription
SetData sets the Data field's value.
func (s *AlertManagerDefinitionDescription) SetModifiedAt(v time.Time) *AlertManagerDefinitionDescription
SetModifiedAt sets the ModifiedAt field's value.
func (s *AlertManagerDefinitionDescription) SetStatus(v *AlertManagerDefinitionStatus) *AlertManagerDefinitionDescription
SetStatus sets the Status field's value.
func (s AlertManagerDefinitionDescription) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AlertManagerDefinitionStatus struct { // The current status of the alert manager. // // StatusCode is a required field StatusCode *string `locationName:"statusCode" type:"string" required:"true" enum:"AlertManagerDefinitionStatusCode"` // If there is a failure, the reason for the failure. StatusReason *string `locationName:"statusReason" type:"string"` // contains filtered or unexported fields }
The status of the alert manager.
func (s AlertManagerDefinitionStatus) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AlertManagerDefinitionStatus) SetStatusCode(v string) *AlertManagerDefinitionStatus
SetStatusCode sets the StatusCode field's value.
func (s *AlertManagerDefinitionStatus) SetStatusReason(v string) *AlertManagerDefinitionStatus
SetStatusReason sets the StatusReason field's value.
func (s AlertManagerDefinitionStatus) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type AmpConfiguration struct { // ARN of the Amazon Managed Service for Prometheus workspace. // // WorkspaceArn is a required field WorkspaceArn *string `locationName:"workspaceArn" type:"string" required:"true"` // contains filtered or unexported fields }
The AmpConfiguration structure defines the Amazon Managed Service for Prometheus instance a scraper should send metrics to.
func (s AmpConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AmpConfiguration) SetWorkspaceArn(v string) *AmpConfiguration
SetWorkspaceArn sets the WorkspaceArn field's value.
func (s AmpConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *AmpConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ConflictException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // Identifier of the resource affected. // // ResourceId is a required field ResourceId *string `locationName:"resourceId" type:"string" required:"true"` // Type of the resource affected. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" type:"string" required:"true"` // contains filtered or unexported fields }
The request would cause an inconsistent state.
func (s *ConflictException) Code() string
Code returns the exception type name.
func (s *ConflictException) Error() string
func (s ConflictException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ConflictException) Message() string
Message returns the exception's message.
func (s *ConflictException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ConflictException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ConflictException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ConflictException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateAlertManagerDefinitionInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The alert manager definition to add. A base64-encoded version of the YAML // alert manager definition file. // // For details about the alert manager definition, see AlertManagedDefinitionData // (https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-AlertManagerDefinitionData.html). // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" type:"blob" required:"true"` // The ID of the workspace to add the alert manager definition to. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a CreateAlertManagerDefinition operation.
func (s CreateAlertManagerDefinitionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAlertManagerDefinitionInput) SetClientToken(v string) *CreateAlertManagerDefinitionInput
SetClientToken sets the ClientToken field's value.
func (s *CreateAlertManagerDefinitionInput) SetData(v []byte) *CreateAlertManagerDefinitionInput
SetData sets the Data field's value.
func (s *CreateAlertManagerDefinitionInput) SetWorkspaceId(v string) *CreateAlertManagerDefinitionInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s CreateAlertManagerDefinitionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAlertManagerDefinitionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateAlertManagerDefinitionOutput struct { // A structure that displays the current status of the alert manager definition. // // Status is a required field Status *AlertManagerDefinitionStatus `locationName:"status" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a CreateAlertManagerDefinition operation.
func (s CreateAlertManagerDefinitionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateAlertManagerDefinitionOutput) SetStatus(v *AlertManagerDefinitionStatus) *CreateAlertManagerDefinitionOutput
SetStatus sets the Status field's value.
func (s CreateAlertManagerDefinitionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateLoggingConfigurationInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ARN of the CloudWatch log group to which the vended log data will be // published. This log group must exist prior to calling this API. // // LogGroupArn is a required field LogGroupArn *string `locationName:"logGroupArn" type:"string" required:"true"` // The ID of the workspace to create the logging configuration for. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a CreateLoggingConfiguration operation.
func (s CreateLoggingConfigurationInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateLoggingConfigurationInput) SetClientToken(v string) *CreateLoggingConfigurationInput
SetClientToken sets the ClientToken field's value.
func (s *CreateLoggingConfigurationInput) SetLogGroupArn(v string) *CreateLoggingConfigurationInput
SetLogGroupArn sets the LogGroupArn field's value.
func (s *CreateLoggingConfigurationInput) SetWorkspaceId(v string) *CreateLoggingConfigurationInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s CreateLoggingConfigurationInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateLoggingConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateLoggingConfigurationOutput struct { // A structure that displays the current status of the logging configuration. // // Status is a required field Status *LoggingConfigurationStatus `locationName:"status" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a CreateLoggingConfiguration operation.
func (s CreateLoggingConfigurationOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateLoggingConfigurationOutput) SetStatus(v *LoggingConfigurationStatus) *CreateLoggingConfigurationOutput
SetStatus sets the Status field's value.
func (s CreateLoggingConfigurationOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateRuleGroupsNamespaceInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The rules file to use in the new namespace. // // Contains the base64-encoded version of the YAML rules file. // // For details about the rule groups namespace structure, see RuleGroupsNamespaceData // (https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-RuleGroupsNamespaceData.html). // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" type:"blob" required:"true"` // The name for the new rule groups namespace. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The list of tag keys and values to associate with the rule groups namespace. Tags map[string]*string `locationName:"tags" type:"map"` // The ID of the workspace to add the rule groups namespace. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a CreateRuleGroupsNamespace operation.
func (s CreateRuleGroupsNamespaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateRuleGroupsNamespaceInput) SetClientToken(v string) *CreateRuleGroupsNamespaceInput
SetClientToken sets the ClientToken field's value.
func (s *CreateRuleGroupsNamespaceInput) SetData(v []byte) *CreateRuleGroupsNamespaceInput
SetData sets the Data field's value.
func (s *CreateRuleGroupsNamespaceInput) SetName(v string) *CreateRuleGroupsNamespaceInput
SetName sets the Name field's value.
func (s *CreateRuleGroupsNamespaceInput) SetTags(v map[string]*string) *CreateRuleGroupsNamespaceInput
SetTags sets the Tags field's value.
func (s *CreateRuleGroupsNamespaceInput) SetWorkspaceId(v string) *CreateRuleGroupsNamespaceInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s CreateRuleGroupsNamespaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateRuleGroupsNamespaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateRuleGroupsNamespaceOutput struct { // The Amazon Resource Name (ARN) of the new rule groups namespace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The name of the new rule groups namespace. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // A structure that returns the current status of the rule groups namespace. // // Status is a required field Status *RuleGroupsNamespaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the namespace. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
Represents the output of a CreateRuleGroupsNamespace operation.
func (s CreateRuleGroupsNamespaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateRuleGroupsNamespaceOutput) SetArn(v string) *CreateRuleGroupsNamespaceOutput
SetArn sets the Arn field's value.
func (s *CreateRuleGroupsNamespaceOutput) SetName(v string) *CreateRuleGroupsNamespaceOutput
SetName sets the Name field's value.
func (s *CreateRuleGroupsNamespaceOutput) SetStatus(v *RuleGroupsNamespaceStatus) *CreateRuleGroupsNamespaceOutput
SetStatus sets the Status field's value.
func (s *CreateRuleGroupsNamespaceOutput) SetTags(v map[string]*string) *CreateRuleGroupsNamespaceOutput
SetTags sets the Tags field's value.
func (s CreateRuleGroupsNamespaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateScraperInput struct { // (optional) a name to associate with the scraper. This is for your use, and // does not need to be unique. Alias *string `locationName:"alias" min:"1" type:"string"` // (Optional) A unique, case-sensitive identifier that you can provide to ensure // the idempotency of the request. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The Amazon Managed Service for Prometheus workspace to send metrics to. // // Destination is a required field Destination *Destination `locationName:"destination" type:"structure" required:"true"` // The configuration file to use in the new scraper. For more information, see // Scraper configuration (prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration) // in the Amazon Managed Service for Prometheus User Guide. // // ScrapeConfiguration is a required field ScrapeConfiguration *ScrapeConfiguration `locationName:"scrapeConfiguration" type:"structure" required:"true"` // The Amazon EKS cluster from which the scraper will collect metrics. // // Source is a required field Source *Source `locationName:"source" type:"structure" required:"true"` // (Optional) The list of tag keys and values to associate with the scraper. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
Represents the input of a CreateScraper operation.
func (s CreateScraperInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateScraperInput) SetAlias(v string) *CreateScraperInput
SetAlias sets the Alias field's value.
func (s *CreateScraperInput) SetClientToken(v string) *CreateScraperInput
SetClientToken sets the ClientToken field's value.
func (s *CreateScraperInput) SetDestination(v *Destination) *CreateScraperInput
SetDestination sets the Destination field's value.
func (s *CreateScraperInput) SetScrapeConfiguration(v *ScrapeConfiguration) *CreateScraperInput
SetScrapeConfiguration sets the ScrapeConfiguration field's value.
func (s *CreateScraperInput) SetSource(v *Source) *CreateScraperInput
SetSource sets the Source field's value.
func (s *CreateScraperInput) SetTags(v map[string]*string) *CreateScraperInput
SetTags sets the Tags field's value.
func (s CreateScraperInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateScraperInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateScraperOutput struct { // The Amazon Resource Name (ARN) of the new scraper. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The ID of the new scraper. // // ScraperId is a required field ScraperId *string `locationName:"scraperId" min:"1" type:"string" required:"true"` // A structure that displays the current status of the scraper. // // Status is a required field Status *ScraperStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the scraper. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
Represents the output of a CreateScraper operation.
func (s CreateScraperOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateScraperOutput) SetArn(v string) *CreateScraperOutput
SetArn sets the Arn field's value.
func (s *CreateScraperOutput) SetScraperId(v string) *CreateScraperOutput
SetScraperId sets the ScraperId field's value.
func (s *CreateScraperOutput) SetStatus(v *ScraperStatus) *CreateScraperOutput
SetStatus sets the Status field's value.
func (s *CreateScraperOutput) SetTags(v map[string]*string) *CreateScraperOutput
SetTags sets the Tags field's value.
func (s CreateScraperOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CreateWorkspaceInput struct { // An alias that you assign to this workspace to help you identify it. It does // not need to be unique. // // Blank spaces at the beginning or end of the alias that you specify will be // trimmed from the value used. Alias *string `locationName:"alias" min:"1" type:"string"` // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // (optional) The ARN for a customer managed KMS key to use for encrypting data // within your workspace. For more information about using your own key in your // workspace, see Encryption at rest (https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html) // in the Amazon Managed Service for Prometheus User Guide. KmsKeyArn *string `locationName:"kmsKeyArn" min:"20" type:"string"` // The list of tag keys and values to associate with the workspace. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
Represents the input of a CreateWorkspace operation.
func (s CreateWorkspaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateWorkspaceInput) SetAlias(v string) *CreateWorkspaceInput
SetAlias sets the Alias field's value.
func (s *CreateWorkspaceInput) SetClientToken(v string) *CreateWorkspaceInput
SetClientToken sets the ClientToken field's value.
func (s *CreateWorkspaceInput) SetKmsKeyArn(v string) *CreateWorkspaceInput
SetKmsKeyArn sets the KmsKeyArn field's value.
func (s *CreateWorkspaceInput) SetTags(v map[string]*string) *CreateWorkspaceInput
SetTags sets the Tags field's value.
func (s CreateWorkspaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateWorkspaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type CreateWorkspaceOutput struct { // The ARN for the new workspace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // (optional) If the workspace was created with a customer managed KMS key, // the ARN for the key used. KmsKeyArn *string `locationName:"kmsKeyArn" min:"20" type:"string"` // The current status of the new workspace. Immediately after you create the // workspace, the status is usually CREATING. // // Status is a required field Status *WorkspaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the workspace. Tags map[string]*string `locationName:"tags" type:"map"` // The unique ID for the new workspace. // // WorkspaceId is a required field WorkspaceId *string `locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the output of a CreateWorkspace operation.
func (s CreateWorkspaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *CreateWorkspaceOutput) SetArn(v string) *CreateWorkspaceOutput
SetArn sets the Arn field's value.
func (s *CreateWorkspaceOutput) SetKmsKeyArn(v string) *CreateWorkspaceOutput
SetKmsKeyArn sets the KmsKeyArn field's value.
func (s *CreateWorkspaceOutput) SetStatus(v *WorkspaceStatus) *CreateWorkspaceOutput
SetStatus sets the Status field's value.
func (s *CreateWorkspaceOutput) SetTags(v map[string]*string) *CreateWorkspaceOutput
SetTags sets the Tags field's value.
func (s *CreateWorkspaceOutput) SetWorkspaceId(v string) *CreateWorkspaceOutput
SetWorkspaceId sets the WorkspaceId field's value.
func (s CreateWorkspaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteAlertManagerDefinitionInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `location:"querystring" locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ID of the workspace to delete the alert manager definition from. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DeleteAlertManagerDefinition operation.
func (s DeleteAlertManagerDefinitionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteAlertManagerDefinitionInput) SetClientToken(v string) *DeleteAlertManagerDefinitionInput
SetClientToken sets the ClientToken field's value.
func (s *DeleteAlertManagerDefinitionInput) SetWorkspaceId(v string) *DeleteAlertManagerDefinitionInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DeleteAlertManagerDefinitionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteAlertManagerDefinitionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAlertManagerDefinitionOutput struct {
// contains filtered or unexported fields
}
func (s DeleteAlertManagerDefinitionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteAlertManagerDefinitionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteLoggingConfigurationInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `location:"querystring" locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ID of the workspace containing the logging configuration to delete. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DeleteLoggingConfiguration operation.
func (s DeleteLoggingConfigurationInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteLoggingConfigurationInput) SetClientToken(v string) *DeleteLoggingConfigurationInput
SetClientToken sets the ClientToken field's value.
func (s *DeleteLoggingConfigurationInput) SetWorkspaceId(v string) *DeleteLoggingConfigurationInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DeleteLoggingConfigurationInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteLoggingConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteLoggingConfigurationOutput struct {
// contains filtered or unexported fields
}
func (s DeleteLoggingConfigurationOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteLoggingConfigurationOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteRuleGroupsNamespaceInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `location:"querystring" locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The name of the rule groups namespace to delete. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` // The ID of the workspace containing the rule groups namespace and definition // to delete. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DeleteRuleGroupsNamespace operation.
func (s DeleteRuleGroupsNamespaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteRuleGroupsNamespaceInput) SetClientToken(v string) *DeleteRuleGroupsNamespaceInput
SetClientToken sets the ClientToken field's value.
func (s *DeleteRuleGroupsNamespaceInput) SetName(v string) *DeleteRuleGroupsNamespaceInput
SetName sets the Name field's value.
func (s *DeleteRuleGroupsNamespaceInput) SetWorkspaceId(v string) *DeleteRuleGroupsNamespaceInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DeleteRuleGroupsNamespaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteRuleGroupsNamespaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteRuleGroupsNamespaceOutput struct {
// contains filtered or unexported fields
}
func (s DeleteRuleGroupsNamespaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteRuleGroupsNamespaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteScraperInput struct { // (Optional) A unique, case-sensitive identifier that you can provide to ensure // the idempotency of the request. ClientToken *string `location:"querystring" locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ID of the scraper to delete. // // ScraperId is a required field ScraperId *string `location:"uri" locationName:"scraperId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DeleteScraper operation.
func (s DeleteScraperInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteScraperInput) SetClientToken(v string) *DeleteScraperInput
SetClientToken sets the ClientToken field's value.
func (s *DeleteScraperInput) SetScraperId(v string) *DeleteScraperInput
SetScraperId sets the ScraperId field's value.
func (s DeleteScraperInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteScraperInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteScraperOutput struct { // The ID of the scraper to delete. // // ScraperId is a required field ScraperId *string `locationName:"scraperId" min:"1" type:"string" required:"true"` // The current status of the scraper. // // Status is a required field Status *ScraperStatus `locationName:"status" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a DeleteScraper operation.
func (s DeleteScraperOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteScraperOutput) SetScraperId(v string) *DeleteScraperOutput
SetScraperId sets the ScraperId field's value.
func (s *DeleteScraperOutput) SetStatus(v *ScraperStatus) *DeleteScraperOutput
SetStatus sets the Status field's value.
func (s DeleteScraperOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteWorkspaceInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `location:"querystring" locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ID of the workspace to delete. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DeleteWorkspace operation.
func (s DeleteWorkspaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteWorkspaceInput) SetClientToken(v string) *DeleteWorkspaceInput
SetClientToken sets the ClientToken field's value.
func (s *DeleteWorkspaceInput) SetWorkspaceId(v string) *DeleteWorkspaceInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DeleteWorkspaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DeleteWorkspaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteWorkspaceOutput struct {
// contains filtered or unexported fields
}
func (s DeleteWorkspaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s DeleteWorkspaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeAlertManagerDefinitionInput struct { // The ID of the workspace to retrieve the alert manager definition from. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DescribeAlertManagerDefinition operation.
func (s DescribeAlertManagerDefinitionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeAlertManagerDefinitionInput) SetWorkspaceId(v string) *DescribeAlertManagerDefinitionInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DescribeAlertManagerDefinitionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeAlertManagerDefinitionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeAlertManagerDefinitionOutput struct { // The alert manager definition. // // AlertManagerDefinition is a required field AlertManagerDefinition *AlertManagerDefinitionDescription `locationName:"alertManagerDefinition" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a DescribeAlertManagerDefinition operation.
func (s DescribeAlertManagerDefinitionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeAlertManagerDefinitionOutput) SetAlertManagerDefinition(v *AlertManagerDefinitionDescription) *DescribeAlertManagerDefinitionOutput
SetAlertManagerDefinition sets the AlertManagerDefinition field's value.
func (s DescribeAlertManagerDefinitionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeLoggingConfigurationInput struct { // The ID of the workspace to describe the logging configuration for. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DescribeLoggingConfiguration operation.
func (s DescribeLoggingConfigurationInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeLoggingConfigurationInput) SetWorkspaceId(v string) *DescribeLoggingConfigurationInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DescribeLoggingConfigurationInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeLoggingConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeLoggingConfigurationOutput struct { // A structure that displays the information about the logging configuration. // // LoggingConfiguration is a required field LoggingConfiguration *LoggingConfigurationMetadata `locationName:"loggingConfiguration" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a DescribeLoggingConfiguration operation.
func (s DescribeLoggingConfigurationOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeLoggingConfigurationOutput) SetLoggingConfiguration(v *LoggingConfigurationMetadata) *DescribeLoggingConfigurationOutput
SetLoggingConfiguration sets the LoggingConfiguration field's value.
func (s DescribeLoggingConfigurationOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeRuleGroupsNamespaceInput struct { // The name of the rule groups namespace that you want information for. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` // The ID of the workspace containing the rule groups namespace. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DescribeRuleGroupsNamespace operation.
func (s DescribeRuleGroupsNamespaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeRuleGroupsNamespaceInput) SetName(v string) *DescribeRuleGroupsNamespaceInput
SetName sets the Name field's value.
func (s *DescribeRuleGroupsNamespaceInput) SetWorkspaceId(v string) *DescribeRuleGroupsNamespaceInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DescribeRuleGroupsNamespaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeRuleGroupsNamespaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeRuleGroupsNamespaceOutput struct { // The information about the rule groups namespace. // // RuleGroupsNamespace is a required field RuleGroupsNamespace *RuleGroupsNamespaceDescription `locationName:"ruleGroupsNamespace" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a DescribeRuleGroupsNamespace operation.
func (s DescribeRuleGroupsNamespaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeRuleGroupsNamespaceOutput) SetRuleGroupsNamespace(v *RuleGroupsNamespaceDescription) *DescribeRuleGroupsNamespaceOutput
SetRuleGroupsNamespace sets the RuleGroupsNamespace field's value.
func (s DescribeRuleGroupsNamespaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeScraperInput struct { // The ID of the scraper to describe. // // ScraperId is a required field ScraperId *string `location:"uri" locationName:"scraperId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DescribeScraper operation.
func (s DescribeScraperInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeScraperInput) SetScraperId(v string) *DescribeScraperInput
SetScraperId sets the ScraperId field's value.
func (s DescribeScraperInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeScraperInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeScraperOutput struct { // Contains details about the scraper. // // Scraper is a required field Scraper *ScraperDescription `locationName:"scraper" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a DescribeScraper operation.
func (s DescribeScraperOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeScraperOutput) SetScraper(v *ScraperDescription) *DescribeScraperOutput
SetScraper sets the Scraper field's value.
func (s DescribeScraperOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DescribeWorkspaceInput struct { // The ID of the workspace to describe. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a DescribeWorkspace operation.
func (s DescribeWorkspaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeWorkspaceInput) SetWorkspaceId(v string) *DescribeWorkspaceInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s DescribeWorkspaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeWorkspaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DescribeWorkspaceOutput struct { // A structure that contains details about the workspace. // // Workspace is a required field Workspace *WorkspaceDescription `locationName:"workspace" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a DescribeWorkspace operation.
func (s DescribeWorkspaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *DescribeWorkspaceOutput) SetWorkspace(v *WorkspaceDescription) *DescribeWorkspaceOutput
SetWorkspace sets the Workspace field's value.
func (s DescribeWorkspaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Destination struct { // The Amazon Managed Service for Prometheusworkspace to send metrics to. AmpConfiguration *AmpConfiguration `locationName:"ampConfiguration" type:"structure"` // contains filtered or unexported fields }
Where to send the metrics from a scraper.
func (s Destination) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Destination) SetAmpConfiguration(v *AmpConfiguration) *Destination
SetAmpConfiguration sets the AmpConfiguration field's value.
func (s Destination) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Destination) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type EksConfiguration struct { // ARN of the Amazon EKS cluster. // // ClusterArn is a required field ClusterArn *string `locationName:"clusterArn" type:"string" required:"true"` // A list of the security group IDs for the Amazon EKS cluster VPC configuration. SecurityGroupIds []*string `locationName:"securityGroupIds" min:"1" type:"list"` // A list of subnet IDs for the Amazon EKS cluster VPC configuration. // // SubnetIds is a required field SubnetIds []*string `locationName:"subnetIds" min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
The EksConfiguration structure describes the connection to the Amazon EKS cluster from which a scraper collects metrics.
func (s EksConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EksConfiguration) SetClusterArn(v string) *EksConfiguration
SetClusterArn sets the ClusterArn field's value.
func (s *EksConfiguration) SetSecurityGroupIds(v []*string) *EksConfiguration
SetSecurityGroupIds sets the SecurityGroupIds field's value.
func (s *EksConfiguration) SetSubnetIds(v []*string) *EksConfiguration
SetSubnetIds sets the SubnetIds field's value.
func (s EksConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *EksConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetDefaultScraperConfigurationInput struct {
// contains filtered or unexported fields
}
Represents the input of a GetDefaultScraperConfiguration operation.
func (s GetDefaultScraperConfigurationInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s GetDefaultScraperConfigurationInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GetDefaultScraperConfigurationOutput struct { // The configuration file. Base 64 encoded. For more information, see Scraper // configuration (https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration)in // the Amazon Managed Service for Prometheus User Guide. // Configuration is automatically base64 encoded/decoded by the SDK. // // Configuration is a required field Configuration []byte `locationName:"configuration" type:"blob" required:"true"` // contains filtered or unexported fields }
Represents the output of a GetDefaultScraperConfiguration operation.
func (s GetDefaultScraperConfigurationOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *GetDefaultScraperConfigurationOutput) SetConfiguration(v []byte) *GetDefaultScraperConfigurationOutput
SetConfiguration sets the Configuration field's value.
func (s GetDefaultScraperConfigurationOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InternalServerException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // Advice to clients on when the call can be safely retried. RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` // contains filtered or unexported fields }
An unexpected error occurred during the processing of the request.
func (s *InternalServerException) Code() string
Code returns the exception type name.
func (s *InternalServerException) Error() string
func (s InternalServerException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *InternalServerException) Message() string
Message returns the exception's message.
func (s *InternalServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *InternalServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *InternalServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s InternalServerException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListRuleGroupsNamespacesInput struct { // The maximum number of results to return. The default is 100. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // Use this parameter to filter the rule groups namespaces that are returned. // Only the namespaces with names that begin with the value that you specify // are returned. Name *string `location:"querystring" locationName:"name" min:"1" type:"string"` // The token for the next set of items to return. You receive this token from // a previous call, and use it to get the next page of results. The other parameters // must be the same as the initial call. // // For example, if your initial request has maxResults of 10, and there are // 12 rule groups namespaces to return, then your initial request will return // 10 and a nextToken. Using the next token in a subsequent call will return // the remaining 2 namespaces. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` // The ID of the workspace containing the rule groups namespaces. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a ListRuleGroupsNamespaces operation.
func (s ListRuleGroupsNamespacesInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListRuleGroupsNamespacesInput) SetMaxResults(v int64) *ListRuleGroupsNamespacesInput
SetMaxResults sets the MaxResults field's value.
func (s *ListRuleGroupsNamespacesInput) SetName(v string) *ListRuleGroupsNamespacesInput
SetName sets the Name field's value.
func (s *ListRuleGroupsNamespacesInput) SetNextToken(v string) *ListRuleGroupsNamespacesInput
SetNextToken sets the NextToken field's value.
func (s *ListRuleGroupsNamespacesInput) SetWorkspaceId(v string) *ListRuleGroupsNamespacesInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s ListRuleGroupsNamespacesInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListRuleGroupsNamespacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListRuleGroupsNamespacesOutput struct { // A token indicating that there are more results to retrieve. You can use this // token as part of your next ListRuleGroupsNamespaces request to retrieve those // results. NextToken *string `locationName:"nextToken" type:"string"` // The returned list of rule groups namespaces. // // RuleGroupsNamespaces is a required field RuleGroupsNamespaces []*RuleGroupsNamespaceSummary `locationName:"ruleGroupsNamespaces" type:"list" required:"true"` // contains filtered or unexported fields }
Represents the output of a ListRuleGroupsNamespaces operation.
func (s ListRuleGroupsNamespacesOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListRuleGroupsNamespacesOutput) SetNextToken(v string) *ListRuleGroupsNamespacesOutput
SetNextToken sets the NextToken field's value.
func (s *ListRuleGroupsNamespacesOutput) SetRuleGroupsNamespaces(v []*RuleGroupsNamespaceSummary) *ListRuleGroupsNamespacesOutput
SetRuleGroupsNamespaces sets the RuleGroupsNamespaces field's value.
func (s ListRuleGroupsNamespacesOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListScrapersInput struct { // (Optional) A list of key-value pairs to filter the list of scrapers returned. // Keys include status, sourceArn, destinationArn, and alias. // // Filters on the same key are OR'd together, and filters on different keys // are AND'd together. For example, status=ACTIVE&status=CREATING&alias=Test, // will return all scrapers that have the alias Test, and are either in status // ACTIVE or CREATING. // // To find all active scrapers that are sending metrics to a specific Amazon // Managed Service for Prometheus workspace, you would use the ARN of the workspace // in a query: // // status=ACTIVE&destinationArn=arn:aws:aps:us-east-1:123456789012:workspace/ws-example1-1234-abcd-56ef-123456789012 // // If this is included, it filters the results to only the scrapers that match // the filter. Filters map[string][]*string `location:"querystring" locationName:"filters" min:"1" type:"map"` // Optional) The maximum number of scrapers to return in one ListScrapers operation. // The range is 1-1000. // // If you omit this parameter, the default of 100 is used. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // (Optional) The token for the next set of items to return. (You received this // token from a previous call.) NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
Represents the input of a ListScrapers operation.
func (s ListScrapersInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListScrapersInput) SetFilters(v map[string][]*string) *ListScrapersInput
SetFilters sets the Filters field's value.
func (s *ListScrapersInput) SetMaxResults(v int64) *ListScrapersInput
SetMaxResults sets the MaxResults field's value.
func (s *ListScrapersInput) SetNextToken(v string) *ListScrapersInput
SetNextToken sets the NextToken field's value.
func (s ListScrapersInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListScrapersInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListScrapersOutput struct { // A token indicating that there are more results to retrieve. You can use this // token as part of your next ListScrapers operation to retrieve those results. NextToken *string `locationName:"nextToken" type:"string"` // A list of ScraperSummary structures giving information about scrapers in // the account that match the filters provided. // // Scrapers is a required field Scrapers []*ScraperSummary `locationName:"scrapers" type:"list" required:"true"` // contains filtered or unexported fields }
Represents the output of a ListScrapers operation.
func (s ListScrapersOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListScrapersOutput) SetNextToken(v string) *ListScrapersOutput
SetNextToken sets the NextToken field's value.
func (s *ListScrapersOutput) SetScrapers(v []*ScraperSummary) *ListScrapersOutput
SetScrapers sets the Scrapers field's value.
func (s ListScrapersOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListTagsForResourceInput struct { // The ARN of the resource to list tages for. Must be a workspace or rule groups // namespace resource. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // contains filtered or unexported fields }
func (s ListTagsForResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s ListTagsForResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListTagsForResourceOutput struct { // The list of tag keys and values associated with the resource. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
func (s ListTagsForResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput
SetTags sets the Tags field's value.
func (s ListTagsForResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ListWorkspacesInput struct { // If this is included, it filters the results to only the workspaces with names // that start with the value that you specify here. // // Amazon Managed Service for Prometheus will automatically strip any blank // spaces from the beginning and end of the alias that you specify. Alias *string `location:"querystring" locationName:"alias" min:"1" type:"string"` // The maximum number of workspaces to return per request. The default is 100. MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` // The token for the next set of items to return. You receive this token from // a previous call, and use it to get the next page of results. The other parameters // must be the same as the initial call. // // For example, if your initial request has maxResults of 10, and there are // 12 workspaces to return, then your initial request will return 10 and a nextToken. // Using the next token in a subsequent call will return the remaining 2 workspaces. NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` // contains filtered or unexported fields }
Represents the input of a ListWorkspaces operation.
func (s ListWorkspacesInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListWorkspacesInput) SetAlias(v string) *ListWorkspacesInput
SetAlias sets the Alias field's value.
func (s *ListWorkspacesInput) SetMaxResults(v int64) *ListWorkspacesInput
SetMaxResults sets the MaxResults field's value.
func (s *ListWorkspacesInput) SetNextToken(v string) *ListWorkspacesInput
SetNextToken sets the NextToken field's value.
func (s ListWorkspacesInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListWorkspacesInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ListWorkspacesOutput struct { // A token indicating that there are more results to retrieve. You can use this // token as part of your next ListWorkspaces request to retrieve those results. NextToken *string `locationName:"nextToken" type:"string"` // An array of WorkspaceSummary structures containing information about the // workspaces requested. // // Workspaces is a required field Workspaces []*WorkspaceSummary `locationName:"workspaces" type:"list" required:"true"` // contains filtered or unexported fields }
Represents the output of a ListWorkspaces operation.
func (s ListWorkspacesOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ListWorkspacesOutput) SetNextToken(v string) *ListWorkspacesOutput
SetNextToken sets the NextToken field's value.
func (s *ListWorkspacesOutput) SetWorkspaces(v []*WorkspaceSummary) *ListWorkspacesOutput
SetWorkspaces sets the Workspaces field's value.
func (s ListWorkspacesOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type LoggingConfigurationMetadata struct { // The date and time that the logging configuration was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // The ARN of the CloudWatch log group to which the vended log data will be // published. // // LogGroupArn is a required field LogGroupArn *string `locationName:"logGroupArn" type:"string" required:"true"` // The date and time that the logging configuration was most recently changed. // // ModifiedAt is a required field ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" required:"true"` // The current status of the logging configuration. // // Status is a required field Status *LoggingConfigurationStatus `locationName:"status" type:"structure" required:"true"` // The ID of the workspace the logging configuration is for. // // Workspace is a required field Workspace *string `locationName:"workspace" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Contains information about the logging configuration.
func (s LoggingConfigurationMetadata) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LoggingConfigurationMetadata) SetCreatedAt(v time.Time) *LoggingConfigurationMetadata
SetCreatedAt sets the CreatedAt field's value.
func (s *LoggingConfigurationMetadata) SetLogGroupArn(v string) *LoggingConfigurationMetadata
SetLogGroupArn sets the LogGroupArn field's value.
func (s *LoggingConfigurationMetadata) SetModifiedAt(v time.Time) *LoggingConfigurationMetadata
SetModifiedAt sets the ModifiedAt field's value.
func (s *LoggingConfigurationMetadata) SetStatus(v *LoggingConfigurationStatus) *LoggingConfigurationMetadata
SetStatus sets the Status field's value.
func (s *LoggingConfigurationMetadata) SetWorkspace(v string) *LoggingConfigurationMetadata
SetWorkspace sets the Workspace field's value.
func (s LoggingConfigurationMetadata) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type LoggingConfigurationStatus struct { // The current status of the logging configuration. // // StatusCode is a required field StatusCode *string `locationName:"statusCode" type:"string" required:"true" enum:"LoggingConfigurationStatusCode"` // If failed, the reason for the failure. StatusReason *string `locationName:"statusReason" type:"string"` // contains filtered or unexported fields }
The status of the logging configuration.
func (s LoggingConfigurationStatus) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *LoggingConfigurationStatus) SetStatusCode(v string) *LoggingConfigurationStatus
SetStatusCode sets the StatusCode field's value.
func (s *LoggingConfigurationStatus) SetStatusReason(v string) *LoggingConfigurationStatus
SetStatusReason sets the StatusReason field's value.
func (s LoggingConfigurationStatus) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PrometheusService struct { *client.Client }
PrometheusService provides the API operation methods for making requests to Amazon Prometheus Service. See this package's package overview docs for details on the service.
PrometheusService methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New(p client.ConfigProvider, cfgs ...*aws.Config) *PrometheusService
New creates a new instance of the PrometheusService client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a PrometheusService client from just a session. svc := prometheusservice.New(mySession) // Create a PrometheusService client with additional configuration svc := prometheusservice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (c *PrometheusService) CreateAlertManagerDefinition(input *CreateAlertManagerDefinitionInput) (*CreateAlertManagerDefinitionOutput, error)
CreateAlertManagerDefinition API operation for Amazon Prometheus Service.
The CreateAlertManagerDefinition operation creates the alert manager definition in a workspace. If a workspace already has an alert manager definition, don't use this operation to update it. Instead, use PutAlertManagerDefinition.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation CreateAlertManagerDefinition for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
func (c *PrometheusService) CreateAlertManagerDefinitionRequest(input *CreateAlertManagerDefinitionInput) (req *request.Request, output *CreateAlertManagerDefinitionOutput)
CreateAlertManagerDefinitionRequest generates a "aws/request.Request" representing the client's request for the CreateAlertManagerDefinition operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateAlertManagerDefinition for more information on using the CreateAlertManagerDefinition API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateAlertManagerDefinitionRequest method. req, resp := client.CreateAlertManagerDefinitionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) CreateAlertManagerDefinitionWithContext(ctx aws.Context, input *CreateAlertManagerDefinitionInput, opts ...request.Option) (*CreateAlertManagerDefinitionOutput, error)
CreateAlertManagerDefinitionWithContext is the same as CreateAlertManagerDefinition with the addition of the ability to pass a context and additional request options.
See CreateAlertManagerDefinition for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) CreateLoggingConfiguration(input *CreateLoggingConfigurationInput) (*CreateLoggingConfigurationOutput, error)
CreateLoggingConfiguration API operation for Amazon Prometheus Service.
The CreateLoggingConfiguration operation creates a logging configuration for the workspace. Use this operation to set the CloudWatch log group to which the logs will be published to.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation CreateLoggingConfiguration for usage and error information.
Returned Error Types:
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) CreateLoggingConfigurationRequest(input *CreateLoggingConfigurationInput) (req *request.Request, output *CreateLoggingConfigurationOutput)
CreateLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the CreateLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateLoggingConfiguration for more information on using the CreateLoggingConfiguration API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateLoggingConfigurationRequest method. req, resp := client.CreateLoggingConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) CreateLoggingConfigurationWithContext(ctx aws.Context, input *CreateLoggingConfigurationInput, opts ...request.Option) (*CreateLoggingConfigurationOutput, error)
CreateLoggingConfigurationWithContext is the same as CreateLoggingConfiguration with the addition of the ability to pass a context and additional request options.
See CreateLoggingConfiguration for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) CreateRuleGroupsNamespace(input *CreateRuleGroupsNamespaceInput) (*CreateRuleGroupsNamespaceOutput, error)
CreateRuleGroupsNamespace API operation for Amazon Prometheus Service.
The CreateRuleGroupsNamespace operation creates a rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
Use this operation only to create new rule groups namespaces. To update an existing rule groups namespace, use PutRuleGroupsNamespace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation CreateRuleGroupsNamespace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
func (c *PrometheusService) CreateRuleGroupsNamespaceRequest(input *CreateRuleGroupsNamespaceInput) (req *request.Request, output *CreateRuleGroupsNamespaceOutput)
CreateRuleGroupsNamespaceRequest generates a "aws/request.Request" representing the client's request for the CreateRuleGroupsNamespace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateRuleGroupsNamespace for more information on using the CreateRuleGroupsNamespace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateRuleGroupsNamespaceRequest method. req, resp := client.CreateRuleGroupsNamespaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) CreateRuleGroupsNamespaceWithContext(ctx aws.Context, input *CreateRuleGroupsNamespaceInput, opts ...request.Option) (*CreateRuleGroupsNamespaceOutput, error)
CreateRuleGroupsNamespaceWithContext is the same as CreateRuleGroupsNamespace with the addition of the ability to pass a context and additional request options.
See CreateRuleGroupsNamespace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) CreateScraper(input *CreateScraperInput) (*CreateScraperOutput, error)
CreateScraper API operation for Amazon Prometheus Service.
The CreateScraper operation creates a scraper to collect metrics. A scraper pulls metrics from Prometheus-compatible sources within an Amazon EKS cluster, and sends them to your Amazon Managed Service for Prometheus workspace. You can configure the scraper to control what metrics are collected, and what transformations are applied prior to sending them to your workspace.
If needed, an IAM role will be created for you that gives Amazon Managed Service for Prometheus access to the metrics in your cluster. For more information, see Using roles for scraping metrics from EKS (https://docs.aws.amazon.com/prometheus/latest/userguide/using-service-linked-roles.html#using-service-linked-roles-prom-scraper) in the Amazon Managed Service for Prometheus User Guide.
You cannot update a scraper. If you want to change the configuration of the scraper, create a new scraper and delete the old one.
The scrapeConfiguration parameter contains the base64-encoded version of the YAML configuration file.
For more information about collectors, including what metrics are collected, and how to configure the scraper, see Amazon Web Services managed collectors (https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector.html) in the Amazon Managed Service for Prometheus User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation CreateScraper for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateScraper
func (c *PrometheusService) CreateScraperRequest(input *CreateScraperInput) (req *request.Request, output *CreateScraperOutput)
CreateScraperRequest generates a "aws/request.Request" representing the client's request for the CreateScraper operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateScraper for more information on using the CreateScraper API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateScraperRequest method. req, resp := client.CreateScraperRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateScraper
func (c *PrometheusService) CreateScraperWithContext(ctx aws.Context, input *CreateScraperInput, opts ...request.Option) (*CreateScraperOutput, error)
CreateScraperWithContext is the same as CreateScraper with the addition of the ability to pass a context and additional request options.
See CreateScraper for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) CreateWorkspace(input *CreateWorkspaceInput) (*CreateWorkspaceOutput, error)
CreateWorkspace API operation for Amazon Prometheus Service.
Creates a Prometheus workspace. A workspace is a logical space dedicated to the storage and querying of Prometheus metrics. You can have one or more workspaces in each Region in your account.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation CreateWorkspace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace
func (c *PrometheusService) CreateWorkspaceRequest(input *CreateWorkspaceInput) (req *request.Request, output *CreateWorkspaceOutput)
CreateWorkspaceRequest generates a "aws/request.Request" representing the client's request for the CreateWorkspace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See CreateWorkspace for more information on using the CreateWorkspace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the CreateWorkspaceRequest method. req, resp := client.CreateWorkspaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/CreateWorkspace
func (c *PrometheusService) CreateWorkspaceWithContext(ctx aws.Context, input *CreateWorkspaceInput, opts ...request.Option) (*CreateWorkspaceOutput, error)
CreateWorkspaceWithContext is the same as CreateWorkspace with the addition of the ability to pass a context and additional request options.
See CreateWorkspace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DeleteAlertManagerDefinition(input *DeleteAlertManagerDefinitionInput) (*DeleteAlertManagerDefinitionOutput, error)
DeleteAlertManagerDefinition API operation for Amazon Prometheus Service.
Deletes the alert manager definition from a workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DeleteAlertManagerDefinition for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) DeleteAlertManagerDefinitionRequest(input *DeleteAlertManagerDefinitionInput) (req *request.Request, output *DeleteAlertManagerDefinitionOutput)
DeleteAlertManagerDefinitionRequest generates a "aws/request.Request" representing the client's request for the DeleteAlertManagerDefinition operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteAlertManagerDefinition for more information on using the DeleteAlertManagerDefinition API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteAlertManagerDefinitionRequest method. req, resp := client.DeleteAlertManagerDefinitionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) DeleteAlertManagerDefinitionWithContext(ctx aws.Context, input *DeleteAlertManagerDefinitionInput, opts ...request.Option) (*DeleteAlertManagerDefinitionOutput, error)
DeleteAlertManagerDefinitionWithContext is the same as DeleteAlertManagerDefinition with the addition of the ability to pass a context and additional request options.
See DeleteAlertManagerDefinition for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DeleteLoggingConfiguration(input *DeleteLoggingConfigurationInput) (*DeleteLoggingConfigurationOutput, error)
DeleteLoggingConfiguration API operation for Amazon Prometheus Service.
Deletes the logging configuration for a workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DeleteLoggingConfiguration for usage and error information.
Returned Error Types:
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) DeleteLoggingConfigurationRequest(input *DeleteLoggingConfigurationInput) (req *request.Request, output *DeleteLoggingConfigurationOutput)
DeleteLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the DeleteLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteLoggingConfiguration for more information on using the DeleteLoggingConfiguration API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteLoggingConfigurationRequest method. req, resp := client.DeleteLoggingConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) DeleteLoggingConfigurationWithContext(ctx aws.Context, input *DeleteLoggingConfigurationInput, opts ...request.Option) (*DeleteLoggingConfigurationOutput, error)
DeleteLoggingConfigurationWithContext is the same as DeleteLoggingConfiguration with the addition of the ability to pass a context and additional request options.
See DeleteLoggingConfiguration for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DeleteRuleGroupsNamespace(input *DeleteRuleGroupsNamespaceInput) (*DeleteRuleGroupsNamespaceOutput, error)
DeleteRuleGroupsNamespace API operation for Amazon Prometheus Service.
Deletes one rule groups namespace and its associated rule groups definition.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DeleteRuleGroupsNamespace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) DeleteRuleGroupsNamespaceRequest(input *DeleteRuleGroupsNamespaceInput) (req *request.Request, output *DeleteRuleGroupsNamespaceOutput)
DeleteRuleGroupsNamespaceRequest generates a "aws/request.Request" representing the client's request for the DeleteRuleGroupsNamespace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteRuleGroupsNamespace for more information on using the DeleteRuleGroupsNamespace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteRuleGroupsNamespaceRequest method. req, resp := client.DeleteRuleGroupsNamespaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) DeleteRuleGroupsNamespaceWithContext(ctx aws.Context, input *DeleteRuleGroupsNamespaceInput, opts ...request.Option) (*DeleteRuleGroupsNamespaceOutput, error)
DeleteRuleGroupsNamespaceWithContext is the same as DeleteRuleGroupsNamespace with the addition of the ability to pass a context and additional request options.
See DeleteRuleGroupsNamespace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DeleteScraper(input *DeleteScraperInput) (*DeleteScraperOutput, error)
DeleteScraper API operation for Amazon Prometheus Service.
The DeleteScraper operation deletes one scraper, and stops any metrics collection that the scraper performs.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DeleteScraper for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraper
func (c *PrometheusService) DeleteScraperRequest(input *DeleteScraperInput) (req *request.Request, output *DeleteScraperOutput)
DeleteScraperRequest generates a "aws/request.Request" representing the client's request for the DeleteScraper operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteScraper for more information on using the DeleteScraper API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteScraperRequest method. req, resp := client.DeleteScraperRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteScraper
func (c *PrometheusService) DeleteScraperWithContext(ctx aws.Context, input *DeleteScraperInput, opts ...request.Option) (*DeleteScraperOutput, error)
DeleteScraperWithContext is the same as DeleteScraper with the addition of the ability to pass a context and additional request options.
See DeleteScraper for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DeleteWorkspace(input *DeleteWorkspaceInput) (*DeleteWorkspaceOutput, error)
DeleteWorkspace API operation for Amazon Prometheus Service.
Deletes an existing workspace.
When you delete a workspace, the data that has been ingested into it is not immediately deleted. It will be permanently deleted within one month.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DeleteWorkspace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspace
func (c *PrometheusService) DeleteWorkspaceRequest(input *DeleteWorkspaceInput) (req *request.Request, output *DeleteWorkspaceOutput)
DeleteWorkspaceRequest generates a "aws/request.Request" representing the client's request for the DeleteWorkspace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteWorkspace for more information on using the DeleteWorkspace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteWorkspaceRequest method. req, resp := client.DeleteWorkspaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DeleteWorkspace
func (c *PrometheusService) DeleteWorkspaceWithContext(ctx aws.Context, input *DeleteWorkspaceInput, opts ...request.Option) (*DeleteWorkspaceOutput, error)
DeleteWorkspaceWithContext is the same as DeleteWorkspace with the addition of the ability to pass a context and additional request options.
See DeleteWorkspace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DescribeAlertManagerDefinition(input *DescribeAlertManagerDefinitionInput) (*DescribeAlertManagerDefinitionOutput, error)
DescribeAlertManagerDefinition API operation for Amazon Prometheus Service.
Retrieves the full information about the alert manager definition for a workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DescribeAlertManagerDefinition for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) DescribeAlertManagerDefinitionRequest(input *DescribeAlertManagerDefinitionInput) (req *request.Request, output *DescribeAlertManagerDefinitionOutput)
DescribeAlertManagerDefinitionRequest generates a "aws/request.Request" representing the client's request for the DescribeAlertManagerDefinition operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeAlertManagerDefinition for more information on using the DescribeAlertManagerDefinition API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeAlertManagerDefinitionRequest method. req, resp := client.DescribeAlertManagerDefinitionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) DescribeAlertManagerDefinitionWithContext(ctx aws.Context, input *DescribeAlertManagerDefinitionInput, opts ...request.Option) (*DescribeAlertManagerDefinitionOutput, error)
DescribeAlertManagerDefinitionWithContext is the same as DescribeAlertManagerDefinition with the addition of the ability to pass a context and additional request options.
See DescribeAlertManagerDefinition for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DescribeLoggingConfiguration(input *DescribeLoggingConfigurationInput) (*DescribeLoggingConfigurationOutput, error)
DescribeLoggingConfiguration API operation for Amazon Prometheus Service.
Returns complete information about the current logging configuration of the workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DescribeLoggingConfiguration for usage and error information.
Returned Error Types:
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) DescribeLoggingConfigurationRequest(input *DescribeLoggingConfigurationInput) (req *request.Request, output *DescribeLoggingConfigurationOutput)
DescribeLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the DescribeLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeLoggingConfiguration for more information on using the DescribeLoggingConfiguration API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeLoggingConfigurationRequest method. req, resp := client.DescribeLoggingConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) DescribeLoggingConfigurationWithContext(ctx aws.Context, input *DescribeLoggingConfigurationInput, opts ...request.Option) (*DescribeLoggingConfigurationOutput, error)
DescribeLoggingConfigurationWithContext is the same as DescribeLoggingConfiguration with the addition of the ability to pass a context and additional request options.
See DescribeLoggingConfiguration for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DescribeRuleGroupsNamespace(input *DescribeRuleGroupsNamespaceInput) (*DescribeRuleGroupsNamespaceOutput, error)
DescribeRuleGroupsNamespace API operation for Amazon Prometheus Service.
Returns complete information about one rule groups namespace. To retrieve a list of rule groups namespaces, use ListRuleGroupsNamespaces.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DescribeRuleGroupsNamespace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) DescribeRuleGroupsNamespaceRequest(input *DescribeRuleGroupsNamespaceInput) (req *request.Request, output *DescribeRuleGroupsNamespaceOutput)
DescribeRuleGroupsNamespaceRequest generates a "aws/request.Request" representing the client's request for the DescribeRuleGroupsNamespace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeRuleGroupsNamespace for more information on using the DescribeRuleGroupsNamespace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeRuleGroupsNamespaceRequest method. req, resp := client.DescribeRuleGroupsNamespaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) DescribeRuleGroupsNamespaceWithContext(ctx aws.Context, input *DescribeRuleGroupsNamespaceInput, opts ...request.Option) (*DescribeRuleGroupsNamespaceOutput, error)
DescribeRuleGroupsNamespaceWithContext is the same as DescribeRuleGroupsNamespace with the addition of the ability to pass a context and additional request options.
See DescribeRuleGroupsNamespace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DescribeScraper(input *DescribeScraperInput) (*DescribeScraperOutput, error)
DescribeScraper API operation for Amazon Prometheus Service.
The DescribeScraper operation displays information about an existing scraper.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DescribeScraper for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeScraper
func (c *PrometheusService) DescribeScraperRequest(input *DescribeScraperInput) (req *request.Request, output *DescribeScraperOutput)
DescribeScraperRequest generates a "aws/request.Request" representing the client's request for the DescribeScraper operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeScraper for more information on using the DescribeScraper API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeScraperRequest method. req, resp := client.DescribeScraperRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeScraper
func (c *PrometheusService) DescribeScraperWithContext(ctx aws.Context, input *DescribeScraperInput, opts ...request.Option) (*DescribeScraperOutput, error)
DescribeScraperWithContext is the same as DescribeScraper with the addition of the ability to pass a context and additional request options.
See DescribeScraper for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) DescribeWorkspace(input *DescribeWorkspaceInput) (*DescribeWorkspaceOutput, error)
DescribeWorkspace API operation for Amazon Prometheus Service.
Returns information about an existing workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation DescribeWorkspace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace
func (c *PrometheusService) DescribeWorkspaceRequest(input *DescribeWorkspaceInput) (req *request.Request, output *DescribeWorkspaceOutput)
DescribeWorkspaceRequest generates a "aws/request.Request" representing the client's request for the DescribeWorkspace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DescribeWorkspace for more information on using the DescribeWorkspace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DescribeWorkspaceRequest method. req, resp := client.DescribeWorkspaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/DescribeWorkspace
func (c *PrometheusService) DescribeWorkspaceWithContext(ctx aws.Context, input *DescribeWorkspaceInput, opts ...request.Option) (*DescribeWorkspaceOutput, error)
DescribeWorkspaceWithContext is the same as DescribeWorkspace with the addition of the ability to pass a context and additional request options.
See DescribeWorkspace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) GetDefaultScraperConfiguration(input *GetDefaultScraperConfigurationInput) (*GetDefaultScraperConfigurationOutput, error)
GetDefaultScraperConfiguration API operation for Amazon Prometheus Service.
The GetDefaultScraperConfiguration operation returns the default scraper configuration used when Amazon EKS creates a scraper for you.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation GetDefaultScraperConfiguration for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) GetDefaultScraperConfigurationRequest(input *GetDefaultScraperConfigurationInput) (req *request.Request, output *GetDefaultScraperConfigurationOutput)
GetDefaultScraperConfigurationRequest generates a "aws/request.Request" representing the client's request for the GetDefaultScraperConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetDefaultScraperConfiguration for more information on using the GetDefaultScraperConfiguration API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetDefaultScraperConfigurationRequest method. req, resp := client.GetDefaultScraperConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) GetDefaultScraperConfigurationWithContext(ctx aws.Context, input *GetDefaultScraperConfigurationInput, opts ...request.Option) (*GetDefaultScraperConfigurationOutput, error)
GetDefaultScraperConfigurationWithContext is the same as GetDefaultScraperConfiguration with the addition of the ability to pass a context and additional request options.
See GetDefaultScraperConfiguration for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListRuleGroupsNamespaces(input *ListRuleGroupsNamespacesInput) (*ListRuleGroupsNamespacesOutput, error)
ListRuleGroupsNamespaces API operation for Amazon Prometheus Service.
Returns a list of rule groups namespaces in a workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation ListRuleGroupsNamespaces for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListRuleGroupsNamespaces
func (c *PrometheusService) ListRuleGroupsNamespacesPages(input *ListRuleGroupsNamespacesInput, fn func(*ListRuleGroupsNamespacesOutput, bool) bool) error
ListRuleGroupsNamespacesPages iterates over the pages of a ListRuleGroupsNamespaces operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListRuleGroupsNamespaces method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListRuleGroupsNamespaces operation. pageNum := 0 err := client.ListRuleGroupsNamespacesPages(params, func(page *prometheusservice.ListRuleGroupsNamespacesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *PrometheusService) ListRuleGroupsNamespacesPagesWithContext(ctx aws.Context, input *ListRuleGroupsNamespacesInput, fn func(*ListRuleGroupsNamespacesOutput, bool) bool, opts ...request.Option) error
ListRuleGroupsNamespacesPagesWithContext same as ListRuleGroupsNamespacesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListRuleGroupsNamespacesRequest(input *ListRuleGroupsNamespacesInput) (req *request.Request, output *ListRuleGroupsNamespacesOutput)
ListRuleGroupsNamespacesRequest generates a "aws/request.Request" representing the client's request for the ListRuleGroupsNamespaces operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListRuleGroupsNamespaces for more information on using the ListRuleGroupsNamespaces API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListRuleGroupsNamespacesRequest method. req, resp := client.ListRuleGroupsNamespacesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListRuleGroupsNamespaces
func (c *PrometheusService) ListRuleGroupsNamespacesWithContext(ctx aws.Context, input *ListRuleGroupsNamespacesInput, opts ...request.Option) (*ListRuleGroupsNamespacesOutput, error)
ListRuleGroupsNamespacesWithContext is the same as ListRuleGroupsNamespaces with the addition of the ability to pass a context and additional request options.
See ListRuleGroupsNamespaces for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListScrapers(input *ListScrapersInput) (*ListScrapersOutput, error)
ListScrapers API operation for Amazon Prometheus Service.
The ListScrapers operation lists all of the scrapers in your account. This includes scrapers being created or deleted. You can optionally filter the returned list.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation ListScrapers for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListScrapers
func (c *PrometheusService) ListScrapersPages(input *ListScrapersInput, fn func(*ListScrapersOutput, bool) bool) error
ListScrapersPages iterates over the pages of a ListScrapers operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListScrapers method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListScrapers operation. pageNum := 0 err := client.ListScrapersPages(params, func(page *prometheusservice.ListScrapersOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *PrometheusService) ListScrapersPagesWithContext(ctx aws.Context, input *ListScrapersInput, fn func(*ListScrapersOutput, bool) bool, opts ...request.Option) error
ListScrapersPagesWithContext same as ListScrapersPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListScrapersRequest(input *ListScrapersInput) (req *request.Request, output *ListScrapersOutput)
ListScrapersRequest generates a "aws/request.Request" representing the client's request for the ListScrapers operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListScrapers for more information on using the ListScrapers API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListScrapersRequest method. req, resp := client.ListScrapersRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListScrapers
func (c *PrometheusService) ListScrapersWithContext(ctx aws.Context, input *ListScrapersInput, opts ...request.Option) (*ListScrapersOutput, error)
ListScrapersWithContext is the same as ListScrapers with the addition of the ability to pass a context and additional request options.
See ListScrapers for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)
ListTagsForResource API operation for Amazon Prometheus Service.
The ListTagsForResource operation returns the tags that are associated with an Amazon Managed Service for Prometheus resource. Currently, the only resources that can be tagged are workspaces and rule groups namespaces.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation ListTagsForResource for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListTagsForResource
func (c *PrometheusService) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)
ListTagsForResourceRequest generates a "aws/request.Request" representing the client's request for the ListTagsForResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListTagsForResource for more information on using the ListTagsForResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListTagsForResourceRequest method. req, resp := client.ListTagsForResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListTagsForResource
func (c *PrometheusService) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error)
ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of the ability to pass a context and additional request options.
See ListTagsForResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListWorkspaces(input *ListWorkspacesInput) (*ListWorkspacesOutput, error)
ListWorkspaces API operation for Amazon Prometheus Service.
Lists all of the Amazon Managed Service for Prometheus workspaces in your account. This includes workspaces being created or deleted.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation ListWorkspaces for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces
func (c *PrometheusService) ListWorkspacesPages(input *ListWorkspacesInput, fn func(*ListWorkspacesOutput, bool) bool) error
ListWorkspacesPages iterates over the pages of a ListWorkspaces operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See ListWorkspaces method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a ListWorkspaces operation. pageNum := 0 err := client.ListWorkspacesPages(params, func(page *prometheusservice.ListWorkspacesOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (c *PrometheusService) ListWorkspacesPagesWithContext(ctx aws.Context, input *ListWorkspacesInput, fn func(*ListWorkspacesOutput, bool) bool, opts ...request.Option) error
ListWorkspacesPagesWithContext same as ListWorkspacesPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) ListWorkspacesRequest(input *ListWorkspacesInput) (req *request.Request, output *ListWorkspacesOutput)
ListWorkspacesRequest generates a "aws/request.Request" representing the client's request for the ListWorkspaces operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See ListWorkspaces for more information on using the ListWorkspaces API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the ListWorkspacesRequest method. req, resp := client.ListWorkspacesRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/ListWorkspaces
func (c *PrometheusService) ListWorkspacesWithContext(ctx aws.Context, input *ListWorkspacesInput, opts ...request.Option) (*ListWorkspacesOutput, error)
ListWorkspacesWithContext is the same as ListWorkspaces with the addition of the ability to pass a context and additional request options.
See ListWorkspaces for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) PutAlertManagerDefinition(input *PutAlertManagerDefinitionInput) (*PutAlertManagerDefinitionOutput, error)
PutAlertManagerDefinition API operation for Amazon Prometheus Service.
Updates an existing alert manager definition in a workspace. If the workspace does not already have an alert manager definition, don't use this operation to create it. Instead, use CreateAlertManagerDefinition.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation PutAlertManagerDefinition for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
func (c *PrometheusService) PutAlertManagerDefinitionRequest(input *PutAlertManagerDefinitionInput) (req *request.Request, output *PutAlertManagerDefinitionOutput)
PutAlertManagerDefinitionRequest generates a "aws/request.Request" representing the client's request for the PutAlertManagerDefinition operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See PutAlertManagerDefinition for more information on using the PutAlertManagerDefinition API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the PutAlertManagerDefinitionRequest method. req, resp := client.PutAlertManagerDefinitionRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) PutAlertManagerDefinitionWithContext(ctx aws.Context, input *PutAlertManagerDefinitionInput, opts ...request.Option) (*PutAlertManagerDefinitionOutput, error)
PutAlertManagerDefinitionWithContext is the same as PutAlertManagerDefinition with the addition of the ability to pass a context and additional request options.
See PutAlertManagerDefinition for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) PutRuleGroupsNamespace(input *PutRuleGroupsNamespaceInput) (*PutRuleGroupsNamespaceOutput, error)
PutRuleGroupsNamespace API operation for Amazon Prometheus Service.
Updates an existing rule groups namespace within a workspace. A rule groups namespace is associated with exactly one rules file. A workspace can have multiple rule groups namespaces.
Use this operation only to update existing rule groups namespaces. To create a new rule groups namespace, use CreateRuleGroupsNamespace.
You can't use this operation to add tags to an existing rule groups namespace. Instead, use TagResource.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation PutRuleGroupsNamespace for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/PutRuleGroupsNamespace
func (c *PrometheusService) PutRuleGroupsNamespaceRequest(input *PutRuleGroupsNamespaceInput) (req *request.Request, output *PutRuleGroupsNamespaceOutput)
PutRuleGroupsNamespaceRequest generates a "aws/request.Request" representing the client's request for the PutRuleGroupsNamespace operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See PutRuleGroupsNamespace for more information on using the PutRuleGroupsNamespace API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the PutRuleGroupsNamespaceRequest method. req, resp := client.PutRuleGroupsNamespaceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/PutRuleGroupsNamespace
func (c *PrometheusService) PutRuleGroupsNamespaceWithContext(ctx aws.Context, input *PutRuleGroupsNamespaceInput, opts ...request.Option) (*PutRuleGroupsNamespaceOutput, error)
PutRuleGroupsNamespaceWithContext is the same as PutRuleGroupsNamespace with the addition of the ability to pass a context and additional request options.
See PutRuleGroupsNamespace for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) TagResource(input *TagResourceInput) (*TagResourceOutput, error)
TagResource API operation for Amazon Prometheus Service.
The TagResource operation associates tags with an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces.
If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value that you specify replaces the previous value for that tag.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation TagResource for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/TagResource
func (c *PrometheusService) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput)
TagResourceRequest generates a "aws/request.Request" representing the client's request for the TagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See TagResource for more information on using the TagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the TagResourceRequest method. req, resp := client.TagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/TagResource
func (c *PrometheusService) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error)
TagResourceWithContext is the same as TagResource with the addition of the ability to pass a context and additional request options.
See TagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error)
UntagResource API operation for Amazon Prometheus Service.
Removes the specified tags from an Amazon Managed Service for Prometheus resource. The only resources that can be tagged are workspaces and rule groups namespaces.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation UntagResource for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UntagResource
func (c *PrometheusService) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput)
UntagResourceRequest generates a "aws/request.Request" representing the client's request for the UntagResource operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UntagResource for more information on using the UntagResource API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UntagResourceRequest method. req, resp := client.UntagResourceRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UntagResource
func (c *PrometheusService) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error)
UntagResourceWithContext is the same as UntagResource with the addition of the ability to pass a context and additional request options.
See UntagResource for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) UpdateLoggingConfiguration(input *UpdateLoggingConfigurationInput) (*UpdateLoggingConfigurationOutput, error)
UpdateLoggingConfiguration API operation for Amazon Prometheus Service.
Updates the log group ARN or the workspace ID of the current logging configuration.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation UpdateLoggingConfiguration for usage and error information.
Returned Error Types:
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
func (c *PrometheusService) UpdateLoggingConfigurationRequest(input *UpdateLoggingConfigurationInput) (req *request.Request, output *UpdateLoggingConfigurationOutput)
UpdateLoggingConfigurationRequest generates a "aws/request.Request" representing the client's request for the UpdateLoggingConfiguration operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateLoggingConfiguration for more information on using the UpdateLoggingConfiguration API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateLoggingConfigurationRequest method. req, resp := client.UpdateLoggingConfigurationRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
func (c *PrometheusService) UpdateLoggingConfigurationWithContext(ctx aws.Context, input *UpdateLoggingConfigurationInput, opts ...request.Option) (*UpdateLoggingConfigurationOutput, error)
UpdateLoggingConfigurationWithContext is the same as UpdateLoggingConfiguration with the addition of the ability to pass a context and additional request options.
See UpdateLoggingConfiguration for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) UpdateWorkspaceAlias(input *UpdateWorkspaceAliasInput) (*UpdateWorkspaceAliasOutput, error)
UpdateWorkspaceAlias API operation for Amazon Prometheus Service.
Updates the alias of an existing workspace.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Amazon Prometheus Service's API operation UpdateWorkspaceAlias for usage and error information.
Returned Error Types:
ThrottlingException The request was denied due to request throttling.
ConflictException The request would cause an inconsistent state.
ValidationException The input fails to satisfy the constraints specified by an Amazon Web Services service.
ResourceNotFoundException The request references a resources that doesn't exist.
AccessDeniedException You do not have sufficient access to perform this action.
InternalServerException An unexpected error occurred during the processing of the request.
ServiceQuotaExceededException Completing the request would cause a service quota to be exceeded.
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAlias
func (c *PrometheusService) UpdateWorkspaceAliasRequest(input *UpdateWorkspaceAliasInput) (req *request.Request, output *UpdateWorkspaceAliasOutput)
UpdateWorkspaceAliasRequest generates a "aws/request.Request" representing the client's request for the UpdateWorkspaceAlias operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See UpdateWorkspaceAlias for more information on using the UpdateWorkspaceAlias API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the UpdateWorkspaceAliasRequest method. req, resp := client.UpdateWorkspaceAliasRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/amp-2020-08-01/UpdateWorkspaceAlias
func (c *PrometheusService) UpdateWorkspaceAliasWithContext(ctx aws.Context, input *UpdateWorkspaceAliasInput, opts ...request.Option) (*UpdateWorkspaceAliasOutput, error)
UpdateWorkspaceAliasWithContext is the same as UpdateWorkspaceAlias with the addition of the ability to pass a context and additional request options.
See UpdateWorkspaceAlias for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) WaitUntilScraperActive(input *DescribeScraperInput) error
WaitUntilScraperActive uses the Amazon Prometheus Service API operation DescribeScraper to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (c *PrometheusService) WaitUntilScraperActiveWithContext(ctx aws.Context, input *DescribeScraperInput, opts ...request.WaiterOption) error
WaitUntilScraperActiveWithContext is an extended version of WaitUntilScraperActive. With the support for passing in a context and options to configure the Waiter and the underlying request options.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) WaitUntilScraperDeleted(input *DescribeScraperInput) error
WaitUntilScraperDeleted uses the Amazon Prometheus Service API operation DescribeScraper to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (c *PrometheusService) WaitUntilScraperDeletedWithContext(ctx aws.Context, input *DescribeScraperInput, opts ...request.WaiterOption) error
WaitUntilScraperDeletedWithContext is an extended version of WaitUntilScraperDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) WaitUntilWorkspaceActive(input *DescribeWorkspaceInput) error
WaitUntilWorkspaceActive uses the Amazon Prometheus Service API operation DescribeWorkspace to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (c *PrometheusService) WaitUntilWorkspaceActiveWithContext(ctx aws.Context, input *DescribeWorkspaceInput, opts ...request.WaiterOption) error
WaitUntilWorkspaceActiveWithContext is an extended version of WaitUntilWorkspaceActive. With the support for passing in a context and options to configure the Waiter and the underlying request options.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (c *PrometheusService) WaitUntilWorkspaceDeleted(input *DescribeWorkspaceInput) error
WaitUntilWorkspaceDeleted uses the Amazon Prometheus Service API operation DescribeWorkspace to wait for a condition to be met before returning. If the condition is not met within the max attempt window, an error will be returned.
func (c *PrometheusService) WaitUntilWorkspaceDeletedWithContext(ctx aws.Context, input *DescribeWorkspaceInput, opts ...request.WaiterOption) error
WaitUntilWorkspaceDeletedWithContext is an extended version of WaitUntilWorkspaceDeleted. With the support for passing in a context and options to configure the Waiter and the underlying request options.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type PutAlertManagerDefinitionInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The alert manager definition to use. A base64-encoded version of the YAML // alert manager definition file. // // For details about the alert manager definition, see AlertManagedDefinitionData // (https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-AlertManagerDefinitionData.html). // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" type:"blob" required:"true"` // The ID of the workspace to update the alert manager definition in. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a PutAlertManagerDefinition operation.
func (s PutAlertManagerDefinitionInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *PutAlertManagerDefinitionInput) SetClientToken(v string) *PutAlertManagerDefinitionInput
SetClientToken sets the ClientToken field's value.
func (s *PutAlertManagerDefinitionInput) SetData(v []byte) *PutAlertManagerDefinitionInput
SetData sets the Data field's value.
func (s *PutAlertManagerDefinitionInput) SetWorkspaceId(v string) *PutAlertManagerDefinitionInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s PutAlertManagerDefinitionInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *PutAlertManagerDefinitionInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutAlertManagerDefinitionOutput struct { // A structure that returns the current status of the alert manager definition. // // Status is a required field Status *AlertManagerDefinitionStatus `locationName:"status" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of a PutAlertManagerDefinition operation.
func (s PutAlertManagerDefinitionOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *PutAlertManagerDefinitionOutput) SetStatus(v *AlertManagerDefinitionStatus) *PutAlertManagerDefinitionOutput
SetStatus sets the Status field's value.
func (s PutAlertManagerDefinitionOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PutRuleGroupsNamespaceInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The new rules file to use in the namespace. A base64-encoded version of the // YAML rule groups file. // // For details about the rule groups namespace structure, see RuleGroupsNamespaceData // (https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-RuleGroupsNamespaceData.html). // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" type:"blob" required:"true"` // The name of the rule groups namespace that you are updating. // // Name is a required field Name *string `location:"uri" locationName:"name" min:"1" type:"string" required:"true"` // The ID of the workspace where you are updating the rule groups namespace. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of a PutRuleGroupsNamespace operation.
func (s PutRuleGroupsNamespaceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *PutRuleGroupsNamespaceInput) SetClientToken(v string) *PutRuleGroupsNamespaceInput
SetClientToken sets the ClientToken field's value.
func (s *PutRuleGroupsNamespaceInput) SetData(v []byte) *PutRuleGroupsNamespaceInput
SetData sets the Data field's value.
func (s *PutRuleGroupsNamespaceInput) SetName(v string) *PutRuleGroupsNamespaceInput
SetName sets the Name field's value.
func (s *PutRuleGroupsNamespaceInput) SetWorkspaceId(v string) *PutRuleGroupsNamespaceInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s PutRuleGroupsNamespaceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *PutRuleGroupsNamespaceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PutRuleGroupsNamespaceOutput struct { // The ARN of the rule groups namespace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The name of the rule groups namespace that was updated. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // A structure that includes the current status of the rule groups namespace. // // Status is a required field Status *RuleGroupsNamespaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the namespace. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
Represents the output of a PutRuleGroupsNamespace operation.
func (s PutRuleGroupsNamespaceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *PutRuleGroupsNamespaceOutput) SetArn(v string) *PutRuleGroupsNamespaceOutput
SetArn sets the Arn field's value.
func (s *PutRuleGroupsNamespaceOutput) SetName(v string) *PutRuleGroupsNamespaceOutput
SetName sets the Name field's value.
func (s *PutRuleGroupsNamespaceOutput) SetStatus(v *RuleGroupsNamespaceStatus) *PutRuleGroupsNamespaceOutput
SetStatus sets the Status field's value.
func (s *PutRuleGroupsNamespaceOutput) SetTags(v map[string]*string) *PutRuleGroupsNamespaceOutput
SetTags sets the Tags field's value.
func (s PutRuleGroupsNamespaceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ResourceNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // Identifier of the resource affected. // // ResourceId is a required field ResourceId *string `locationName:"resourceId" type:"string" required:"true"` // Type of the resource affected. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" type:"string" required:"true"` // contains filtered or unexported fields }
The request references a resources that doesn't exist.
func (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (s *ResourceNotFoundException) Error() string
func (s ResourceNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ResourceNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RuleGroupsNamespaceDescription struct { // The ARN of the rule groups namespace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The date and time that the rule groups namespace was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // The rule groups file used in the namespace. // // For details about the rule groups namespace structure, see RuleGroupsNamespaceData // (https://docs.aws.amazon.com/prometheus/latest/APIReference/yaml-RuleGroupsNamespaceData.html). // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" type:"blob" required:"true"` // The date and time that the rule groups namespace was most recently changed. // // ModifiedAt is a required field ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" required:"true"` // The name of the rule groups namespace. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // The current status of the rule groups namespace. // // Status is a required field Status *RuleGroupsNamespaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the rule groups // namespace. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
The details about one rule groups namespace.
func (s RuleGroupsNamespaceDescription) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RuleGroupsNamespaceDescription) SetArn(v string) *RuleGroupsNamespaceDescription
SetArn sets the Arn field's value.
func (s *RuleGroupsNamespaceDescription) SetCreatedAt(v time.Time) *RuleGroupsNamespaceDescription
SetCreatedAt sets the CreatedAt field's value.
func (s *RuleGroupsNamespaceDescription) SetData(v []byte) *RuleGroupsNamespaceDescription
SetData sets the Data field's value.
func (s *RuleGroupsNamespaceDescription) SetModifiedAt(v time.Time) *RuleGroupsNamespaceDescription
SetModifiedAt sets the ModifiedAt field's value.
func (s *RuleGroupsNamespaceDescription) SetName(v string) *RuleGroupsNamespaceDescription
SetName sets the Name field's value.
func (s *RuleGroupsNamespaceDescription) SetStatus(v *RuleGroupsNamespaceStatus) *RuleGroupsNamespaceDescription
SetStatus sets the Status field's value.
func (s *RuleGroupsNamespaceDescription) SetTags(v map[string]*string) *RuleGroupsNamespaceDescription
SetTags sets the Tags field's value.
func (s RuleGroupsNamespaceDescription) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RuleGroupsNamespaceStatus struct { // The current status of the namespace. // // StatusCode is a required field StatusCode *string `locationName:"statusCode" type:"string" required:"true" enum:"RuleGroupsNamespaceStatusCode"` // The reason for the failure, if any. StatusReason *string `locationName:"statusReason" type:"string"` // contains filtered or unexported fields }
The status information about a rule groups namespace.
func (s RuleGroupsNamespaceStatus) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RuleGroupsNamespaceStatus) SetStatusCode(v string) *RuleGroupsNamespaceStatus
SetStatusCode sets the StatusCode field's value.
func (s *RuleGroupsNamespaceStatus) SetStatusReason(v string) *RuleGroupsNamespaceStatus
SetStatusReason sets the StatusReason field's value.
func (s RuleGroupsNamespaceStatus) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RuleGroupsNamespaceSummary struct { // The ARN of the rule groups namespace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The date and time that the rule groups namespace was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // The date and time that the rule groups namespace was most recently changed. // // ModifiedAt is a required field ModifiedAt *time.Time `locationName:"modifiedAt" type:"timestamp" required:"true"` // The name of the rule groups namespace. // // Name is a required field Name *string `locationName:"name" min:"1" type:"string" required:"true"` // A structure that displays the current status of the rule groups namespace. // // Status is a required field Status *RuleGroupsNamespaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the rule groups // namespace. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
The high-level information about a rule groups namespace. To retrieve more information, use DescribeRuleGroupsNamespace.
func (s RuleGroupsNamespaceSummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *RuleGroupsNamespaceSummary) SetArn(v string) *RuleGroupsNamespaceSummary
SetArn sets the Arn field's value.
func (s *RuleGroupsNamespaceSummary) SetCreatedAt(v time.Time) *RuleGroupsNamespaceSummary
SetCreatedAt sets the CreatedAt field's value.
func (s *RuleGroupsNamespaceSummary) SetModifiedAt(v time.Time) *RuleGroupsNamespaceSummary
SetModifiedAt sets the ModifiedAt field's value.
func (s *RuleGroupsNamespaceSummary) SetName(v string) *RuleGroupsNamespaceSummary
SetName sets the Name field's value.
func (s *RuleGroupsNamespaceSummary) SetStatus(v *RuleGroupsNamespaceStatus) *RuleGroupsNamespaceSummary
SetStatus sets the Status field's value.
func (s *RuleGroupsNamespaceSummary) SetTags(v map[string]*string) *RuleGroupsNamespaceSummary
SetTags sets the Tags field's value.
func (s RuleGroupsNamespaceSummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ScrapeConfiguration struct { // The base 64 encoded scrape configuration file. // ConfigurationBlob is automatically base64 encoded/decoded by the SDK. ConfigurationBlob []byte `locationName:"configurationBlob" type:"blob"` // contains filtered or unexported fields }
A scrape configuration for a scraper, base 64 encoded. For more information, see Scraper configuration (prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration) in the Amazon Managed Service for Prometheus User Guide.
func (s ScrapeConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ScrapeConfiguration) SetConfigurationBlob(v []byte) *ScrapeConfiguration
SetConfigurationBlob sets the ConfigurationBlob field's value.
func (s ScrapeConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ScraperDescription struct { // (Optional) A name associated with the scraper. Alias *string `locationName:"alias" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the scraper. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The date and time that the scraper was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // The Amazon Managed Service for Prometheus workspace the scraper sends metrics // to. // // Destination is a required field Destination *Destination `locationName:"destination" type:"structure" required:"true"` // The date and time that the scraper was last modified. // // LastModifiedAt is a required field LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the IAM role that provides permissions // for the scraper to discover and collect metrics on your behalf. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" type:"string" required:"true"` // The configuration file in use by the scraper. // // ScrapeConfiguration is a required field ScrapeConfiguration *ScrapeConfiguration `locationName:"scrapeConfiguration" type:"structure" required:"true"` // The ID of the scraper. // // ScraperId is a required field ScraperId *string `locationName:"scraperId" min:"1" type:"string" required:"true"` // The Amazon EKS cluster from which the scraper collects metrics. // // Source is a required field Source *Source `locationName:"source" type:"structure" required:"true"` // A structure that contains the current status of the scraper. // // Status is a required field Status *ScraperStatus `locationName:"status" type:"structure" required:"true"` // If there is a failure, the reason for the failure. StatusReason *string `locationName:"statusReason" min:"1" type:"string"` // (Optional) The list of tag keys and values associated with the scraper. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
The ScraperDescription structure contains the full details about one scraper in your account.
func (s ScraperDescription) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ScraperDescription) SetAlias(v string) *ScraperDescription
SetAlias sets the Alias field's value.
func (s *ScraperDescription) SetArn(v string) *ScraperDescription
SetArn sets the Arn field's value.
func (s *ScraperDescription) SetCreatedAt(v time.Time) *ScraperDescription
SetCreatedAt sets the CreatedAt field's value.
func (s *ScraperDescription) SetDestination(v *Destination) *ScraperDescription
SetDestination sets the Destination field's value.
func (s *ScraperDescription) SetLastModifiedAt(v time.Time) *ScraperDescription
SetLastModifiedAt sets the LastModifiedAt field's value.
func (s *ScraperDescription) SetRoleArn(v string) *ScraperDescription
SetRoleArn sets the RoleArn field's value.
func (s *ScraperDescription) SetScrapeConfiguration(v *ScrapeConfiguration) *ScraperDescription
SetScrapeConfiguration sets the ScrapeConfiguration field's value.
func (s *ScraperDescription) SetScraperId(v string) *ScraperDescription
SetScraperId sets the ScraperId field's value.
func (s *ScraperDescription) SetSource(v *Source) *ScraperDescription
SetSource sets the Source field's value.
func (s *ScraperDescription) SetStatus(v *ScraperStatus) *ScraperDescription
SetStatus sets the Status field's value.
func (s *ScraperDescription) SetStatusReason(v string) *ScraperDescription
SetStatusReason sets the StatusReason field's value.
func (s *ScraperDescription) SetTags(v map[string]*string) *ScraperDescription
SetTags sets the Tags field's value.
func (s ScraperDescription) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ScraperStatus struct { // The current status of the scraper. // // StatusCode is a required field StatusCode *string `locationName:"statusCode" type:"string" required:"true" enum:"ScraperStatusCode"` // contains filtered or unexported fields }
The ScraperStatus structure contains status information about the scraper.
func (s ScraperStatus) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ScraperStatus) SetStatusCode(v string) *ScraperStatus
SetStatusCode sets the StatusCode field's value.
func (s ScraperStatus) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ScraperSummary struct { // (Optional) A name associated with the scraper. Alias *string `locationName:"alias" min:"1" type:"string"` // The Amazon Resource Name (ARN) of the scraper. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The date and time that the scraper was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // The Amazon Managed Service for Prometheus workspace the scraper sends metrics // to. // // Destination is a required field Destination *Destination `locationName:"destination" type:"structure" required:"true"` // The date and time that the scraper was last modified. // // LastModifiedAt is a required field LastModifiedAt *time.Time `locationName:"lastModifiedAt" type:"timestamp" required:"true"` // The Amazon Resource Name (ARN) of the IAM role that provides permissions // for the scraper to discover and collect metrics on your behalf. // // RoleArn is a required field RoleArn *string `locationName:"roleArn" type:"string" required:"true"` // The ID of the scraper. // // ScraperId is a required field ScraperId *string `locationName:"scraperId" min:"1" type:"string" required:"true"` // The Amazon EKS cluster from which the scraper collects metrics. // // Source is a required field Source *Source `locationName:"source" type:"structure" required:"true"` // A structure that contains the current status of the scraper. // // Status is a required field Status *ScraperStatus `locationName:"status" type:"structure" required:"true"` // If there is a failure, the reason for the failure. StatusReason *string `locationName:"statusReason" min:"1" type:"string"` // (Optional) The list of tag keys and values associated with the scraper. Tags map[string]*string `locationName:"tags" type:"map"` // contains filtered or unexported fields }
The ScraperSummary structure contains a summary of the details about one scraper in your account.
func (s ScraperSummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ScraperSummary) SetAlias(v string) *ScraperSummary
SetAlias sets the Alias field's value.
func (s *ScraperSummary) SetArn(v string) *ScraperSummary
SetArn sets the Arn field's value.
func (s *ScraperSummary) SetCreatedAt(v time.Time) *ScraperSummary
SetCreatedAt sets the CreatedAt field's value.
func (s *ScraperSummary) SetDestination(v *Destination) *ScraperSummary
SetDestination sets the Destination field's value.
func (s *ScraperSummary) SetLastModifiedAt(v time.Time) *ScraperSummary
SetLastModifiedAt sets the LastModifiedAt field's value.
func (s *ScraperSummary) SetRoleArn(v string) *ScraperSummary
SetRoleArn sets the RoleArn field's value.
func (s *ScraperSummary) SetScraperId(v string) *ScraperSummary
SetScraperId sets the ScraperId field's value.
func (s *ScraperSummary) SetSource(v *Source) *ScraperSummary
SetSource sets the Source field's value.
func (s *ScraperSummary) SetStatus(v *ScraperStatus) *ScraperSummary
SetStatus sets the Status field's value.
func (s *ScraperSummary) SetStatusReason(v string) *ScraperSummary
SetStatusReason sets the StatusReason field's value.
func (s *ScraperSummary) SetTags(v map[string]*string) *ScraperSummary
SetTags sets the Tags field's value.
func (s ScraperSummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ServiceQuotaExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // Service quotas code of the originating quota. // // QuotaCode is a required field QuotaCode *string `locationName:"quotaCode" type:"string" required:"true"` // Identifier of the resource affected. // // ResourceId is a required field ResourceId *string `locationName:"resourceId" type:"string" required:"true"` // Type of the resource affected. // // ResourceType is a required field ResourceType *string `locationName:"resourceType" type:"string" required:"true"` // Service quotas code for the originating service. // // ServiceCode is a required field ServiceCode *string `locationName:"serviceCode" type:"string" required:"true"` // contains filtered or unexported fields }
Completing the request would cause a service quota to be exceeded.
func (s *ServiceQuotaExceededException) Code() string
Code returns the exception type name.
func (s *ServiceQuotaExceededException) Error() string
func (s ServiceQuotaExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ServiceQuotaExceededException) Message() string
Message returns the exception's message.
func (s *ServiceQuotaExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ServiceQuotaExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ServiceQuotaExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ServiceQuotaExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Source struct { // The Amazon EKS cluster from which a scraper collects metrics. EksConfiguration *EksConfiguration `locationName:"eksConfiguration" type:"structure"` // contains filtered or unexported fields }
The source of collected metrics for a scraper.
func (s Source) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Source) SetEksConfiguration(v *EksConfiguration) *Source
SetEksConfiguration sets the EksConfiguration field's value.
func (s Source) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *Source) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceInput struct { // The ARN of the workspace or rule groups namespace to apply tags to. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // The list of tag keys and values to associate with the resource. // // Keys may not begin with aws:. // // Tags is a required field Tags map[string]*string `locationName:"tags" type:"map" required:"true"` // contains filtered or unexported fields }
func (s TagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput
SetTags sets the Tags field's value.
func (s TagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *TagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type TagResourceOutput struct {
// contains filtered or unexported fields
}
func (s TagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s TagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ThrottlingException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // Service quotas code for the originating quota. QuotaCode *string `locationName:"quotaCode" type:"string"` // Advice to clients on when the call can be safely retried. RetryAfterSeconds *int64 `location:"header" locationName:"Retry-After" type:"integer"` // Service quotas code for the originating service. ServiceCode *string `locationName:"serviceCode" type:"string"` // contains filtered or unexported fields }
The request was denied due to request throttling.
func (s *ThrottlingException) Code() string
Code returns the exception type name.
func (s *ThrottlingException) Error() string
func (s ThrottlingException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ThrottlingException) Message() string
Message returns the exception's message.
func (s *ThrottlingException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ThrottlingException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ThrottlingException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ThrottlingException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UntagResourceInput struct { // The ARN of the workspace or rule groups namespace. // // ResourceArn is a required field ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` // The keys of the tags to remove. // // TagKeys is a required field TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"` // contains filtered or unexported fields }
func (s UntagResourceInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput
SetResourceArn sets the ResourceArn field's value.
func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput
SetTagKeys sets the TagKeys field's value.
func (s UntagResourceInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UntagResourceInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UntagResourceOutput struct {
// contains filtered or unexported fields
}
func (s UntagResourceOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s UntagResourceOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UpdateLoggingConfigurationInput struct { // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ARN of the CloudWatch log group to which the vended log data will be // published. // // LogGroupArn is a required field LogGroupArn *string `locationName:"logGroupArn" type:"string" required:"true"` // The ID of the workspace to update the logging configuration for. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of an UpdateLoggingConfiguration operation.
func (s UpdateLoggingConfigurationInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateLoggingConfigurationInput) SetClientToken(v string) *UpdateLoggingConfigurationInput
SetClientToken sets the ClientToken field's value.
func (s *UpdateLoggingConfigurationInput) SetLogGroupArn(v string) *UpdateLoggingConfigurationInput
SetLogGroupArn sets the LogGroupArn field's value.
func (s *UpdateLoggingConfigurationInput) SetWorkspaceId(v string) *UpdateLoggingConfigurationInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s UpdateLoggingConfigurationInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateLoggingConfigurationInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateLoggingConfigurationOutput struct { // A structure that contains the current status of the logging configuration. // // Status is a required field Status *LoggingConfigurationStatus `locationName:"status" type:"structure" required:"true"` // contains filtered or unexported fields }
Represents the output of an UpdateLoggingConfiguration operation.
func (s UpdateLoggingConfigurationOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateLoggingConfigurationOutput) SetStatus(v *LoggingConfigurationStatus) *UpdateLoggingConfigurationOutput
SetStatus sets the Status field's value.
func (s UpdateLoggingConfigurationOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type UpdateWorkspaceAliasInput struct { // The new alias for the workspace. It does not need to be unique. // // Amazon Managed Service for Prometheus will automatically strip any blank // spaces from the beginning and end of the alias that you specify. Alias *string `locationName:"alias" min:"1" type:"string"` // A unique identifier that you can provide to ensure the idempotency of the // request. Case-sensitive. ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"` // The ID of the workspace to update. // // WorkspaceId is a required field WorkspaceId *string `location:"uri" locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Represents the input of an UpdateWorkspaceAlias operation.
func (s UpdateWorkspaceAliasInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateWorkspaceAliasInput) SetAlias(v string) *UpdateWorkspaceAliasInput
SetAlias sets the Alias field's value.
func (s *UpdateWorkspaceAliasInput) SetClientToken(v string) *UpdateWorkspaceAliasInput
SetClientToken sets the ClientToken field's value.
func (s *UpdateWorkspaceAliasInput) SetWorkspaceId(v string) *UpdateWorkspaceAliasInput
SetWorkspaceId sets the WorkspaceId field's value.
func (s UpdateWorkspaceAliasInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *UpdateWorkspaceAliasInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type UpdateWorkspaceAliasOutput struct {
// contains filtered or unexported fields
}
func (s UpdateWorkspaceAliasOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s UpdateWorkspaceAliasOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ValidationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` // The field that caused the error, if applicable. FieldList []*ValidationExceptionField `locationName:"fieldList" type:"list"` // Description of the error. Message_ *string `locationName:"message" type:"string"` // Reason the request failed validation. // // Reason is a required field Reason *string `locationName:"reason" type:"string" required:"true" enum:"ValidationExceptionReason"` // contains filtered or unexported fields }
The input fails to satisfy the constraints specified by an Amazon Web Services service.
func (s *ValidationException) Code() string
Code returns the exception type name.
func (s *ValidationException) Error() string
func (s ValidationException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ValidationException) Message() string
Message returns the exception's message.
func (s *ValidationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (s *ValidationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (s *ValidationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (s ValidationException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ValidationExceptionField struct { // A message describing why the field caused an exception. // // Message is a required field Message *string `locationName:"message" type:"string" required:"true"` // The name of the field that caused an exception. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // contains filtered or unexported fields }
Information about a field passed into a request that resulted in an exception.
func (s ValidationExceptionField) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField
SetMessage sets the Message field's value.
func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField
SetName sets the Name field's value.
func (s ValidationExceptionField) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type WorkspaceDescription struct { // The alias that is assigned to this workspace to help identify it. It may // not be unique. Alias *string `locationName:"alias" min:"1" type:"string"` // The ARN of the workspace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The date and time that the workspace was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // (optional) If the workspace was created with a customer managed KMS key, // the ARN for the key used. KmsKeyArn *string `locationName:"kmsKeyArn" min:"20" type:"string"` // The Prometheus endpoint available for this workspace. PrometheusEndpoint *string `locationName:"prometheusEndpoint" min:"1" type:"string"` // The current status of the workspace. // // Status is a required field Status *WorkspaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the workspace. Tags map[string]*string `locationName:"tags" type:"map"` // The unique ID for the workspace. // // WorkspaceId is a required field WorkspaceId *string `locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
The full details about one Amazon Managed Service for Prometheus workspace in your account.
func (s WorkspaceDescription) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *WorkspaceDescription) SetAlias(v string) *WorkspaceDescription
SetAlias sets the Alias field's value.
func (s *WorkspaceDescription) SetArn(v string) *WorkspaceDescription
SetArn sets the Arn field's value.
func (s *WorkspaceDescription) SetCreatedAt(v time.Time) *WorkspaceDescription
SetCreatedAt sets the CreatedAt field's value.
func (s *WorkspaceDescription) SetKmsKeyArn(v string) *WorkspaceDescription
SetKmsKeyArn sets the KmsKeyArn field's value.
func (s *WorkspaceDescription) SetPrometheusEndpoint(v string) *WorkspaceDescription
SetPrometheusEndpoint sets the PrometheusEndpoint field's value.
func (s *WorkspaceDescription) SetStatus(v *WorkspaceStatus) *WorkspaceDescription
SetStatus sets the Status field's value.
func (s *WorkspaceDescription) SetTags(v map[string]*string) *WorkspaceDescription
SetTags sets the Tags field's value.
func (s *WorkspaceDescription) SetWorkspaceId(v string) *WorkspaceDescription
SetWorkspaceId sets the WorkspaceId field's value.
func (s WorkspaceDescription) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type WorkspaceStatus struct { // The current status of the workspace. // // StatusCode is a required field StatusCode *string `locationName:"statusCode" type:"string" required:"true" enum:"WorkspaceStatusCode"` // contains filtered or unexported fields }
The status of the workspace.
func (s WorkspaceStatus) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *WorkspaceStatus) SetStatusCode(v string) *WorkspaceStatus
SetStatusCode sets the StatusCode field's value.
func (s WorkspaceStatus) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type WorkspaceSummary struct { // The alias that is assigned to this workspace to help identify it. It may // not be unique. Alias *string `locationName:"alias" min:"1" type:"string"` // The ARN of the workspace. // // Arn is a required field Arn *string `locationName:"arn" type:"string" required:"true"` // The date and time that the workspace was created. // // CreatedAt is a required field CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" required:"true"` // (optional) If the workspace was created with a customer managed KMS key, // the ARN for the key used. KmsKeyArn *string `locationName:"kmsKeyArn" min:"20" type:"string"` // The current status of the workspace. // // Status is a required field Status *WorkspaceStatus `locationName:"status" type:"structure" required:"true"` // The list of tag keys and values that are associated with the workspace. Tags map[string]*string `locationName:"tags" type:"map"` // The unique ID for the workspace. // // WorkspaceId is a required field WorkspaceId *string `locationName:"workspaceId" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
The information about one Amazon Managed Service for Prometheus workspace in your account.
func (s WorkspaceSummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (s *WorkspaceSummary) SetAlias(v string) *WorkspaceSummary
SetAlias sets the Alias field's value.
func (s *WorkspaceSummary) SetArn(v string) *WorkspaceSummary
SetArn sets the Arn field's value.
func (s *WorkspaceSummary) SetCreatedAt(v time.Time) *WorkspaceSummary
SetCreatedAt sets the CreatedAt field's value.
func (s *WorkspaceSummary) SetKmsKeyArn(v string) *WorkspaceSummary
SetKmsKeyArn sets the KmsKeyArn field's value.
func (s *WorkspaceSummary) SetStatus(v *WorkspaceStatus) *WorkspaceSummary
SetStatus sets the Status field's value.
func (s *WorkspaceSummary) SetTags(v map[string]*string) *WorkspaceSummary
SetTags sets the Tags field's value.
func (s *WorkspaceSummary) SetWorkspaceId(v string) *WorkspaceSummary
SetWorkspaceId sets the WorkspaceId field's value.
func (s WorkspaceSummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".