config

package
v0.0.0-...-69b7239 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package config provides a client for AWS Config.

Index

Constants

View Source
const (
	ChronologicalOrderForward = "Forward"
	ChronologicalOrderReverse = "Reverse"
)

Possible values for Config.

View Source
const (
	ConfigurationItemStatusDeleted    = "Deleted"
	ConfigurationItemStatusDiscovered = "Discovered"
	ConfigurationItemStatusFailed     = "Failed"
	ConfigurationItemStatusOK         = "Ok"
)

Possible values for Config.

View Source
const (
	DeliveryStatusFailure = "Failure"
	DeliveryStatusSuccess = "Success"
)

Possible values for Config.

View Source
const (
	RecorderStatusFailure = "Failure"
	RecorderStatusPending = "Pending"
	RecorderStatusSuccess = "Success"
)

Possible values for Config.

View Source
const (
	ResourceTypeAWSCloudTrailTrail     = "AWS::CloudTrail::Trail"
	ResourceTypeAWSEC2CustomerGateway  = "AWS::EC2::CustomerGateway"
	ResourceTypeAWSEC2EIP              = "AWS::EC2::EIP"
	ResourceTypeAWSEC2Instance         = "AWS::EC2::Instance"
	ResourceTypeAWSEC2InternetGateway  = "AWS::EC2::InternetGateway"
	ResourceTypeAWSEC2NetworkACL       = "AWS::EC2::NetworkAcl"
	ResourceTypeAWSEC2NetworkInterface = "AWS::EC2::NetworkInterface"
	ResourceTypeAWSEC2RouteTable       = "AWS::EC2::RouteTable"
	ResourceTypeAWSEC2SecurityGroup    = "AWS::EC2::SecurityGroup"
	ResourceTypeAWSEC2Subnet           = "AWS::EC2::Subnet"
	ResourceTypeAWSEC2VPC              = "AWS::EC2::VPC"
	ResourceTypeAWSEC2VPNconnection    = "AWS::EC2::VPNConnection"
	ResourceTypeAWSEC2VPNgateway       = "AWS::EC2::VPNGateway"
	ResourceTypeAWSEC2Volume           = "AWS::EC2::Volume"
)

Possible values for Config.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config is a client for AWS Config.

func New

func New(creds aws.CredentialsProvider, region string, client *http.Client) *Config

New returns a new Config client.

func (*Config) DeleteDeliveryChannel

func (c *Config) DeleteDeliveryChannel(req *DeleteDeliveryChannelRequest) (err error)

DeleteDeliveryChannel deletes the specified delivery channel. The delivery channel cannot be deleted if it is the only delivery channel and the configuration recorder is still running. To delete the delivery channel, stop the running configuration recorder using the StopConfigurationRecorder action.

func (*Config) DeliverConfigSnapshot

func (c *Config) DeliverConfigSnapshot(req *DeliverConfigSnapshotRequest) (resp *DeliverConfigSnapshotResponse, err error)

DeliverConfigSnapshot schedules delivery of a configuration snapshot to the Amazon S3 bucket in the specified delivery channel. After the delivery has started, AWS Config sends following notifications using an Amazon SNS topic that you have specified. Notification of starting the delivery. Notification of delivery completed, if the delivery was successfully completed. Notification of delivery failure, if the delivery failed to complete.

func (*Config) DescribeConfigurationRecorderStatus

func (c *Config) DescribeConfigurationRecorderStatus(req *DescribeConfigurationRecorderStatusRequest) (resp *DescribeConfigurationRecorderStatusResponse, err error)

DescribeConfigurationRecorderStatus returns the current status of the specified configuration recorder. If a configuration recorder is not specified, this action returns the status of all configuration recorder associated with the account.

func (*Config) DescribeConfigurationRecorders

func (c *Config) DescribeConfigurationRecorders(req *DescribeConfigurationRecordersRequest) (resp *DescribeConfigurationRecordersResponse, err error)

DescribeConfigurationRecorders returns the name of one or more specified configuration recorders. If the recorder name is not specified, this action returns the names of all the configuration recorders associated with the account.

func (*Config) DescribeDeliveryChannelStatus

