inspector

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package inspector provides a client for Amazon Inspector.

Index

Examples

Constants

View Source
const ServiceName = "inspector"

A ServiceName is the name of the service the client will make API calls to.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAttributesToFindingsInput

type AddAttributesToFindingsInput struct {

	// The array of attributes that you want to assign to specified findings.
	Attributes []*Attribute `locationName:"attributes" type:"list" required:"true"`

	// The ARNs specifying the findings that you want to assign attributes to.
	FindingArns []*string `locationName:"findingArns" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (AddAttributesToFindingsInput) GoString

func (s AddAttributesToFindingsInput) GoString() string

GoString returns the string representation

func (AddAttributesToFindingsInput) String

String returns the string representation

type AddAttributesToFindingsOutput

type AddAttributesToFindingsOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (AddAttributesToFindingsOutput) GoString

GoString returns the string representation

func (AddAttributesToFindingsOutput) String

String returns the string representation

type Agent

type Agent struct {

	// AWS account of the EC2 instance where the agent is installed.
	AccountId *string `locationName:"accountId" type:"string"`

	// The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
	AgentHealth *string `locationName:"agentHealth" type:"string"`

	// The detailed health state of the agent. Values can be set to RUNNING, HEALTHY,
	// UNHEALTHY, UNKNOWN, BLACKLISTED, SHUTDOWN, THROTTLED.
	AgentHealthCode *string `locationName:"agentHealthCode" type:"string"`

	// The description for the agent health code.
	AgentHealthDetails *string `locationName:"agentHealthDetails" type:"string"`

	// The EC2 instance ID where the agent is installed.
	AgentId *string `locationName:"agentId" type:"string"`

	// The ARN of the assessment that is associated with the agent.
	AssessmentArn *string `locationName:"assessmentArn" type:"string"`

	// This data type property is currently not used.
	AutoScalingGroup *string `locationName:"autoScalingGroup" type:"string"`

	// The Inspector application data metrics collected by the agent.
	Telemetry []*Telemetry `locationName:"telemetry" type:"list"`
	// contains filtered or unexported fields
}

Contains information about an Inspector agent. This data type is used as a response element in the ListAssessmentAgents action.

func (Agent) GoString

func (s Agent) GoString() string

GoString returns the string representation

func (Agent) String

func (s Agent) String() string

String returns the string representation

type AgentPreview

type AgentPreview struct {

	// The id of the EC2 instance where the agent is intalled.
	AgentId *string `locationName:"agentId" type:"string"`

	// The autoscaling group for the EC2 instance where the agent is installed.
	AutoScalingGroup *string `locationName:"autoScalingGroup" type:"string"`
	// contains filtered or unexported fields
}

This data type is used as a response element in the PreviewAgentsForResourceGroup action.

func (AgentPreview) GoString

func (s AgentPreview) GoString() string

GoString returns the string representation

func (AgentPreview) String

func (s AgentPreview) String() string

String returns the string representation

type AgentsFilter

type AgentsFilter struct {

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the agentHealth property of the Agent
	// data type.
	AgentHealthList []*string `locationName:"agentHealthList" type:"list"`
	// contains filtered or unexported fields
}

This data type is used as a response element in the ListAssessmentAgents action.

func (AgentsFilter) GoString

func (s AgentsFilter) GoString() string

GoString returns the string representation

func (AgentsFilter) String

func (s AgentsFilter) String() string

String returns the string representation

type Application

type Application struct {

	// The ARN specifying the Inspector application.
	ApplicationArn *string `locationName:"applicationArn" type:"string"`

	// The name of the Inspector application.
	ApplicationName *string `locationName:"applicationName" type:"string"`

	// The ARN specifying the resource group that is associated with the application.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string"`
	// contains filtered or unexported fields
}

Contains information about an Inspector application.

This data type is used as the response element in the DescribeApplication action.

func (Application) GoString

func (s Application) GoString() string

GoString returns the string representation

func (Application) String

func (s Application) String() string

String returns the string representation

type ApplicationsFilter

type ApplicationsFilter struct {

	// For a record to match a filter, an explicit value or a string containing
	// a wildcard specified for this data type property must match the value of
	// the applicationName property of the Application data type.
	ApplicationNamePatterns []*string `locationName:"applicationNamePatterns" type:"list"`
	// contains filtered or unexported fields
}

This data type is used as the request parameter in the ListApplications action.

func (ApplicationsFilter) GoString

func (s ApplicationsFilter) GoString() string

GoString returns the string representation

func (ApplicationsFilter) String

func (s ApplicationsFilter) String() string

String returns the string representation

type Assessment

type Assessment struct {

	// The ARN of the application that corresponds to this assessment.
	ApplicationArn *string `locationName:"applicationArn" type:"string"`

	// The ARN of the assessment.
	AssessmentArn *string `locationName:"assessmentArn" type:"string"`

	// The name of the assessment.
	AssessmentName *string `locationName:"assessmentName" type:"string"`

	// The state of the assessment. Values can be set to Created, Collecting Data,
	// Stopping, and Completed.
	AssessmentState *string `locationName:"assessmentState" type:"string"`

	// Boolean value (true or false) specifying whether the data collection process
	// is completed.
	DataCollected *bool `locationName:"dataCollected" type:"boolean"`

	// The assessment duration in seconds. The default value is 3600 seconds (one
	// hour). The maximum value is 86400 seconds (one day).
	DurationInSeconds *int64 `locationName:"durationInSeconds" type:"integer"`

	// The assessment end time.
	EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`

	// This data type property is not currently used.
	FailureMessage *string `locationName:"failureMessage" type:"string"`

	// The assessment start time.
	StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`

	// The user-defined attributes that are assigned to every generated finding.
	UserAttributesForFindings []*Attribute `locationName:"userAttributesForFindings" type:"list"`
	// contains filtered or unexported fields
}

Contains information about an Inspector assessment.

This data type is used as the response element in the DescribeAssessment action.

func (Assessment) GoString

func (s Assessment) GoString() string

GoString returns the string representation

func (Assessment) String

func (s Assessment) String() string

String returns the string representation

type AssessmentsFilter

type AssessmentsFilter struct {

	// For a record to match a filter, an explicit value or a string containing
	// a wildcard specified for this data type property must match the value of
	// the assessmentName property of the Assessment data type.
	AssessmentNamePatterns []*string `locationName:"assessmentNamePatterns" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the assessmentState property of the
	// Assessment data type.
	AssessmentStates []*string `locationName:"assessmentStates" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the dataCollected property of the
	// Assessment data type.
	DataCollected *bool `locationName:"dataCollected" type:"boolean"`

	// For a record to match a filter, the value specified for this data type property
	// must inclusively match any value between the specified minimum and maximum
	// values of the durationInSeconds property of the Assessment data type.
	DurationRange *DurationRange `locationName:"durationRange" type:"structure"`

	// For a record to match a filter, the value specified for this data type property
	// must inclusively match any value between the specified minimum and maximum
	// values of the endTime property of the Assessment data type.
	EndTimeRange *TimestampRange `locationName:"endTimeRange" type:"structure"`

	// For a record to match a filter, the value specified for this data type property
	// must inclusively match any value between the specified minimum and maximum
	// values of the startTime property of the Assessment data type.
	StartTimeRange *TimestampRange `locationName:"startTimeRange" type:"structure"`
	// contains filtered or unexported fields
}

This data type is used as the request parameter in the ListAssessments and ListAttachedAssessments actions.

func (AssessmentsFilter) GoString

func (s AssessmentsFilter) GoString() string

GoString returns the string representation

func (AssessmentsFilter) String

func (s AssessmentsFilter) String() string

String returns the string representation

type AttachAssessmentAndRulesPackageInput

type AttachAssessmentAndRulesPackageInput struct {

	// The ARN specifying the assessment to which you want to attach a rules package.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`

	// The ARN specifying the rules package that you want to attach to the assessment.
	RulesPackageArn *string `locationName:"rulesPackageArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (AttachAssessmentAndRulesPackageInput) GoString

GoString returns the string representation

func (AttachAssessmentAndRulesPackageInput) String

String returns the string representation

type AttachAssessmentAndRulesPackageOutput

type AttachAssessmentAndRulesPackageOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (AttachAssessmentAndRulesPackageOutput) GoString

GoString returns the string representation

func (AttachAssessmentAndRulesPackageOutput) String

String returns the string representation

type Attribute

type Attribute struct {

	// The attribute key.
	Key *string `locationName:"key" type:"string"`

	// The value assigned to the attribute key.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

This data type is used as a response element in the AddAttributesToFindings action and a request parameter in the CreateAssessment action.

func (Attribute) GoString

func (s Attribute) GoString() string

GoString returns the string representation

func (Attribute) String

func (s Attribute) String() string

String returns the string representation

type CreateApplicationInput

type CreateApplicationInput struct {

	// The user-defined name identifying the application that you want to create.
	// The name must be unique within the AWS account.
	ApplicationName *string `locationName:"applicationName" type:"string" required:"true"`

	// The ARN specifying the resource group that is used to create the application.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateApplicationInput) GoString

func (s CreateApplicationInput) GoString() string

GoString returns the string representation

func (CreateApplicationInput) String

func (s CreateApplicationInput) String() string

String returns the string representation

type CreateApplicationOutput

type CreateApplicationOutput struct {

	// The ARN specifying the application that is created.
	ApplicationArn *string `locationName:"applicationArn" type:"string"`
	// contains filtered or unexported fields
}

func (CreateApplicationOutput) GoString

func (s CreateApplicationOutput) GoString() string

GoString returns the string representation

func (CreateApplicationOutput) String

func (s CreateApplicationOutput) String() string

String returns the string representation

type CreateAssessmentInput

type CreateAssessmentInput struct {

	// The ARN specifying the application for which you want to create an assessment.
	ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"`

	// The user-defined name identifying the assessment that you want to create.
	// You can create several assessments for an application. The names of the assessments
	// corresponding to a particular application must be unique.
	AssessmentName *string `locationName:"assessmentName" type:"string" required:"true"`

	// The duration of the assessment in seconds. The default value is 3600 seconds
	// (one hour). The maximum value is 86400 seconds (one day).
	DurationInSeconds *int64 `locationName:"durationInSeconds" type:"integer" required:"true"`

	// The user-defined attributes that are assigned to every finding generated
	// by running this assessment.
	UserAttributesForFindings []*Attribute `locationName:"userAttributesForFindings" type:"list"`
	// contains filtered or unexported fields
}

