aws

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionStati = struct {
	Connected     ConnectionStatus
	Disconnected  ConnectionStatus
	Uninitialized ConnectionStatus
}{
	"CONNECTED",
	"DISCONNECTED",
	"UNINITIALIZED",
}

ConnectionStati offers the known enum values

View Source
var PartitionTypes = struct {
	AWSCn      PartitionType
	AWSDefault PartitionType
	AWSUsGov   PartitionType
}{
	"AWS_CN",
	"AWS_DEFAULT",
	"AWS_US_GOV",
}

PartitionTypes offers the known enum values

View Source
var Statistics = struct {
	Average     Statistic
	AvgMinMax   Statistic
	Maximum     Statistic
	Minimum     Statistic
	SampleCount Statistic
	Sum         Statistic
}{
	"AVERAGE",
	"AVG_MIN_MAX",
	"MAXIMUM",
	"MINIMUM",
	"SAMPLE_COUNT",
	"SUM",
}

Statistics offers the known enum values

View Source
var Types = struct {
	Keys Type
	Role Type
}{
	"KEYS",
	"ROLE",
}

Types offers the known enum values

Functions

This section is empty.

Types

type AWSAuthenticationData

type AWSAuthenticationData struct {
	KeyBasedAuthentication  *KeyBasedAuthentication    `json:"keyBasedAuthentication,omitempty"`  // The credentials for the key-based authentication.
	RoleBasedAuthentication *RoleBasedAuthentication   `json:"roleBasedAuthentication,omitempty"` // The credentials for the role-based authentication.
	Type                    Type                       `json:"type"`                              // The type of the authentication: role-based or key-based.
	Unknowns                map[string]json.RawMessage `json:"-"`
}

AWSAuthenticationData A credentials for the AWS authentication.

func (*AWSAuthenticationData) MarshalHCL

func (aad *AWSAuthenticationData) MarshalHCL(properties hcl.Properties) error

func (*AWSAuthenticationData) MarshalJSON

func (aad *AWSAuthenticationData) MarshalJSON() ([]byte, error)

MarshalJSON provides custom JSON serialization

func (*AWSAuthenticationData) Schema

func (aad *AWSAuthenticationData) Schema() map[string]*schema.Schema

func (*AWSAuthenticationData) UnmarshalHCL

func (aad *AWSAuthenticationData) UnmarshalHCL(decoder hcl.Decoder) error

func (*AWSAuthenticationData) UnmarshalJSON

func (aad *AWSAuthenticationData) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type AWSConfigTag

type AWSConfigTag struct {
	Name     string                     `json:"name"`  // The key of the AWS tag.
	Value    string                     `json:"value"` // The value of the AWS tag.
	Unknowns map[string]json.RawMessage `json:"-"`
}

AWSConfigTag An AWS tag of the resource to be monitored.

func (*AWSConfigTag) MarshalHCL

func (act *AWSConfigTag) MarshalHCL(properties hcl.Properties) error

func (*AWSConfigTag) MarshalJSON

func (act *AWSConfigTag) MarshalJSON() ([]byte, error)

MarshalJSON provides custom JSON serialization

func (*AWSConfigTag) Schema

func (act *AWSConfigTag) Schema() map[string]*schema.Schema

func (*AWSConfigTag) UnmarshalHCL

func (act *AWSConfigTag) UnmarshalHCL(decoder hcl.Decoder) error

func (*AWSConfigTag) UnmarshalJSON

func (act *AWSConfigTag) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type AWSCredentialsConfig

type AWSCredentialsConfig struct {
	Label                                string                        `json:"label"`                                 // The name of the credentials.
	SupportingServicesToMonitor          []*AWSSupportingServiceConfig `json:"supportingServicesToMonitor,omitempty"` // A list of supporting services to be monitored.
	TaggedOnly                           *bool                         `json:"taggedOnly"`                            // Monitor only resources which have specified AWS tags (`true`) or all resources (`false`).
	AuthenticationData                   *AWSAuthenticationData        `json:"authenticationData"`                    // A credentials for the AWS authentication.
	PartitionType                        PartitionType                 `json:"partitionType"`                         // The type of the AWS partition.
	TagsToMonitor                        []*AWSConfigTag               `json:"tagsToMonitor"`                         // A list of AWS tags to be monitored.  You can specify up to 10 tags.  Only applicable when the **taggedOnly** parameter is set to `true`.
	ConnectionStatus                     *ConnectionStatus             `json:"connectionStatus,omitempty"`            // The status of the connection to the AWS environment.   * `CONNECTED`: There was a connection within last 10 minutes.  * `DISCONNECTED`: A problem occurred with establishing connection using these credentials. Check whether the data is correct.  * `UNINITIALIZED`: The successful connection has never been established for these credentials.
	SupportingServicesManagedInDynatrace bool                          `json:"-"`
	Unknowns                             map[string]json.RawMessage    `json:"-"`
}

AWSCredentialsConfig Configuration of an AWS credentials.

func (*AWSCredentialsConfig) FillDemoValues

func (me *AWSCredentialsConfig) FillDemoValues() []string

func (*AWSCredentialsConfig) MarshalHCL

func (awscc *AWSCredentialsConfig) MarshalHCL(properties hcl.Properties) error

func (*AWSCredentialsConfig) MarshalJSON

func (awscc *AWSCredentialsConfig) MarshalJSON() ([]byte, error)

func (*AWSCredentialsConfig) Name

