codeguruprofiler

package
v1.29.9 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 14

Documentation

Overview

Package codeguruprofiler provides the client and types for making API requests to Amazon CodeGuru Profiler.

Example service documentation.

See https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18 for more information on this service.

See codeguruprofiler package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/codeguruprofiler/

Using the Client

To contact Amazon CodeGuru Profiler with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon CodeGuru Profiler client CodeGuruProfiler for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/codeguruprofiler/#New

Index

Constants

View Source
const (
	// AggregationPeriodP1d is a AggregationPeriod enum value
	AggregationPeriodP1d = "P1D"

	// AggregationPeriodPt1h is a AggregationPeriod enum value
	AggregationPeriodPt1h = "PT1H"

	// AggregationPeriodPt5m is a AggregationPeriod enum value
	AggregationPeriodPt5m = "PT5M"
)

Periods of time used for aggregation of profiles, represented using ISO 8601 format.

View Source
const (
	// OrderByTimestampAscending is a OrderBy enum value
	OrderByTimestampAscending = "TimestampAscending"

	// OrderByTimestampDescending is a OrderBy enum value
	OrderByTimestampDescending = "TimestampDescending"
)
View Source
const (

	// ErrCodeConflictException for service response error code
	// "ConflictException".
	//
	// Request can can cause an inconsistent state for the resource.
	ErrCodeConflictException = "ConflictException"

	// ErrCodeInternalServerException for service response error code
	// "InternalServerException".
	//
	// Unexpected error during processing of request.
	ErrCodeInternalServerException = "InternalServerException"

	// ErrCodeResourceNotFoundException for service response error code
	// "ResourceNotFoundException".
	//
	// Request references a resource which does not exist.
	ErrCodeResourceNotFoundException = "ResourceNotFoundException"

	// ErrCodeServiceQuotaExceededException for service response error code
	// "ServiceQuotaExceededException".
	//
	// Request would cause a service quota to be exceeded.
	ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException"

	// ErrCodeThrottlingException for service response error code
	// "ThrottlingException".
	//
	// Request was denied due to request throttling.
	ErrCodeThrottlingException = "ThrottlingException"

	// ErrCodeValidationException for service response error code
	// "ValidationException".
	//
	// The input fails to satisfy the constraints of the API.
	ErrCodeValidationException = "ValidationException"
)
View Source
const (
	ServiceName = "CodeGuruProfiler"  // Name of service.
	EndpointsID = "codeguru-profiler" // ID to lookup a service endpoint with.
	ServiceID   = "CodeGuruProfiler"  // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfiguration

type AgentConfiguration struct {

	// Specifies the period to follow the configuration (to profile or not) and
	// call back to get a new configuration.
	//
	// PeriodInSeconds is a required field
	PeriodInSeconds *int64 `locationName:"periodInSeconds" type:"integer" required:"true"`

	// Specifies if the profiling should be enabled by the agent.
	//
	// ShouldProfile is a required field
	ShouldProfile *bool `locationName:"shouldProfile" type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

The configuration for the agent to use.

func (AgentConfiguration) GoString

func (s AgentConfiguration) GoString() string

GoString returns the string representation

func (*AgentConfiguration) SetPeriodInSeconds

func (s *AgentConfiguration) SetPeriodInSeconds(v int64) *AgentConfiguration

SetPeriodInSeconds sets the PeriodInSeconds field's value.

func (*AgentConfiguration) SetShouldProfile

func (s *AgentConfiguration) SetShouldProfile(v bool) *AgentConfiguration

SetShouldProfile sets the ShouldProfile field's value.

func (AgentConfiguration) String

func (s AgentConfiguration) String() string

String returns the string representation

type AgentOrchestrationConfig

type AgentOrchestrationConfig struct {

	// If the agents should be enabled to create and report profiles.
	//
	// ProfilingEnabled is a required field
	ProfilingEnabled *bool `locationName:"profilingEnabled" type:"boolean" required:"true"`
	// contains filtered or unexported fields
}

Configuration to orchestrate agents to create and report agent profiles of the profiling group. Agents are orchestrated if they follow the agent orchestration protocol.

func (AgentOrchestrationConfig) GoString

func (s AgentOrchestrationConfig) GoString() string

GoString returns the string representation

func (*AgentOrchestrationConfig) SetProfilingEnabled

func (s *AgentOrchestrationConfig) SetProfilingEnabled(v bool) *AgentOrchestrationConfig

SetProfilingEnabled sets the ProfilingEnabled field's value.

func (AgentOrchestrationConfig) String

func (s AgentOrchestrationConfig) String() string

String returns the string representation

func (*AgentOrchestrationConfig) Validate

func (s *AgentOrchestrationConfig) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type AggregatedProfileTime

type AggregatedProfileTime struct {

	// The aggregation period of the aggregated profile.
	Period *string `locationName:"period" type:"string" enum:"AggregationPeriod"`

	// The start time of the aggregated profile.
	Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
	// contains filtered or unexported fields
}

The time range of an aggregated profile.

func (AggregatedProfileTime) GoString

func (s AggregatedProfileTime) GoString() string

GoString returns the string representation

func (*AggregatedProfileTime) SetPeriod

SetPeriod sets the Period field's value.

func (*AggregatedProfileTime) SetStart

SetStart sets the Start field's value.

func (AggregatedProfileTime) String

func (s AggregatedProfileTime) String() string

String returns the string representation

type CodeGuruProfiler

type CodeGuruProfiler struct {
	*client.Client
}

CodeGuruProfiler provides the API operation methods for making requests to Amazon CodeGuru Profiler. See this package's package overview docs for details on the service.

CodeGuruProfiler methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New creates a new instance of the CodeGuruProfiler 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 CodeGuruProfiler client from just a session.
svc := codeguruprofiler.New(mySession)

// Create a CodeGuruProfiler client with additional configuration
svc := codeguruprofiler.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CodeGuruProfiler) ConfigureAgent

func (c *CodeGuruProfiler) ConfigureAgent(input *ConfigureAgentInput) (*ConfigureAgentOutput, error)

ConfigureAgent API operation for Amazon CodeGuru Profiler.

Provides the configuration to use for an agent of the profiling group.

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 CodeGuru Profiler's API operation ConfigureAgent for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ConfigureAgent

func (*CodeGuruProfiler) ConfigureAgentRequest

func (c *CodeGuruProfiler) ConfigureAgentRequest(input *ConfigureAgentInput) (req *request.Request, output *ConfigureAgentOutput)

ConfigureAgentRequest generates a "aws/request.Request" representing the client's request for the ConfigureAgent 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 ConfigureAgent for more information on using the ConfigureAgent 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 ConfigureAgentRequest method.
req, resp := client.ConfigureAgentRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ConfigureAgent

func (*CodeGuruProfiler) ConfigureAgentWithContext

func (c *CodeGuruProfiler) ConfigureAgentWithContext(ctx aws.Context, input *ConfigureAgentInput, opts ...request.Option) (*ConfigureAgentOutput, error)

ConfigureAgentWithContext is the same as ConfigureAgent with the addition of the ability to pass a context and additional request options.

See ConfigureAgent 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 (*CodeGuruProfiler) CreateProfilingGroup

func (c *CodeGuruProfiler) CreateProfilingGroup(input *CreateProfilingGroupInput) (*CreateProfilingGroupOutput, error)

CreateProfilingGroup API operation for Amazon CodeGuru Profiler.

Create a profiling group.

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 CodeGuru Profiler's API operation CreateProfilingGroup for usage and error information.

Returned Error Types:

  • ServiceQuotaExceededException Request would cause a service quota to be exceeded.

  • InternalServerException Unexpected error during processing of request.

  • ConflictException Request can can cause an inconsistent state for the resource.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup

func (*CodeGuruProfiler) CreateProfilingGroupRequest

func (c *CodeGuruProfiler) CreateProfilingGroupRequest(input *CreateProfilingGroupInput) (req *request.Request, output *CreateProfilingGroupOutput)

CreateProfilingGroupRequest generates a "aws/request.Request" representing the client's request for the CreateProfilingGroup 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 CreateProfilingGroup for more information on using the CreateProfilingGroup 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 CreateProfilingGroupRequest method.
req, resp := client.CreateProfilingGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/CreateProfilingGroup

func (*CodeGuruProfiler) CreateProfilingGroupWithContext

func (c *CodeGuruProfiler) CreateProfilingGroupWithContext(ctx aws.Context, input *CreateProfilingGroupInput, opts ...request.Option) (*CreateProfilingGroupOutput, error)

CreateProfilingGroupWithContext is the same as CreateProfilingGroup with the addition of the ability to pass a context and additional request options.

See CreateProfilingGroup 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 (*CodeGuruProfiler) DeleteProfilingGroup

func (c *CodeGuruProfiler) DeleteProfilingGroup(input *DeleteProfilingGroupInput) (*DeleteProfilingGroupOutput, error)

DeleteProfilingGroup API operation for Amazon CodeGuru Profiler.

Delete a profiling group.

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 CodeGuru Profiler's API operation DeleteProfilingGroup for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup

func (*CodeGuruProfiler) DeleteProfilingGroupRequest

func (c *CodeGuruProfiler) DeleteProfilingGroupRequest(input *DeleteProfilingGroupInput) (req *request.Request, output *DeleteProfilingGroupOutput)

DeleteProfilingGroupRequest generates a "aws/request.Request" representing the client's request for the DeleteProfilingGroup 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 DeleteProfilingGroup for more information on using the DeleteProfilingGroup 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 DeleteProfilingGroupRequest method.
req, resp := client.DeleteProfilingGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DeleteProfilingGroup

func (*CodeGuruProfiler) DeleteProfilingGroupWithContext

func (c *CodeGuruProfiler) DeleteProfilingGroupWithContext(ctx aws.Context, input *DeleteProfilingGroupInput, opts ...request.Option) (*DeleteProfilingGroupOutput, error)

DeleteProfilingGroupWithContext is the same as DeleteProfilingGroup with the addition of the ability to pass a context and additional request options.

See DeleteProfilingGroup 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 (*CodeGuruProfiler) DescribeProfilingGroup

DescribeProfilingGroup API operation for Amazon CodeGuru Profiler.

Describe a profiling group.

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 CodeGuru Profiler's API operation DescribeProfilingGroup for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DescribeProfilingGroup

func (*CodeGuruProfiler) DescribeProfilingGroupRequest

func (c *CodeGuruProfiler) DescribeProfilingGroupRequest(input *DescribeProfilingGroupInput) (req *request.Request, output *DescribeProfilingGroupOutput)

DescribeProfilingGroupRequest generates a "aws/request.Request" representing the client's request for the DescribeProfilingGroup 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 DescribeProfilingGroup for more information on using the DescribeProfilingGroup 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 DescribeProfilingGroupRequest method.
req, resp := client.DescribeProfilingGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/DescribeProfilingGroup

func (*CodeGuruProfiler) DescribeProfilingGroupWithContext

func (c *CodeGuruProfiler) DescribeProfilingGroupWithContext(ctx aws.Context, input *DescribeProfilingGroupInput, opts ...request.Option) (*DescribeProfilingGroupOutput, error)

DescribeProfilingGroupWithContext is the same as DescribeProfilingGroup with the addition of the ability to pass a context and additional request options.

See DescribeProfilingGroup 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 (*CodeGuruProfiler) GetProfile

func (c *CodeGuruProfiler) GetProfile(input *GetProfileInput) (*GetProfileOutput, error)

GetProfile API operation for Amazon CodeGuru Profiler.

Get the aggregated profile of a profiling group for the specified time range. If the requested time range does not align with the available aggregated profiles, it will be expanded to attain alignment. If aggregated profiles are available only for part of the period requested, the profile is returned from the earliest available to the latest within the requested time range. For instance, if the requested time range is from 00:00 to 00:20 and the available profiles are from 00:15 to 00:25, then the returned profile will be from 00:15 to 00:20.

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 CodeGuru Profiler's API operation GetProfile for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetProfile

func (*CodeGuruProfiler) GetProfileRequest

func (c *CodeGuruProfiler) GetProfileRequest(input *GetProfileInput) (req *request.Request, output *GetProfileOutput)

GetProfileRequest generates a "aws/request.Request" representing the client's request for the GetProfile 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 GetProfile for more information on using the GetProfile 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 GetProfileRequest method.
req, resp := client.GetProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/GetProfile

func (*CodeGuruProfiler) GetProfileWithContext

func (c *CodeGuruProfiler) GetProfileWithContext(ctx aws.Context, input *GetProfileInput, opts ...request.Option) (*GetProfileOutput, error)

GetProfileWithContext is the same as GetProfile with the addition of the ability to pass a context and additional request options.

See GetProfile 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 (*CodeGuruProfiler) ListProfileTimes

func (c *CodeGuruProfiler) ListProfileTimes(input *ListProfileTimesInput) (*ListProfileTimesOutput, error)

ListProfileTimes API operation for Amazon CodeGuru Profiler.

List the start times of the available aggregated profiles of a profiling group for an aggregation period within the specified time range.

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 CodeGuru Profiler's API operation ListProfileTimes for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfileTimes

func (*CodeGuruProfiler) ListProfileTimesPages

func (c *CodeGuruProfiler) ListProfileTimesPages(input *ListProfileTimesInput, fn func(*ListProfileTimesOutput, bool) bool) error

ListProfileTimesPages iterates over the pages of a ListProfileTimes operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProfileTimes 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 ListProfileTimes operation.
pageNum := 0
err := client.ListProfileTimesPages(params,
    func(page *codeguruprofiler.ListProfileTimesOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CodeGuruProfiler) ListProfileTimesPagesWithContext

func (c *CodeGuruProfiler) ListProfileTimesPagesWithContext(ctx aws.Context, input *ListProfileTimesInput, fn func(*ListProfileTimesOutput, bool) bool, opts ...request.Option) error

ListProfileTimesPagesWithContext same as ListProfileTimesPages 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 (*CodeGuruProfiler) ListProfileTimesRequest

func (c *CodeGuruProfiler) ListProfileTimesRequest(input *ListProfileTimesInput) (req *request.Request, output *ListProfileTimesOutput)

ListProfileTimesRequest generates a "aws/request.Request" representing the client's request for the ListProfileTimes 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 ListProfileTimes for more information on using the ListProfileTimes 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 ListProfileTimesRequest method.
req, resp := client.ListProfileTimesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfileTimes

func (*CodeGuruProfiler) ListProfileTimesWithContext

func (c *CodeGuruProfiler) ListProfileTimesWithContext(ctx aws.Context, input *ListProfileTimesInput, opts ...request.Option) (*ListProfileTimesOutput, error)

ListProfileTimesWithContext is the same as ListProfileTimes with the addition of the ability to pass a context and additional request options.

See ListProfileTimes 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 (*CodeGuruProfiler) ListProfilingGroups

func (c *CodeGuruProfiler) ListProfilingGroups(input *ListProfilingGroupsInput) (*ListProfilingGroupsOutput, error)

ListProfilingGroups API operation for Amazon CodeGuru Profiler.

List profiling groups in the 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 CodeGuru Profiler's API operation ListProfilingGroups for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ThrottlingException Request was denied due to request throttling.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfilingGroups

func (*CodeGuruProfiler) ListProfilingGroupsPages

func (c *CodeGuruProfiler) ListProfilingGroupsPages(input *ListProfilingGroupsInput, fn func(*ListProfilingGroupsOutput, bool) bool) error

ListProfilingGroupsPages iterates over the pages of a ListProfilingGroups operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.

See ListProfilingGroups 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 ListProfilingGroups operation.
pageNum := 0
err := client.ListProfilingGroupsPages(params,
    func(page *codeguruprofiler.ListProfilingGroupsOutput, lastPage bool) bool {
        pageNum++
        fmt.Println(page)
        return pageNum <= 3
    })

func (*CodeGuruProfiler) ListProfilingGroupsPagesWithContext

func (c *CodeGuruProfiler) ListProfilingGroupsPagesWithContext(ctx aws.Context, input *ListProfilingGroupsInput, fn func(*ListProfilingGroupsOutput, bool) bool, opts ...request.Option) error

ListProfilingGroupsPagesWithContext same as ListProfilingGroupsPages 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 (*CodeGuruProfiler) ListProfilingGroupsRequest

func (c *CodeGuruProfiler) ListProfilingGroupsRequest(input *ListProfilingGroupsInput) (req *request.Request, output *ListProfilingGroupsOutput)

ListProfilingGroupsRequest generates a "aws/request.Request" representing the client's request for the ListProfilingGroups 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 ListProfilingGroups for more information on using the ListProfilingGroups 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 ListProfilingGroupsRequest method.
req, resp := client.ListProfilingGroupsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/ListProfilingGroups

func (*CodeGuruProfiler) ListProfilingGroupsWithContext

func (c *CodeGuruProfiler) ListProfilingGroupsWithContext(ctx aws.Context, input *ListProfilingGroupsInput, opts ...request.Option) (*ListProfilingGroupsOutput, error)

ListProfilingGroupsWithContext is the same as ListProfilingGroups with the addition of the ability to pass a context and additional request options.

See ListProfilingGroups 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 (*CodeGuruProfiler) PostAgentProfile

func (c *CodeGuruProfiler) PostAgentProfile(input *PostAgentProfileInput) (*PostAgentProfileOutput, error)

PostAgentProfile API operation for Amazon CodeGuru Profiler.

Submit profile collected by an agent belonging to a profiling group for aggregation.

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 CodeGuru Profiler's API operation PostAgentProfile for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PostAgentProfile

func (*CodeGuruProfiler) PostAgentProfileRequest

func (c *CodeGuruProfiler) PostAgentProfileRequest(input *PostAgentProfileInput) (req *request.Request, output *PostAgentProfileOutput)

PostAgentProfileRequest generates a "aws/request.Request" representing the client's request for the PostAgentProfile 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 PostAgentProfile for more information on using the PostAgentProfile 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 PostAgentProfileRequest method.
req, resp := client.PostAgentProfileRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/PostAgentProfile

func (*CodeGuruProfiler) PostAgentProfileWithContext

func (c *CodeGuruProfiler) PostAgentProfileWithContext(ctx aws.Context, input *PostAgentProfileInput, opts ...request.Option) (*PostAgentProfileOutput, error)

PostAgentProfileWithContext is the same as PostAgentProfile with the addition of the ability to pass a context and additional request options.

See PostAgentProfile 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 (*CodeGuruProfiler) UpdateProfilingGroup

func (c *CodeGuruProfiler) UpdateProfilingGroup(input *UpdateProfilingGroupInput) (*UpdateProfilingGroupOutput, error)

UpdateProfilingGroup API operation for Amazon CodeGuru Profiler.

Update a profiling group.

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 CodeGuru Profiler's API operation UpdateProfilingGroup for usage and error information.

Returned Error Types:

  • InternalServerException Unexpected error during processing of request.

  • ConflictException Request can can cause an inconsistent state for the resource.

  • ValidationException The input fails to satisfy the constraints of the API.

  • ThrottlingException Request was denied due to request throttling.

  • ResourceNotFoundException Request references a resource which does not exist.

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UpdateProfilingGroup

func (*CodeGuruProfiler) UpdateProfilingGroupRequest

func (c *CodeGuruProfiler) UpdateProfilingGroupRequest(input *UpdateProfilingGroupInput) (req *request.Request, output *UpdateProfilingGroupOutput)

UpdateProfilingGroupRequest generates a "aws/request.Request" representing the client's request for the UpdateProfilingGroup 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 UpdateProfilingGroup for more information on using the UpdateProfilingGroup 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 UpdateProfilingGroupRequest method.
req, resp := client.UpdateProfilingGroupRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/UpdateProfilingGroup

func (*CodeGuruProfiler) UpdateProfilingGroupWithContext

func (c *CodeGuruProfiler) UpdateProfilingGroupWithContext(ctx aws.Context, input *UpdateProfilingGroupInput, opts ...request.Option) (*UpdateProfilingGroupOutput, error)

UpdateProfilingGroupWithContext is the same as UpdateProfilingGroup with the addition of the ability to pass a context and additional request options.

See UpdateProfilingGroup 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.

type ConfigureAgentInput

type ConfigureAgentInput struct {

	// Identifier of the instance of compute fleet being profiled by the agent.
	// For instance, host name in EC2, task id for ECS, function name for AWS Lambda
	FleetInstanceId *string `locationName:"fleetInstanceId" min:"1" type:"string"`

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request for ConfigureAgent operation.

func (ConfigureAgentInput) GoString

func (s ConfigureAgentInput) GoString() string

GoString returns the string representation

func (*ConfigureAgentInput) SetFleetInstanceId

func (s *ConfigureAgentInput) SetFleetInstanceId(v string) *ConfigureAgentInput

SetFleetInstanceId sets the FleetInstanceId field's value.

func (*ConfigureAgentInput) SetProfilingGroupName

func (s *ConfigureAgentInput) SetProfilingGroupName(v string) *ConfigureAgentInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (ConfigureAgentInput) String

func (s ConfigureAgentInput) String() string

String returns the string representation

func (*ConfigureAgentInput) Validate

func (s *ConfigureAgentInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ConfigureAgentOutput

type ConfigureAgentOutput struct {

	// The configuration for the agent to use.
	//
	// Configuration is a required field
	Configuration *AgentConfiguration `locationName:"configuration" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Response for ConfigureAgent operation.

func (ConfigureAgentOutput) GoString

func (s ConfigureAgentOutput) GoString() string

GoString returns the string representation

func (*ConfigureAgentOutput) SetConfiguration

SetConfiguration sets the Configuration field's value.

func (ConfigureAgentOutput) String

func (s ConfigureAgentOutput) String() string

String returns the string representation

type ConflictException added in v1.28.0

type ConflictException struct {
	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Request can can cause an inconsistent state for the resource.

func (ConflictException) Code added in v1.28.0

func (s ConflictException) Code() string

Code returns the exception type name.

func (ConflictException) Error added in v1.28.0

func (s ConflictException) Error() string

func (ConflictException) GoString added in v1.28.0

func (s ConflictException) GoString() string

GoString returns the string representation

func (ConflictException) Message added in v1.28.0

func (s ConflictException) Message() string

Message returns the exception's message.

func (ConflictException) OrigErr added in v1.28.0

func (s ConflictException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (ConflictException) RequestID added in v1.28.0

func (s ConflictException) RequestID() string

RequestID returns the service's response RequestID for request.

func (ConflictException) StatusCode added in v1.28.0

func (s ConflictException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ConflictException) String added in v1.28.0

func (s ConflictException) String() string

String returns the string representation

type CreateProfilingGroupInput

type CreateProfilingGroupInput struct {

	// Configuration to orchestrate agents to create and report agent profiles of
	// the profiling group. Agents are orchestrated if they follow the agent orchestration
	// protocol.
	AgentOrchestrationConfig *AgentOrchestrationConfig `locationName:"agentOrchestrationConfig" type:"structure"`

	// Client token for the request.
	ClientToken *string `location:"querystring" locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `locationName:"profilingGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request for CreateProfilingGroup operation.

func (CreateProfilingGroupInput) GoString

func (s CreateProfilingGroupInput) GoString() string

GoString returns the string representation

func (*CreateProfilingGroupInput) SetAgentOrchestrationConfig

SetAgentOrchestrationConfig sets the AgentOrchestrationConfig field's value.

func (*CreateProfilingGroupInput) SetClientToken

SetClientToken sets the ClientToken field's value.

func (*CreateProfilingGroupInput) SetProfilingGroupName

func (s *CreateProfilingGroupInput) SetProfilingGroupName(v string) *CreateProfilingGroupInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (CreateProfilingGroupInput) String

func (s CreateProfilingGroupInput) String() string

String returns the string representation

func (*CreateProfilingGroupInput) Validate

func (s *CreateProfilingGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateProfilingGroupOutput

type CreateProfilingGroupOutput struct {

	// The description of a profiling group.
	//
	// ProfilingGroup is a required field
	ProfilingGroup *ProfilingGroupDescription `locationName:"profilingGroup" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Response for CreateProfilingGroup operation.

func (CreateProfilingGroupOutput) GoString

func (s CreateProfilingGroupOutput) GoString() string

GoString returns the string representation

func (*CreateProfilingGroupOutput) SetProfilingGroup

SetProfilingGroup sets the ProfilingGroup field's value.

func (CreateProfilingGroupOutput) String

String returns the string representation

type DeleteProfilingGroupInput

type DeleteProfilingGroupInput struct {

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request for DeleteProfilingGroup operation.

func (DeleteProfilingGroupInput) GoString

func (s DeleteProfilingGroupInput) GoString() string

GoString returns the string representation

func (*DeleteProfilingGroupInput) SetProfilingGroupName

func (s *DeleteProfilingGroupInput) SetProfilingGroupName(v string) *DeleteProfilingGroupInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (DeleteProfilingGroupInput) String

func (s DeleteProfilingGroupInput) String() string

String returns the string representation

func (*DeleteProfilingGroupInput) Validate

func (s *DeleteProfilingGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteProfilingGroupOutput

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

Response for DeleteProfilingGroup operation.

func (DeleteProfilingGroupOutput) GoString

func (s DeleteProfilingGroupOutput) GoString() string

GoString returns the string representation

func (DeleteProfilingGroupOutput) String

String returns the string representation

type DescribeProfilingGroupInput

type DescribeProfilingGroupInput struct {

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request for DescribeProfilingGroup operation.

func (DescribeProfilingGroupInput) GoString

func (s DescribeProfilingGroupInput) GoString() string

GoString returns the string representation

func (*DescribeProfilingGroupInput) SetProfilingGroupName

func (s *DescribeProfilingGroupInput) SetProfilingGroupName(v string) *DescribeProfilingGroupInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (DescribeProfilingGroupInput) String

String returns the string representation

func (*DescribeProfilingGroupInput) Validate

func (s *DescribeProfilingGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DescribeProfilingGroupOutput

type DescribeProfilingGroupOutput struct {

	// The description of a profiling group.
	//
	// ProfilingGroup is a required field
	ProfilingGroup *ProfilingGroupDescription `locationName:"profilingGroup" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Response for DescribeProfilingGroup operation.

func (DescribeProfilingGroupOutput) GoString

func (s DescribeProfilingGroupOutput) GoString() string

GoString returns the string representation

func (*DescribeProfilingGroupOutput) SetProfilingGroup

SetProfilingGroup sets the ProfilingGroup field's value.

func (DescribeProfilingGroupOutput) String

String returns the string representation

type GetProfileInput

type GetProfileInput struct {

	// The format of the profile to return. Supports application/json or application/x-amzn-ion.
	// Defaults to application/x-amzn-ion.
	Accept *string `location:"header" locationName:"Accept" type:"string"`

	// The end time of the profile to get. Either period or endTime must be specified.
	// Must be greater than start and the overall time range to be in the past and
	// not larger than a week.
	EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"iso8601"`

	// Limit the max depth of the profile.
	MaxDepth *int64 `location:"querystring" locationName:"maxDepth" min:"1" type:"integer"`

	// The period of the profile to get. Exactly two of startTime, period and endTime
	// must be specified. Must be positive and the overall time range to be in the
	// past and not larger than a week.
	Period *string `location:"querystring" locationName:"period" min:"1" type:"string"`

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`

	// The start time of the profile to get.
	StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"iso8601"`
	// contains filtered or unexported fields
}

Request for GetProfile operation.

func (GetProfileInput) GoString

func (s GetProfileInput) GoString() string

GoString returns the string representation

func (*GetProfileInput) SetAccept

func (s *GetProfileInput) SetAccept(v string) *GetProfileInput

SetAccept sets the Accept field's value.

func (*GetProfileInput) SetEndTime

func (s *GetProfileInput) SetEndTime(v time.Time) *GetProfileInput

SetEndTime sets the EndTime field's value.

func (*GetProfileInput) SetMaxDepth

func (s *GetProfileInput) SetMaxDepth(v int64) *GetProfileInput

SetMaxDepth sets the MaxDepth field's value.

func (*GetProfileInput) SetPeriod

func (s *GetProfileInput) SetPeriod(v string) *GetProfileInput

SetPeriod sets the Period field's value.

func (*GetProfileInput) SetProfilingGroupName

func (s *GetProfileInput) SetProfilingGroupName(v string) *GetProfileInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (*GetProfileInput) SetStartTime

func (s *GetProfileInput) SetStartTime(v time.Time) *GetProfileInput

SetStartTime sets the StartTime field's value.

func (GetProfileInput) String

func (s GetProfileInput) String() string

String returns the string representation

func (*GetProfileInput) Validate

func (s *GetProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type GetProfileOutput

type GetProfileOutput struct {

	// The content encoding of the profile in the payload.
	ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`

	// The content type of the profile in the payload. Will be application/json
	// or application/x-amzn-ion based on Accept header in the request.
	//
	// ContentType is a required field
	ContentType *string `location:"header" locationName:"Content-Type" type:"string" required:"true"`

	// The profile representing the aggregation of agent profiles of the profiling
	// group for a time range.
	//
	// Profile is a required field
	Profile []byte `locationName:"profile" type:"blob" required:"true"`
	// contains filtered or unexported fields
}

Response for GetProfile operation.

func (GetProfileOutput) GoString

func (s GetProfileOutput) GoString() string

GoString returns the string representation

func (*GetProfileOutput) SetContentEncoding

func (s *GetProfileOutput) SetContentEncoding(v string) *GetProfileOutput

SetContentEncoding sets the ContentEncoding field's value.

func (*GetProfileOutput) SetContentType

func (s *GetProfileOutput) SetContentType(v string) *GetProfileOutput

SetContentType sets the ContentType field's value.

func (*GetProfileOutput) SetProfile

func (s *GetProfileOutput) SetProfile(v []byte) *GetProfileOutput

SetProfile sets the Profile field's value.

func (GetProfileOutput) String

func (s GetProfileOutput) String() string

String returns the string representation

type InternalServerException added in v1.28.0

type InternalServerException struct {
	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Unexpected error during processing of request.

func (InternalServerException) Code added in v1.28.0

Code returns the exception type name.

func (InternalServerException) Error added in v1.28.0

func (s InternalServerException) Error() string

func (InternalServerException) GoString added in v1.28.0

func (s InternalServerException) GoString() string

GoString returns the string representation

func (InternalServerException) Message added in v1.28.0

func (s InternalServerException) Message() string

Message returns the exception's message.

func (InternalServerException) OrigErr added in v1.28.0

func (s InternalServerException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (InternalServerException) RequestID added in v1.28.0

func (s InternalServerException) RequestID() string

RequestID returns the service's response RequestID for request.

func (InternalServerException) StatusCode added in v1.28.0

func (s InternalServerException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServerException) String added in v1.28.0

func (s InternalServerException) String() string

String returns the string representation

type ListProfileTimesInput

type ListProfileTimesInput struct {

	// The end time of the time range to list profiles until.
	//
	// EndTime is a required field
	EndTime *time.Time `location:"querystring" locationName:"endTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`

	// Upper bound on the number of results to list in a single call.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Token for paginating results.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`

	// The order (ascending or descending by start time of the profile) to list
	// the profiles by. Defaults to TIMESTAMP_DESCENDING.
	OrderBy *string `location:"querystring" locationName:"orderBy" type:"string" enum:"OrderBy"`

	// The aggregation period to list the profiles for.
	//
	// Period is a required field
	Period *string `location:"querystring" locationName:"period" type:"string" required:"true" enum:"AggregationPeriod"`

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`

	// The start time of the time range to list the profiles from.
	//
	// StartTime is a required field
	StartTime *time.Time `location:"querystring" locationName:"startTime" type:"timestamp" timestampFormat:"iso8601" required:"true"`
	// contains filtered or unexported fields
}

Request for ListProfileTimes operation.

func (ListProfileTimesInput) GoString

func (s ListProfileTimesInput) GoString() string

GoString returns the string representation

func (*ListProfileTimesInput) SetEndTime

SetEndTime sets the EndTime field's value.

func (*ListProfileTimesInput) SetMaxResults

func (s *ListProfileTimesInput) SetMaxResults(v int64) *ListProfileTimesInput

SetMaxResults sets the MaxResults field's value.

func (*ListProfileTimesInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListProfileTimesInput) SetOrderBy

SetOrderBy sets the OrderBy field's value.

func (*ListProfileTimesInput) SetPeriod

SetPeriod sets the Period field's value.

func (*ListProfileTimesInput) SetProfilingGroupName

func (s *ListProfileTimesInput) SetProfilingGroupName(v string) *ListProfileTimesInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (*ListProfileTimesInput) SetStartTime

SetStartTime sets the StartTime field's value.

func (ListProfileTimesInput) String

func (s ListProfileTimesInput) String() string

String returns the string representation

func (*ListProfileTimesInput) Validate

func (s *ListProfileTimesInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListProfileTimesOutput

type ListProfileTimesOutput struct {

	// Token for paginating results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// List of start times of the available profiles for the aggregation period
	// in the specified time range.
	//
	// ProfileTimes is a required field
	ProfileTimes []*ProfileTime `locationName:"profileTimes" type:"list" required:"true"`
	// contains filtered or unexported fields
}

Response for ListProfileTimes operation.

func (ListProfileTimesOutput) GoString

func (s ListProfileTimesOutput) GoString() string

GoString returns the string representation

func (*ListProfileTimesOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListProfileTimesOutput) SetProfileTimes

func (s *ListProfileTimesOutput) SetProfileTimes(v []*ProfileTime) *ListProfileTimesOutput

SetProfileTimes sets the ProfileTimes field's value.

func (ListProfileTimesOutput) String

func (s ListProfileTimesOutput) String() string

String returns the string representation

type ListProfilingGroupsInput

type ListProfilingGroupsInput struct {

	// If set to true, returns the full description of the profiling groups instead
	// of the names. Defaults to false.
	IncludeDescription *bool `location:"querystring" locationName:"includeDescription" type:"boolean"`

	// Upper bound on the number of results to list in a single call.
	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`

	// Token for paginating results.
	NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"`
	// contains filtered or unexported fields
}

Request for ListProfilingGroups operation.

func (ListProfilingGroupsInput) GoString

func (s ListProfilingGroupsInput) GoString() string

GoString returns the string representation

func (*ListProfilingGroupsInput) SetIncludeDescription

func (s *ListProfilingGroupsInput) SetIncludeDescription(v bool) *ListProfilingGroupsInput

SetIncludeDescription sets the IncludeDescription field's value.

func (*ListProfilingGroupsInput) SetMaxResults

SetMaxResults sets the MaxResults field's value.

func (*ListProfilingGroupsInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListProfilingGroupsInput) String

func (s ListProfilingGroupsInput) String() string

String returns the string representation

func (*ListProfilingGroupsInput) Validate

func (s *ListProfilingGroupsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListProfilingGroupsOutput

type ListProfilingGroupsOutput struct {

	// Token for paginating results.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// List of profiling group names.
	//
	// ProfilingGroupNames is a required field
	ProfilingGroupNames []*string `locationName:"profilingGroupNames" type:"list" required:"true"`

	// List of profiling group descriptions.
	ProfilingGroups []*ProfilingGroupDescription `locationName:"profilingGroups" type:"list"`
	// contains filtered or unexported fields
}

Response for ListProfilingGroups operation.

func (ListProfilingGroupsOutput) GoString

func (s ListProfilingGroupsOutput) GoString() string

GoString returns the string representation

func (*ListProfilingGroupsOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListProfilingGroupsOutput) SetProfilingGroupNames

func (s *ListProfilingGroupsOutput) SetProfilingGroupNames(v []*string) *ListProfilingGroupsOutput

SetProfilingGroupNames sets the ProfilingGroupNames field's value.

func (*ListProfilingGroupsOutput) SetProfilingGroups

SetProfilingGroups sets the ProfilingGroups field's value.

func (ListProfilingGroupsOutput) String

func (s ListProfilingGroupsOutput) String() string

String returns the string representation

type PostAgentProfileInput

type PostAgentProfileInput struct {

	// The profile collected by an agent for a time range.
	//
	// AgentProfile is a required field
	AgentProfile []byte `locationName:"agentProfile" type:"blob" required:"true"`

	// The content type of the agent profile in the payload. Recommended to send
	// the profile gzipped with content-type application/octet-stream. Other accepted
	// values are application/x-amzn-ion and application/json for unzipped Ion and
	// JSON respectively.
	//
	// ContentType is a required field
	ContentType *string `location:"header" locationName:"Content-Type" type:"string" required:"true"`

	// Client generated token to deduplicate the agent profile during aggregation.
	ProfileToken *string `location:"querystring" locationName:"profileToken" min:"1" type:"string" idempotencyToken:"true"`

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request for PostAgentProfile operation.

func (PostAgentProfileInput) GoString

func (s PostAgentProfileInput) GoString() string

GoString returns the string representation

func (*PostAgentProfileInput) SetAgentProfile

func (s *PostAgentProfileInput) SetAgentProfile(v []byte) *PostAgentProfileInput

SetAgentProfile sets the AgentProfile field's value.

func (*PostAgentProfileInput) SetContentType

func (s *PostAgentProfileInput) SetContentType(v string) *PostAgentProfileInput

SetContentType sets the ContentType field's value.

func (*PostAgentProfileInput) SetProfileToken

func (s *PostAgentProfileInput) SetProfileToken(v string) *PostAgentProfileInput

SetProfileToken sets the ProfileToken field's value.

func (*PostAgentProfileInput) SetProfilingGroupName

func (s *PostAgentProfileInput) SetProfilingGroupName(v string) *PostAgentProfileInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (PostAgentProfileInput) String

func (s PostAgentProfileInput) String() string

String returns the string representation

func (*PostAgentProfileInput) Validate

func (s *PostAgentProfileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type PostAgentProfileOutput

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

Response for PostAgentProfile operation.

func (PostAgentProfileOutput) GoString

func (s PostAgentProfileOutput) GoString() string

GoString returns the string representation

func (PostAgentProfileOutput) String

func (s PostAgentProfileOutput) String() string

String returns the string representation

type ProfileTime

type ProfileTime struct {

	// The start time of the profile.
	Start *time.Time `locationName:"start" type:"timestamp" timestampFormat:"iso8601"`
	// contains filtered or unexported fields
}

Periods of time used for aggregation of profiles, represented using ISO 8601 format.

func (ProfileTime) GoString

func (s ProfileTime) GoString() string

GoString returns the string representation

func (*ProfileTime) SetStart

func (s *ProfileTime) SetStart(v time.Time) *ProfileTime

SetStart sets the Start field's value.

func (ProfileTime) String

func (s ProfileTime) String() string

String returns the string representation

type ProfilingGroupDescription

type ProfilingGroupDescription struct {

	// Configuration to orchestrate agents to create and report agent profiles of
	// the profiling group. Agents are orchestrated if they follow the agent orchestration
	// protocol.
	AgentOrchestrationConfig *AgentOrchestrationConfig `locationName:"agentOrchestrationConfig" type:"structure"`

	// The ARN of the profiling group.
	Arn *string `locationName:"arn" type:"string"`

	// The timestamp of when the profiling group was created.
	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601"`

	// The name of the profiling group.
	Name *string `locationName:"name" min:"1" type:"string"`

	// The status of profiling of a profiling group.
	ProfilingStatus *ProfilingStatus `locationName:"profilingStatus" type:"structure"`

	// The timestamp of when the profiling group was last updated.
	UpdatedAt *time.Time `locationName:"updatedAt" type:"timestamp" timestampFormat:"iso8601"`
	// contains filtered or unexported fields
}

The description of a profiling group.

func (ProfilingGroupDescription) GoString

func (s ProfilingGroupDescription) GoString() string

GoString returns the string representation

func (*ProfilingGroupDescription) SetAgentOrchestrationConfig

SetAgentOrchestrationConfig sets the AgentOrchestrationConfig field's value.

func (*ProfilingGroupDescription) SetArn

SetArn sets the Arn field's value.

func (*ProfilingGroupDescription) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*ProfilingGroupDescription) SetName

SetName sets the Name field's value.

func (*ProfilingGroupDescription) SetProfilingStatus

SetProfilingStatus sets the ProfilingStatus field's value.

func (*ProfilingGroupDescription) SetUpdatedAt

SetUpdatedAt sets the UpdatedAt field's value.

func (ProfilingGroupDescription) String

func (s ProfilingGroupDescription) String() string

String returns the string representation

type ProfilingStatus

type ProfilingStatus struct {

	// Timestamp of when the last interaction of the agent with configureAgent API
	// for orchestration.
	LatestAgentOrchestratedAt *time.Time `locationName:"latestAgentOrchestratedAt" type:"timestamp" timestampFormat:"iso8601"`

	// Timestamp of when the latest agent profile was successfully reported.
	LatestAgentProfileReportedAt *time.Time `locationName:"latestAgentProfileReportedAt" type:"timestamp" timestampFormat:"iso8601"`

	// The time range of latest aggregated profile available.
	LatestAggregatedProfile *AggregatedProfileTime `locationName:"latestAggregatedProfile" type:"structure"`
	// contains filtered or unexported fields
}

The status of profiling of a profiling group.

func (ProfilingStatus) GoString

func (s ProfilingStatus) GoString() string

GoString returns the string representation

func (*ProfilingStatus) SetLatestAgentOrchestratedAt

func (s *ProfilingStatus) SetLatestAgentOrchestratedAt(v time.Time) *ProfilingStatus

SetLatestAgentOrchestratedAt sets the LatestAgentOrchestratedAt field's value.

func (*ProfilingStatus) SetLatestAgentProfileReportedAt

func (s *ProfilingStatus) SetLatestAgentProfileReportedAt(v time.Time) *ProfilingStatus

SetLatestAgentProfileReportedAt sets the LatestAgentProfileReportedAt field's value.

func (*ProfilingStatus) SetLatestAggregatedProfile

func (s *ProfilingStatus) SetLatestAggregatedProfile(v *AggregatedProfileTime) *ProfilingStatus

SetLatestAggregatedProfile sets the LatestAggregatedProfile field's value.

func (ProfilingStatus) String

func (s ProfilingStatus) String() string

String returns the string representation

type ResourceNotFoundException added in v1.28.0

type ResourceNotFoundException struct {
	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Request references a resource which does not exist.

func (ResourceNotFoundException) Code added in v1.28.0

Code returns the exception type name.

func (ResourceNotFoundException) Error added in v1.28.0

func (ResourceNotFoundException) GoString added in v1.28.0

func (s ResourceNotFoundException) GoString() string

GoString returns the string representation

func (ResourceNotFoundException) Message added in v1.28.0

func (s ResourceNotFoundException) Message() string

Message returns the exception's message.

func (ResourceNotFoundException) OrigErr added in v1.28.0

func (s ResourceNotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (ResourceNotFoundException) RequestID added in v1.28.0

func (s ResourceNotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (ResourceNotFoundException) StatusCode added in v1.28.0

func (s ResourceNotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ResourceNotFoundException) String added in v1.28.0

func (s ResourceNotFoundException) String() string

String returns the string representation

type ServiceQuotaExceededException added in v1.28.0

type ServiceQuotaExceededException struct {
	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Request would cause a service quota to be exceeded.

func (ServiceQuotaExceededException) Code added in v1.28.0

Code returns the exception type name.

func (ServiceQuotaExceededException) Error added in v1.28.0

func (ServiceQuotaExceededException) GoString added in v1.28.0

GoString returns the string representation

func (ServiceQuotaExceededException) Message added in v1.28.0

Message returns the exception's message.

func (ServiceQuotaExceededException) OrigErr added in v1.28.0

OrigErr always returns nil, satisfies awserr.Error interface.

func (ServiceQuotaExceededException) RequestID added in v1.28.0

func (s ServiceQuotaExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (ServiceQuotaExceededException) StatusCode added in v1.28.0

func (s ServiceQuotaExceededException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ServiceQuotaExceededException) String added in v1.28.0

String returns the string representation

type ThrottlingException added in v1.28.0

type ThrottlingException struct {
	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

Request was denied due to request throttling.

func (ThrottlingException) Code added in v1.28.0

func (s ThrottlingException) Code() string

Code returns the exception type name.

func (ThrottlingException) Error added in v1.28.0

func (s ThrottlingException) Error() string

func (ThrottlingException) GoString added in v1.28.0

func (s ThrottlingException) GoString() string

GoString returns the string representation

func (ThrottlingException) Message added in v1.28.0

func (s ThrottlingException) Message() string

Message returns the exception's message.

func (ThrottlingException) OrigErr added in v1.28.0

func (s ThrottlingException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (ThrottlingException) RequestID added in v1.28.0

func (s ThrottlingException) RequestID() string

RequestID returns the service's response RequestID for request.

func (ThrottlingException) StatusCode added in v1.28.0

func (s ThrottlingException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ThrottlingException) String added in v1.28.0

func (s ThrottlingException) String() string

String returns the string representation

type UpdateProfilingGroupInput

type UpdateProfilingGroupInput struct {

	// Remote configuration to configure the agents of the profiling group.
	//
	// AgentOrchestrationConfig is a required field
	AgentOrchestrationConfig *AgentOrchestrationConfig `locationName:"agentOrchestrationConfig" type:"structure" required:"true"`

	// The name of the profiling group.
	//
	// ProfilingGroupName is a required field
	ProfilingGroupName *string `location:"uri" locationName:"profilingGroupName" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Request for UpdateProfilingGroup operation.

func (UpdateProfilingGroupInput) GoString

func (s UpdateProfilingGroupInput) GoString() string

GoString returns the string representation

func (*UpdateProfilingGroupInput) SetAgentOrchestrationConfig

SetAgentOrchestrationConfig sets the AgentOrchestrationConfig field's value.

func (*UpdateProfilingGroupInput) SetProfilingGroupName

func (s *UpdateProfilingGroupInput) SetProfilingGroupName(v string) *UpdateProfilingGroupInput

SetProfilingGroupName sets the ProfilingGroupName field's value.

func (UpdateProfilingGroupInput) String

func (s UpdateProfilingGroupInput) String() string

String returns the string representation

func (*UpdateProfilingGroupInput) Validate

func (s *UpdateProfilingGroupInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateProfilingGroupOutput

type UpdateProfilingGroupOutput struct {

	// The description of a profiling group.
	//
	// ProfilingGroup is a required field
	ProfilingGroup *ProfilingGroupDescription `locationName:"profilingGroup" type:"structure" required:"true"`
	// contains filtered or unexported fields
}

Response for UpdateProfilingGroup operation.

func (UpdateProfilingGroupOutput) GoString

func (s UpdateProfilingGroupOutput) GoString() string

GoString returns the string representation

func (*UpdateProfilingGroupOutput) SetProfilingGroup

SetProfilingGroup sets the ProfilingGroup field's value.

func (UpdateProfilingGroupOutput) String

String returns the string representation

type ValidationException added in v1.28.0

type ValidationException struct {
	Message_ *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

The input fails to satisfy the constraints of the API.

func (ValidationException) Code added in v1.28.0

func (s ValidationException) Code() string

Code returns the exception type name.

func (ValidationException) Error added in v1.28.0

func (s ValidationException) Error() string

func (ValidationException) GoString added in v1.28.0

func (s ValidationException) GoString() string

GoString returns the string representation

func (ValidationException) Message added in v1.28.0

func (s ValidationException) Message() string

Message returns the exception's message.

func (ValidationException) OrigErr added in v1.28.0

func (s ValidationException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (ValidationException) RequestID added in v1.28.0

func (s ValidationException) RequestID() string

RequestID returns the service's response RequestID for request.

func (ValidationException) StatusCode added in v1.28.0

func (s ValidationException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (ValidationException) String added in v1.28.0

func (s ValidationException) String() string

String returns the string representation

Directories

Path Synopsis
Package codeguruprofileriface provides an interface to enable mocking the Amazon CodeGuru Profiler service client for testing your code.
Package codeguruprofileriface provides an interface to enable mocking the Amazon CodeGuru Profiler service client for testing your code.

Jump to

Keyboard shortcuts

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