func (CreateAssessmentInput) GoString

func (s CreateAssessmentInput) GoString() string

GoString returns the string representation

func (CreateAssessmentInput) String

func (s CreateAssessmentInput) String() string

String returns the string representation

type CreateAssessmentOutput

type CreateAssessmentOutput struct {

	// The ARN specifying the assessment that is created.
	AssessmentArn *string `locationName:"assessmentArn" type:"string"`
	// contains filtered or unexported fields
}

func (CreateAssessmentOutput) GoString

func (s CreateAssessmentOutput) GoString() string

GoString returns the string representation

func (CreateAssessmentOutput) String

func (s CreateAssessmentOutput) String() string

String returns the string representation

type CreateResourceGroupInput

type CreateResourceGroupInput struct {

	// A collection of keys and an array of possible values in JSON format.
	//
	// For example, [{ "key1" : ["Value1","Value2"]},{"Key2": ["Value3"]}]
	ResourceGroupTags *string `locationName:"resourceGroupTags" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (CreateResourceGroupInput) GoString

func (s CreateResourceGroupInput) GoString() string

GoString returns the string representation

func (CreateResourceGroupInput) String

func (s CreateResourceGroupInput) String() string

String returns the string representation

type CreateResourceGroupOutput

type CreateResourceGroupOutput struct {

	// The ARN specifying the resource group that is created.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string"`
	// contains filtered or unexported fields
}

func (CreateResourceGroupOutput) GoString

func (s CreateResourceGroupOutput) GoString() string

GoString returns the string representation

func (CreateResourceGroupOutput) String

func (s CreateResourceGroupOutput) String() string

String returns the string representation

type DeleteApplicationInput

type DeleteApplicationInput struct {

	// The ARN specifying the application that you want to delete.
	ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteApplicationInput) GoString

func (s DeleteApplicationInput) GoString() string

GoString returns the string representation

func (DeleteApplicationInput) String

func (s DeleteApplicationInput) String() string

String returns the string representation

type DeleteApplicationOutput

type DeleteApplicationOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteApplicationOutput) GoString

func (s DeleteApplicationOutput) GoString() string

GoString returns the string representation

func (DeleteApplicationOutput) String

func (s DeleteApplicationOutput) String() string

String returns the string representation

type DeleteAssessmentInput

type DeleteAssessmentInput struct {

	// The ARN specifying the assessment that you want to delete.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteAssessmentInput) GoString

func (s DeleteAssessmentInput) GoString() string

GoString returns the string representation

func (DeleteAssessmentInput) String

func (s DeleteAssessmentInput) String() string

String returns the string representation

type DeleteAssessmentOutput

type DeleteAssessmentOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteAssessmentOutput) GoString

func (s DeleteAssessmentOutput) GoString() string

GoString returns the string representation

func (DeleteAssessmentOutput) String

func (s DeleteAssessmentOutput) String() string

String returns the string representation

type DeleteRunInput

type DeleteRunInput struct {

	// The ARN specifying the assessment run that you want to delete.
	RunArn *string `locationName:"runArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteRunInput) GoString

func (s DeleteRunInput) GoString() string

GoString returns the string representation

func (DeleteRunInput) String

func (s DeleteRunInput) String() string

String returns the string representation

type DeleteRunOutput

type DeleteRunOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (DeleteRunOutput) GoString

func (s DeleteRunOutput) GoString() string

GoString returns the string representation

func (DeleteRunOutput) String

func (s DeleteRunOutput) String() string

String returns the string representation

type DescribeApplicationInput

type DescribeApplicationInput struct {

	// The ARN specifying the application that you want to describe.
	ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeApplicationInput) GoString

func (s DescribeApplicationInput) GoString() string

GoString returns the string representation

func (DescribeApplicationInput) String

func (s DescribeApplicationInput) String() string

String returns the string representation

type DescribeApplicationOutput

type DescribeApplicationOutput struct {

	// Information about the application.
	Application *Application `locationName:"application" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeApplicationOutput) GoString

func (s DescribeApplicationOutput) GoString() string

GoString returns the string representation

func (DescribeApplicationOutput) String

func (s DescribeApplicationOutput) String() string

String returns the string representation

type DescribeAssessmentInput