func (awscc *AWSCredentialsConfig) Name() string

func (*AWSCredentialsConfig) PrepareMarshalHCL

func (awscc *AWSCredentialsConfig) PrepareMarshalHCL(decoder hcl.Decoder) error

func (*AWSCredentialsConfig) Schema

func (awscc *AWSCredentialsConfig) Schema() map[string]*schema.Schema

func (*AWSCredentialsConfig) UnmarshalHCL

func (awscc *AWSCredentialsConfig) UnmarshalHCL(decoder hcl.Decoder) error

func (*AWSCredentialsConfig) UnmarshalJSON

func (awscc *AWSCredentialsConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type AWSSupportingServiceConfig

type AWSSupportingServiceConfig struct {
	Name             string                        `json:"name"`             // The name of the supporting service.
	MonitoredMetrics []*AWSSupportingServiceMetric `json:"monitoredMetrics"` // A list of metrics to be monitored for this service.
	Unknowns         map[string]json.RawMessage    `json:"-"`
}

AWSSupportingServiceConfig A supporting service to be monitored.

func (*AWSSupportingServiceConfig) MarshalHCL

func (assc *AWSSupportingServiceConfig) MarshalHCL(properties hcl.Properties) error

func (*AWSSupportingServiceConfig) MarshalJSON

func (assc *AWSSupportingServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON provides custom JSON serialization

func (*AWSSupportingServiceConfig) Schema

func (assc *AWSSupportingServiceConfig) Schema() map[string]*schema.Schema

func (*AWSSupportingServiceConfig) UnmarshalHCL

func (assc *AWSSupportingServiceConfig) UnmarshalHCL(decoder hcl.Decoder) error

func (*AWSSupportingServiceConfig) UnmarshalJSON

func (assc *AWSSupportingServiceConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type AWSSupportingServiceMetric

type AWSSupportingServiceMetric struct {
	Name       string                     `json:"name"`       // The name of the metric of the supporting service.
	Statistic  Statistic                  `json:"statistic"`  // The statistic (aggregation) to be used for the metric. AVG_MIN_MAX value is 3 statistics at once: AVERAGE, MINIMUM and MAXIMUM
	Dimensions []string                   `json:"dimensions"` // A list of metric's dimensions names.
	Unknowns   map[string]json.RawMessage `json:"-"`
}

AWSSupportingServiceMetric A metric of supporting service to be monitored.

func (*AWSSupportingServiceMetric) MarshalHCL

func (assm *AWSSupportingServiceMetric) MarshalHCL(properties hcl.Properties) error

func (*AWSSupportingServiceMetric) MarshalJSON

func (assm *AWSSupportingServiceMetric) MarshalJSON() ([]byte, error)

MarshalJSON provides custom JSON serialization

func (*AWSSupportingServiceMetric) Schema

func (assm *AWSSupportingServiceMetric) Schema() map[string]*schema.Schema

func (*AWSSupportingServiceMetric) UnmarshalHCL

func (assm *AWSSupportingServiceMetric) UnmarshalHCL(decoder hcl.Decoder) error

func (*AWSSupportingServiceMetric) UnmarshalJSON

func (assm *AWSSupportingServiceMetric) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type ConnectionStatus

type ConnectionStatus string

ConnectionStatus The status of the connection to the AWS environment.

  • `CONNECTED`: There was a connection within last 10 minutes.

* `DISCONNECTED`: A problem occurred with establishing connection using these credentials. Check whether the data is correct. * `UNINITIALIZED`: The successful connection has never been established for these credentials.

type KeyBasedAuthentication

type KeyBasedAuthentication struct {
	AccessKey string                     `json:"accessKey"` // The ID of the access key
	SecretKey *string                    `json:"secretKey"` // The secret access key
	Unknowns  map[string]json.RawMessage `json:"-"`
}

KeyBasedAuthentication The credentials for the key-based authentication.

func (*KeyBasedAuthentication) MarshalJSON

func (kba *KeyBasedAuthentication) MarshalJSON() ([]byte, error)

func (*KeyBasedAuthentication) UnmarshalJSON

func (kba *KeyBasedAuthentication) UnmarshalJSON(data []byte) error

UnmarshalJSON provides custom JSON deserialization

type PartitionType

type PartitionType string

PartitionType The type of the AWS partition.

type RoleBasedAuthentication

type RoleBasedAuthentication struct {
	AccountID  string                     `json:"accountId"`            // The ID of the Amazon account.
	ExternalID *string                    `json:"externalId,omitempty"` // The external ID token for setting an IAM role.   You can obtain it with the `GET /aws/iamExternalId` request.
	IamRole    string                     `json:"iamRole"`              // The IAM role to be used by Dynatrace to get monitoring data.
	Unknowns   map[string]json.RawMessage `json:"-"`
}

RoleBasedAuthentication The credentials for the role-based authentication.

func (*RoleBasedAuthentication) MarshalJSON

func (rba *RoleBasedAuthentication) MarshalJSON() ([]byte, error)

func (*RoleBasedAuthentication) UnmarshalJSON

func (rba *RoleBasedAuthentication) UnmarshalJSON(data []byte) error

type Statistic

type Statistic string

Statistic The statistic (aggregation) to be used for the metric. AVG_MIN_MAX value is 3 statistics at once: AVERAGE, MINIMUM and MAXIMUM

type Type

type Type string

Type The type of the authentication: role-based or key-based.

Jump to

Keyboard shortcuts

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