inspector

package
v6.36.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssessmentTarget

type AssessmentTarget struct {
	pulumi.CustomResourceState

	// The target assessment ARN.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The name of the assessment target.
	Name pulumi.StringOutput `pulumi:"name"`
	// Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
	ResourceGroupArn pulumi.StringPtrOutput `pulumi:"resourceGroupArn"`
}

Provides an Inspector Classic Assessment Target

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/inspector"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bar, err := inspector.NewResourceGroup(ctx, "bar", &inspector.ResourceGroupArgs{
			Tags: pulumi.StringMap{
				"Name": pulumi.String("foo"),
				"Env":  pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		_, err = inspector.NewAssessmentTarget(ctx, "foo", &inspector.AssessmentTargetArgs{
			Name:             pulumi.String("assessment target"),
			ResourceGroupArn: bar.Arn,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import Inspector Classic Assessment Targets using their Amazon Resource Name (ARN). For example:

```sh $ pulumi import aws:inspector/assessmentTarget:AssessmentTarget example arn:aws:inspector:us-east-1:123456789012:target/0-xxxxxxx ```

func GetAssessmentTarget

func GetAssessmentTarget(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AssessmentTargetState, opts ...pulumi.ResourceOption) (*AssessmentTarget, error)

GetAssessmentTarget gets an existing AssessmentTarget resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAssessmentTarget

func NewAssessmentTarget(ctx *pulumi.Context,
	name string, args *AssessmentTargetArgs, opts ...pulumi.ResourceOption) (*AssessmentTarget, error)

NewAssessmentTarget registers a new resource with the given unique name, arguments, and options.

func (*AssessmentTarget) ElementType

func (*AssessmentTarget) ElementType() reflect.Type

func (*AssessmentTarget) ToAssessmentTargetOutput

func (i *AssessmentTarget) ToAssessmentTargetOutput() AssessmentTargetOutput

func (*AssessmentTarget) ToAssessmentTargetOutputWithContext

func (i *AssessmentTarget) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput

type AssessmentTargetArgs

type AssessmentTargetArgs struct {
	// The name of the assessment target.
	Name pulumi.StringPtrInput
	// Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
	ResourceGroupArn pulumi.StringPtrInput
}

The set of arguments for constructing a AssessmentTarget resource.

func (AssessmentTargetArgs) ElementType

func (AssessmentTargetArgs) ElementType() reflect.Type

type AssessmentTargetArray

type AssessmentTargetArray []AssessmentTargetInput

func (AssessmentTargetArray) ElementType

func (AssessmentTargetArray) ElementType() reflect.Type

func (AssessmentTargetArray) ToAssessmentTargetArrayOutput

func (i AssessmentTargetArray) ToAssessmentTargetArrayOutput() AssessmentTargetArrayOutput

func (AssessmentTargetArray) ToAssessmentTargetArrayOutputWithContext

func (i AssessmentTargetArray) ToAssessmentTargetArrayOutputWithContext(ctx context.Context) AssessmentTargetArrayOutput

type AssessmentTargetArrayInput

type AssessmentTargetArrayInput interface {
	pulumi.Input

	ToAssessmentTargetArrayOutput() AssessmentTargetArrayOutput
	ToAssessmentTargetArrayOutputWithContext(context.Context) AssessmentTargetArrayOutput
}

AssessmentTargetArrayInput is an input type that accepts AssessmentTargetArray and AssessmentTargetArrayOutput values. You can construct a concrete instance of `AssessmentTargetArrayInput` via:

AssessmentTargetArray{ AssessmentTargetArgs{...} }

type AssessmentTargetArrayOutput

type AssessmentTargetArrayOutput struct{ *pulumi.OutputState }

func (AssessmentTargetArrayOutput) ElementType

func (AssessmentTargetArrayOutput) Index

func (AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutput

func (o AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutput() AssessmentTargetArrayOutput

func (AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutputWithContext

func (o AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutputWithContext(ctx context.Context) AssessmentTargetArrayOutput

type AssessmentTargetInput

type AssessmentTargetInput interface {
	pulumi.Input

	ToAssessmentTargetOutput() AssessmentTargetOutput
	ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput
}

type AssessmentTargetMap

type AssessmentTargetMap map[string]AssessmentTargetInput

func (AssessmentTargetMap) ElementType

func (AssessmentTargetMap) ElementType() reflect.Type

func (AssessmentTargetMap) ToAssessmentTargetMapOutput

func (i AssessmentTargetMap) ToAssessmentTargetMapOutput() AssessmentTargetMapOutput

func (AssessmentTargetMap) ToAssessmentTargetMapOutputWithContext

func (i AssessmentTargetMap) ToAssessmentTargetMapOutputWithContext(ctx context.Context) AssessmentTargetMapOutput

type AssessmentTargetMapInput

type AssessmentTargetMapInput interface {
	pulumi.Input

	ToAssessmentTargetMapOutput() AssessmentTargetMapOutput
	ToAssessmentTargetMapOutputWithContext(context.Context) AssessmentTargetMapOutput
}

AssessmentTargetMapInput is an input type that accepts AssessmentTargetMap and AssessmentTargetMapOutput values. You can construct a concrete instance of `AssessmentTargetMapInput` via:

AssessmentTargetMap{ "key": AssessmentTargetArgs{...} }

type AssessmentTargetMapOutput

type AssessmentTargetMapOutput struct{ *pulumi.OutputState }

func (AssessmentTargetMapOutput) ElementType

func (AssessmentTargetMapOutput) ElementType() reflect.Type

func (AssessmentTargetMapOutput) MapIndex

func (AssessmentTargetMapOutput) ToAssessmentTargetMapOutput

func (o AssessmentTargetMapOutput) ToAssessmentTargetMapOutput() AssessmentTargetMapOutput

func (AssessmentTargetMapOutput) ToAssessmentTargetMapOutputWithContext

func (o AssessmentTargetMapOutput) ToAssessmentTargetMapOutputWithContext(ctx context.Context) AssessmentTargetMapOutput

type AssessmentTargetOutput

type AssessmentTargetOutput struct{ *pulumi.OutputState }

func (AssessmentTargetOutput) Arn

The target assessment ARN.

func (AssessmentTargetOutput) ElementType

func (AssessmentTargetOutput) ElementType() reflect.Type

func (AssessmentTargetOutput) Name

The name of the assessment target.

func (AssessmentTargetOutput) ResourceGroupArn

func (o AssessmentTargetOutput) ResourceGroupArn() pulumi.StringPtrOutput

Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target.

func (AssessmentTargetOutput) ToAssessmentTargetOutput

func (o AssessmentTargetOutput) ToAssessmentTargetOutput() AssessmentTargetOutput

func (AssessmentTargetOutput) ToAssessmentTargetOutputWithContext

func (o AssessmentTargetOutput) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput

type AssessmentTargetState

type AssessmentTargetState struct {
	// The target assessment ARN.
	Arn pulumi.StringPtrInput
	// The name of the assessment target.
	Name pulumi.StringPtrInput
	// Inspector Resource Group Amazon Resource Name (ARN) stating tags for instance matching. If not specified, all EC2 instances in the current AWS account and region are included in the assessment target.
	ResourceGroupArn pulumi.StringPtrInput
}

func (AssessmentTargetState) ElementType

func (AssessmentTargetState) ElementType() reflect.Type

type AssessmentTemplate

type AssessmentTemplate struct {
	pulumi.CustomResourceState

	// The template assessment ARN.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The duration of the inspector run.
	Duration pulumi.IntOutput `pulumi:"duration"`
	// A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details.
	EventSubscriptions AssessmentTemplateEventSubscriptionArrayOutput `pulumi:"eventSubscriptions"`
	// The name of the assessment template.
	Name pulumi.StringOutput `pulumi:"name"`
	// The rules to be used during the run.
	RulesPackageArns pulumi.StringArrayOutput `pulumi:"rulesPackageArns"`
	// Key-value map of tags for the Inspector assessment template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// The assessment target ARN to attach the template to.
	TargetArn pulumi.StringOutput `pulumi:"targetArn"`
}

Provides an Inspector Classic Assessment Template

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/inspector"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := inspector.NewAssessmentTemplate(ctx, "example", &inspector.AssessmentTemplateArgs{
			Name:      pulumi.String("example"),
			TargetArn: pulumi.Any(exampleAwsInspectorAssessmentTarget.Arn),
			Duration:  pulumi.Int(3600),
			RulesPackageArns: pulumi.StringArray{
				pulumi.String("arn:aws:inspector:us-west-2:758058086616:rulespackage/0-9hgA516p"),
				pulumi.String("arn:aws:inspector:us-west-2:758058086616:rulespackage/0-H5hpSawc"),
				pulumi.String("arn:aws:inspector:us-west-2:758058086616:rulespackage/0-JJOtZiqQ"),
				pulumi.String("arn:aws:inspector:us-west-2:758058086616:rulespackage/0-vg5GGHSD"),
			},
			EventSubscriptions: inspector.AssessmentTemplateEventSubscriptionArray{
				&inspector.AssessmentTemplateEventSubscriptionArgs{
					Event:    pulumi.String("ASSESSMENT_RUN_COMPLETED"),
					TopicArn: pulumi.Any(exampleAwsSnsTopic.Arn),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import `aws_inspector_assessment_template` using the template assessment ARN. For example:

```sh $ pulumi import aws:inspector/assessmentTemplate:AssessmentTemplate example arn:aws:inspector:us-west-2:123456789012:target/0-9IaAzhGR/template/0-WEcjR8CH ```

func GetAssessmentTemplate

func GetAssessmentTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AssessmentTemplateState, opts ...pulumi.ResourceOption) (*AssessmentTemplate, error)

GetAssessmentTemplate gets an existing AssessmentTemplate resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAssessmentTemplate

func NewAssessmentTemplate(ctx *pulumi.Context,
	name string, args *AssessmentTemplateArgs, opts ...pulumi.ResourceOption) (*AssessmentTemplate, error)

NewAssessmentTemplate registers a new resource with the given unique name, arguments, and options.

func (*AssessmentTemplate) ElementType

func (*AssessmentTemplate) ElementType() reflect.Type

func (*AssessmentTemplate) ToAssessmentTemplateOutput

func (i *AssessmentTemplate) ToAssessmentTemplateOutput() AssessmentTemplateOutput

func (*AssessmentTemplate) ToAssessmentTemplateOutputWithContext

func (i *AssessmentTemplate) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput

type AssessmentTemplateArgs

type AssessmentTemplateArgs struct {
	// The duration of the inspector run.
	Duration pulumi.IntInput
	// A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details.
	EventSubscriptions AssessmentTemplateEventSubscriptionArrayInput
	// The name of the assessment template.
	Name pulumi.StringPtrInput
	// The rules to be used during the run.
	RulesPackageArns pulumi.StringArrayInput
	// Key-value map of tags for the Inspector assessment template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// The assessment target ARN to attach the template to.
	TargetArn pulumi.StringInput
}

The set of arguments for constructing a AssessmentTemplate resource.

func (AssessmentTemplateArgs) ElementType

func (AssessmentTemplateArgs) ElementType() reflect.Type

type AssessmentTemplateArray

type AssessmentTemplateArray []AssessmentTemplateInput

func (AssessmentTemplateArray) ElementType

func (AssessmentTemplateArray) ElementType() reflect.Type

func (AssessmentTemplateArray) ToAssessmentTemplateArrayOutput

func (i AssessmentTemplateArray) ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput

func (AssessmentTemplateArray) ToAssessmentTemplateArrayOutputWithContext

func (i AssessmentTemplateArray) ToAssessmentTemplateArrayOutputWithContext(ctx context.Context) AssessmentTemplateArrayOutput

type AssessmentTemplateArrayInput

type AssessmentTemplateArrayInput interface {
	pulumi.Input

	ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput
	ToAssessmentTemplateArrayOutputWithContext(context.Context) AssessmentTemplateArrayOutput
}

AssessmentTemplateArrayInput is an input type that accepts AssessmentTemplateArray and AssessmentTemplateArrayOutput values. You can construct a concrete instance of `AssessmentTemplateArrayInput` via:

AssessmentTemplateArray{ AssessmentTemplateArgs{...} }

type AssessmentTemplateArrayOutput

type AssessmentTemplateArrayOutput struct{ *pulumi.OutputState }

func (AssessmentTemplateArrayOutput) ElementType

func (AssessmentTemplateArrayOutput) Index

func (AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput

func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput

func (AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext

func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext(ctx context.Context) AssessmentTemplateArrayOutput

type AssessmentTemplateEventSubscription

type AssessmentTemplateEventSubscription struct {
	Event    string `pulumi:"event"`
	TopicArn string `pulumi:"topicArn"`
}

type AssessmentTemplateEventSubscriptionArgs

type AssessmentTemplateEventSubscriptionArgs struct {
	Event    pulumi.StringInput `pulumi:"event"`
	TopicArn pulumi.StringInput `pulumi:"topicArn"`
}

func (AssessmentTemplateEventSubscriptionArgs) ElementType

func (AssessmentTemplateEventSubscriptionArgs) ToAssessmentTemplateEventSubscriptionOutput

func (i AssessmentTemplateEventSubscriptionArgs) ToAssessmentTemplateEventSubscriptionOutput() AssessmentTemplateEventSubscriptionOutput

func (AssessmentTemplateEventSubscriptionArgs) ToAssessmentTemplateEventSubscriptionOutputWithContext

func (i AssessmentTemplateEventSubscriptionArgs) ToAssessmentTemplateEventSubscriptionOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionOutput

type AssessmentTemplateEventSubscriptionArray

type AssessmentTemplateEventSubscriptionArray []AssessmentTemplateEventSubscriptionInput

func (AssessmentTemplateEventSubscriptionArray) ElementType

func (AssessmentTemplateEventSubscriptionArray) ToAssessmentTemplateEventSubscriptionArrayOutput

func (i AssessmentTemplateEventSubscriptionArray) ToAssessmentTemplateEventSubscriptionArrayOutput() AssessmentTemplateEventSubscriptionArrayOutput

func (AssessmentTemplateEventSubscriptionArray) ToAssessmentTemplateEventSubscriptionArrayOutputWithContext

func (i AssessmentTemplateEventSubscriptionArray) ToAssessmentTemplateEventSubscriptionArrayOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionArrayOutput

type AssessmentTemplateEventSubscriptionArrayInput

type AssessmentTemplateEventSubscriptionArrayInput interface {
	pulumi.Input

	ToAssessmentTemplateEventSubscriptionArrayOutput() AssessmentTemplateEventSubscriptionArrayOutput
	ToAssessmentTemplateEventSubscriptionArrayOutputWithContext(context.Context) AssessmentTemplateEventSubscriptionArrayOutput
}

AssessmentTemplateEventSubscriptionArrayInput is an input type that accepts AssessmentTemplateEventSubscriptionArray and AssessmentTemplateEventSubscriptionArrayOutput values. You can construct a concrete instance of `AssessmentTemplateEventSubscriptionArrayInput` via:

AssessmentTemplateEventSubscriptionArray{ AssessmentTemplateEventSubscriptionArgs{...} }

type AssessmentTemplateEventSubscriptionArrayOutput

type AssessmentTemplateEventSubscriptionArrayOutput struct{ *pulumi.OutputState }

func (AssessmentTemplateEventSubscriptionArrayOutput) ElementType

func (AssessmentTemplateEventSubscriptionArrayOutput) Index

func (AssessmentTemplateEventSubscriptionArrayOutput) ToAssessmentTemplateEventSubscriptionArrayOutput

func (o AssessmentTemplateEventSubscriptionArrayOutput) ToAssessmentTemplateEventSubscriptionArrayOutput() AssessmentTemplateEventSubscriptionArrayOutput

func (AssessmentTemplateEventSubscriptionArrayOutput) ToAssessmentTemplateEventSubscriptionArrayOutputWithContext

func (o AssessmentTemplateEventSubscriptionArrayOutput) ToAssessmentTemplateEventSubscriptionArrayOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionArrayOutput

type AssessmentTemplateEventSubscriptionInput

type AssessmentTemplateEventSubscriptionInput interface {
	pulumi.Input

	ToAssessmentTemplateEventSubscriptionOutput() AssessmentTemplateEventSubscriptionOutput
	ToAssessmentTemplateEventSubscriptionOutputWithContext(context.Context) AssessmentTemplateEventSubscriptionOutput
}

AssessmentTemplateEventSubscriptionInput is an input type that accepts AssessmentTemplateEventSubscriptionArgs and AssessmentTemplateEventSubscriptionOutput values. You can construct a concrete instance of `AssessmentTemplateEventSubscriptionInput` via:

AssessmentTemplateEventSubscriptionArgs{...}

type AssessmentTemplateEventSubscriptionOutput

type AssessmentTemplateEventSubscriptionOutput struct{ *pulumi.OutputState }

func (AssessmentTemplateEventSubscriptionOutput) ElementType

func (AssessmentTemplateEventSubscriptionOutput) Event

func (AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutput

func (o AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutput() AssessmentTemplateEventSubscriptionOutput

func (AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutputWithContext

func (o AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionOutput

func (AssessmentTemplateEventSubscriptionOutput) TopicArn

type AssessmentTemplateInput

type AssessmentTemplateInput interface {
	pulumi.Input

	ToAssessmentTemplateOutput() AssessmentTemplateOutput
	ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput
}

type AssessmentTemplateMap

type AssessmentTemplateMap map[string]AssessmentTemplateInput

func (AssessmentTemplateMap) ElementType

func (AssessmentTemplateMap) ElementType() reflect.Type

func (AssessmentTemplateMap) ToAssessmentTemplateMapOutput

func (i AssessmentTemplateMap) ToAssessmentTemplateMapOutput() AssessmentTemplateMapOutput

func (AssessmentTemplateMap) ToAssessmentTemplateMapOutputWithContext

func (i AssessmentTemplateMap) ToAssessmentTemplateMapOutputWithContext(ctx context.Context) AssessmentTemplateMapOutput

type AssessmentTemplateMapInput

type AssessmentTemplateMapInput interface {
	pulumi.Input

	ToAssessmentTemplateMapOutput() AssessmentTemplateMapOutput
	ToAssessmentTemplateMapOutputWithContext(context.Context) AssessmentTemplateMapOutput
}

AssessmentTemplateMapInput is an input type that accepts AssessmentTemplateMap and AssessmentTemplateMapOutput values. You can construct a concrete instance of `AssessmentTemplateMapInput` via:

AssessmentTemplateMap{ "key": AssessmentTemplateArgs{...} }

type AssessmentTemplateMapOutput

type AssessmentTemplateMapOutput struct{ *pulumi.OutputState }

func (AssessmentTemplateMapOutput) ElementType

func (AssessmentTemplateMapOutput) MapIndex

func (AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutput

func (o AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutput() AssessmentTemplateMapOutput

func (AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutputWithContext

func (o AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutputWithContext(ctx context.Context) AssessmentTemplateMapOutput

type AssessmentTemplateOutput

type AssessmentTemplateOutput struct{ *pulumi.OutputState }

func (AssessmentTemplateOutput) Arn

The template assessment ARN.

func (AssessmentTemplateOutput) Duration

The duration of the inspector run.

func (AssessmentTemplateOutput) ElementType

func (AssessmentTemplateOutput) ElementType() reflect.Type

func (AssessmentTemplateOutput) EventSubscriptions

A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details.

func (AssessmentTemplateOutput) Name

The name of the assessment template.

func (AssessmentTemplateOutput) RulesPackageArns

func (o AssessmentTemplateOutput) RulesPackageArns() pulumi.StringArrayOutput

The rules to be used during the run.

func (AssessmentTemplateOutput) Tags

Key-value map of tags for the Inspector assessment template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (AssessmentTemplateOutput) TagsAll deprecated

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

Deprecated: Please use `tags` instead.

func (AssessmentTemplateOutput) TargetArn

The assessment target ARN to attach the template to.

func (AssessmentTemplateOutput) ToAssessmentTemplateOutput

func (o AssessmentTemplateOutput) ToAssessmentTemplateOutput() AssessmentTemplateOutput

func (AssessmentTemplateOutput) ToAssessmentTemplateOutputWithContext

func (o AssessmentTemplateOutput) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput

type AssessmentTemplateState

type AssessmentTemplateState struct {
	// The template assessment ARN.
	Arn pulumi.StringPtrInput
	// The duration of the inspector run.
	Duration pulumi.IntPtrInput
	// A block that enables sending notifications about a specified assessment template event to a designated SNS topic. See Event Subscriptions for details.
	EventSubscriptions AssessmentTemplateEventSubscriptionArrayInput
	// The name of the assessment template.
	Name pulumi.StringPtrInput
	// The rules to be used during the run.
	RulesPackageArns pulumi.StringArrayInput
	// Key-value map of tags for the Inspector assessment template. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapInput
	// The assessment target ARN to attach the template to.
	TargetArn pulumi.StringPtrInput
}

func (AssessmentTemplateState) ElementType

func (AssessmentTemplateState) ElementType() reflect.Type

type GetRulesPackagesResult

type GetRulesPackagesResult struct {
	// List of the Amazon Inspector Classic Rules Packages arns available in the AWS region.
	Arns []string `pulumi:"arns"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
}

A collection of values returned by getRulesPackages.

func GetRulesPackages

func GetRulesPackages(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetRulesPackagesResult, error)

The Amazon Inspector Classic Rules Packages data source allows access to the list of AWS Inspector Rules Packages which can be used by Amazon Inspector Classic within the region configured in the provider.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/inspector"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Declare the data source
		rules, err := inspector.GetRulesPackages(ctx, nil, nil)
		if err != nil {
			return err
		}
		// e.g., Use in aws_inspector_assessment_template
		group, err := inspector.NewResourceGroup(ctx, "group", &inspector.ResourceGroupArgs{
			Tags: pulumi.StringMap{
				"test": pulumi.String("test"),
			},
		})
		if err != nil {
			return err
		}
		assessment, err := inspector.NewAssessmentTarget(ctx, "assessment", &inspector.AssessmentTargetArgs{
			Name:             pulumi.String("test"),
			ResourceGroupArn: group.Arn,
		})
		if err != nil {
			return err
		}
		_, err = inspector.NewAssessmentTemplate(ctx, "assessment", &inspector.AssessmentTemplateArgs{
			Name:             pulumi.String("Test"),
			TargetArn:        assessment.Arn,
			Duration:         pulumi.Int(60),
			RulesPackageArns: interface{}(rules.Arns),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRulesPackagesResultOutput added in v6.6.1

type GetRulesPackagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRulesPackages.

func GetRulesPackagesOutput added in v6.6.1

func GetRulesPackagesOutput(ctx *pulumi.Context, opts ...pulumi.InvokeOption) GetRulesPackagesResultOutput

func (GetRulesPackagesResultOutput) Arns added in v6.6.1

List of the Amazon Inspector Classic Rules Packages arns available in the AWS region.

func (GetRulesPackagesResultOutput) ElementType added in v6.6.1

func (GetRulesPackagesResultOutput) Id added in v6.6.1

The provider-assigned unique ID for this managed resource.

func (GetRulesPackagesResultOutput) ToGetRulesPackagesResultOutput added in v6.6.1

func (o GetRulesPackagesResultOutput) ToGetRulesPackagesResultOutput() GetRulesPackagesResultOutput

func (GetRulesPackagesResultOutput) ToGetRulesPackagesResultOutputWithContext added in v6.6.1

func (o GetRulesPackagesResultOutput) ToGetRulesPackagesResultOutputWithContext(ctx context.Context) GetRulesPackagesResultOutput

type ResourceGroup

type ResourceGroup struct {
	pulumi.CustomResourceState

	// The resource group ARN.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Key-value map of tags that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
}

Provides an Amazon Inspector Classic Resource Group.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/inspector"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := inspector.NewResourceGroup(ctx, "example", &inspector.ResourceGroupArgs{
			Tags: pulumi.StringMap{
				"Name": pulumi.String("foo"),
				"Env":  pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetResourceGroup

func GetResourceGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ResourceGroupState, opts ...pulumi.ResourceOption) (*ResourceGroup, error)

GetResourceGroup gets an existing ResourceGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewResourceGroup

func NewResourceGroup(ctx *pulumi.Context,
	name string, args *ResourceGroupArgs, opts ...pulumi.ResourceOption) (*ResourceGroup, error)

NewResourceGroup registers a new resource with the given unique name, arguments, and options.

func (*ResourceGroup) ElementType

func (*ResourceGroup) ElementType() reflect.Type

func (*ResourceGroup) ToResourceGroupOutput

func (i *ResourceGroup) ToResourceGroupOutput() ResourceGroupOutput

func (*ResourceGroup) ToResourceGroupOutputWithContext

func (i *ResourceGroup) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput

type ResourceGroupArgs

type ResourceGroupArgs struct {
	// Key-value map of tags that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a ResourceGroup resource.

func (ResourceGroupArgs) ElementType

func (ResourceGroupArgs) ElementType() reflect.Type

type ResourceGroupArray

type ResourceGroupArray []ResourceGroupInput

func (ResourceGroupArray) ElementType

func (ResourceGroupArray) ElementType() reflect.Type

func (ResourceGroupArray) ToResourceGroupArrayOutput

func (i ResourceGroupArray) ToResourceGroupArrayOutput() ResourceGroupArrayOutput

func (ResourceGroupArray) ToResourceGroupArrayOutputWithContext

func (i ResourceGroupArray) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput

type ResourceGroupArrayInput

type ResourceGroupArrayInput interface {
	pulumi.Input

	ToResourceGroupArrayOutput() ResourceGroupArrayOutput
	ToResourceGroupArrayOutputWithContext(context.Context) ResourceGroupArrayOutput
}

ResourceGroupArrayInput is an input type that accepts ResourceGroupArray and ResourceGroupArrayOutput values. You can construct a concrete instance of `ResourceGroupArrayInput` via:

ResourceGroupArray{ ResourceGroupArgs{...} }

type ResourceGroupArrayOutput

type ResourceGroupArrayOutput struct{ *pulumi.OutputState }

func (ResourceGroupArrayOutput) ElementType

func (ResourceGroupArrayOutput) ElementType() reflect.Type

func (ResourceGroupArrayOutput) Index

func (ResourceGroupArrayOutput) ToResourceGroupArrayOutput

func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutput() ResourceGroupArrayOutput

func (ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext

func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput

type ResourceGroupInput

type ResourceGroupInput interface {
	pulumi.Input

	ToResourceGroupOutput() ResourceGroupOutput
	ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
}

type ResourceGroupMap

type ResourceGroupMap map[string]ResourceGroupInput

func (ResourceGroupMap) ElementType

func (ResourceGroupMap) ElementType() reflect.Type

func (ResourceGroupMap) ToResourceGroupMapOutput

func (i ResourceGroupMap) ToResourceGroupMapOutput() ResourceGroupMapOutput

func (ResourceGroupMap) ToResourceGroupMapOutputWithContext

func (i ResourceGroupMap) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput

type ResourceGroupMapInput

type ResourceGroupMapInput interface {
	pulumi.Input

	ToResourceGroupMapOutput() ResourceGroupMapOutput
	ToResourceGroupMapOutputWithContext(context.Context) ResourceGroupMapOutput
}

ResourceGroupMapInput is an input type that accepts ResourceGroupMap and ResourceGroupMapOutput values. You can construct a concrete instance of `ResourceGroupMapInput` via:

ResourceGroupMap{ "key": ResourceGroupArgs{...} }

type ResourceGroupMapOutput

type ResourceGroupMapOutput struct{ *pulumi.OutputState }

func (ResourceGroupMapOutput) ElementType

func (ResourceGroupMapOutput) ElementType() reflect.Type

func (ResourceGroupMapOutput) MapIndex

func (ResourceGroupMapOutput) ToResourceGroupMapOutput

func (o ResourceGroupMapOutput) ToResourceGroupMapOutput() ResourceGroupMapOutput

func (ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext

func (o ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput

type ResourceGroupOutput

type ResourceGroupOutput struct{ *pulumi.OutputState }

func (ResourceGroupOutput) Arn

The resource group ARN.

func (ResourceGroupOutput) ElementType

func (ResourceGroupOutput) ElementType() reflect.Type

func (ResourceGroupOutput) Tags

Key-value map of tags that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.

func (ResourceGroupOutput) ToResourceGroupOutput

func (o ResourceGroupOutput) ToResourceGroupOutput() ResourceGroupOutput

func (ResourceGroupOutput) ToResourceGroupOutputWithContext

func (o ResourceGroupOutput) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput

type ResourceGroupState

type ResourceGroupState struct {
	// The resource group ARN.
	Arn pulumi.StringPtrInput
	// Key-value map of tags that are used to select the EC2 instances to be included in an Amazon Inspector assessment target.
	Tags pulumi.StringMapInput
}

func (ResourceGroupState) ElementType

func (ResourceGroupState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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