configservice

package
v0.0.0-...-7dbef39 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigurationItemContentMap

func ConfigurationItemContentMap(ci ConfigurationItem) map[string]string

Types

type CloudWatchEventDetail

type CloudWatchEventDetail struct {
	RecordVersion            string `json:"recordVersion"`
	MessageType              string `json:"messageType"`
	NotificationCreationTime string `json:"notificationCreationTime"`

	ConfigurationItemDetail
	OversizedConfigurationItemDetail
}

type Config

type Config struct {
	*aws.Config

	AssumeRole string
}

type ConfigService

type ConfigService struct {
	configserviceiface.ConfigServiceAPI
	// contains filtered or unexported fields
}

func New

func New(config *Config) *ConfigService

func (*ConfigService) BatchGetResourceConfig

func (c *ConfigService) BatchGetResourceConfig(ctx context.Context, resources map[string]string) ([]*ConfigurationItem, error)

func (*ConfigService) GetLatestResourceConfig

func (c *ConfigService) GetLatestResourceConfig(ctx context.Context, resourceType, resourceId string) (*ConfigurationItem, error)

type ConfigurationItem

type ConfigurationItem struct {
	Configuration struct {
		ImageId            string             `json:"imageId"`
		KeyName            string             `json:"keyName"`
		Platform           string             `json:"platform"`
		SubnetId           string             `json:"subnetId"`
		State              ConfigurationState `json:"state"`
		InstanceType       string             `json:"instanceType"`
		IAMInstanceProfile struct {
			ARN string `json:"arn"`
			Id  string `json:"id"`
		} `json:"iamInstanceProfile"`
		Tags []struct {
			Key   string `json:"key"`
			Value string `json:"Value"`
		} `json:"tags"`
		VPCId string `json:"vpcId"`
	} `json:"configuration"`
	SupplementaryConfiguration   struct{}          `json:"supplementaryConfiguration"`
	Tags                         map[string]string `json:"tags"`
	ConfigurationItemVersion     string            `json:"configurationItemVersion"`
	ConfigurationItemCaptureTime string            `json:"configurationItemCaptureTime"`
	ConfigurationStateId         float64           `json:"configurationStateId"`
	AWSAccountId                 string            `json:"awsAccountId"`
	ConfigurationItemStatus      string            `json:"configurationItemStatus"`
	ResourceType                 string            `json:"resourceType"`
	ResourceId                   string            `json:"resourceId"`
	ARN                          string            `json:"arn"`
	AWSRegion                    string            `json:"awsRegion"`
	AvailabilityZone             string            `json:"availabilityZone"`
	ConfigurationStateMD5Hash    string            `json:"configurationStateMd5Hash"`
	ResourceCreationTime         string            `json:"resourceCreationTime"`
}

func (*ConfigurationItem) Hash

func (c *ConfigurationItem) Hash() string

func (*ConfigurationItem) Name

func (c *ConfigurationItem) Name() string

type ConfigurationItemDetail

type ConfigurationItemDetail struct {
	ConfigurationItemDiff map[string]interface{} `json:"configurationItemDiff"`
	ConfigurationItem     ConfigurationItem      `json:"configurationItem"`
}

type ConfigurationState

type ConfigurationState string

ConfigurationState can be a string or object

func (*ConfigurationState) UnmarshalJSON

func (s *ConfigurationState) UnmarshalJSON(b []byte) (err error)

type OversizedConfigurationItemDetail

type OversizedConfigurationItemDetail struct {
	S3DeliverySummary struct {
		S3BucketLocation string `json:"s3BucketLocation"`
	} `json:"s3DeliverySummary"`
	ConfigurationItemSummary struct {
		ARN                          string `json:"ARN"`
		AWSAccountId                 string `json:"awsAccountId"`
		AWSRegion                    string `json:"awsRegion"`
		ChangeType                   string `json:"changeType"`
		ConfigurationItemCaptureTime string `json:"configurationItemCaptureTime"`
		ConfigurationItemStatus      string `json:"configurationItemStatus"`
		ConfigurationItemVersion     string `json:"configurationItemVersion"`
		ConfigurationStateId         int    `json:"configurationStateId"`
		ConfigurationStateMd5Hash    string `json:"configurationStateMd5Hash"`
		ResourceId                   string `json:"resourceId"`
		ResourceType                 string `json:"resourceType"`
	} `json:"configurationItemSummary"`
}

Jump to

Keyboard shortcuts

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