Documentation ¶
Index ¶
- type AssessmentTarget
- 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 (o AssessmentTargetOutput) Arn() pulumi.StringOutput
- func (AssessmentTargetOutput) ElementType() reflect.Type
- func (o AssessmentTargetOutput) Name() pulumi.StringOutput
- func (o AssessmentTargetOutput) ResourceGroupArn() pulumi.StringPtrOutput
- func (o AssessmentTargetOutput) ToAssessmentTargetOutput() AssessmentTargetOutput
- func (o AssessmentTargetOutput) ToAssessmentTargetOutputWithContext(ctx context.Context) AssessmentTargetOutput
- type AssessmentTargetState
- type AssessmentTemplate
- 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 AssessmentTemplateEventSubscription
- type AssessmentTemplateEventSubscriptionArgs
- func (AssessmentTemplateEventSubscriptionArgs) ElementType() reflect.Type
- func (i AssessmentTemplateEventSubscriptionArgs) ToAssessmentTemplateEventSubscriptionOutput() AssessmentTemplateEventSubscriptionOutput
- func (i AssessmentTemplateEventSubscriptionArgs) ToAssessmentTemplateEventSubscriptionOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionOutput
- type AssessmentTemplateEventSubscriptionArray
- func (AssessmentTemplateEventSubscriptionArray) ElementType() reflect.Type
- func (i AssessmentTemplateEventSubscriptionArray) ToAssessmentTemplateEventSubscriptionArrayOutput() AssessmentTemplateEventSubscriptionArrayOutput
- func (i AssessmentTemplateEventSubscriptionArray) ToAssessmentTemplateEventSubscriptionArrayOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionArrayOutput
- type AssessmentTemplateEventSubscriptionArrayInput
- type AssessmentTemplateEventSubscriptionArrayOutput
- func (AssessmentTemplateEventSubscriptionArrayOutput) ElementType() reflect.Type
- func (o AssessmentTemplateEventSubscriptionArrayOutput) Index(i pulumi.IntInput) AssessmentTemplateEventSubscriptionOutput
- func (o AssessmentTemplateEventSubscriptionArrayOutput) ToAssessmentTemplateEventSubscriptionArrayOutput() AssessmentTemplateEventSubscriptionArrayOutput
- func (o AssessmentTemplateEventSubscriptionArrayOutput) ToAssessmentTemplateEventSubscriptionArrayOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionArrayOutput
- type AssessmentTemplateEventSubscriptionInput
- type AssessmentTemplateEventSubscriptionOutput
- func (AssessmentTemplateEventSubscriptionOutput) ElementType() reflect.Type
- func (o AssessmentTemplateEventSubscriptionOutput) Event() pulumi.StringOutput
- func (o AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutput() AssessmentTemplateEventSubscriptionOutput
- func (o AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionOutput
- func (o AssessmentTemplateEventSubscriptionOutput) TopicArn() pulumi.StringOutput
- 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 (o AssessmentTemplateOutput) Arn() pulumi.StringOutput
- func (o AssessmentTemplateOutput) Duration() pulumi.IntOutput
- func (AssessmentTemplateOutput) ElementType() reflect.Type
- func (o AssessmentTemplateOutput) EventSubscriptions() AssessmentTemplateEventSubscriptionArrayOutput
- func (o AssessmentTemplateOutput) Name() pulumi.StringOutput
- func (o AssessmentTemplateOutput) RulesPackageArns() pulumi.StringArrayOutput
- func (o AssessmentTemplateOutput) Tags() pulumi.StringMapOutput
- func (o AssessmentTemplateOutput) TagsAll() pulumi.StringMapOutputdeprecated
- func (o AssessmentTemplateOutput) TargetArn() pulumi.StringOutput
- func (o AssessmentTemplateOutput) ToAssessmentTemplateOutput() AssessmentTemplateOutput
- func (o AssessmentTemplateOutput) ToAssessmentTemplateOutputWithContext(ctx context.Context) AssessmentTemplateOutput
- type AssessmentTemplateState
- type GetRulesPackagesResult
- type GetRulesPackagesResultOutput
- func (o GetRulesPackagesResultOutput) Arns() pulumi.StringArrayOutput
- func (GetRulesPackagesResultOutput) ElementType() reflect.Type
- func (o GetRulesPackagesResultOutput) Id() pulumi.StringOutput
- func (o GetRulesPackagesResultOutput) ToGetRulesPackagesResultOutput() GetRulesPackagesResultOutput
- func (o GetRulesPackagesResultOutput) ToGetRulesPackagesResultOutputWithContext(ctx context.Context) GetRulesPackagesResultOutput
- type ResourceGroup
- 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 (o ResourceGroupOutput) Arn() pulumi.StringOutput
- func (ResourceGroupOutput) ElementType() reflect.Type
- func (o ResourceGroupOutput) Tags() pulumi.StringMapOutput
- func (o ResourceGroupOutput) ToResourceGroupOutput() ResourceGroupOutput
- func (o ResourceGroupOutput) ToResourceGroupOutputWithContext(ctx context.Context) ResourceGroupOutput
- 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 an Inspector Classic Assessment Target
## Example Usage
<!--Start PulumiCodeChooser --> ```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 }) }
``` <!--End PulumiCodeChooser -->
## 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) ElementType() reflect.Type
func (AssessmentTargetArrayOutput) Index ¶
func (o AssessmentTargetArrayOutput) Index(i pulumi.IntInput) AssessmentTargetOutput
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 (o AssessmentTargetMapOutput) MapIndex(k pulumi.StringInput) AssessmentTargetOutput
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 ¶
func (o AssessmentTargetOutput) Arn() pulumi.StringOutput
The target assessment ARN.
func (AssessmentTargetOutput) ElementType ¶
func (AssessmentTargetOutput) ElementType() reflect.Type
func (AssessmentTargetOutput) Name ¶
func (o AssessmentTargetOutput) Name() pulumi.StringOutput
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
<!--Start PulumiCodeChooser --> ```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 }) }
``` <!--End PulumiCodeChooser -->
## 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) ElementType() reflect.Type
func (AssessmentTemplateArrayOutput) Index ¶
func (o AssessmentTemplateArrayOutput) Index(i pulumi.IntInput) AssessmentTemplateOutput
func (AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput ¶
func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutput() AssessmentTemplateArrayOutput
func (AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext ¶
func (o AssessmentTemplateArrayOutput) ToAssessmentTemplateArrayOutputWithContext(ctx context.Context) AssessmentTemplateArrayOutput
type AssessmentTemplateEventSubscription ¶
type AssessmentTemplateEventSubscription struct { // The event for which you want to receive SNS notifications. Valid values are `ASSESSMENT_RUN_STARTED`, `ASSESSMENT_RUN_COMPLETED`, `ASSESSMENT_RUN_STATE_CHANGED`, and `FINDING_REPORTED`. Event string `pulumi:"event"` // The ARN of the SNS topic to which notifications are sent. TopicArn string `pulumi:"topicArn"` }
type AssessmentTemplateEventSubscriptionArgs ¶
type AssessmentTemplateEventSubscriptionArgs struct { // The event for which you want to receive SNS notifications. Valid values are `ASSESSMENT_RUN_STARTED`, `ASSESSMENT_RUN_COMPLETED`, `ASSESSMENT_RUN_STATE_CHANGED`, and `FINDING_REPORTED`. Event pulumi.StringInput `pulumi:"event"` // The ARN of the SNS topic to which notifications are sent. TopicArn pulumi.StringInput `pulumi:"topicArn"` }
func (AssessmentTemplateEventSubscriptionArgs) ElementType ¶
func (AssessmentTemplateEventSubscriptionArgs) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (AssessmentTemplateEventSubscriptionOutput) Event ¶
func (o AssessmentTemplateEventSubscriptionOutput) Event() pulumi.StringOutput
The event for which you want to receive SNS notifications. Valid values are `ASSESSMENT_RUN_STARTED`, `ASSESSMENT_RUN_COMPLETED`, `ASSESSMENT_RUN_STATE_CHANGED`, and `FINDING_REPORTED`.
func (AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutput ¶
func (o AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutput() AssessmentTemplateEventSubscriptionOutput
func (AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutputWithContext ¶
func (o AssessmentTemplateEventSubscriptionOutput) ToAssessmentTemplateEventSubscriptionOutputWithContext(ctx context.Context) AssessmentTemplateEventSubscriptionOutput
func (AssessmentTemplateEventSubscriptionOutput) TopicArn ¶
func (o AssessmentTemplateEventSubscriptionOutput) TopicArn() pulumi.StringOutput
The ARN of the SNS topic to which notifications are sent.
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) ElementType() reflect.Type
func (AssessmentTemplateMapOutput) MapIndex ¶
func (o AssessmentTemplateMapOutput) MapIndex(k pulumi.StringInput) AssessmentTemplateOutput
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 ¶
func (o AssessmentTemplateOutput) Arn() pulumi.StringOutput
The template assessment ARN.
func (AssessmentTemplateOutput) Duration ¶
func (o AssessmentTemplateOutput) Duration() pulumi.IntOutput
The duration of the inspector run.
func (AssessmentTemplateOutput) ElementType ¶
func (AssessmentTemplateOutput) ElementType() reflect.Type
func (AssessmentTemplateOutput) EventSubscriptions ¶
func (o AssessmentTemplateOutput) EventSubscriptions() AssessmentTemplateEventSubscriptionArrayOutput
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 ¶
func (o AssessmentTemplateOutput) Name() pulumi.StringOutput
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 ¶
func (o AssessmentTemplateOutput) Tags() pulumi.StringMapOutput
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
func (o AssessmentTemplateOutput) TagsAll() pulumi.StringMapOutput
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 ¶
func (o AssessmentTemplateOutput) TargetArn() pulumi.StringOutput
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
<!--Start PulumiCodeChooser --> ```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 }) }
``` <!--End PulumiCodeChooser -->
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
func (o GetRulesPackagesResultOutput) Arns() pulumi.StringArrayOutput
List of the Amazon Inspector Classic Rules Packages arns available in the AWS region.
func (GetRulesPackagesResultOutput) ElementType ¶ added in v6.6.1
func (GetRulesPackagesResultOutput) ElementType() reflect.Type
func (GetRulesPackagesResultOutput) Id ¶ added in v6.6.1
func (o GetRulesPackagesResultOutput) Id() pulumi.StringOutput
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
<!--Start PulumiCodeChooser --> ```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 }) }
``` <!--End PulumiCodeChooser -->
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 (o ResourceGroupArrayOutput) Index(i pulumi.IntInput) ResourceGroupOutput
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 (o ResourceGroupMapOutput) MapIndex(k pulumi.StringInput) ResourceGroupOutput
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 ¶
func (o ResourceGroupOutput) Arn() pulumi.StringOutput
The resource group ARN.
func (ResourceGroupOutput) ElementType ¶
func (ResourceGroupOutput) ElementType() reflect.Type
func (ResourceGroupOutput) Tags ¶
func (o ResourceGroupOutput) Tags() pulumi.StringMapOutput
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