func (c *Config) DescribeDeliveryChannelStatus(req *DescribeDeliveryChannelStatusRequest) (resp *DescribeDeliveryChannelStatusResponse, err error)

DescribeDeliveryChannelStatus returns the current status of the specified delivery channel. If a delivery channel is not specified, this action returns the current status of all delivery channels associated with the account.

func (*Config) DescribeDeliveryChannels

func (c *Config) DescribeDeliveryChannels(req *DescribeDeliveryChannelsRequest) (resp *DescribeDeliveryChannelsResponse, err error)

DescribeDeliveryChannels returns details about the specified delivery channel. If a delivery channel is not specified, this action returns the details of all delivery channels associated with the account.

func (*Config) GetResourceConfigHistory

func (c *Config) GetResourceConfigHistory(req *GetResourceConfigHistoryRequest) (resp *GetResourceConfigHistoryResponse, err error)

GetResourceConfigHistory returns a list of configuration items for the specified resource. The list contains details about each state of the resource during the specified time interval. You can specify a limit on the number of results returned on the page. If a limit is specified, a nextToken is returned as part of the result that you can use to continue this request.

func (*Config) PutConfigurationRecorder

func (c *Config) PutConfigurationRecorder(req *PutConfigurationRecorderRequest) (err error)

PutConfigurationRecorder creates a new configuration recorder to record the resource configurations. You can use this action to change the role roleARN ) of an existing recorder. To change the role, call the action on the existing configuration recorder and specify a role.

func (*Config) PutDeliveryChannel

func (c *Config) PutDeliveryChannel(req *PutDeliveryChannelRequest) (err error)

PutDeliveryChannel creates a new delivery channel object to deliver the configuration information to an Amazon S3 bucket, and to an Amazon SNS topic. You can use this action to change the Amazon S3 bucket or an Amazon SNS topic of the existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS topic, call this action and specify the changed values for the S3 bucket and the SNS topic. If you specify a different value for either the S3 bucket or the SNS topic, this action will keep the existing value for the parameter that is not changed.

func (*Config) StartConfigurationRecorder

func (c *Config) StartConfigurationRecorder(req *StartConfigurationRecorderRequest) (err error)

StartConfigurationRecorder starts recording configurations of all the resources associated with the account. You must have created at least one delivery channel to successfully start the configuration recorder.

func (*Config) StopConfigurationRecorder

func (c *Config) StopConfigurationRecorder(req *StopConfigurationRecorderRequest) (err error)

StopConfigurationRecorder stops recording configurations of all the resources associated with the account.

type ConfigExportDeliveryInfo

type ConfigExportDeliveryInfo struct {
	LastAttemptTime    *aws.UnixTimestamp `json:"lastAttemptTime,omitempty"`
	LastErrorCode      aws.StringValue    `json:"lastErrorCode,omitempty"`
	LastErrorMessage   aws.StringValue    `json:"lastErrorMessage,omitempty"`
	LastStatus         aws.StringValue    `json:"lastStatus,omitempty"`
	LastSuccessfulTime *aws.UnixTimestamp `json:"lastSuccessfulTime,omitempty"`
}

ConfigExportDeliveryInfo is undocumented.

type ConfigStreamDeliveryInfo

type ConfigStreamDeliveryInfo struct {
	LastErrorCode        aws.StringValue    `json:"lastErrorCode,omitempty"`
	LastErrorMessage     aws.StringValue    `json:"lastErrorMessage,omitempty"`
	LastStatus           aws.StringValue    `json:"lastStatus,omitempty"`
	LastStatusChangeTime *aws.UnixTimestamp `json:"lastStatusChangeTime,omitempty"`
}

ConfigStreamDeliveryInfo is undocumented.

type ConfigurationItem

