Documentation
¶
Overview ¶
Package codegurusecurity provides the API client, operations, and parameter types for Amazon CodeGuru Security.
Amazon CodeGuru Security is in preview release and is subject to change.
This section provides documentation for the Amazon CodeGuru Security API operations. CodeGuru Security is a service that uses program analysis and machine learning to detect security policy violations and vulnerabilities, and recommends ways to address these security risks.
By proactively detecting and providing recommendations for addressing security risks, CodeGuru Security improves the overall security of your application code. For more information about CodeGuru Security, see the Amazon CodeGuru Security User Guide.
Index ¶
- Constants
- func NewDefaultEndpointResolver() *internalendpoints.Resolver
- func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
- func WithEndpointResolver(v EndpointResolver) func(*Options)deprecated
- func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
- func WithSigV4SigningName(name string) func(*Options)
- func WithSigV4SigningRegion(region string) func(*Options)
- type AuthResolverParameters
- type AuthSchemeResolver
- type BatchGetFindingsInput
- type BatchGetFindingsOutput
- type Client
- func (c *Client) BatchGetFindings(ctx context.Context, params *BatchGetFindingsInput, optFns ...func(*Options)) (*BatchGetFindingsOutput, error)
- func (c *Client) CreateScan(ctx context.Context, params *CreateScanInput, optFns ...func(*Options)) (*CreateScanOutput, error)
- func (c *Client) CreateUploadUrl(ctx context.Context, params *CreateUploadUrlInput, optFns ...func(*Options)) (*CreateUploadUrlOutput, error)
- func (c *Client) GetAccountConfiguration(ctx context.Context, params *GetAccountConfigurationInput, ...) (*GetAccountConfigurationOutput, error)
- func (c *Client) GetFindings(ctx context.Context, params *GetFindingsInput, optFns ...func(*Options)) (*GetFindingsOutput, error)
- func (c *Client) GetMetricsSummary(ctx context.Context, params *GetMetricsSummaryInput, optFns ...func(*Options)) (*GetMetricsSummaryOutput, error)
- func (c *Client) GetScan(ctx context.Context, params *GetScanInput, optFns ...func(*Options)) (*GetScanOutput, error)
- func (c *Client) ListFindingsMetrics(ctx context.Context, params *ListFindingsMetricsInput, ...) (*ListFindingsMetricsOutput, error)
- func (c *Client) ListScans(ctx context.Context, params *ListScansInput, optFns ...func(*Options)) (*ListScansOutput, error)
- func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, ...) (*ListTagsForResourceOutput, error)
- func (c *Client) Options() Options
- func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
- func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
- func (c *Client) UpdateAccountConfiguration(ctx context.Context, params *UpdateAccountConfigurationInput, ...) (*UpdateAccountConfigurationOutput, error)
- type CreateScanInput
- type CreateScanOutput
- type CreateUploadUrlInput
- type CreateUploadUrlOutput
- type EndpointParameters
- type EndpointResolver
- type EndpointResolverFunc
- type EndpointResolverOptions
- type EndpointResolverV2
- type GetAccountConfigurationInput
- type GetAccountConfigurationOutput
- type GetFindingsAPIClient
- type GetFindingsInput
- type GetFindingsOutput
- type GetFindingsPaginator
- type GetFindingsPaginatorOptions
- type GetMetricsSummaryInput
- type GetMetricsSummaryOutput
- type GetScanInput
- type GetScanOutput
- type HTTPClient
- type HTTPSignerV4
- type IdempotencyTokenProvider
- type ListFindingsMetricsAPIClient
- type ListFindingsMetricsInput
- type ListFindingsMetricsOutput
- type ListFindingsMetricsPaginator
- type ListFindingsMetricsPaginatorOptions
- type ListScansAPIClient
- type ListScansInput
- type ListScansOutput
- type ListScansPaginator
- type ListScansPaginatorOptions
- type ListTagsForResourceInput
- type ListTagsForResourceOutput
- type Options
- type ResolveEndpoint
- type TagResourceInput
- type TagResourceOutput
- type UntagResourceInput
- type UntagResourceOutput
- type UpdateAccountConfigurationInput
- type UpdateAccountConfigurationOutput
Constants ¶
const ServiceAPIVersion = "2018-05-10"
const ServiceID = "CodeGuru Security"
Variables ¶
This section is empty.
Functions ¶
func NewDefaultEndpointResolver ¶
func NewDefaultEndpointResolver() *internalendpoints.Resolver
NewDefaultEndpointResolver constructs a new service endpoint resolver
func WithAPIOptions ¶
func WithAPIOptions(optFns ...func(*middleware.Stack) error) func(*Options)
WithAPIOptions returns a functional option for setting the Client's APIOptions option.
func WithEndpointResolver
deprecated
func WithEndpointResolver(v EndpointResolver) func(*Options)
Deprecated: EndpointResolver and WithEndpointResolver. Providing a value for this field will likely prevent you from using any endpoint-related service features released after the introduction of EndpointResolverV2 and BaseEndpoint.
To migrate an EndpointResolver implementation that uses a custom endpoint, set the client option BaseEndpoint instead.
func WithEndpointResolverV2 ¶
func WithEndpointResolverV2(v EndpointResolverV2) func(*Options)
WithEndpointResolverV2 returns a functional option for setting the Client's EndpointResolverV2 option.
func WithSigV4SigningName ¶
WithSigV4SigningName applies an override to the authentication workflow to use the given signing name for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing name from both auth scheme resolution and endpoint resolution.
func WithSigV4SigningRegion ¶
WithSigV4SigningRegion applies an override to the authentication workflow to use the given signing region for SigV4-authenticated operations.
This is an advanced setting. The value here is FINAL, taking precedence over the resolved signing region from both auth scheme resolution and endpoint resolution.
Types ¶
type AuthResolverParameters ¶
type AuthResolverParameters struct { // The name of the operation being invoked. Operation string // The region in which the operation is being invoked. Region string }
AuthResolverParameters contains the set of inputs necessary for auth scheme resolution.
type AuthSchemeResolver ¶
type AuthSchemeResolver interface {
ResolveAuthSchemes(context.Context, *AuthResolverParameters) ([]*smithyauth.Option, error)
}
AuthSchemeResolver returns a set of possible authentication options for an operation.
type BatchGetFindingsInput ¶
type BatchGetFindingsInput struct { // A list of finding identifiers. Each identifier consists of a scanName and a // findingId . You retrieve the findingId when you call GetFindings . // // This member is required. FindingIdentifiers []types.FindingIdentifier // contains filtered or unexported fields }
type BatchGetFindingsOutput ¶
type BatchGetFindingsOutput struct { // A list of errors for individual findings which were not fetched. Each // BatchGetFindingsError contains the scanName , findingId , errorCode and error // message . // // This member is required. FailedFindings []types.BatchGetFindingsError // A list of all requested findings. // // This member is required. Findings []types.Finding // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the API client to make operations call for Amazon CodeGuru Security.
func New ¶
New returns an initialized Client based on the functional options. Provide additional functional options to further configure the behavior of the client, such as changing the client's endpoint or adding custom middleware behavior.
func NewFromConfig ¶
NewFromConfig returns a new client from the provided config.
func (*Client) BatchGetFindings ¶
func (c *Client) BatchGetFindings(ctx context.Context, params *BatchGetFindingsInput, optFns ...func(*Options)) (*BatchGetFindingsOutput, error)
Returns a list of all requested findings.
func (*Client) CreateScan ¶
func (c *Client) CreateScan(ctx context.Context, params *CreateScanInput, optFns ...func(*Options)) (*CreateScanOutput, error)
Use to create a scan using code uploaded to an S3 bucket.
func (*Client) CreateUploadUrl ¶
func (c *Client) CreateUploadUrl(ctx context.Context, params *CreateUploadUrlInput, optFns ...func(*Options)) (*CreateUploadUrlOutput, error)
Generates a pre-signed URL and request headers used to upload a code resource.
You can upload your code resource to the URL and add the request headers using any HTTP client.
func (*Client) GetAccountConfiguration ¶
func (c *Client) GetAccountConfiguration(ctx context.Context, params *GetAccountConfigurationInput, optFns ...func(*Options)) (*GetAccountConfigurationOutput, error)
Use to get account level configuration.
func (*Client) GetFindings ¶
func (c *Client) GetFindings(ctx context.Context, params *GetFindingsInput, optFns ...func(*Options)) (*GetFindingsOutput, error)
Returns a list of all findings generated by a particular scan.
func (*Client) GetMetricsSummary ¶
func (c *Client) GetMetricsSummary(ctx context.Context, params *GetMetricsSummaryInput, optFns ...func(*Options)) (*GetMetricsSummaryOutput, error)
Returns top level metrics about an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.
func (*Client) GetScan ¶
func (c *Client) GetScan(ctx context.Context, params *GetScanInput, optFns ...func(*Options)) (*GetScanOutput, error)
Returns details about a scan, including whether or not a scan has completed.
func (*Client) ListFindingsMetrics ¶
func (c *Client) ListFindingsMetrics(ctx context.Context, params *ListFindingsMetricsInput, optFns ...func(*Options)) (*ListFindingsMetricsOutput, error)
Returns metrics about all findings in an account within a specified time range.
func (*Client) ListScans ¶
func (c *Client) ListScans(ctx context.Context, params *ListScansInput, optFns ...func(*Options)) (*ListScansOutput, error)
Returns a list of all the standard scans in an account. Does not return express scans.
func (*Client) ListTagsForResource ¶
func (c *Client) ListTagsForResource(ctx context.Context, params *ListTagsForResourceInput, optFns ...func(*Options)) (*ListTagsForResourceOutput, error)
Returns a list of all tags associated with a scan.
func (*Client) Options ¶
Options returns a copy of the client configuration.
Callers SHOULD NOT perform mutations on any inner structures within client config. Config overrides should instead be made on a per-operation basis through functional options.
func (*Client) TagResource ¶
func (c *Client) TagResource(ctx context.Context, params *TagResourceInput, optFns ...func(*Options)) (*TagResourceOutput, error)
Use to add one or more tags to an existing scan.
func (*Client) UntagResource ¶
func (c *Client) UntagResource(ctx context.Context, params *UntagResourceInput, optFns ...func(*Options)) (*UntagResourceOutput, error)
Use to remove one or more tags from an existing scan.
func (*Client) UpdateAccountConfiguration ¶
func (c *Client) UpdateAccountConfiguration(ctx context.Context, params *UpdateAccountConfigurationInput, optFns ...func(*Options)) (*UpdateAccountConfigurationOutput, error)
Use to update account-level configuration with an encryption key.
type CreateScanInput ¶
type CreateScanInput struct { // The identifier for an input resource used to create a scan. // // This member is required. ResourceId types.ResourceId // The unique name that CodeGuru Security uses to track revisions across multiple // scans of the same resource. Only allowed for a STANDARD scan type. If not // specified, it will be auto generated. // // This member is required. ScanName *string // The type of analysis you want CodeGuru Security to perform in the scan, either // Security or All . The Security type only generates findings related to // security. The All type generates both security findings and quality findings. // Defaults to Security type if missing. AnalysisType types.AnalysisType // The idempotency token for the request. Amazon CodeGuru Security uses this value // to prevent the accidental creation of duplicate scans if there are failures and // retries. ClientToken *string // The type of scan, either Standard or Express . Defaults to Standard type if // missing. // // Express scans run on limited resources and use a limited set of detectors to // analyze your code in near-real time. Standard scans have standard resource // limits and use the full set of detectors to analyze your code. ScanType types.ScanType // An array of key-value pairs used to tag a scan. A tag is a custom attribute // label with two parts: // // - A tag key. For example, CostCenter , Environment , or Secret . Tag keys are // case sensitive. // // - An optional tag value field. For example, 111122223333 , Production , or a // team name. Omitting the tag value is the same as using an empty string. Tag // values are case sensitive. Tags map[string]string // contains filtered or unexported fields }
type CreateScanOutput ¶
type CreateScanOutput struct { // The identifier for the resource object that contains resources that were // scanned. // // This member is required. ResourceId types.ResourceId // UUID that identifies the individual scan run. // // This member is required. RunId *string // The name of the scan. // // This member is required. ScanName *string // The current state of the scan. Returns either InProgress , Successful , or // Failed . // // This member is required. ScanState types.ScanState // The ARN for the scan name. ScanNameArn *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type CreateUploadUrlInput ¶
type CreateUploadUrlInput struct { // The name of the scan that will use the uploaded resource. CodeGuru Security // uses the unique scan name to track revisions across multiple scans of the same // resource. Use this scanName when you call CreateScan on the code resource you // upload to this URL. // // This member is required. ScanName *string // contains filtered or unexported fields }
type CreateUploadUrlOutput ¶
type CreateUploadUrlOutput struct { // The identifier for the uploaded code resource. // // This member is required. CodeArtifactId *string // A set of key-value pairs that contain the required headers when uploading your // resource. // // This member is required. RequestHeaders map[string]string // A pre-signed S3 URL. You can upload the code file you want to scan and add the // required requestHeaders using any HTTP client. // // This member is required. S3Url *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type EndpointParameters ¶
type EndpointParameters struct { // The AWS region used to dispatch the request. // // Parameter is // required. // // AWS::Region Region *string // When true, use the dual-stack endpoint. If the configured endpoint does not // support dual-stack, dispatching the request MAY return an error. // // Defaults to // false if no value is provided. // // AWS::UseDualStack UseDualStack *bool // When true, send this request to the FIPS-compliant regional endpoint. If the // configured endpoint does not have a FIPS compliant endpoint, dispatching the // request will return an error. // // Defaults to false if no value is // provided. // // AWS::UseFIPS UseFIPS *bool // Override the endpoint used to send this request // // Parameter is // required. // // SDK::Endpoint Endpoint *string }
EndpointParameters provides the parameters that influence how endpoints are resolved.
func (EndpointParameters) ValidateRequired ¶
func (p EndpointParameters) ValidateRequired() error
ValidateRequired validates required parameters are set.
func (EndpointParameters) WithDefaults ¶
func (p EndpointParameters) WithDefaults() EndpointParameters
WithDefaults returns a shallow copy of EndpointParameterswith default values applied to members where applicable.
type EndpointResolver ¶
type EndpointResolver interface {
ResolveEndpoint(region string, options EndpointResolverOptions) (aws.Endpoint, error)
}
EndpointResolver interface for resolving service endpoints.
func EndpointResolverFromURL ¶
func EndpointResolverFromURL(url string, optFns ...func(*aws.Endpoint)) EndpointResolver
EndpointResolverFromURL returns an EndpointResolver configured using the provided endpoint url. By default, the resolved endpoint resolver uses the client region as signing region, and the endpoint source is set to EndpointSourceCustom.You can provide functional options to configure endpoint values for the resolved endpoint.
type EndpointResolverFunc ¶
type EndpointResolverFunc func(region string, options EndpointResolverOptions) (aws.Endpoint, error)
EndpointResolverFunc is a helper utility that wraps a function so it satisfies the EndpointResolver interface. This is useful when you want to add additional endpoint resolving logic, or stub out specific endpoints with custom values.
func (EndpointResolverFunc) ResolveEndpoint ¶
func (fn EndpointResolverFunc) ResolveEndpoint(region string, options EndpointResolverOptions) (endpoint aws.Endpoint, err error)
type EndpointResolverOptions ¶
type EndpointResolverOptions = internalendpoints.Options
EndpointResolverOptions is the service endpoint resolver options
type EndpointResolverV2 ¶
type EndpointResolverV2 interface { // ResolveEndpoint attempts to resolve the endpoint with the provided options, // returning the endpoint if found. Otherwise an error is returned. ResolveEndpoint(ctx context.Context, params EndpointParameters) ( smithyendpoints.Endpoint, error, ) }
EndpointResolverV2 provides the interface for resolving service endpoints.
func NewDefaultEndpointResolverV2 ¶
func NewDefaultEndpointResolverV2() EndpointResolverV2
type GetAccountConfigurationInput ¶
type GetAccountConfigurationInput struct {
// contains filtered or unexported fields
}
type GetAccountConfigurationOutput ¶
type GetAccountConfigurationOutput struct { // An EncryptionConfig object that contains the KMS key ARN to use for encryption. // By default, CodeGuru Security uses an AWS-managed key for encryption. To specify // your own key, call UpdateAccountConfiguration . // // This member is required. EncryptionConfig *types.EncryptionConfig // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetFindingsAPIClient ¶
type GetFindingsAPIClient interface {
GetFindings(context.Context, *GetFindingsInput, ...func(*Options)) (*GetFindingsOutput, error)
}
GetFindingsAPIClient is a client that implements the GetFindings operation.
type GetFindingsInput ¶
type GetFindingsInput struct { // The name of the scan you want to retrieve findings from. // // This member is required. ScanName *string // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken in a // subsequent request to retrieve additional results. MaxResults *int32 // A token to use for paginating results that are returned in the response. Set // the value of this parameter to null for the first request. For subsequent calls, // use the nextToken value returned from the previous request to continue listing // results after the first page. NextToken *string // The status of the findings you want to get. Pass either Open , Closed , or All . Status types.Status // contains filtered or unexported fields }
type GetFindingsOutput ¶
type GetFindingsOutput struct { // A list of findings generated by the specified scan. Findings []types.Finding // A pagination token. You can use this in future calls to GetFindings to continue // listing results after the current page. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetFindingsPaginator ¶
type GetFindingsPaginator struct {
// contains filtered or unexported fields
}
GetFindingsPaginator is a paginator for GetFindings
func NewGetFindingsPaginator ¶
func NewGetFindingsPaginator(client GetFindingsAPIClient, params *GetFindingsInput, optFns ...func(*GetFindingsPaginatorOptions)) *GetFindingsPaginator
NewGetFindingsPaginator returns a new GetFindingsPaginator
func (*GetFindingsPaginator) HasMorePages ¶
func (p *GetFindingsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*GetFindingsPaginator) NextPage ¶
func (p *GetFindingsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*GetFindingsOutput, error)
NextPage retrieves the next GetFindings page.
type GetFindingsPaginatorOptions ¶
type GetFindingsPaginatorOptions struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken in a // subsequent request to retrieve additional results. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
GetFindingsPaginatorOptions is the paginator options for GetFindings
type GetMetricsSummaryInput ¶
type GetMetricsSummaryInput struct { // The date you want to retrieve summary metrics from, rounded to the nearest day. // The date must be within the past two years since metrics data is only stored for // two years. If a date outside of this range is passed, the response will be // empty. // // This member is required. Date *time.Time // contains filtered or unexported fields }
type GetMetricsSummaryOutput ¶
type GetMetricsSummaryOutput struct { // The summary metrics from the specified date. MetricsSummary *types.MetricsSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type GetScanInput ¶
type GetScanInput struct { // The name of the scan you want to view details about. // // This member is required. ScanName *string // UUID that identifies the individual scan run you want to view details about. // You retrieve this when you call the CreateScan operation. Defaults to the // latest scan run if missing. RunId *string // contains filtered or unexported fields }
type GetScanOutput ¶
type GetScanOutput struct { // The type of analysis CodeGuru Security performed in the scan, either Security // or All . The Security type only generates findings related to security. The All // type generates both security findings and quality findings. // // This member is required. AnalysisType types.AnalysisType // The time the scan was created. // // This member is required. CreatedAt *time.Time // UUID that identifies the individual scan run. // // This member is required. RunId *string // The name of the scan. // // This member is required. ScanName *string // The current state of the scan. Pass either InProgress , Successful , or Failed . // // This member is required. ScanState types.ScanState // The number of times a scan has been re-run on a revised resource. NumberOfRevisions *int64 // The ARN for the scan name. ScanNameArn *string // The time when the scan was last updated. Only available for STANDARD scan types. UpdatedAt *time.Time // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type HTTPSignerV4 ¶
type IdempotencyTokenProvider ¶
IdempotencyTokenProvider interface for providing idempotency token
type ListFindingsMetricsAPIClient ¶
type ListFindingsMetricsAPIClient interface {
ListFindingsMetrics(context.Context, *ListFindingsMetricsInput, ...func(*Options)) (*ListFindingsMetricsOutput, error)
}
ListFindingsMetricsAPIClient is a client that implements the ListFindingsMetrics operation.
type ListFindingsMetricsInput ¶
type ListFindingsMetricsInput struct { // The end date of the interval which you want to retrieve metrics from. // // This member is required. EndDate *time.Time // The start date of the interval which you want to retrieve metrics from. // // This member is required. StartDate *time.Time // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken in a // subsequent request to retrieve additional results. MaxResults *int32 // A token to use for paginating results that are returned in the response. Set // the value of this parameter to null for the first request. For subsequent calls, // use the nextToken value returned from the previous request to continue listing // results after the first page. NextToken *string // contains filtered or unexported fields }
type ListFindingsMetricsOutput ¶
type ListFindingsMetricsOutput struct { // A list of AccountFindingsMetric objects retrieved from the specified time // interval. FindingsMetrics []types.AccountFindingsMetric // A pagination token. You can use this in future calls to ListFindingMetrics to // continue listing results after the current page. NextToken *string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListFindingsMetricsPaginator ¶
type ListFindingsMetricsPaginator struct {
// contains filtered or unexported fields
}
ListFindingsMetricsPaginator is a paginator for ListFindingsMetrics
func NewListFindingsMetricsPaginator ¶
func NewListFindingsMetricsPaginator(client ListFindingsMetricsAPIClient, params *ListFindingsMetricsInput, optFns ...func(*ListFindingsMetricsPaginatorOptions)) *ListFindingsMetricsPaginator
NewListFindingsMetricsPaginator returns a new ListFindingsMetricsPaginator
func (*ListFindingsMetricsPaginator) HasMorePages ¶
func (p *ListFindingsMetricsPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListFindingsMetricsPaginator) NextPage ¶
func (p *ListFindingsMetricsPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListFindingsMetricsOutput, error)
NextPage retrieves the next ListFindingsMetrics page.
type ListFindingsMetricsPaginatorOptions ¶
type ListFindingsMetricsPaginatorOptions struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken in a // subsequent request to retrieve additional results. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListFindingsMetricsPaginatorOptions is the paginator options for ListFindingsMetrics
type ListScansAPIClient ¶
type ListScansAPIClient interface {
ListScans(context.Context, *ListScansInput, ...func(*Options)) (*ListScansOutput, error)
}
ListScansAPIClient is a client that implements the ListScans operation.
type ListScansInput ¶
type ListScansInput struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken in a // subsequent request to retrieve additional results. MaxResults *int32 // A token to use for paginating results that are returned in the response. Set // the value of this parameter to null for the first request. For subsequent calls, // use the nextToken value returned from the previous request to continue listing // results after the first page. NextToken *string // contains filtered or unexported fields }
type ListScansOutput ¶
type ListScansOutput struct { // A pagination token. You can use this in future calls to ListScans to continue // listing results after the current page. NextToken *string // A list of ScanSummary objects with information about all scans in an account. Summaries []types.ScanSummary // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type ListScansPaginator ¶
type ListScansPaginator struct {
// contains filtered or unexported fields
}
ListScansPaginator is a paginator for ListScans
func NewListScansPaginator ¶
func NewListScansPaginator(client ListScansAPIClient, params *ListScansInput, optFns ...func(*ListScansPaginatorOptions)) *ListScansPaginator
NewListScansPaginator returns a new ListScansPaginator
func (*ListScansPaginator) HasMorePages ¶
func (p *ListScansPaginator) HasMorePages() bool
HasMorePages returns a boolean indicating whether more pages are available
func (*ListScansPaginator) NextPage ¶
func (p *ListScansPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*ListScansOutput, error)
NextPage retrieves the next ListScans page.
type ListScansPaginatorOptions ¶
type ListScansPaginatorOptions struct { // The maximum number of results to return in the response. Use this parameter // when paginating results. If additional results exist beyond the number you // specify, the nextToken element is returned in the response. Use nextToken in a // subsequent request to retrieve additional results. Limit int32 // Set to true if pagination should stop if the service returns a pagination token // that matches the most recent token provided to the service. StopOnDuplicateToken bool }
ListScansPaginatorOptions is the paginator options for ListScans
type ListTagsForResourceInput ¶
type ListTagsForResourceInput struct { // The ARN of the ScanName object. You can retrieve this ARN by calling ListScans // or GetScan . // // This member is required. ResourceArn *string // contains filtered or unexported fields }
type ListTagsForResourceOutput ¶
type ListTagsForResourceOutput struct { // An array of key-value pairs used to tag an existing scan. A tag is a custom // attribute label with two parts: // // - A tag key. For example, CostCenter , Environment , or Secret . Tag keys are // case sensitive. // // - An optional tag value field. For example, 111122223333 , Production , or a // team name. Omitting the tag value is the same as using an empty string. Tag // values are case sensitive. Tags map[string]string // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type Options ¶
type Options struct { // Set of options to modify how an operation is invoked. These apply to all // operations invoked for this client. Use functional options on operation call to // modify this list for per operation behavior. APIOptions []func(*middleware.Stack) error // The optional application specific identifier appended to the User-Agent header. AppID string // This endpoint will be given as input to an EndpointResolverV2. It is used for // providing a custom base endpoint that is subject to modifications by the // processing EndpointResolverV2. BaseEndpoint *string // Configures the events that will be sent to the configured logger. ClientLogMode aws.ClientLogMode // The credentials object to use when signing requests. Credentials aws.CredentialsProvider // The configuration DefaultsMode that the SDK should use when constructing the // clients initial default settings. DefaultsMode aws.DefaultsMode // The endpoint options to be used when attempting to resolve an endpoint. EndpointOptions EndpointResolverOptions // The service endpoint resolver. // // Deprecated: Deprecated: EndpointResolver and WithEndpointResolver. Providing a // value for this field will likely prevent you from using any endpoint-related // service features released after the introduction of EndpointResolverV2 and // BaseEndpoint. // // To migrate an EndpointResolver implementation that uses a custom endpoint, set // the client option BaseEndpoint instead. EndpointResolver EndpointResolver // Resolves the endpoint used for a particular service operation. This should be // used over the deprecated EndpointResolver. EndpointResolverV2 EndpointResolverV2 // Signature Version 4 (SigV4) Signer HTTPSignerV4 HTTPSignerV4 // Provides idempotency tokens values that will be automatically populated into // idempotent API operations. IdempotencyTokenProvider IdempotencyTokenProvider // The logger writer interface to write logging messages to. Logger logging.Logger // The region to send requests to. (Required) Region string // RetryMaxAttempts specifies the maximum number attempts an API client will call // an operation that fails with a retryable error. A value of 0 is ignored, and // will not be used to configure the API client created default retryer, or modify // per operation call's retry max attempts. // // If specified in an operation call's functional options with a value that is // different than the constructed client's Options, the Client's Retryer will be // wrapped to use the operation's specific RetryMaxAttempts value. RetryMaxAttempts int // RetryMode specifies the retry mode the API client will be created with, if // Retryer option is not also specified. // // When creating a new API Clients this member will only be used if the Retryer // Options member is nil. This value will be ignored if Retryer is not nil. // // Currently does not support per operation call overrides, may in the future. RetryMode aws.RetryMode // Retryer guides how HTTP requests should be retried in case of recoverable // failures. When nil the API client will use a default retryer. The kind of // default retry created by the API client can be changed with the RetryMode // option. Retryer aws.Retryer // The RuntimeEnvironment configuration, only populated if the DefaultsMode is set // to DefaultsModeAuto and is initialized using config.LoadDefaultConfig . You // should not populate this structure programmatically, or rely on the values here // within your applications. RuntimeEnvironment aws.RuntimeEnvironment // The HTTP client to invoke API calls with. Defaults to client's default HTTP // implementation if nil. HTTPClient HTTPClient // The auth scheme resolver which determines how to authenticate for each // operation. AuthSchemeResolver AuthSchemeResolver // The list of auth schemes supported by the client. AuthSchemes []smithyhttp.AuthScheme // contains filtered or unexported fields }
func (Options) Copy ¶
Copy creates a clone where the APIOptions list is deep copied.
func (Options) GetIdentityResolver ¶
func (o Options) GetIdentityResolver(schemeID string) smithyauth.IdentityResolver
type ResolveEndpoint ¶
type ResolveEndpoint struct { Resolver EndpointResolver Options EndpointResolverOptions }
func (*ResolveEndpoint) HandleSerialize ¶
func (m *ResolveEndpoint) HandleSerialize(ctx context.Context, in middleware.SerializeInput, next middleware.SerializeHandler) ( out middleware.SerializeOutput, metadata middleware.Metadata, err error, )
func (*ResolveEndpoint) ID ¶
func (*ResolveEndpoint) ID() string
type TagResourceInput ¶
type TagResourceInput struct { // The ARN of the ScanName object. You can retrieve this ARN by calling ListScans // or GetScan . // // This member is required. ResourceArn *string // An array of key-value pairs used to tag an existing scan. A tag is a custom // attribute label with two parts: // // - A tag key. For example, CostCenter , Environment , or Secret . Tag keys are // case sensitive. // // - An optional tag value field. For example, 111122223333 , Production , or a // team name. Omitting the tag value is the same as using an empty string. Tag // values are case sensitive. // // This member is required. Tags map[string]string // contains filtered or unexported fields }
type TagResourceOutput ¶
type TagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UntagResourceInput ¶
type UntagResourceInput struct { // The ARN of the ScanName object. You can retrieve this ARN by calling ListScans // or GetScan . // // This member is required. ResourceArn *string // A list of keys for each tag you want to remove from a scan. // // This member is required. TagKeys []string // contains filtered or unexported fields }
type UntagResourceOutput ¶
type UntagResourceOutput struct { // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
type UpdateAccountConfigurationInput ¶
type UpdateAccountConfigurationInput struct { // The KMS key ARN you want to use for encryption. Defaults to service-side // encryption if missing. // // This member is required. EncryptionConfig *types.EncryptionConfig // contains filtered or unexported fields }
type UpdateAccountConfigurationOutput ¶
type UpdateAccountConfigurationOutput struct { // An EncryptionConfig object that contains the KMS key ARN to use for encryption. // // This member is required. EncryptionConfig *types.EncryptionConfig // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata // contains filtered or unexported fields }
Source Files
¶
- api_client.go
- api_op_BatchGetFindings.go
- api_op_CreateScan.go
- api_op_CreateUploadUrl.go
- api_op_GetAccountConfiguration.go
- api_op_GetFindings.go
- api_op_GetMetricsSummary.go
- api_op_GetScan.go
- api_op_ListFindingsMetrics.go
- api_op_ListScans.go
- api_op_ListTagsForResource.go
- api_op_TagResource.go
- api_op_UntagResource.go
- api_op_UpdateAccountConfiguration.go
- auth.go
- deserializers.go
- doc.go
- endpoints.go
- go_module_metadata.go
- options.go
- serializers.go
- validators.go