type DescribeAssessmentInput struct {

	// The ARN specifying the assessment that you want to describe.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeAssessmentInput) GoString

func (s DescribeAssessmentInput) GoString() string

GoString returns the string representation

func (DescribeAssessmentInput) String

func (s DescribeAssessmentInput) String() string

String returns the string representation

type DescribeAssessmentOutput

type DescribeAssessmentOutput struct {

	// Information about the assessment.
	Assessment *Assessment `locationName:"assessment" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeAssessmentOutput) GoString

func (s DescribeAssessmentOutput) GoString() string

GoString returns the string representation

func (DescribeAssessmentOutput) String

func (s DescribeAssessmentOutput) String() string

String returns the string representation

type DescribeCrossAccountAccessRoleInput

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

func (DescribeCrossAccountAccessRoleInput) GoString

GoString returns the string representation

func (DescribeCrossAccountAccessRoleInput) String

String returns the string representation

type DescribeCrossAccountAccessRoleOutput

type DescribeCrossAccountAccessRoleOutput struct {

	// The ARN specifying the IAM role that Inspector uses to access your AWS account.
	RoleArn *string `locationName:"roleArn" type:"string"`

	// A Boolean value that specifies whether the IAM role has the necessary policies
	// attached to enable Inspector to access your AWS account.
	Valid *bool `locationName:"valid" type:"boolean"`
	// contains filtered or unexported fields
}

func (DescribeCrossAccountAccessRoleOutput) GoString

GoString returns the string representation

func (DescribeCrossAccountAccessRoleOutput) String

String returns the string representation

type DescribeFindingInput

type DescribeFindingInput struct {

	// The ARN specifying the finding that you want to describe.
	FindingArn *string `locationName:"findingArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeFindingInput) GoString

func (s DescribeFindingInput) GoString() string

GoString returns the string representation

func (DescribeFindingInput) String

func (s DescribeFindingInput) String() string

String returns the string representation

type DescribeFindingOutput

type DescribeFindingOutput struct {

	// Information about the finding.
	Finding *Finding `locationName:"finding" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeFindingOutput) GoString

func (s DescribeFindingOutput) GoString() string

GoString returns the string representation

func (DescribeFindingOutput) String

func (s DescribeFindingOutput) String() string

String returns the string representation

type DescribeResourceGroupInput

type DescribeResourceGroupInput struct {

	// The ARN specifying the resource group that you want to describe.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeResourceGroupInput) GoString

func (s DescribeResourceGroupInput) GoString() string

GoString returns the string representation

func (DescribeResourceGroupInput) String

String returns the string representation

type DescribeResourceGroupOutput

type DescribeResourceGroupOutput struct {

	// Information about the resource group.
	ResourceGroup *ResourceGroup `locationName:"resourceGroup" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeResourceGroupOutput) GoString

func (s DescribeResourceGroupOutput) GoString() string

GoString returns the string representation

func (DescribeResourceGroupOutput) String

String returns the string representation

type DescribeRulesPackageInput

type DescribeRulesPackageInput struct {

	// The ARN specifying the rules package that you want to describe.
	RulesPackageArn *string `locationName:"rulesPackageArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeRulesPackageInput) GoString

func (s DescribeRulesPackageInput) GoString() string

GoString returns the string representation

func (DescribeRulesPackageInput) String

func (s DescribeRulesPackageInput) String() string

String returns the string representation

type DescribeRulesPackageOutput

type DescribeRulesPackageOutput struct {

	// Information about the rules package.
	RulesPackage *RulesPackage `locationName:"rulesPackage" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeRulesPackageOutput) GoString

func (s DescribeRulesPackageOutput) GoString() string

GoString returns the string representation

func (DescribeRulesPackageOutput) String

String returns the string representation

type DescribeRunInput

type DescribeRunInput struct {

	// The ARN specifying the assessment run that you want to describe.
	RunArn *string `locationName:"runArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DescribeRunInput) GoString

func (s DescribeRunInput) GoString() string

GoString returns the string representation

func (DescribeRunInput) String

func (s DescribeRunInput) String() string

String returns the string representation

type DescribeRunOutput

type DescribeRunOutput struct {

	// Information about the assessment run.
	Run *Run `locationName:"run" type:"structure"`
	// contains filtered or unexported fields
}

func (DescribeRunOutput) GoString

func (s DescribeRunOutput) GoString() string

GoString returns the string representation

func (DescribeRunOutput) String

func (s DescribeRunOutput) String() string

String returns the string representation

type DetachAssessmentAndRulesPackageInput

type DetachAssessmentAndRulesPackageInput struct {

	// The ARN specifying the assessment from which you want to detach a rules package.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`

	// The ARN specifying the rules package that you want to detach from the assessment.
	RulesPackageArn *string `locationName:"rulesPackageArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DetachAssessmentAndRulesPackageInput) GoString

GoString returns the string representation

func (DetachAssessmentAndRulesPackageInput) String

String returns the string representation

type DetachAssessmentAndRulesPackageOutput

type DetachAssessmentAndRulesPackageOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (DetachAssessmentAndRulesPackageOutput) GoString

GoString returns the string representation

func (DetachAssessmentAndRulesPackageOutput) String

String returns the string representation

type DurationRange

type DurationRange struct {

	// The maximum value of the duration range. Must be less than or equal to 604800
	// seconds (1 week).
	Maximum *int64 `locationName:"maximum" type:"integer"`

	// The minimum value of the duration range. Must be greater than zero.
	Minimum *int64 `locationName:"minimum" type:"integer"`
	// contains filtered or unexported fields
}

This data type is used in the AssessmentsFilter data type.

func (DurationRange) GoString

func (s DurationRange) GoString() string

GoString returns the string representation

func (DurationRange) String

func (s DurationRange) String() string

String returns the string representation

type Finding

type Finding struct {

	// The EC2 instance ID where the agent is installed that is used during the
	// assessment that generates the finding.
	AgentId *string `locationName:"agentId" type:"string"`

	// The system-defined attributes for the finding.
	Attributes []*Attribute `locationName:"attributes" type:"list"`

	// The autoscaling group of the EC2 instance where the agent is installed that
	// is used during the assessment that generates the finding.
	AutoScalingGroup *string `locationName:"autoScalingGroup" type:"string"`

	// The description of the finding.
	Description *LocalizedText `locationName:"description" type:"structure"`

	// A short description that identifies the finding.
	Finding *LocalizedText `locationName:"finding" type:"structure"`

	// The ARN specifying the finding.
	FindingArn *string `locationName:"findingArn" type:"string"`

	// The recommendation for the finding.
	Recommendation *LocalizedText `locationName:"recommendation" type:"structure"`

	// The rule name that is used to generate the finding.
	RuleName *string `locationName:"ruleName" type:"string"`

	// The ARN of the rules package that is used to generate the finding.
	RulesPackageArn *string `locationName:"rulesPackageArn" type:"string"`

	// The ARN of the assessment run that generated the finding.
	RunArn *string `locationName:"runArn" type:"string"`

	// The finding severity. Values can be set to High, Medium, Low, and Informational.
	Severity *string `locationName:"severity" type:"string"`

	// The user-defined attributes that are assigned to the finding.
	UserAttributes []*Attribute `locationName:"userAttributes" type:"list"`
	// contains filtered or unexported fields
}

Contains information about an Inspector finding.

This data type is used as the response element in the DescribeFinding action.

func (Finding) GoString

func (s Finding) GoString() string

GoString returns the string representation

func (Finding) String

func (s Finding) String() string

String returns the string representation

type FindingsFilter

type FindingsFilter struct {

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the attributes property of the Finding
	// data type.
	Attributes []*Attribute `locationName:"attributes" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the ruleName property of the Finding
	// data type.
	RuleNames []*string `locationName:"ruleNames" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the rulesPackageArn property of the
	// Finding data type.
	RulesPackageArns []*string `locationName:"rulesPackageArns" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the severity property of the Finding
	// data type.
	Severities []*string `locationName:"severities" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the userAttributes property of the
	// Finding data type.
	UserAttributes []*Attribute `locationName:"userAttributes" type:"list"`
	// contains filtered or unexported fields
}

This data type is used as a request parameter in the ListFindings action.

func (FindingsFilter) GoString

func (s FindingsFilter) GoString() string

GoString returns the string representation

func (FindingsFilter) String

func (s FindingsFilter) String() string

String returns the string representation

type GetAssessmentTelemetryInput

type GetAssessmentTelemetryInput struct {

	// The ARN specifying the assessment the telemetry of which you want to obtain.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetAssessmentTelemetryInput) GoString

func (s GetAssessmentTelemetryInput) GoString() string

GoString returns the string representation

func (GetAssessmentTelemetryInput) String

String returns the string representation

type GetAssessmentTelemetryOutput

type GetAssessmentTelemetryOutput struct {

	// Telemetry details.
	Telemetry []*Telemetry `locationName:"telemetry" type:"list"`
	// contains filtered or unexported fields
}

func (GetAssessmentTelemetryOutput) GoString

func (s GetAssessmentTelemetryOutput) GoString() string

GoString returns the string representation

func (GetAssessmentTelemetryOutput) String

String returns the string representation

type Inspector

type Inspector struct {
	*client.Client
}

Amazon Inspector enables you to analyze the behavior of the applications you run in AWS and to identify potential security issues. For more information, see Amazon Inspector User Guide (https://docs.aws.amazon.com/inspector/latest/userguide/inspector_introduction.html). The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Inspector

New creates a new instance of the Inspector 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:

// Create a Inspector client from just a session.
svc := inspector.New(mySession)

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

func (*Inspector) AddAttributesToFindings

func (c *Inspector) AddAttributesToFindings(input *AddAttributesToFindingsInput) (*AddAttributesToFindingsOutput, error)

Assigns attributes (key and value pair) to the findings specified by the findings' ARNs.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.AddAttributesToFindingsInput{
		Attributes: []*inspector.Attribute{ // Required
			{ // Required
				Key:   aws.String("AttributeKey"),
				Value: aws.String("AttributeValue"),
			},
			// More values...
		},
		FindingArns: []*string{ // Required
			aws.String("Arn"), // Required
			// More values...
		},
	}
	resp, err := svc.AddAttributesToFindings(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) AddAttributesToFindingsRequest

func (c *Inspector) AddAttributesToFindingsRequest(input *AddAttributesToFindingsInput) (req *request.Request, output *AddAttributesToFindingsOutput)

AddAttributesToFindingsRequest generates a request for the AddAttributesToFindings operation.

func (*Inspector) AttachAssessmentAndRulesPackage

func (c *Inspector) AttachAssessmentAndRulesPackage(input *AttachAssessmentAndRulesPackageInput) (*AttachAssessmentAndRulesPackageOutput, error)

Attaches the rules package specified by the rules package ARN to the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.AttachAssessmentAndRulesPackageInput{
		AssessmentArn:   aws.String("Arn"), // Required
		RulesPackageArn: aws.String("Arn"), // Required
	}
	resp, err := svc.AttachAssessmentAndRulesPackage(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) AttachAssessmentAndRulesPackageRequest

func (c *Inspector) AttachAssessmentAndRulesPackageRequest(input *AttachAssessmentAndRulesPackageInput) (req *request.Request, output *AttachAssessmentAndRulesPackageOutput)

AttachAssessmentAndRulesPackageRequest generates a request for the AttachAssessmentAndRulesPackage operation.

func (*Inspector) CreateApplication

func (c *Inspector) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error)

Creates a new application using the resource group ARN generated by CreateResourceGroup. You can create up to 50 applications per AWS account. You can run up to 500 concurrent agents per AWS account. For more information, see Inspector Applications. (https://docs.aws.amazon.com/inspector/latest/userguide//inspector_applications.html)

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.CreateApplicationInput{
		ApplicationName:  aws.String("Name"), // Required
		ResourceGroupArn: aws.String("Arn"),  // Required
	}
	resp, err := svc.CreateApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) CreateApplicationRequest

func (c *Inspector) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput)

CreateApplicationRequest generates a request for the CreateApplication operation.

func (*Inspector) CreateAssessment

func (c *Inspector) CreateAssessment(input *CreateAssessmentInput) (*CreateAssessmentOutput, error)

Creates an assessment for the application specified by the application ARN. You can create up to 500 assessments per AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.CreateAssessmentInput{
		ApplicationArn:    aws.String("Arn"),  // Required
		AssessmentName:    aws.String("Name"), // Required
		DurationInSeconds: aws.Int64(1),       // Required
		UserAttributesForFindings: []*inspector.Attribute{
			{ // Required
				Key:   aws.String("AttributeKey"),
				Value: aws.String("AttributeValue"),
			},
			// More values...
		},
	}
	resp, err := svc.CreateAssessment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) CreateAssessmentRequest

func (c *Inspector) CreateAssessmentRequest(input *CreateAssessmentInput) (req *request.Request, output *CreateAssessmentOutput)

CreateAssessmentRequest generates a request for the CreateAssessment operation.

func (*Inspector) CreateResourceGroup

func (c *Inspector) CreateResourceGroup(input *CreateResourceGroupInput) (*CreateResourceGroupOutput, error)

Creates a resource group using the specified set of tags (key and value pairs) that are used to select the EC2 instances to be included in an Inspector application. The created resource group is then used to create an Inspector application.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.CreateResourceGroupInput{
		ResourceGroupTags: aws.String("ResourceGroupTags"), // Required
	}
	resp, err := svc.CreateResourceGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) CreateResourceGroupRequest

func (c *Inspector) CreateResourceGroupRequest(input *CreateResourceGroupInput) (req *request.Request, output *CreateResourceGroupOutput)

CreateResourceGroupRequest generates a request for the CreateResourceGroup operation.

func (*Inspector) DeleteApplication

func (c *Inspector) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error)

Deletes the application specified by the application ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DeleteApplicationInput{
		ApplicationArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DeleteApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DeleteApplicationRequest

func (c *Inspector) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput)

DeleteApplicationRequest generates a request for the DeleteApplication operation.

func (*Inspector) DeleteAssessment

func (c *Inspector) DeleteAssessment(input *DeleteAssessmentInput) (*DeleteAssessmentOutput, error)

Deletes the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DeleteAssessmentInput{
		AssessmentArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DeleteAssessment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DeleteAssessmentRequest

func (c *Inspector) DeleteAssessmentRequest(input *DeleteAssessmentInput) (req *request.Request, output *DeleteAssessmentOutput)

DeleteAssessmentRequest generates a request for the DeleteAssessment operation.

func (*Inspector) DeleteRun

func (c *Inspector) DeleteRun(input *DeleteRunInput) (*DeleteRunOutput, error)

Deletes the assessment run specified by the run ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DeleteRunInput{
		RunArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DeleteRun(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DeleteRunRequest

func (c *Inspector) DeleteRunRequest(input *DeleteRunInput) (req *request.Request, output *DeleteRunOutput)

DeleteRunRequest generates a request for the DeleteRun operation.

func (*Inspector) DescribeApplication

func (c *Inspector) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error)

Describes the application specified by the application ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DescribeApplicationInput{
		ApplicationArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DescribeApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeApplicationRequest

func (c *Inspector) DescribeApplicationRequest(input *DescribeApplicationInput) (req *request.Request, output *DescribeApplicationOutput)

DescribeApplicationRequest generates a request for the DescribeApplication operation.

func (*Inspector) DescribeAssessment

func (c *Inspector) DescribeAssessment(input *DescribeAssessmentInput) (*DescribeAssessmentOutput, error)

Describes the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DescribeAssessmentInput{
		AssessmentArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DescribeAssessment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeAssessmentRequest

func (c *Inspector) DescribeAssessmentRequest(input *DescribeAssessmentInput) (req *request.Request, output *DescribeAssessmentOutput)

DescribeAssessmentRequest generates a request for the DescribeAssessment operation.

func (*Inspector) DescribeCrossAccountAccessRole

func (c *Inspector) DescribeCrossAccountAccessRole(input *DescribeCrossAccountAccessRoleInput) (*DescribeCrossAccountAccessRoleOutput, error)

Describes the IAM role that enables Inspector to access your AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	var params *inspector.DescribeCrossAccountAccessRoleInput
	resp, err := svc.DescribeCrossAccountAccessRole(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeCrossAccountAccessRoleRequest

func (c *Inspector) DescribeCrossAccountAccessRoleRequest(input *DescribeCrossAccountAccessRoleInput) (req *request.Request, output *DescribeCrossAccountAccessRoleOutput)

DescribeCrossAccountAccessRoleRequest generates a request for the DescribeCrossAccountAccessRole operation.

func (*Inspector) DescribeFinding

func (c *Inspector) DescribeFinding(input *DescribeFindingInput) (*DescribeFindingOutput, error)

Describes the finding specified by the finding ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DescribeFindingInput{
		FindingArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DescribeFinding(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeFindingRequest

func (c *Inspector) DescribeFindingRequest(input *DescribeFindingInput) (req *request.Request, output *DescribeFindingOutput)

DescribeFindingRequest generates a request for the DescribeFinding operation.

func (*Inspector) DescribeResourceGroup

func (c *Inspector) DescribeResourceGroup(input *DescribeResourceGroupInput) (*DescribeResourceGroupOutput, error)

Describes the resource group specified by the resource group ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DescribeResourceGroupInput{
		ResourceGroupArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DescribeResourceGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeResourceGroupRequest

func (c *Inspector) DescribeResourceGroupRequest(input *DescribeResourceGroupInput) (req *request.Request, output *DescribeResourceGroupOutput)

DescribeResourceGroupRequest generates a request for the DescribeResourceGroup operation.

func (*Inspector) DescribeRulesPackage

func (c *Inspector) DescribeRulesPackage(input *DescribeRulesPackageInput) (*DescribeRulesPackageOutput, error)

Describes the rules package specified by the rules package ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DescribeRulesPackageInput{
		RulesPackageArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DescribeRulesPackage(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeRulesPackageRequest

func (c *Inspector) DescribeRulesPackageRequest(input *DescribeRulesPackageInput) (req *request.Request, output *DescribeRulesPackageOutput)

DescribeRulesPackageRequest generates a request for the DescribeRulesPackage operation.

func (*Inspector) DescribeRun

func (c *Inspector) DescribeRun(input *DescribeRunInput) (*DescribeRunOutput, error)

Describes the assessment run specified by the run ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DescribeRunInput{
		RunArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DescribeRun(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DescribeRunRequest

func (c *Inspector) DescribeRunRequest(input *DescribeRunInput) (req *request.Request, output *DescribeRunOutput)

DescribeRunRequest generates a request for the DescribeRun operation.

func (*Inspector) DetachAssessmentAndRulesPackage

func (c *Inspector) DetachAssessmentAndRulesPackage(input *DetachAssessmentAndRulesPackageInput) (*DetachAssessmentAndRulesPackageOutput, error)

Detaches the rules package specified by the rules package ARN from the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.DetachAssessmentAndRulesPackageInput{
		AssessmentArn:   aws.String("Arn"), // Required
		RulesPackageArn: aws.String("Arn"), // Required
	}
	resp, err := svc.DetachAssessmentAndRulesPackage(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) DetachAssessmentAndRulesPackageRequest

func (c *Inspector) DetachAssessmentAndRulesPackageRequest(input *DetachAssessmentAndRulesPackageInput) (req *request.Request, output *DetachAssessmentAndRulesPackageOutput)

DetachAssessmentAndRulesPackageRequest generates a request for the DetachAssessmentAndRulesPackage operation.

func (*Inspector) GetAssessmentTelemetry

func (c *Inspector) GetAssessmentTelemetry(input *GetAssessmentTelemetryInput) (*GetAssessmentTelemetryOutput, error)

Returns the metadata about the telemetry (application behavioral data) for the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.GetAssessmentTelemetryInput{
		AssessmentArn: aws.String("Arn"), // Required
	}
	resp, err := svc.GetAssessmentTelemetry(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) GetAssessmentTelemetryRequest

func (c *Inspector) GetAssessmentTelemetryRequest(input *GetAssessmentTelemetryInput) (req *request.Request, output *GetAssessmentTelemetryOutput)

GetAssessmentTelemetryRequest generates a request for the GetAssessmentTelemetry operation.

func (*Inspector) ListApplications

func (c *Inspector) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error)

Lists the ARNs of the applications within this AWS account. For more information about applications, see Inspector Applications (https://docs.aws.amazon.com/inspector/latest/userguide//inspector_applications.html).

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListApplicationsInput{
		Filter: &inspector.ApplicationsFilter{
			ApplicationNamePatterns: []*string{
				aws.String("NamePattern"), // Required
				// More values...
			},
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
	}
	resp, err := svc.ListApplications(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListApplicationsRequest

func (c *Inspector) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput)

ListApplicationsRequest generates a request for the ListApplications operation.

func (*Inspector) ListAssessmentAgents

func (c *Inspector) ListAssessmentAgents(input *ListAssessmentAgentsInput) (*ListAssessmentAgentsOutput, error)

Lists the agents of the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListAssessmentAgentsInput{
		AssessmentArn: aws.String("Arn"), // Required
		Filter: &inspector.AgentsFilter{
			AgentHealthList: []*string{
				aws.String("AgentHealth"), // Required
				// More values...
			},
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
	}
	resp, err := svc.ListAssessmentAgents(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListAssessmentAgentsRequest

func (c *Inspector) ListAssessmentAgentsRequest(input *ListAssessmentAgentsInput) (req *request.Request, output *ListAssessmentAgentsOutput)

ListAssessmentAgentsRequest generates a request for the ListAssessmentAgents operation.

func (*Inspector) ListAssessments

func (c *Inspector) ListAssessments(input *ListAssessmentsInput) (*ListAssessmentsOutput, error)

Lists the assessments corresponding to applications specified by the applications' ARNs.

Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListAssessmentsInput{
		ApplicationArns: []*string{
			aws.String("Arn"), // Required
			// More values...
		},
		Filter: &inspector.AssessmentsFilter{
			AssessmentNamePatterns: []*string{
				aws.String("NamePattern"), // Required
				// More values...
			},
			AssessmentStates: []*string{
				aws.String("AssessmentState"), // Required
				// More values...
			},
			DataCollected: aws.Bool(true),
			DurationRange: &inspector.DurationRange{
				Maximum: aws.Int64(1),
				Minimum: aws.Int64(1),
			},
			EndTimeRange: &inspector.TimestampRange{
				Maximum: aws.Time(time.Now()),
				Minimum: aws.Time(time.Now()),
			},
			StartTimeRange: &inspector.TimestampRange{
				Maximum: aws.Time(time.Now()),
				Minimum: aws.Time(time.Now()),
			},
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
	}
	resp, err := svc.ListAssessments(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListAssessmentsRequest

func (c *Inspector) ListAssessmentsRequest(input *ListAssessmentsInput) (req *request.Request, output *ListAssessmentsOutput)

ListAssessmentsRequest generates a request for the ListAssessments operation.

func (*Inspector) ListAttachedAssessments

func (c *Inspector) ListAttachedAssessments(input *ListAttachedAssessmentsInput) (*ListAttachedAssessmentsOutput, error)

Lists the assessments attached to the rules package specified by the rules package ARN.

Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListAttachedAssessmentsInput{
		RulesPackageArn: aws.String("Arn"), // Required
		Filter: &inspector.AssessmentsFilter{
			AssessmentNamePatterns: []*string{
				aws.String("NamePattern"), // Required
				// More values...
			},
			AssessmentStates: []*string{
				aws.String("AssessmentState"), // Required
				// More values...
			},
			DataCollected: aws.Bool(true),
			DurationRange: &inspector.DurationRange{
				Maximum: aws.Int64(1),
				Minimum: aws.Int64(1),
			},
			EndTimeRange: &inspector.TimestampRange{
				Maximum: aws.Time(time.Now()),
				Minimum: aws.Time(time.Now()),
			},
			StartTimeRange: &inspector.TimestampRange{
				Maximum: aws.Time(time.Now()),
				Minimum: aws.Time(time.Now()),
			},
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
	}
	resp, err := svc.ListAttachedAssessments(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListAttachedAssessmentsRequest

func (c *Inspector) ListAttachedAssessmentsRequest(input *ListAttachedAssessmentsInput) (req *request.Request, output *ListAttachedAssessmentsOutput)

ListAttachedAssessmentsRequest generates a request for the ListAttachedAssessments operation.

func (*Inspector) ListAttachedRulesPackages

func (c *Inspector) ListAttachedRulesPackages(input *ListAttachedRulesPackagesInput) (*ListAttachedRulesPackagesOutput, error)

Lists the rules packages attached to the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListAttachedRulesPackagesInput{
		AssessmentArn: aws.String("Arn"), // Required
		MaxResults:    aws.Int64(1),
		NextToken:     aws.String("PaginationToken"),
	}
	resp, err := svc.ListAttachedRulesPackages(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListAttachedRulesPackagesRequest

func (c *Inspector) ListAttachedRulesPackagesRequest(input *ListAttachedRulesPackagesInput) (req *request.Request, output *ListAttachedRulesPackagesOutput)

ListAttachedRulesPackagesRequest generates a request for the ListAttachedRulesPackages operation.

func (*Inspector) ListFindings

func (c *Inspector) ListFindings(input *ListFindingsInput) (*ListFindingsOutput, error)

Lists findings generated by the assessment run specified by the run ARNs.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListFindingsInput{
		Filter: &inspector.FindingsFilter{
			Attributes: []*inspector.Attribute{
				{ // Required
					Key:   aws.String("AttributeKey"),
					Value: aws.String("AttributeValue"),
				},
				// More values...
			},
			RuleNames: []*string{
				aws.String("Name"), // Required
				// More values...
			},
			RulesPackageArns: []*string{
				aws.String("Arn"), // Required
				// More values...
			},
			Severities: []*string{
				aws.String("Severity"), // Required
				// More values...
			},
			UserAttributes: []*inspector.Attribute{
				{ // Required
					Key:   aws.String("AttributeKey"),
					Value: aws.String("AttributeValue"),
				},
				// More values...
			},
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
		RunArns: []*string{
			aws.String("Arn"), // Required
			// More values...
		},
	}
	resp, err := svc.ListFindings(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListFindingsRequest

func (c *Inspector) ListFindingsRequest(input *ListFindingsInput) (req *request.Request, output *ListFindingsOutput)

ListFindingsRequest generates a request for the ListFindings operation.

func (*Inspector) ListRulesPackages

func (c *Inspector) ListRulesPackages(input *ListRulesPackagesInput) (*ListRulesPackagesOutput, error)

Lists all available Inspector rules packages.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListRulesPackagesInput{
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
	}
	resp, err := svc.ListRulesPackages(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListRulesPackagesRequest

func (c *Inspector) ListRulesPackagesRequest(input *ListRulesPackagesInput) (req *request.Request, output *ListRulesPackagesOutput)

ListRulesPackagesRequest generates a request for the ListRulesPackages operation.

func (*Inspector) ListRuns

func (c *Inspector) ListRuns(input *ListRunsInput) (*ListRunsOutput, error)

Lists the assessment runs associated with the assessments specified by the assessment ARNs.

Example
package main

import (
	"fmt"
	"time"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListRunsInput{
		AssessmentArns: []*string{
			aws.String("Arn"), // Required
			// More values...
		},
		Filter: &inspector.RunsFilter{
			CompletionTime: &inspector.TimestampRange{
				Maximum: aws.Time(time.Now()),
				Minimum: aws.Time(time.Now()),
			},
			CreationTime: &inspector.TimestampRange{
				Maximum: aws.Time(time.Now()),
				Minimum: aws.Time(time.Now()),
			},
			RulesPackages: []*string{
				aws.String("Arn"), // Required
				// More values...
			},
			RunNamePatterns: []*string{
				aws.String("NamePattern"), // Required
				// More values...
			},
			RunStates: []*string{
				aws.String("RunState"), // Required
				// More values...
			},
		},
		MaxResults: aws.Int64(1),
		NextToken:  aws.String("PaginationToken"),
	}
	resp, err := svc.ListRuns(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListRunsRequest

func (c *Inspector) ListRunsRequest(input *ListRunsInput) (req *request.Request, output *ListRunsOutput)

ListRunsRequest generates a request for the ListRuns operation.

func (*Inspector) ListTagsForResource

func (c *Inspector) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error)

Lists all tags associated with a resource.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.ListTagsForResourceInput{
		ResourceArn: aws.String("Arn"), // Required
	}
	resp, err := svc.ListTagsForResource(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) ListTagsForResourceRequest

func (c *Inspector) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput)

ListTagsForResourceRequest generates a request for the ListTagsForResource operation.

func (*Inspector) LocalizeText

func (c *Inspector) LocalizeText(input *LocalizeTextInput) (*LocalizeTextOutput, error)

Translates a textual identifier into a user-readable text in a specified locale.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.LocalizeTextInput{
		Locale: aws.String("Locale"), // Required
		LocalizedTexts: []*inspector.LocalizedText{ // Required
			{ // Required
				Key: &inspector.LocalizedTextKey{
					Facility: aws.String("LocalizedFacility"),
					Id:       aws.String("LocalizedTextId"),
				},
				Parameters: []*inspector.Parameter{
					{ // Required
						Name:  aws.String("ParameterName"),
						Value: aws.String("ParameterValue"),
					},
					// More values...
				},
			},
			// More values...
		},
	}
	resp, err := svc.LocalizeText(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) LocalizeTextRequest

func (c *Inspector) LocalizeTextRequest(input *LocalizeTextInput) (req *request.Request, output *LocalizeTextOutput)

LocalizeTextRequest generates a request for the LocalizeText operation.

func (*Inspector) PreviewAgentsForResourceGroup

func (c *Inspector) PreviewAgentsForResourceGroup(input *PreviewAgentsForResourceGroupInput) (*PreviewAgentsForResourceGroupOutput, error)

Previews the agents installed on the EC2 instances that are included in the application created with the specified resource group.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.PreviewAgentsForResourceGroupInput{
		ResourceGroupArn: aws.String("Arn"), // Required
		MaxResults:       aws.Int64(1),
		NextToken:        aws.String("PaginationToken"),
	}
	resp, err := svc.PreviewAgentsForResourceGroup(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) PreviewAgentsForResourceGroupRequest

func (c *Inspector) PreviewAgentsForResourceGroupRequest(input *PreviewAgentsForResourceGroupInput) (req *request.Request, output *PreviewAgentsForResourceGroupOutput)

PreviewAgentsForResourceGroupRequest generates a request for the PreviewAgentsForResourceGroup operation.

func (*Inspector) RegisterCrossAccountAccessRole

func (c *Inspector) RegisterCrossAccountAccessRole(input *RegisterCrossAccountAccessRoleInput) (*RegisterCrossAccountAccessRoleOutput, error)

Register the role that Inspector uses to list your EC2 instances during the assessment.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.RegisterCrossAccountAccessRoleInput{
		RoleArn: aws.String("Arn"), // Required
	}
	resp, err := svc.RegisterCrossAccountAccessRole(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) RegisterCrossAccountAccessRoleRequest

func (c *Inspector) RegisterCrossAccountAccessRoleRequest(input *RegisterCrossAccountAccessRoleInput) (req *request.Request, output *RegisterCrossAccountAccessRoleOutput)

RegisterCrossAccountAccessRoleRequest generates a request for the RegisterCrossAccountAccessRole operation.

func (*Inspector) RemoveAttributesFromFindings

func (c *Inspector) RemoveAttributesFromFindings(input *RemoveAttributesFromFindingsInput) (*RemoveAttributesFromFindingsOutput, error)

Removes the entire attribute (key and value pair) from the findings specified by the finding ARNs where an attribute with the specified key exists.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.RemoveAttributesFromFindingsInput{
		AttributeKeys: []*string{ // Required
			aws.String("AttributeKey"), // Required
			// More values...
		},
		FindingArns: []*string{ // Required
			aws.String("Arn"), // Required
			// More values...
		},
	}
	resp, err := svc.RemoveAttributesFromFindings(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) RemoveAttributesFromFindingsRequest

func (c *Inspector) RemoveAttributesFromFindingsRequest(input *RemoveAttributesFromFindingsInput) (req *request.Request, output *RemoveAttributesFromFindingsOutput)

RemoveAttributesFromFindingsRequest generates a request for the RemoveAttributesFromFindings operation.

func (*Inspector) RunAssessment

func (c *Inspector) RunAssessment(input *RunAssessmentInput) (*RunAssessmentOutput, error)

Starts the analysis of the application’s behavior against selected rule packages for the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.RunAssessmentInput{
		AssessmentArn: aws.String("Arn"),  // Required
		RunName:       aws.String("Name"), // Required
	}
	resp, err := svc.RunAssessment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) RunAssessmentRequest

func (c *Inspector) RunAssessmentRequest(input *RunAssessmentInput) (req *request.Request, output *RunAssessmentOutput)

RunAssessmentRequest generates a request for the RunAssessment operation.

func (*Inspector) SetTagsForResource

func (c *Inspector) SetTagsForResource(input *SetTagsForResourceInput) (*SetTagsForResourceOutput, error)

Sets tags (key and value pairs) to the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.SetTagsForResourceInput{
		ResourceArn: aws.String("Arn"), // Required
		Tags: []*inspector.Tag{
			{ // Required
				Key:   aws.String("TagKey"),
				Value: aws.String("TagValue"),
			},
			// More values...
		},
	}
	resp, err := svc.SetTagsForResource(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) SetTagsForResourceRequest

func (c *Inspector) SetTagsForResourceRequest(input *SetTagsForResourceInput) (req *request.Request, output *SetTagsForResourceOutput)

SetTagsForResourceRequest generates a request for the SetTagsForResource operation.

func (*Inspector) StartDataCollection

func (c *Inspector) StartDataCollection(input *StartDataCollectionInput) (*StartDataCollectionOutput, error)

Starts data collection for the assessment specified by the assessment ARN. For this API to function properly, you must not exceed the limit of running up to 500 concurrent agents per AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.StartDataCollectionInput{
		AssessmentArn: aws.String("Arn"), // Required
	}
	resp, err := svc.StartDataCollection(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) StartDataCollectionRequest

func (c *Inspector) StartDataCollectionRequest(input *StartDataCollectionInput) (req *request.Request, output *StartDataCollectionOutput)

StartDataCollectionRequest generates a request for the StartDataCollection operation.

func (*Inspector) StopDataCollection

func (c *Inspector) StopDataCollection(input *StopDataCollectionInput) (*StopDataCollectionOutput, error)

Stop data collection for the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.StopDataCollectionInput{
		AssessmentArn: aws.String("Arn"), // Required
	}
	resp, err := svc.StopDataCollection(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) StopDataCollectionRequest

func (c *Inspector) StopDataCollectionRequest(input *StopDataCollectionInput) (req *request.Request, output *StopDataCollectionOutput)

StopDataCollectionRequest generates a request for the StopDataCollection operation.

func (*Inspector) UpdateApplication

func (c *Inspector) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error)

Updates application specified by the application ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.UpdateApplicationInput{
		ApplicationArn:   aws.String("Arn"),  // Required
		ApplicationName:  aws.String("Name"), // Required
		ResourceGroupArn: aws.String("Arn"),  // Required
	}
	resp, err := svc.UpdateApplication(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) UpdateApplicationRequest

func (c *Inspector) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput)

UpdateApplicationRequest generates a request for the UpdateApplication operation.

func (*Inspector) UpdateAssessment

func (c *Inspector) UpdateAssessment(input *UpdateAssessmentInput) (*UpdateAssessmentOutput, error)

Updates the assessment specified by the assessment ARN.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/inspector"
)

func main() {
	svc := inspector.New(session.New())

	params := &inspector.UpdateAssessmentInput{
		AssessmentArn:     aws.String("Arn"),  // Required
		AssessmentName:    aws.String("Name"), // Required
		DurationInSeconds: aws.Int64(1),       // Required
	}
	resp, err := svc.UpdateAssessment(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*Inspector) UpdateAssessmentRequest

func (c *Inspector) UpdateAssessmentRequest(input *UpdateAssessmentInput) (req *request.Request, output *UpdateAssessmentOutput)

UpdateAssessmentRequest generates a request for the UpdateAssessment operation.

type ListApplicationsInput

type ListApplicationsInput struct {

	// You can use this parameter to specify a subset of data to be included in
	// the action's response.
	//
	// For a record to match a filter, all specified filter attributes must match.
	// When multiple values are specified for a filter attribute, any of the values
	// can match.
	Filter *ApplicationsFilter `locationName:"filter" type:"structure"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListApplications action. Subsequent
	// calls to the action fill nextToken in the request with the value of NextToken
	// from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListApplicationsInput) GoString

func (s ListApplicationsInput) GoString() string

GoString returns the string representation

func (ListApplicationsInput) String

func (s ListApplicationsInput) String() string

String returns the string representation

type ListApplicationsOutput

type ListApplicationsOutput struct {

	// A list of ARNs specifying the applications returned by the action.
	ApplicationArnList []*string `locationName:"applicationArnList" type:"list"`

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListApplicationsOutput) GoString

func (s ListApplicationsOutput) GoString() string

GoString returns the string representation

func (ListApplicationsOutput) String

func (s ListApplicationsOutput) String() string

String returns the string representation

type ListAssessmentAgentsInput

type ListAssessmentAgentsInput struct {

	// The ARN specifying the assessment whose agents you want to list.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`

	// You can use this parameter to specify a subset of data to be included in
	// the action's response.
	//
	// For a record to match a filter, all specified filter attributes must match.
	// When multiple values are specified for a filter attribute, any of the values
	// can match.
	Filter *AgentsFilter `locationName:"filter" type:"structure"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListAssessmentAgents action.
	// Subsequent calls to the action fill nextToken in the request with the value
	// of NextToken from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAssessmentAgentsInput) GoString

func (s ListAssessmentAgentsInput) GoString() string

GoString returns the string representation

func (ListAssessmentAgentsInput) String

func (s ListAssessmentAgentsInput) String() string

String returns the string representation

type ListAssessmentAgentsOutput

type ListAssessmentAgentsOutput struct {

	// A list of ARNs specifying the agents returned by the action.
	AgentList []*Agent `locationName:"agentList" type:"list"`

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAssessmentAgentsOutput) GoString

func (s ListAssessmentAgentsOutput) GoString() string

GoString returns the string representation

func (ListAssessmentAgentsOutput) String

String returns the string representation

type ListAssessmentsInput

type ListAssessmentsInput struct {

	// A list of ARNs specifying the applications the assessments of which you want
	// to list.
	ApplicationArns []*string `locationName:"applicationArns" type:"list"`

	// You can use this parameter to specify a subset of data to be included in
	// the action's response.
	//
	// For a record to match a filter, all specified filter attributes must match.
	// When multiple values are specified for a filter attribute, any of the values
	// can match.
	Filter *AssessmentsFilter `locationName:"filter" type:"structure"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListAssessments action. Subsequent
	// calls to the action fill nextToken in the request with the value of NextToken
	// from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAssessmentsInput) GoString

func (s ListAssessmentsInput) GoString() string

GoString returns the string representation

func (ListAssessmentsInput) String

func (s ListAssessmentsInput) String() string

String returns the string representation

type ListAssessmentsOutput

type ListAssessmentsOutput struct {

	// A list of ARNs specifying the assessments returned by the action.
	AssessmentArnList []*string `locationName:"assessmentArnList" type:"list"`

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAssessmentsOutput) GoString

func (s ListAssessmentsOutput) GoString() string

GoString returns the string representation

func (ListAssessmentsOutput) String

func (s ListAssessmentsOutput) String() string

String returns the string representation

type ListAttachedAssessmentsInput

type ListAttachedAssessmentsInput struct {

	// You can use this parameter to specify a subset of data to be included in
	// the action's response.
	//
	// For a record to match a filter, all specified filter attributes must match.
	// When multiple values are specified for a filter attribute, any of the values
	// can match.
	Filter *AssessmentsFilter `locationName:"filter" type:"structure"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListAttachedAssessments action.
	// Subsequent calls to the action fill nextToken in the request with the value
	// of NextToken from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ARN specifying the rules package whose assessments you want to list.
	RulesPackageArn *string `locationName:"rulesPackageArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListAttachedAssessmentsInput) GoString

func (s ListAttachedAssessmentsInput) GoString() string

GoString returns the string representation

func (ListAttachedAssessmentsInput) String

String returns the string representation

type ListAttachedAssessmentsOutput

type ListAttachedAssessmentsOutput struct {

	// A list of ARNs specifying the assessments returned by the action.
	AssessmentArnList []*string `locationName:"assessmentArnList" type:"list"`

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAttachedAssessmentsOutput) GoString

GoString returns the string representation

func (ListAttachedAssessmentsOutput) String

String returns the string representation

type ListAttachedRulesPackagesInput

type ListAttachedRulesPackagesInput struct {

	// The ARN specifying the assessment whose rules packages you want to list.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListAttachedRulesPackages action.
	// Subsequent calls to the action fill nextToken in the request with the value
	// of NextToken from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListAttachedRulesPackagesInput) GoString

GoString returns the string representation

func (ListAttachedRulesPackagesInput) String

String returns the string representation

type ListAttachedRulesPackagesOutput

type ListAttachedRulesPackagesOutput struct {

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`

	// A list of ARNs specifying the rules packages returned by the action.
	RulesPackageArnList []*string `locationName:"rulesPackageArnList" type:"list"`
	// contains filtered or unexported fields
}

func (ListAttachedRulesPackagesOutput) GoString

GoString returns the string representation

func (ListAttachedRulesPackagesOutput) String

String returns the string representation

type ListFindingsInput

type ListFindingsInput struct {

	// You can use this parameter to specify a subset of data to be included in
	// the action's response.
	//
	// For a record to match a filter, all specified filter attributes must match.
	// When multiple values are specified for a filter attribute, any of the values
	// can match.
	Filter *FindingsFilter `locationName:"filter" type:"structure"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListFindings action. Subsequent
	// calls to the action fill nextToken in the request with the value of NextToken
	// from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ARNs of the assessment runs that generate the findings that you want
	// to list.
	RunArns []*string `locationName:"runArns" type:"list"`
	// contains filtered or unexported fields
}

func (ListFindingsInput) GoString

func (s ListFindingsInput) GoString() string

GoString returns the string representation

func (ListFindingsInput) String

func (s ListFindingsInput) String() string

String returns the string representation

type ListFindingsOutput

type ListFindingsOutput struct {

	// A list of ARNs specifying the findings returned by the action.
	FindingArnList []*string `locationName:"findingArnList" type:"list"`

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListFindingsOutput) GoString

func (s ListFindingsOutput) GoString() string

GoString returns the string representation

func (ListFindingsOutput) String

func (s ListFindingsOutput) String() string

String returns the string representation

type ListRulesPackagesInput

type ListRulesPackagesInput struct {

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListRulesPackages action. Subsequent
	// calls to the action fill nextToken in the request with the value of NextToken
	// from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListRulesPackagesInput) GoString

func (s ListRulesPackagesInput) GoString() string

GoString returns the string representation

func (ListRulesPackagesInput) String

func (s ListRulesPackagesInput) String() string

String returns the string representation

type ListRulesPackagesOutput

type ListRulesPackagesOutput struct {

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The list of ARNs specifying the rules packages returned by the action.
	RulesPackageArnList []*string `locationName:"rulesPackageArnList" type:"list"`
	// contains filtered or unexported fields
}

func (ListRulesPackagesOutput) GoString

func (s ListRulesPackagesOutput) GoString() string

GoString returns the string representation

func (ListRulesPackagesOutput) String

func (s ListRulesPackagesOutput) String() string

String returns the string representation

type ListRunsInput

type ListRunsInput struct {

	// The ARNs specifying the assessments whose runs you want to list.
	AssessmentArns []*string `locationName:"assessmentArns" type:"list"`

	// You can use this parameter to specify a subset of data to be included in
	// the action's response.
	//
	// For a record to match a filter, all specified filter attributes must match.
	// When multiple values are specified for a filter attribute, any of the values
	// can match.
	Filter *RunsFilter `locationName:"filter" type:"structure"`

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the ListRuns action. Subsequent
	// calls to the action fill nextToken in the request with the value of NextToken
	// from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListRunsInput) GoString

func (s ListRunsInput) GoString() string

GoString returns the string representation

func (ListRunsInput) String

func (s ListRunsInput) String() string

String returns the string representation

type ListRunsOutput

type ListRunsOutput struct {

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`

	// A list of ARNs specifying the assessment runs returned by the action.
	RunArnList []*string `locationName:"runArnList" type:"list"`
	// contains filtered or unexported fields
}

func (ListRunsOutput) GoString

func (s ListRunsOutput) GoString() string

GoString returns the string representation

func (ListRunsOutput) String

func (s ListRunsOutput) String() string

String returns the string representation

type ListTagsForResourceInput

type ListTagsForResourceInput struct {

	// The ARN specifying the resource whose tags you want to list.
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceInput) GoString

func (s ListTagsForResourceInput) GoString() string

GoString returns the string representation

func (ListTagsForResourceInput) String

func (s ListTagsForResourceInput) String() string

String returns the string representation

type ListTagsForResourceOutput

type ListTagsForResourceOutput struct {

	// A collection of key and value pairs.
	TagList []*Tag `locationName:"tagList" type:"list"`
	// contains filtered or unexported fields
}

func (ListTagsForResourceOutput) GoString

func (s ListTagsForResourceOutput) GoString() string

GoString returns the string representation

func (ListTagsForResourceOutput) String

func (s ListTagsForResourceOutput) String() string

String returns the string representation

type LocalizeTextInput

type LocalizeTextInput struct {

	// The locale that you want to translate a textual identifier into.
	Locale *string `locationName:"locale" type:"string" required:"true"`

	// A list of textual identifiers.
	LocalizedTexts []*LocalizedText `locationName:"localizedTexts" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (LocalizeTextInput) GoString

func (s LocalizeTextInput) GoString() string

GoString returns the string representation

func (LocalizeTextInput) String

func (s LocalizeTextInput) String() string

String returns the string representation

type LocalizeTextOutput

type LocalizeTextOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`

	// The resulting list of user-readable texts.
	Results []*string `locationName:"results" type:"list"`
	// contains filtered or unexported fields
}

func (LocalizeTextOutput) GoString

func (s LocalizeTextOutput) GoString() string

GoString returns the string representation

func (LocalizeTextOutput) String

func (s LocalizeTextOutput) String() string

String returns the string representation

type LocalizedText

type LocalizedText struct {

	// The facility and id properties of the LocalizedTextKey data type.
	Key *LocalizedTextKey `locationName:"key" type:"structure"`

	// Values for the dynamic elements of the string specified by the textual identifier.
	Parameters []*Parameter `locationName:"parameters" type:"list"`
	// contains filtered or unexported fields
}

The textual identifier. This data type is used as the request parameter in the LocalizeText action.

func (LocalizedText) GoString

func (s LocalizedText) GoString() string

GoString returns the string representation

func (LocalizedText) String

func (s LocalizedText) String() string

String returns the string representation

type LocalizedTextKey

type LocalizedTextKey struct {

	// The module response source of the text.
	Facility *string `locationName:"facility" type:"string"`

	// Part of the module response source of the text.
	Id *string `locationName:"id" type:"string"`
	// contains filtered or unexported fields
}

This data type is used in the LocalizedText data type.

func (LocalizedTextKey) GoString

func (s LocalizedTextKey) GoString() string

GoString returns the string representation

func (LocalizedTextKey) String

func (s LocalizedTextKey) String() string

String returns the string representation

type MessageTypeTelemetry

type MessageTypeTelemetry struct {

	// The number of times that the behavioral data is collected by the agent during
	// an assessment.
	Count *int64 `locationName:"count" type:"long"`

	// The total size of the behavioral data that is collected by the agent during
	// an assessment.
	DataSize *int64 `locationName:"dataSize" type:"long"`

	// A specific type of behavioral data that is collected by the agent.
	MessageType *string `locationName:"messageType" type:"string"`
	// contains filtered or unexported fields
}

This data type is used in the Telemetry data type.

This is metadata about the behavioral data collected by the Inspector agent on your EC2 instances during an assessment and passed to the Inspector service for analysis.

func (MessageTypeTelemetry) GoString

func (s MessageTypeTelemetry) GoString() string

GoString returns the string representation

func (MessageTypeTelemetry) String

func (s MessageTypeTelemetry) String() string

String returns the string representation

type Parameter

type Parameter struct {

	// The name of the variable that is being replaced.
	Name *string `locationName:"name" type:"string"`

	// The value assigned to the variable that is being replaced.
	Value *string `locationName:"value" type:"string"`
	// contains filtered or unexported fields
}

This data type is used in the LocalizedText data type.

func (Parameter) GoString

func (s Parameter) GoString() string

GoString returns the string representation

func (Parameter) String

func (s Parameter) String() string

String returns the string representation

type PreviewAgentsForResourceGroupInput

type PreviewAgentsForResourceGroupInput struct {

	// You can use this parameter to indicate the maximum number of items you want
	// in the response. The default value is 10. The maximum value is 500.
	MaxResults *int64 `locationName:"maxResults" type:"integer"`

	// You can use this parameter when paginating results. Set the value of this
	// parameter to 'null' on your first call to the PreviewAgentsForResourceGroup
	// action. Subsequent calls to the action fill nextToken in the request with
	// the value of NextToken from previous response to continue listing data.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The ARN of the resource group that is used to create an application.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (PreviewAgentsForResourceGroupInput) GoString

GoString returns the string representation

func (PreviewAgentsForResourceGroupInput) String

String returns the string representation

type PreviewAgentsForResourceGroupOutput

type PreviewAgentsForResourceGroupOutput struct {

	// The resulting list of agents.
	AgentPreviewList []*AgentPreview `locationName:"agentPreviewList" type:"list"`

	// When a response is generated, if there is more data to be listed, this parameter
	// is present in the response and contains the value to use for the nextToken
	// parameter in a subsequent pagination request. If there is no more data to
	// be listed, this parameter is set to 'null'.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (PreviewAgentsForResourceGroupOutput) GoString

GoString returns the string representation

func (PreviewAgentsForResourceGroupOutput) String

String returns the string representation

type RegisterCrossAccountAccessRoleInput

type RegisterCrossAccountAccessRoleInput struct {

	// The ARN of the IAM role that Inspector uses to list your EC2 instances during
	// the assessment.
	RoleArn *string `locationName:"roleArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RegisterCrossAccountAccessRoleInput) GoString

GoString returns the string representation

func (RegisterCrossAccountAccessRoleInput) String

String returns the string representation

type RegisterCrossAccountAccessRoleOutput

type RegisterCrossAccountAccessRoleOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (RegisterCrossAccountAccessRoleOutput) GoString

GoString returns the string representation

func (RegisterCrossAccountAccessRoleOutput) String

String returns the string representation

type RemoveAttributesFromFindingsInput

type RemoveAttributesFromFindingsInput struct {

	// The array of attribute keys that you want to remove from specified findings.
	AttributeKeys []*string `locationName:"attributeKeys" type:"list" required:"true"`

	// The ARNs specifying the findings that you want to remove attributes from.
	FindingArns []*string `locationName:"findingArns" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (RemoveAttributesFromFindingsInput) GoString

GoString returns the string representation

func (RemoveAttributesFromFindingsInput) String

String returns the string representation

type RemoveAttributesFromFindingsOutput

type RemoveAttributesFromFindingsOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (RemoveAttributesFromFindingsOutput) GoString

GoString returns the string representation

func (RemoveAttributesFromFindingsOutput) String

String returns the string representation

type ResourceGroup

type ResourceGroup struct {

	// The ARN of the resource group.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string"`

	// The tags (key and value pairs) of the resource group.
	//
	// This data type property is used in the CreateResourceGroup action.
	//
	// A collection of keys and an array of possible values in JSON format.
	//
	// For example, [{ "key1" : ["Value1","Value2"]},{"Key2": ["Value3"]}]
	ResourceGroupTags *string `locationName:"resourceGroupTags" type:"string"`
	// contains filtered or unexported fields
}

Contains information about a resource group. The resource group defines a set of tags that, when queried, identify the AWS resources that comprise the application.

This data type is used as the response element in the DescribeResourceGroup action.

func (ResourceGroup) GoString

func (s ResourceGroup) GoString() string

GoString returns the string representation

func (ResourceGroup) String

func (s ResourceGroup) String() string

String returns the string representation

type RulesPackage

type RulesPackage struct {

	// The description of the rules package.
	Description *LocalizedText `locationName:"description" type:"structure"`

	// The provider of the rules package.
	Provider *string `locationName:"provider" type:"string"`

	// The ARN of the rules package.
	RulesPackageArn *string `locationName:"rulesPackageArn" type:"string"`

	// The name of the rules package.
	RulesPackageName *string `locationName:"rulesPackageName" type:"string"`

	// The version id of the rules package.
	Version *string `locationName:"version" type:"string"`
	// contains filtered or unexported fields
}

Contains information about an Inspector rules package.

This data type is used as the response element in the DescribeRulesPackage action.

func (RulesPackage) GoString

func (s RulesPackage) GoString() string

GoString returns the string representation

func (RulesPackage) String

func (s RulesPackage) String() string

String returns the string representation

type Run

type Run struct {

	// The ARN of the assessment that is associated with the run.
	AssessmentArn *string `locationName:"assessmentArn" type:"string"`

	// Run completion time that corresponds to the rules packages evaluation completion
	// time or failure.
	CompletionTime *time.Time `locationName:"completionTime" type:"timestamp" timestampFormat:"unix"`

	// Run creation time that corresponds to the data collection completion time
	// or failure.
	CreationTime *time.Time `locationName:"creationTime" type:"timestamp" timestampFormat:"unix"`

	// Rules packages selected for the run of the assessment.
	RulesPackages []*string `locationName:"rulesPackages" type:"list"`

	// The ARN of the run.
	RunArn *string `locationName:"runArn" type:"string"`

	// The auto-generated name for the run.
	RunName *string `locationName:"runName" type:"string"`

	// The state of the run. Values can be set to DataCollectionComplete, EvaluatingPolicies,
	// EvaluatingPoliciesErrorCanRetry, Completed, Failed, TombStoned.
	RunState *string `locationName:"runState" type:"string"`
	// contains filtered or unexported fields
}

A snapshot of an Inspector assessment that contains the assessment's findings.

This data type is used as the response element in the DescribeRun action.

func (Run) GoString

func (s Run) GoString() string

GoString returns the string representation

func (Run) String

func (s Run) String() string

String returns the string representation

type RunAssessmentInput

type RunAssessmentInput struct {

	// The ARN of the assessment that you want to run.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`

	// A name specifying the run of the assessment.
	RunName *string `locationName:"runName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (RunAssessmentInput) GoString

func (s RunAssessmentInput) GoString() string

GoString returns the string representation

func (RunAssessmentInput) String

func (s RunAssessmentInput) String() string

String returns the string representation

type RunAssessmentOutput

type RunAssessmentOutput struct {

	// The ARN specifying the run of the assessment.
	RunArn *string `locationName:"runArn" type:"string"`
	// contains filtered or unexported fields
}

func (RunAssessmentOutput) GoString

func (s RunAssessmentOutput) GoString() string

GoString returns the string representation

func (RunAssessmentOutput) String

func (s RunAssessmentOutput) String() string

String returns the string representation

type RunsFilter

type RunsFilter struct {

	// For a record to match a filter, the value specified for this data type property
	// must inclusively match any value between the specified minimum and maximum
	// values of the completionTime property of the Run data type.
	CompletionTime *TimestampRange `locationName:"completionTime" type:"structure"`

	// For a record to match a filter, the value specified for this data type property
	// must inclusively match any value between the specified minimum and maximum
	// values of the creationTime property of the Run data type.
	CreationTime *TimestampRange `locationName:"creationTime" type:"structure"`

	// For a record to match a filter, the value specified for this data type property
	// must match a list of values of the rulesPackages property of the Run data
	// type.
	RulesPackages []*string `locationName:"rulesPackages" type:"list"`

	// For a record to match a filter, an explicit value or a string containing
	// a wildcard specified for this data type property must match the value of
	// the runName property of the Run data type.
	RunNamePatterns []*string `locationName:"runNamePatterns" type:"list"`

	// For a record to match a filter, the value specified for this data type property
	// must be the exact match of the value of the runState property of the Run
	// data type.
	RunStates []*string `locationName:"runStates" type:"list"`
	// contains filtered or unexported fields
}

This data type is used as the request parameter in the ListRuns action.

func (RunsFilter) GoString

func (s RunsFilter) GoString() string

GoString returns the string representation

func (RunsFilter) String

func (s RunsFilter) String() string

String returns the string representation

type SetTagsForResourceInput

type SetTagsForResourceInput struct {

	// The ARN of the assessment that you want to set tags to.
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	// A collection of key and value pairs that you want to set to an assessment.
	Tags []*Tag `locationName:"tags" type:"list"`
	// contains filtered or unexported fields
}

func (SetTagsForResourceInput) GoString

func (s SetTagsForResourceInput) GoString() string

GoString returns the string representation

func (SetTagsForResourceInput) String

func (s SetTagsForResourceInput) String() string

String returns the string representation

type SetTagsForResourceOutput

type SetTagsForResourceOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (SetTagsForResourceOutput) GoString

func (s SetTagsForResourceOutput) GoString() string

GoString returns the string representation

func (SetTagsForResourceOutput) String

func (s SetTagsForResourceOutput) String() string

String returns the string representation

type StartDataCollectionInput

type StartDataCollectionInput struct {

	// The ARN of the assessment for which you want to start the data collection
	// process.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StartDataCollectionInput) GoString

func (s StartDataCollectionInput) GoString() string

GoString returns the string representation

func (StartDataCollectionInput) String

func (s StartDataCollectionInput) String() string

String returns the string representation

type StartDataCollectionOutput

type StartDataCollectionOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (StartDataCollectionOutput) GoString

func (s StartDataCollectionOutput) GoString() string

GoString returns the string representation

func (StartDataCollectionOutput) String

func (s StartDataCollectionOutput) String() string

String returns the string representation

type StopDataCollectionInput

type StopDataCollectionInput struct {

	// The ARN of the assessment for which you want to stop the data collection
	// process.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StopDataCollectionInput) GoString

func (s StopDataCollectionInput) GoString() string

GoString returns the string representation

func (StopDataCollectionInput) String

func (s StopDataCollectionInput) String() string

String returns the string representation

type StopDataCollectionOutput

type StopDataCollectionOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (StopDataCollectionOutput) GoString

func (s StopDataCollectionOutput) GoString() string

GoString returns the string representation

func (StopDataCollectionOutput) String

func (s StopDataCollectionOutput) String() string

String returns the string representation

type Tag

type Tag struct {

	// The tag key.
	Key *string `type:"string"`

	// The value assigned to a tag key.
	Value *string `type:"string"`
	// contains filtered or unexported fields
}

A key and value pair.

This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (Tag) String

func (s Tag) String() string

String returns the string representation

type Telemetry

type Telemetry struct {

	// Counts of individual metrics received by Inspector from the agent.
	MessageTypeTelemetries []*MessageTypeTelemetry `locationName:"messageTypeTelemetries" type:"list"`

	// The category of the individual metrics that together constitute the telemetry
	// that Inspector received from the agent.
	Status *string `locationName:"status" type:"string"`
	// contains filtered or unexported fields
}

The metadata about the Inspector application data metrics collected by the agent.

This data type is used as the response element in the GetAssessmentTelemetry action.

func (Telemetry) GoString

func (s Telemetry) GoString() string

GoString returns the string representation

func (Telemetry) String

func (s Telemetry) String() string

String returns the string representation

type TimestampRange

type TimestampRange struct {

	// The maximum value of the timestamp range.
	Maximum *time.Time `locationName:"maximum" type:"timestamp" timestampFormat:"unix"`

	// The minimum value of the timestamp range.
	Minimum *time.Time `locationName:"minimum" type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

This data type is used in the AssessmentsFilter and RunsFilter data types.

func (TimestampRange) GoString

func (s TimestampRange) GoString() string

GoString returns the string representation

func (TimestampRange) String

func (s TimestampRange) String() string

String returns the string representation

type UpdateApplicationInput

type UpdateApplicationInput struct {

	// Application ARN that you want to update.
	ApplicationArn *string `locationName:"applicationArn" type:"string" required:"true"`

	// Application name that you want to update.
	ApplicationName *string `locationName:"applicationName" type:"string" required:"true"`

	// The resource group ARN that you want to update.
	ResourceGroupArn *string `locationName:"resourceGroupArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateApplicationInput) GoString

func (s UpdateApplicationInput) GoString() string

GoString returns the string representation

func (UpdateApplicationInput) String

func (s UpdateApplicationInput) String() string

String returns the string representation

type UpdateApplicationOutput

type UpdateApplicationOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateApplicationOutput) GoString

func (s UpdateApplicationOutput) GoString() string

GoString returns the string representation

func (UpdateApplicationOutput) String

func (s UpdateApplicationOutput) String() string

String returns the string representation

type UpdateAssessmentInput

type UpdateAssessmentInput struct {

	// Asessment ARN that you want to update.
	AssessmentArn *string `locationName:"assessmentArn" type:"string" required:"true"`

	// Assessment name that you want to update.
	AssessmentName *string `locationName:"assessmentName" type:"string" required:"true"`

	// Assessment duration in seconds that you want to update. The default value
	// is 3600 seconds (one hour). The maximum value is 86400 seconds (one day).
	DurationInSeconds *int64 `locationName:"durationInSeconds" type:"integer" required:"true"`
	// contains filtered or unexported fields
}

func (UpdateAssessmentInput) GoString

func (s UpdateAssessmentInput) GoString() string

GoString returns the string representation

func (UpdateAssessmentInput) String

func (s UpdateAssessmentInput) String() string

String returns the string representation

type UpdateAssessmentOutput

type UpdateAssessmentOutput struct {

	// Confirmation details of the action performed.
	Message *string `locationName:"message" type:"string"`
	// contains filtered or unexported fields
}

func (UpdateAssessmentOutput) GoString

func (s UpdateAssessmentOutput) GoString() string

GoString returns the string representation

func (UpdateAssessmentOutput) String

func (s UpdateAssessmentOutput) String() string

String returns the string representation

Directories

Path Synopsis
Package inspectoriface provides an interface for the Amazon Inspector.
Package inspectoriface provides an interface for the Amazon Inspector.

Jump to

Keyboard shortcuts

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