type ConfigurationItem struct {
	AccountID                    aws.StringValue    `json:"accountId,omitempty"`
	ARN                          aws.StringValue    `json:"arn,omitempty"`
	AvailabilityZone             aws.StringValue    `json:"availabilityZone,omitempty"`
	Configuration                aws.StringValue    `json:"configuration,omitempty"`
	ConfigurationItemCaptureTime *aws.UnixTimestamp `json:"configurationItemCaptureTime,omitempty"`
	ConfigurationItemMD5Hash     aws.StringValue    `json:"configurationItemMD5Hash,omitempty"`
	ConfigurationItemStatus      aws.StringValue    `json:"configurationItemStatus,omitempty"`
	ConfigurationStateID         aws.StringValue    `json:"configurationStateId,omitempty"`
	RelatedEvents                []string           `json:"relatedEvents,omitempty"`
	Relationships                []Relationship     `json:"relationships,omitempty"`
	ResourceCreationTime         *aws.UnixTimestamp `json:"resourceCreationTime,omitempty"`
	ResourceID                   aws.StringValue    `json:"resourceId,omitempty"`
	ResourceType                 aws.StringValue    `json:"resourceType,omitempty"`
	Tags                         map[string]string  `json:"tags,omitempty"`
	Version                      aws.StringValue    `json:"version,omitempty"`
}

ConfigurationItem is undocumented.

type ConfigurationRecorder

type ConfigurationRecorder struct {
	Name    aws.StringValue `json:"name,omitempty"`
	RoleARN aws.StringValue `json:"roleARN,omitempty"`
}

ConfigurationRecorder is undocumented.

type ConfigurationRecorderStatus

type ConfigurationRecorderStatus struct {
	LastErrorCode        aws.StringValue    `json:"lastErrorCode,omitempty"`
	LastErrorMessage     aws.StringValue    `json:"lastErrorMessage,omitempty"`
	LastStartTime        *aws.UnixTimestamp `json:"lastStartTime,omitempty"`
	LastStatus           aws.StringValue    `json:"lastStatus,omitempty"`
	LastStatusChangeTime *aws.UnixTimestamp `json:"lastStatusChangeTime,omitempty"`
	LastStopTime         *aws.UnixTimestamp `json:"lastStopTime,omitempty"`
	Name                 aws.StringValue    `json:"name,omitempty"`
	Recording            aws.BooleanValue   `json:"recording,omitempty"`
}

ConfigurationRecorderStatus is undocumented.

type DeleteDeliveryChannelRequest

type DeleteDeliveryChannelRequest struct {
	DeliveryChannelName aws.StringValue `json:"DeliveryChannelName"`
}

DeleteDeliveryChannelRequest is undocumented.

type DeliverConfigSnapshotRequest

type DeliverConfigSnapshotRequest struct {
	DeliveryChannelName aws.StringValue `json:"deliveryChannelName"`
}

DeliverConfigSnapshotRequest is undocumented.

type DeliverConfigSnapshotResponse

type DeliverConfigSnapshotResponse struct {
	ConfigSnapshotID aws.StringValue `json:"configSnapshotId,omitempty"`
}

DeliverConfigSnapshotResponse is undocumented.

type DeliveryChannel

type DeliveryChannel struct {
	Name         aws.StringValue `json:"name,omitempty"`
	S3BucketName aws.StringValue `json:"s3BucketName,omitempty"`
	S3KeyPrefix  aws.StringValue `json:"s3KeyPrefix,omitempty"`
	SNSTopicARN  aws.StringValue `json:"snsTopicARN,omitempty"`
}

DeliveryChannel is undocumented.

type DeliveryChannelStatus

type DeliveryChannelStatus struct {
	ConfigHistoryDeliveryInfo  *ConfigExportDeliveryInfo `json:"configHistoryDeliveryInfo,omitempty"`
	ConfigSnapshotDeliveryInfo *ConfigExportDeliveryInfo `json:"configSnapshotDeliveryInfo,omitempty"`
	ConfigStreamDeliveryInfo   *ConfigStreamDeliveryInfo `json:"configStreamDeliveryInfo,omitempty"`
	Name                       aws.StringValue           `json:"name,omitempty"`
}

DeliveryChannelStatus is undocumented.

type DescribeConfigurationRecorderStatusRequest

type DescribeConfigurationRecorderStatusRequest struct {
	ConfigurationRecorderNames []string `json:"ConfigurationRecorderNames,omitempty"`
}

DescribeConfigurationRecorderStatusRequest is undocumented.

type DescribeConfigurationRecorderStatusResponse

