Documentation ¶
Index ¶
- type AssessmentTarget
- func (*AssessmentTarget) ElementType() reflect.Type
- func (i *AssessmentTarget) ToAssessmentTargetOutput() AssessmentTargetOutput
- func (i *AssessmentTarget) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput
- func (i *AssessmentTarget) ToAssessmentTargetPtrOutput() AssessmentTargetPtrOutput
- func (i *AssessmentTarget) ToAssessmentTargetPtrOutputWithContext(ctx context.Context) AssessmentTargetPtrOutput
- type AssessmentTargetArgs
- type AssessmentTargetArray
- type AssessmentTargetArrayInput
- type AssessmentTargetArrayOutput
- func (AssessmentTargetArrayOutput) ElementType() reflect.Type
- func (o AssessmentTargetArrayOutput) Index(i pulumi.IntInput) AssessmentTargetOutput
- func (o AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutput() AssessmentTargetArrayOutput
- func (o AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutputWithContext(ctx context.Context) AssessmentTargetArrayOutput
- type AssessmentTargetInput
- type AssessmentTargetMap
- type AssessmentTargetMapInput
- type AssessmentTargetMapOutput
- func (AssessmentTargetMapOutput) ElementType() reflect.Type
- func (o AssessmentTargetMapOutput) MapIndex(k pulumi.StringInput) AssessmentTargetOutput
- func (o AssessmentTargetMapOutput) ToAssessmentTargetMapOutput() AssessmentTargetMapOutput
- func (o AssessmentTargetMapOutput) ToAssessmentTargetMapOutputWithContext(ctx context.Context) AssessmentTargetMapOutput
- type AssessmentTargetOutput
- func (AssessmentTargetOutput) ElementType() reflect.Type
- func (o AssessmentTargetOutput) ToAssessmentTargetOutput() AssessmentTargetOutput
- func (o AssessmentTargetOutput) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput
- func (o AssessmentTargetOutput) ToAssessmentTargetPtrOutput() AssessmentTargetPtrOutput
- func (o AssessmentTargetOutput) ToAssessmentTargetPtrOutputWithContext(ctx context.Context) AssessmentTargetPtrOutput
- type AssessmentTargetPtrInput
- type AssessmentTargetPtrOutput
- type AssessmentTargetState
- type AssessmentTemplate
- func (*AssessmentTemplate) ElementType() reflect.Type
- func (i *AssessmentTemplate) ToAssessmentTemplateOutput() AssessmentTemplateOutput
- func (i *AssessmentTemplate) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput
- func (i *AssessmentTemplate) ToAssessmentTemplatePtrOutput() AssessmentTemplatePtrOutput
- func (i *AssessmentTemplate) ToAssessmentTemplatePtrOutputWithContext(ctx context.Context) AssessmentTemplatePtrOutput
- type AssessmentTemplateArgs
- type AssessmentTemplateArray
- type AssessmentTemplateArrayInput
- type AssessmentTemplateArrayOutput
- func (AssessmentTemplateArrayOutput) ElementType() reflect.Type
- func (o AssessmentTemplateArrayOutput) Index(i pulumi.IntInput) AssessmentTemplateOutput
- func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput
- func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext(ctx context.Context) AssessmentTemplateArrayOutput
- type AssessmentTemplateInput
- type AssessmentTemplateMap
- type AssessmentTemplateMapInput
- type AssessmentTemplateMapOutput
- func (AssessmentTemplateMapOutput) ElementType() reflect.Type
- func (o AssessmentTemplateMapOutput) MapIndex(k pulumi.StringInput) AssessmentTemplateOutput
- func (o AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutput() AssessmentTemplateMapOutput
- func (o AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutputWithContext(ctx context.Context) AssessmentTemplateMapOutput
- type AssessmentTemplateOutput
- func (AssessmentTemplateOutput) ElementType() reflect.Type
- func (o AssessmentTemplateOutput) ToAssessmentTemplateOutput() AssessmentTemplateOutput
- func (o AssessmentTemplateOutput) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput
- func (o AssessmentTemplateOutput) ToAssessmentTemplatePtrOutput() AssessmentTemplatePtrOutput
- func (o AssessmentTemplateOutput) ToAssessmentTemplatePtrOutputWithContext(ctx context.Context) AssessmentTemplatePtrOutput
- type AssessmentTemplatePtrInput
- type AssessmentTemplatePtrOutput
- type AssessmentTemplateState
- type GetRulesPackagesResult
- type ResourceGroup
- func (*ResourceGroup) ElementType() reflect.Type
- func (i *ResourceGroup) ToResourceGroupOutput() ResourceGroupOutput
- func (i *ResourceGroup) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
- func (i *ResourceGroup) ToResourceGroupPtrOutput() ResourceGroupPtrOutput
- func (i *ResourceGroup) ToResourceGroupPtrOutputWithContext(ctx context.Context) ResourceGroupPtrOutput
- type ResourceGroupArgs
- type ResourceGroupArray
- type ResourceGroupArrayInput
- type ResourceGroupArrayOutput
- func (ResourceGroupArrayOutput) ElementType() reflect.Type
- func (o ResourceGroupArrayOutput) Index(i pulumi.IntInput) ResourceGroupOutput
- func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutput() ResourceGroupArrayOutput
- func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput
- type ResourceGroupInput
- type ResourceGroupMap
- type ResourceGroupMapInput
- type ResourceGroupMapOutput
- func (ResourceGroupMapOutput) ElementType() reflect.Type
- func (o ResourceGroupMapOutput) MapIndex(k pulumi.StringInput) ResourceGroupOutput
- func (o ResourceGroupMapOutput) ToResourceGroupMapOutput() ResourceGroupMapOutput
- func (o ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput
- type ResourceGroupOutput
- func (ResourceGroupOutput) ElementType() reflect.Type
- func (o ResourceGroupOutput) ToResourceGroupOutput() ResourceGroupOutput
- func (o ResourceGroupOutput) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
- func (o ResourceGroupOutput) ToResourceGroupPtrOutput() ResourceGroupPtrOutput
- func (o ResourceGroupOutput) ToResourceGroupPtrOutputWithContext(ctx context.Context) ResourceGroupPtrOutput
- type ResourceGroupPtrInput
- type ResourceGroupPtrOutput
- type ResourceGroupState
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 a Inspector assessment target
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/inspector" "github.com/pulumi/pulumi/sdk/v2/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{ ResourceGroupArn: bar.Arn, }) if err != nil { return err } return nil }) }
```
## Import
Inspector Assessment Targets can be imported via their Amazon Resource Name (ARN), e.g.
```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 ¶ added in v3.13.0
func (*AssessmentTarget) ElementType() reflect.Type
func (*AssessmentTarget) ToAssessmentTargetOutput ¶ added in v3.13.0
func (i *AssessmentTarget) ToAssessmentTargetOutput() AssessmentTargetOutput
func (*AssessmentTarget) ToAssessmentTargetOutputWithContext ¶ added in v3.13.0
func (i *AssessmentTarget) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput
func (*AssessmentTarget) ToAssessmentTargetPtrOutput ¶ added in v3.25.0
func (i *AssessmentTarget) ToAssessmentTargetPtrOutput() AssessmentTargetPtrOutput
func (*AssessmentTarget) ToAssessmentTargetPtrOutputWithContext ¶ added in v3.25.0
func (i *AssessmentTarget) ToAssessmentTargetPtrOutputWithContext(ctx context.Context) AssessmentTargetPtrOutput
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 ¶ added in v3.25.0
type AssessmentTargetArray []AssessmentTargetInput
func (AssessmentTargetArray) ElementType ¶ added in v3.25.0
func (AssessmentTargetArray) ElementType() reflect.Type
func (AssessmentTargetArray) ToAssessmentTargetArrayOutput ¶ added in v3.25.0
func (i AssessmentTargetArray) ToAssessmentTargetArrayOutput() AssessmentTargetArrayOutput
func (AssessmentTargetArray) ToAssessmentTargetArrayOutputWithContext ¶ added in v3.25.0
func (i AssessmentTargetArray) ToAssessmentTargetArrayOutputWithContext(ctx context.Context) AssessmentTargetArrayOutput
type AssessmentTargetArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type AssessmentTargetArrayOutput struct{ *pulumi.OutputState }
func (AssessmentTargetArrayOutput) ElementType ¶ added in v3.25.0
func (AssessmentTargetArrayOutput) ElementType() reflect.Type
func (AssessmentTargetArrayOutput) Index ¶ added in v3.25.0
func (o AssessmentTargetArrayOutput) Index(i pulumi.IntInput) AssessmentTargetOutput
func (AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutput ¶ added in v3.25.0
func (o AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutput() AssessmentTargetArrayOutput
func (AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutputWithContext ¶ added in v3.25.0
func (o AssessmentTargetArrayOutput) ToAssessmentTargetArrayOutputWithContext(ctx context.Context) AssessmentTargetArrayOutput
type AssessmentTargetInput ¶ added in v3.13.0
type AssessmentTargetInput interface { pulumi.Input ToAssessmentTargetOutput() AssessmentTargetOutput ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput }
type AssessmentTargetMap ¶ added in v3.25.0
type AssessmentTargetMap map[string]AssessmentTargetInput
func (AssessmentTargetMap) ElementType ¶ added in v3.25.0
func (AssessmentTargetMap) ElementType() reflect.Type
func (AssessmentTargetMap) ToAssessmentTargetMapOutput ¶ added in v3.25.0
func (i AssessmentTargetMap) ToAssessmentTargetMapOutput() AssessmentTargetMapOutput
func (AssessmentTargetMap) ToAssessmentTargetMapOutputWithContext ¶ added in v3.25.0
func (i AssessmentTargetMap) ToAssessmentTargetMapOutputWithContext(ctx context.Context) AssessmentTargetMapOutput
type AssessmentTargetMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type AssessmentTargetMapOutput struct{ *pulumi.OutputState }
func (AssessmentTargetMapOutput) ElementType ¶ added in v3.25.0
func (AssessmentTargetMapOutput) ElementType() reflect.Type
func (AssessmentTargetMapOutput) MapIndex ¶ added in v3.25.0
func (o AssessmentTargetMapOutput) MapIndex(k pulumi.StringInput) AssessmentTargetOutput
func (AssessmentTargetMapOutput) ToAssessmentTargetMapOutput ¶ added in v3.25.0
func (o AssessmentTargetMapOutput) ToAssessmentTargetMapOutput() AssessmentTargetMapOutput
func (AssessmentTargetMapOutput) ToAssessmentTargetMapOutputWithContext ¶ added in v3.25.0
func (o AssessmentTargetMapOutput) ToAssessmentTargetMapOutputWithContext(ctx context.Context) AssessmentTargetMapOutput
type AssessmentTargetOutput ¶ added in v3.13.0
type AssessmentTargetOutput struct {
*pulumi.OutputState
}
func (AssessmentTargetOutput) ElementType ¶ added in v3.13.0
func (AssessmentTargetOutput) ElementType() reflect.Type
func (AssessmentTargetOutput) ToAssessmentTargetOutput ¶ added in v3.13.0
func (o AssessmentTargetOutput) ToAssessmentTargetOutput() AssessmentTargetOutput
func (AssessmentTargetOutput) ToAssessmentTargetOutputWithContext ¶ added in v3.13.0
func (o AssessmentTargetOutput) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput
func (AssessmentTargetOutput) ToAssessmentTargetPtrOutput ¶ added in v3.25.0
func (o AssessmentTargetOutput) ToAssessmentTargetPtrOutput() AssessmentTargetPtrOutput
func (AssessmentTargetOutput) ToAssessmentTargetPtrOutputWithContext ¶ added in v3.25.0
func (o AssessmentTargetOutput) ToAssessmentTargetPtrOutputWithContext(ctx context.Context) AssessmentTargetPtrOutput
type AssessmentTargetPtrInput ¶ added in v3.25.0
type AssessmentTargetPtrInput interface { pulumi.Input ToAssessmentTargetPtrOutput() AssessmentTargetPtrOutput ToAssessmentTargetPtrOutputWithContext(ctx context.Context) AssessmentTargetPtrOutput }
type AssessmentTargetPtrOutput ¶ added in v3.25.0
type AssessmentTargetPtrOutput struct {
*pulumi.OutputState
}
func (AssessmentTargetPtrOutput) ElementType ¶ added in v3.25.0
func (AssessmentTargetPtrOutput) ElementType() reflect.Type
func (AssessmentTargetPtrOutput) ToAssessmentTargetPtrOutput ¶ added in v3.25.0
func (o AssessmentTargetPtrOutput) ToAssessmentTargetPtrOutput() AssessmentTargetPtrOutput
func (AssessmentTargetPtrOutput) ToAssessmentTargetPtrOutputWithContext ¶ added in v3.25.0
func (o AssessmentTargetPtrOutput) ToAssessmentTargetPtrOutputWithContext(ctx context.Context) AssessmentTargetPtrOutput
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"` // 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. Tags pulumi.StringMapOutput `pulumi:"tags"` // The assessment target ARN to attach the template to. TargetArn pulumi.StringOutput `pulumi:"targetArn"` }
Provides a Inspector assessment template
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/inspector" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := inspector.NewAssessmentTemplate(ctx, "example", &inspector.AssessmentTemplateArgs{ TargetArn: pulumi.Any(aws_inspector_assessment_target.Example.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"), }, }) if err != nil { return err } return nil }) }
```
## Import
`aws_inspector_assessment_template` can be imported by using the template assessment ARN, e.g.
```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 ¶ added in v3.13.0
func (*AssessmentTemplate) ElementType() reflect.Type
func (*AssessmentTemplate) ToAssessmentTemplateOutput ¶ added in v3.13.0
func (i *AssessmentTemplate) ToAssessmentTemplateOutput() AssessmentTemplateOutput
func (*AssessmentTemplate) ToAssessmentTemplateOutputWithContext ¶ added in v3.13.0
func (i *AssessmentTemplate) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput
func (*AssessmentTemplate) ToAssessmentTemplatePtrOutput ¶ added in v3.25.0
func (i *AssessmentTemplate) ToAssessmentTemplatePtrOutput() AssessmentTemplatePtrOutput
func (*AssessmentTemplate) ToAssessmentTemplatePtrOutputWithContext ¶ added in v3.25.0
func (i *AssessmentTemplate) ToAssessmentTemplatePtrOutputWithContext(ctx context.Context) AssessmentTemplatePtrOutput
type AssessmentTemplateArgs ¶
type AssessmentTemplateArgs struct { // The duration of the inspector run. Duration pulumi.IntInput // 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. 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 ¶ added in v3.25.0
type AssessmentTemplateArray []AssessmentTemplateInput
func (AssessmentTemplateArray) ElementType ¶ added in v3.25.0
func (AssessmentTemplateArray) ElementType() reflect.Type
func (AssessmentTemplateArray) ToAssessmentTemplateArrayOutput ¶ added in v3.25.0
func (i AssessmentTemplateArray) ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput
func (AssessmentTemplateArray) ToAssessmentTemplateArrayOutputWithContext ¶ added in v3.25.0
func (i AssessmentTemplateArray) ToAssessmentTemplateArrayOutputWithContext(ctx context.Context) AssessmentTemplateArrayOutput
type AssessmentTemplateArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type AssessmentTemplateArrayOutput struct{ *pulumi.OutputState }
func (AssessmentTemplateArrayOutput) ElementType ¶ added in v3.25.0
func (AssessmentTemplateArrayOutput) ElementType() reflect.Type
func (AssessmentTemplateArrayOutput) Index ¶ added in v3.25.0
func (o AssessmentTemplateArrayOutput) Index(i pulumi.IntInput) AssessmentTemplateOutput
func (AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput ¶ added in v3.25.0
func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput
func (AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext ¶ added in v3.25.0
func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext(ctx context.Context) AssessmentTemplateArrayOutput
type AssessmentTemplateInput ¶ added in v3.13.0
type AssessmentTemplateInput interface { pulumi.Input ToAssessmentTemplateOutput() AssessmentTemplateOutput ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput }
type AssessmentTemplateMap ¶ added in v3.25.0
type AssessmentTemplateMap map[string]AssessmentTemplateInput
func (AssessmentTemplateMap) ElementType ¶ added in v3.25.0
func (AssessmentTemplateMap) ElementType() reflect.Type
func (AssessmentTemplateMap) ToAssessmentTemplateMapOutput ¶ added in v3.25.0
func (i AssessmentTemplateMap) ToAssessmentTemplateMapOutput() AssessmentTemplateMapOutput
func (AssessmentTemplateMap) ToAssessmentTemplateMapOutputWithContext ¶ added in v3.25.0
func (i AssessmentTemplateMap) ToAssessmentTemplateMapOutputWithContext(ctx context.Context) AssessmentTemplateMapOutput
type AssessmentTemplateMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type AssessmentTemplateMapOutput struct{ *pulumi.OutputState }
func (AssessmentTemplateMapOutput) ElementType ¶ added in v3.25.0
func (AssessmentTemplateMapOutput) ElementType() reflect.Type
func (AssessmentTemplateMapOutput) MapIndex ¶ added in v3.25.0
func (o AssessmentTemplateMapOutput) MapIndex(k pulumi.StringInput) AssessmentTemplateOutput
func (AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutput ¶ added in v3.25.0
func (o AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutput() AssessmentTemplateMapOutput
func (AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutputWithContext ¶ added in v3.25.0
func (o AssessmentTemplateMapOutput) ToAssessmentTemplateMapOutputWithContext(ctx context.Context) AssessmentTemplateMapOutput
type AssessmentTemplateOutput ¶ added in v3.13.0
type AssessmentTemplateOutput struct {
*pulumi.OutputState
}
func (AssessmentTemplateOutput) ElementType ¶ added in v3.13.0
func (AssessmentTemplateOutput) ElementType() reflect.Type
func (AssessmentTemplateOutput) ToAssessmentTemplateOutput ¶ added in v3.13.0
func (o AssessmentTemplateOutput) ToAssessmentTemplateOutput() AssessmentTemplateOutput
func (AssessmentTemplateOutput) ToAssessmentTemplateOutputWithContext ¶ added in v3.13.0
func (o AssessmentTemplateOutput) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput
func (AssessmentTemplateOutput) ToAssessmentTemplatePtrOutput ¶ added in v3.25.0
func (o AssessmentTemplateOutput) ToAssessmentTemplatePtrOutput() AssessmentTemplatePtrOutput
func (AssessmentTemplateOutput) ToAssessmentTemplatePtrOutputWithContext ¶ added in v3.25.0
func (o AssessmentTemplateOutput) ToAssessmentTemplatePtrOutputWithContext(ctx context.Context) AssessmentTemplatePtrOutput
type AssessmentTemplatePtrInput ¶ added in v3.25.0
type AssessmentTemplatePtrInput interface { pulumi.Input ToAssessmentTemplatePtrOutput() AssessmentTemplatePtrOutput ToAssessmentTemplatePtrOutputWithContext(ctx context.Context) AssessmentTemplatePtrOutput }
type AssessmentTemplatePtrOutput ¶ added in v3.25.0
type AssessmentTemplatePtrOutput struct {
*pulumi.OutputState
}
func (AssessmentTemplatePtrOutput) ElementType ¶ added in v3.25.0
func (AssessmentTemplatePtrOutput) ElementType() reflect.Type
func (AssessmentTemplatePtrOutput) ToAssessmentTemplatePtrOutput ¶ added in v3.25.0
func (o AssessmentTemplatePtrOutput) ToAssessmentTemplatePtrOutput() AssessmentTemplatePtrOutput
func (AssessmentTemplatePtrOutput) ToAssessmentTemplatePtrOutputWithContext ¶ added in v3.25.0
func (o AssessmentTemplatePtrOutput) ToAssessmentTemplatePtrOutputWithContext(ctx context.Context) AssessmentTemplatePtrOutput
type AssessmentTemplateState ¶
type AssessmentTemplateState struct { // The template assessment ARN. Arn pulumi.StringPtrInput // The duration of the inspector run. Duration pulumi.IntPtrInput // 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. Tags 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 { // A list of the AWS Inspector 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 AWS Inspector Rules Packages data source allows access to the list of AWS Inspector Rules Packages which can be used by AWS Inspector within the region configured in the provider.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/inspector" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { rules, err := inspector.GetRulesPackages(ctx, nil, nil) if err != nil { return err } group, err := inspector.NewResourceGroup(ctx, "group", &inspector.ResourceGroupArgs{ Tags: pulumi.StringMap{ "test": pulumi.String("test"), }, }) if err != nil { return err } assessmentAssessmentTarget, err := inspector.NewAssessmentTarget(ctx, "assessmentAssessmentTarget", &inspector.AssessmentTargetArgs{ ResourceGroupArn: group.Arn, }) if err != nil { return err } _, err = inspector.NewAssessmentTemplate(ctx, "assessmentAssessmentTemplate", &inspector.AssessmentTemplateArgs{ TargetArn: assessmentAssessmentTarget.Arn, Duration: pulumi.Int(60), RulesPackageArns: toPulumiStringArray(rules.Arns), }) if err != nil { return err } return nil }) }
func toPulumiStringArray(arr []string) pulumi.StringArray { var pulumiArr pulumi.StringArray for _, v := range arr { pulumiArr = append(pulumiArr, pulumi.String(v)) } return pulumiArr }
```
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` resource. Tags pulumi.StringMapOutput `pulumi:"tags"` }
Provides an Amazon Inspector resource group resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v3/go/aws/inspector" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := inspector.NewResourceGroup(ctx, "example", &inspector.ResourceGroupArgs{ Tags: pulumi.StringMap{ "Env": pulumi.String("bar"), "Name": pulumi.String("foo"), }, }) 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 ¶ added in v3.13.0
func (*ResourceGroup) ElementType() reflect.Type
func (*ResourceGroup) ToResourceGroupOutput ¶ added in v3.13.0
func (i *ResourceGroup) ToResourceGroupOutput() ResourceGroupOutput
func (*ResourceGroup) ToResourceGroupOutputWithContext ¶ added in v3.13.0
func (i *ResourceGroup) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
func (*ResourceGroup) ToResourceGroupPtrOutput ¶ added in v3.25.0
func (i *ResourceGroup) ToResourceGroupPtrOutput() ResourceGroupPtrOutput
func (*ResourceGroup) ToResourceGroupPtrOutputWithContext ¶ added in v3.25.0
func (i *ResourceGroup) ToResourceGroupPtrOutputWithContext(ctx context.Context) ResourceGroupPtrOutput
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` resource. Tags pulumi.StringMapInput }
The set of arguments for constructing a ResourceGroup resource.
func (ResourceGroupArgs) ElementType ¶
func (ResourceGroupArgs) ElementType() reflect.Type
type ResourceGroupArray ¶ added in v3.25.0
type ResourceGroupArray []ResourceGroupInput
func (ResourceGroupArray) ElementType ¶ added in v3.25.0
func (ResourceGroupArray) ElementType() reflect.Type
func (ResourceGroupArray) ToResourceGroupArrayOutput ¶ added in v3.25.0
func (i ResourceGroupArray) ToResourceGroupArrayOutput() ResourceGroupArrayOutput
func (ResourceGroupArray) ToResourceGroupArrayOutputWithContext ¶ added in v3.25.0
func (i ResourceGroupArray) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput
type ResourceGroupArrayInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type ResourceGroupArrayOutput struct{ *pulumi.OutputState }
func (ResourceGroupArrayOutput) ElementType ¶ added in v3.25.0
func (ResourceGroupArrayOutput) ElementType() reflect.Type
func (ResourceGroupArrayOutput) Index ¶ added in v3.25.0
func (o ResourceGroupArrayOutput) Index(i pulumi.IntInput) ResourceGroupOutput
func (ResourceGroupArrayOutput) ToResourceGroupArrayOutput ¶ added in v3.25.0
func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutput() ResourceGroupArrayOutput
func (ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext ¶ added in v3.25.0
func (o ResourceGroupArrayOutput) ToResourceGroupArrayOutputWithContext(ctx context.Context) ResourceGroupArrayOutput
type ResourceGroupInput ¶ added in v3.13.0
type ResourceGroupInput interface { pulumi.Input ToResourceGroupOutput() ResourceGroupOutput ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput }
type ResourceGroupMap ¶ added in v3.25.0
type ResourceGroupMap map[string]ResourceGroupInput
func (ResourceGroupMap) ElementType ¶ added in v3.25.0
func (ResourceGroupMap) ElementType() reflect.Type
func (ResourceGroupMap) ToResourceGroupMapOutput ¶ added in v3.25.0
func (i ResourceGroupMap) ToResourceGroupMapOutput() ResourceGroupMapOutput
func (ResourceGroupMap) ToResourceGroupMapOutputWithContext ¶ added in v3.25.0
func (i ResourceGroupMap) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput
type ResourceGroupMapInput ¶ added in v3.25.0
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 ¶ added in v3.25.0
type ResourceGroupMapOutput struct{ *pulumi.OutputState }
func (ResourceGroupMapOutput) ElementType ¶ added in v3.25.0
func (ResourceGroupMapOutput) ElementType() reflect.Type
func (ResourceGroupMapOutput) MapIndex ¶ added in v3.25.0
func (o ResourceGroupMapOutput) MapIndex(k pulumi.StringInput) ResourceGroupOutput
func (ResourceGroupMapOutput) ToResourceGroupMapOutput ¶ added in v3.25.0
func (o ResourceGroupMapOutput) ToResourceGroupMapOutput() ResourceGroupMapOutput
func (ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext ¶ added in v3.25.0
func (o ResourceGroupMapOutput) ToResourceGroupMapOutputWithContext(ctx context.Context) ResourceGroupMapOutput
type ResourceGroupOutput ¶ added in v3.13.0
type ResourceGroupOutput struct {
*pulumi.OutputState
}
func (ResourceGroupOutput) ElementType ¶ added in v3.13.0
func (ResourceGroupOutput) ElementType() reflect.Type
func (ResourceGroupOutput) ToResourceGroupOutput ¶ added in v3.13.0
func (o ResourceGroupOutput) ToResourceGroupOutput() ResourceGroupOutput
func (ResourceGroupOutput) ToResourceGroupOutputWithContext ¶ added in v3.13.0
func (o ResourceGroupOutput) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
func (ResourceGroupOutput) ToResourceGroupPtrOutput ¶ added in v3.25.0
func (o ResourceGroupOutput) ToResourceGroupPtrOutput() ResourceGroupPtrOutput
func (ResourceGroupOutput) ToResourceGroupPtrOutputWithContext ¶ added in v3.25.0
func (o ResourceGroupOutput) ToResourceGroupPtrOutputWithContext(ctx context.Context) ResourceGroupPtrOutput
type ResourceGroupPtrInput ¶ added in v3.25.0
type ResourceGroupPtrInput interface { pulumi.Input ToResourceGroupPtrOutput() ResourceGroupPtrOutput ToResourceGroupPtrOutputWithContext(ctx context.Context) ResourceGroupPtrOutput }
type ResourceGroupPtrOutput ¶ added in v3.25.0
type ResourceGroupPtrOutput struct {
*pulumi.OutputState
}
func (ResourceGroupPtrOutput) ElementType ¶ added in v3.25.0
func (ResourceGroupPtrOutput) ElementType() reflect.Type
func (ResourceGroupPtrOutput) ToResourceGroupPtrOutput ¶ added in v3.25.0
func (o ResourceGroupPtrOutput) ToResourceGroupPtrOutput() ResourceGroupPtrOutput
func (ResourceGroupPtrOutput) ToResourceGroupPtrOutputWithContext ¶ added in v3.25.0
func (o ResourceGroupPtrOutput) ToResourceGroupPtrOutputWithContext(ctx context.Context) ResourceGroupPtrOutput
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` resource. Tags pulumi.StringMapInput }
func (ResourceGroupState) ElementType ¶
func (ResourceGroupState) ElementType() reflect.Type