awsinspector

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnAssessmentTarget_CFN_RESOURCE_TYPE_NAME

func CfnAssessmentTarget_CFN_RESOURCE_TYPE_NAME() *string

func CfnAssessmentTarget_IsCfnElement

func CfnAssessmentTarget_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnAssessmentTarget_IsCfnResource

func CfnAssessmentTarget_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnAssessmentTarget_IsConstruct

func CfnAssessmentTarget_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func CfnAssessmentTemplate_CFN_RESOURCE_TYPE_NAME

func CfnAssessmentTemplate_CFN_RESOURCE_TYPE_NAME() *string

func CfnAssessmentTemplate_IsCfnElement

func CfnAssessmentTemplate_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnAssessmentTemplate_IsCfnResource

func CfnAssessmentTemplate_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnAssessmentTemplate_IsConstruct

func CfnAssessmentTemplate_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func CfnResourceGroup_CFN_RESOURCE_TYPE_NAME

func CfnResourceGroup_CFN_RESOURCE_TYPE_NAME() *string

func CfnResourceGroup_IsCfnElement

func CfnResourceGroup_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnResourceGroup_IsCfnResource

func CfnResourceGroup_IsCfnResource(construct constructs.IConstruct) *bool

Check whether the given construct is a CfnResource.

func CfnResourceGroup_IsConstruct

func CfnResourceGroup_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead

func NewCfnAssessmentTarget_Override

func NewCfnAssessmentTarget_Override(c CfnAssessmentTarget, scope constructs.Construct, id *string, props *CfnAssessmentTargetProps)

Create a new `AWS::Inspector::AssessmentTarget`.

func NewCfnAssessmentTemplate_Override

func NewCfnAssessmentTemplate_Override(c CfnAssessmentTemplate, scope constructs.Construct, id *string, props *CfnAssessmentTemplateProps)

Create a new `AWS::Inspector::AssessmentTemplate`.

func NewCfnResourceGroup_Override

func NewCfnResourceGroup_Override(c CfnResourceGroup, scope constructs.Construct, id *string, props *CfnResourceGroupProps)

Create a new `AWS::Inspector::ResourceGroup`.

Types

type CfnAssessmentTarget

type CfnAssessmentTarget interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AssessmentTargetName() *string
	SetAssessmentTargetName(val *string)
	AttrArn() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	LogicalId() *string
	Node() constructs.Node
	Ref() *string
	ResourceGroupArn() *string
	SetResourceGroupArn(val *string)
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Inspector::AssessmentTarget`.

The `AWS::Inspector::AssessmentTarget` resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run.

TODO: EXAMPLE

func NewCfnAssessmentTarget

func NewCfnAssessmentTarget(scope constructs.Construct, id *string, props *CfnAssessmentTargetProps) CfnAssessmentTarget

Create a new `AWS::Inspector::AssessmentTarget`.

type CfnAssessmentTargetProps

type CfnAssessmentTargetProps struct {
	// The name of the Amazon Inspector assessment target.
	//
	// The name must be unique within the AWS account .
	AssessmentTargetName *string `json:"assessmentTargetName" yaml:"assessmentTargetName"`
	// The ARN that specifies the resource group that is used to create the assessment target.
	//
	// If `resourceGroupArn` is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
	ResourceGroupArn *string `json:"resourceGroupArn" yaml:"resourceGroupArn"`
}

Properties for defining a `CfnAssessmentTarget`.

TODO: EXAMPLE

type CfnAssessmentTemplate

type CfnAssessmentTemplate interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AssessmentTargetArn() *string
	SetAssessmentTargetArn(val *string)
	AssessmentTemplateName() *string
	SetAssessmentTemplateName(val *string)
	AttrArn() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	DurationInSeconds() *float64
	SetDurationInSeconds(val *float64)
	LogicalId() *string
	Node() constructs.Node
	Ref() *string
	RulesPackageArns() *[]*string
	SetRulesPackageArns(val *[]*string)
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	UserAttributesForFindings() interface{}
	SetUserAttributesForFindings(val interface{})
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Inspector::AssessmentTemplate`.

The `AWS::Inspector::AssessmentTemplate` resource creates an Amazon Inspector assessment template, which specifies the Inspector assessment targets that will be evaluated by an assessment run and its related configurations.

TODO: EXAMPLE

func NewCfnAssessmentTemplate

func NewCfnAssessmentTemplate(scope constructs.Construct, id *string, props *CfnAssessmentTemplateProps) CfnAssessmentTemplate

Create a new `AWS::Inspector::AssessmentTemplate`.

type CfnAssessmentTemplateProps

type CfnAssessmentTemplateProps struct {
	// The ARN of the assessment target to be included in the assessment template.
	AssessmentTargetArn *string `json:"assessmentTargetArn" yaml:"assessmentTargetArn"`
	// The duration of the assessment run in seconds.
	DurationInSeconds *float64 `json:"durationInSeconds" yaml:"durationInSeconds"`
	// The ARNs of the rules packages that you want to use in the assessment template.
	RulesPackageArns *[]*string `json:"rulesPackageArns" yaml:"rulesPackageArns"`
	// The user-defined name that identifies the assessment template that you want to create.
	//
	// You can create several assessment templates for the same assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
	AssessmentTemplateName *string `json:"assessmentTemplateName" yaml:"assessmentTemplateName"`
	// The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
	//
	// Within an assessment template, each key must be unique.
	UserAttributesForFindings interface{} `json:"userAttributesForFindings" yaml:"userAttributesForFindings"`
}

Properties for defining a `CfnAssessmentTemplate`.

TODO: EXAMPLE

type CfnResourceGroup

type CfnResourceGroup interface {
	awscdk.CfnResource
	awscdk.IInspectable
	AttrArn() *string
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	CfnResourceType() *string
	CreationStack() *[]*string
	LogicalId() *string
	Node() constructs.Node
	Ref() *string
	ResourceGroupTags() interface{}
	SetResourceGroupTags(val interface{})
	Stack() awscdk.Stack
	UpdatedProperites() *map[string]interface{}
	AddDeletionOverride(path *string)
	AddDependsOn(target awscdk.CfnResource)
	AddMetadata(key *string, value interface{})
	AddOverride(path *string, value interface{})
	AddPropertyDeletionOverride(propertyPath *string)
	AddPropertyOverride(propertyPath *string, value interface{})
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	GetAtt(attributeName *string) awscdk.Reference
	GetMetadata(key *string) interface{}
	Inspect(inspector awscdk.TreeInspector)
	OverrideLogicalId(newLogicalId *string)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	ShouldSynthesize() *bool
	ToString() *string
	ValidateProperties(_properties interface{})
}

A CloudFormation `AWS::Inspector::ResourceGroup`.

The `AWS::Inspector::ResourceGroup` resource is used to create Amazon Inspector resource groups. A resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target.

TODO: EXAMPLE

func NewCfnResourceGroup

func NewCfnResourceGroup(scope constructs.Construct, id *string, props *CfnResourceGroupProps) CfnResourceGroup

Create a new `AWS::Inspector::ResourceGroup`.

type CfnResourceGroupProps

type CfnResourceGroupProps struct {
	// The tags (key and value pairs) that will be associated with the resource group.
	//
	// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
	ResourceGroupTags interface{} `json:"resourceGroupTags" yaml:"resourceGroupTags"`
}

Properties for defining a `CfnResourceGroup`.

TODO: EXAMPLE

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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