type DescribeConfigurationRecorderStatusResponse struct {
	ConfigurationRecordersStatus []ConfigurationRecorderStatus `json:"ConfigurationRecordersStatus,omitempty"`
}

DescribeConfigurationRecorderStatusResponse is undocumented.

type DescribeConfigurationRecordersRequest

type DescribeConfigurationRecordersRequest struct {
	ConfigurationRecorderNames []string `json:"ConfigurationRecorderNames,omitempty"`
}

DescribeConfigurationRecordersRequest is undocumented.

type DescribeConfigurationRecordersResponse

type DescribeConfigurationRecordersResponse struct {
	ConfigurationRecorders []ConfigurationRecorder `json:"ConfigurationRecorders,omitempty"`
}

DescribeConfigurationRecordersResponse is undocumented.

type DescribeDeliveryChannelStatusRequest

type DescribeDeliveryChannelStatusRequest struct {
	DeliveryChannelNames []string `json:"DeliveryChannelNames,omitempty"`
}

DescribeDeliveryChannelStatusRequest is undocumented.

type DescribeDeliveryChannelStatusResponse

type DescribeDeliveryChannelStatusResponse struct {
	DeliveryChannelsStatus []DeliveryChannelStatus `json:"DeliveryChannelsStatus,omitempty"`
}

DescribeDeliveryChannelStatusResponse is undocumented.

type DescribeDeliveryChannelsRequest

type DescribeDeliveryChannelsRequest struct {
	DeliveryChannelNames []string `json:"DeliveryChannelNames,omitempty"`
}

DescribeDeliveryChannelsRequest is undocumented.

type DescribeDeliveryChannelsResponse

type DescribeDeliveryChannelsResponse struct {
	DeliveryChannels []DeliveryChannel `json:"DeliveryChannels,omitempty"`
}

DescribeDeliveryChannelsResponse is undocumented.

type GetResourceConfigHistoryRequest

type GetResourceConfigHistoryRequest struct {
	ChronologicalOrder aws.StringValue    `json:"chronologicalOrder,omitempty"`
	EarlierTime        *aws.UnixTimestamp `json:"earlierTime,omitempty"`
	LaterTime          *aws.UnixTimestamp `json:"laterTime,omitempty"`
	Limit              aws.IntegerValue   `json:"limit,omitempty"`
	NextToken          aws.StringValue    `json:"nextToken,omitempty"`
	ResourceID         aws.StringValue    `json:"resourceId"`
	ResourceType       aws.StringValue    `json:"resourceType"`
}

GetResourceConfigHistoryRequest is undocumented.

type GetResourceConfigHistoryResponse

type GetResourceConfigHistoryResponse struct {
	ConfigurationItems []ConfigurationItem `json:"configurationItems,omitempty"`
	NextToken          aws.StringValue     `json:"nextToken,omitempty"`
}

GetResourceConfigHistoryResponse is undocumented.

type PutConfigurationRecorderRequest

type PutConfigurationRecorderRequest struct {
	ConfigurationRecorder *ConfigurationRecorder `json:"ConfigurationRecorder"`
}

PutConfigurationRecorderRequest is undocumented.

type PutDeliveryChannelRequest

type PutDeliveryChannelRequest struct {
	DeliveryChannel *DeliveryChannel `json:"DeliveryChannel"`
}

PutDeliveryChannelRequest is undocumented.

type Relationship

type Relationship struct {
	RelationshipName aws.StringValue `json:"relationshipName,omitempty"`
	ResourceID       aws.StringValue `json:"resourceId,omitempty"`
	ResourceType     aws.StringValue `json:"resourceType,omitempty"`
}

Relationship is undocumented.

type StartConfigurationRecorderRequest

type StartConfigurationRecorderRequest struct {
	ConfigurationRecorderName aws.StringValue `json:"ConfigurationRecorderName"`
}

StartConfigurationRecorderRequest is undocumented.

type StopConfigurationRecorderRequest

type StopConfigurationRecorderRequest struct {
	ConfigurationRecorderName aws.StringValue `json:"ConfigurationRecorderName"`
}

StopConfigurationRecorderRequest is undocumented.

Jump to

Keyboard shortcuts

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