Documentation ¶
Index ¶
- func CfnCisScanConfiguration_CFN_RESOURCE_TYPE_NAME() *string
- func CfnCisScanConfiguration_IsCfnElement(x interface{}) *bool
- func CfnCisScanConfiguration_IsCfnResource(x interface{}) *bool
- func CfnCisScanConfiguration_IsConstruct(x interface{}) *bool
- func CfnFilter_CFN_RESOURCE_TYPE_NAME() *string
- func CfnFilter_IsCfnElement(x interface{}) *bool
- func CfnFilter_IsCfnResource(x interface{}) *bool
- func CfnFilter_IsConstruct(x interface{}) *bool
- func NewCfnCisScanConfiguration_Override(c CfnCisScanConfiguration, scope constructs.Construct, id *string, ...)
- func NewCfnFilter_Override(c CfnFilter, scope constructs.Construct, id *string, props *CfnFilterProps)
- type CfnCisScanConfiguration
- type CfnCisScanConfigurationProps
- type CfnCisScanConfiguration_CisTargetsProperty
- type CfnCisScanConfiguration_DailyScheduleProperty
- type CfnCisScanConfiguration_MonthlyScheduleProperty
- type CfnCisScanConfiguration_ScheduleProperty
- type CfnCisScanConfiguration_TimeProperty
- type CfnCisScanConfiguration_WeeklyScheduleProperty
- type CfnFilter
- type CfnFilterProps
- type CfnFilter_DateFilterProperty
- type CfnFilter_FilterCriteriaProperty
- type CfnFilter_MapFilterProperty
- type CfnFilter_NumberFilterProperty
- type CfnFilter_PackageFilterProperty
- type CfnFilter_PortRangeFilterProperty
- type CfnFilter_StringFilterProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnCisScanConfiguration_CFN_RESOURCE_TYPE_NAME ¶ added in v2.127.0
func CfnCisScanConfiguration_CFN_RESOURCE_TYPE_NAME() *string
func CfnCisScanConfiguration_IsCfnElement ¶ added in v2.127.0
func CfnCisScanConfiguration_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 CfnCisScanConfiguration_IsCfnResource ¶ added in v2.127.0
func CfnCisScanConfiguration_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnCisScanConfiguration_IsConstruct ¶ added in v2.127.0
func CfnCisScanConfiguration_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func CfnFilter_CFN_RESOURCE_TYPE_NAME ¶
func CfnFilter_CFN_RESOURCE_TYPE_NAME() *string
func CfnFilter_IsCfnElement ¶
func CfnFilter_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 CfnFilter_IsCfnResource ¶
func CfnFilter_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnFilter_IsConstruct ¶
func CfnFilter_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.
Returns: true if `x` is an object created from a class which extends `Construct`.
func NewCfnCisScanConfiguration_Override ¶ added in v2.127.0
func NewCfnCisScanConfiguration_Override(c CfnCisScanConfiguration, scope constructs.Construct, id *string, props *CfnCisScanConfigurationProps)
func NewCfnFilter_Override ¶
func NewCfnFilter_Override(c CfnFilter, scope constructs.Construct, id *string, props *CfnFilterProps)
Types ¶
type CfnCisScanConfiguration ¶ added in v2.127.0
type CfnCisScanConfiguration interface { awscdk.CfnResource awscdk.IInspectable awscdk.ITaggableV2 // The CIS scan configuration's scan configuration ARN. AttrArn() *string // Tag Manager which manages the tags for this resource. CdkTagManager() awscdk.TagManager // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The name of the CIS scan configuration. ScanName() *string SetScanName(val *string) // The CIS scan configuration's schedule. Schedule() interface{} SetSchedule(val interface{}) // The CIS scan configuration's CIS Benchmark level. SecurityLevel() *string SetSecurityLevel(val *string) // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // The CIS scan configuration's tags. Tags() *map[string]*string SetTags(val *map[string]*string) // The CIS scan configuration's targets. Targets() interface{} SetTargets(val interface{}) // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
The CIS scan configuration.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var oneTime interface{} cfnCisScanConfiguration := awscdk.Aws_inspectorv2.NewCfnCisScanConfiguration(this, jsii.String("MyCfnCisScanConfiguration"), &CfnCisScanConfigurationProps{ ScanName: jsii.String("scanName"), Schedule: &ScheduleProperty{ Daily: &DailyScheduleProperty{ StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, Monthly: &MonthlyScheduleProperty{ Day: jsii.String("day"), StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, OneTime: oneTime, Weekly: &WeeklyScheduleProperty{ Days: []*string{ jsii.String("days"), }, StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, }, SecurityLevel: jsii.String("securityLevel"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, Targets: &CisTargetsProperty{ AccountIds: []*string{ jsii.String("accountIds"), }, // the properties below are optional TargetResourceTags: map[string][]*string{ "targetResourceTagsKey": []*string{ jsii.String("targetResourceTags"), }, }, }, })
func NewCfnCisScanConfiguration ¶ added in v2.127.0
func NewCfnCisScanConfiguration(scope constructs.Construct, id *string, props *CfnCisScanConfigurationProps) CfnCisScanConfiguration
type CfnCisScanConfigurationProps ¶ added in v2.127.0
type CfnCisScanConfigurationProps struct { // The name of the CIS scan configuration. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-scanname // ScanName *string `field:"optional" json:"scanName" yaml:"scanName"` // The CIS scan configuration's schedule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-schedule // Schedule interface{} `field:"optional" json:"schedule" yaml:"schedule"` // The CIS scan configuration's CIS Benchmark level. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-securitylevel // SecurityLevel *string `field:"optional" json:"securityLevel" yaml:"securityLevel"` // The CIS scan configuration's tags. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-tags // Tags *map[string]*string `field:"optional" json:"tags" yaml:"tags"` // The CIS scan configuration's targets. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-cisscanconfiguration.html#cfn-inspectorv2-cisscanconfiguration-targets // Targets interface{} `field:"optional" json:"targets" yaml:"targets"` }
Properties for defining a `CfnCisScanConfiguration`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var oneTime interface{} cfnCisScanConfigurationProps := &CfnCisScanConfigurationProps{ ScanName: jsii.String("scanName"), Schedule: &ScheduleProperty{ Daily: &DailyScheduleProperty{ StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, Monthly: &MonthlyScheduleProperty{ Day: jsii.String("day"), StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, OneTime: oneTime, Weekly: &WeeklyScheduleProperty{ Days: []*string{ jsii.String("days"), }, StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, }, SecurityLevel: jsii.String("securityLevel"), Tags: map[string]*string{ "tagsKey": jsii.String("tags"), }, Targets: &CisTargetsProperty{ AccountIds: []*string{ jsii.String("accountIds"), }, // the properties below are optional TargetResourceTags: map[string][]*string{ "targetResourceTagsKey": []*string{ jsii.String("targetResourceTags"), }, }, }, }
type CfnCisScanConfiguration_CisTargetsProperty ¶ added in v2.127.0
type CfnCisScanConfiguration_CisTargetsProperty struct { // The CIS target account ids. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html#cfn-inspectorv2-cisscanconfiguration-cistargets-accountids // AccountIds *[]*string `field:"required" json:"accountIds" yaml:"accountIds"` // The CIS target resource tags. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-cistargets.html#cfn-inspectorv2-cisscanconfiguration-cistargets-targetresourcetags // TargetResourceTags interface{} `field:"optional" json:"targetResourceTags" yaml:"targetResourceTags"` }
The CIS targets.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cisTargetsProperty := &CisTargetsProperty{ AccountIds: []*string{ jsii.String("accountIds"), }, // the properties below are optional TargetResourceTags: map[string][]*string{ "targetResourceTagsKey": []*string{ jsii.String("targetResourceTags"), }, }, }
type CfnCisScanConfiguration_DailyScheduleProperty ¶ added in v2.127.0
type CfnCisScanConfiguration_DailyScheduleProperty struct { // The schedule start time. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-dailyschedule.html#cfn-inspectorv2-cisscanconfiguration-dailyschedule-starttime // StartTime interface{} `field:"required" json:"startTime" yaml:"startTime"` }
A daily schedule.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" dailyScheduleProperty := &DailyScheduleProperty{ StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }
type CfnCisScanConfiguration_MonthlyScheduleProperty ¶ added in v2.127.0
type CfnCisScanConfiguration_MonthlyScheduleProperty struct { // The monthly schedule's day. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html#cfn-inspectorv2-cisscanconfiguration-monthlyschedule-day // Day *string `field:"required" json:"day" yaml:"day"` // The monthly schedule's start time. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-monthlyschedule.html#cfn-inspectorv2-cisscanconfiguration-monthlyschedule-starttime // StartTime interface{} `field:"required" json:"startTime" yaml:"startTime"` }
A monthly schedule.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" monthlyScheduleProperty := &MonthlyScheduleProperty{ Day: jsii.String("day"), StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }
type CfnCisScanConfiguration_ScheduleProperty ¶ added in v2.127.0
type CfnCisScanConfiguration_ScheduleProperty struct { // A daily schedule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-daily // Daily interface{} `field:"optional" json:"daily" yaml:"daily"` // A monthly schedule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-monthly // Monthly interface{} `field:"optional" json:"monthly" yaml:"monthly"` // A one time schedule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-onetime // OneTime interface{} `field:"optional" json:"oneTime" yaml:"oneTime"` // A weekly schedule. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-schedule.html#cfn-inspectorv2-cisscanconfiguration-schedule-weekly // Weekly interface{} `field:"optional" json:"weekly" yaml:"weekly"` }
The schedule the CIS scan configuration runs on.
Each CIS scan configuration has exactly one type of schedule.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" var oneTime interface{} scheduleProperty := &ScheduleProperty{ Daily: &DailyScheduleProperty{ StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, Monthly: &MonthlyScheduleProperty{ Day: jsii.String("day"), StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, OneTime: oneTime, Weekly: &WeeklyScheduleProperty{ Days: []*string{ jsii.String("days"), }, StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }, }
type CfnCisScanConfiguration_TimeProperty ¶ added in v2.127.0
type CfnCisScanConfiguration_TimeProperty struct { // The time of day in 24-hour format (00:00). // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html#cfn-inspectorv2-cisscanconfiguration-time-timeofday // TimeOfDay *string `field:"required" json:"timeOfDay" yaml:"timeOfDay"` // The timezone. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-time.html#cfn-inspectorv2-cisscanconfiguration-time-timezone // TimeZone *string `field:"required" json:"timeZone" yaml:"timeZone"` }
The time.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" timeProperty := &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }
type CfnCisScanConfiguration_WeeklyScheduleProperty ¶ added in v2.127.0
type CfnCisScanConfiguration_WeeklyScheduleProperty struct { // The weekly schedule's days. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html#cfn-inspectorv2-cisscanconfiguration-weeklyschedule-days // Days *[]*string `field:"required" json:"days" yaml:"days"` // The weekly schedule's start time. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-cisscanconfiguration-weeklyschedule.html#cfn-inspectorv2-cisscanconfiguration-weeklyschedule-starttime // StartTime interface{} `field:"required" json:"startTime" yaml:"startTime"` }
A weekly schedule.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" weeklyScheduleProperty := &WeeklyScheduleProperty{ Days: []*string{ jsii.String("days"), }, StartTime: &TimeProperty{ TimeOfDay: jsii.String("timeOfDay"), TimeZone: jsii.String("timeZone"), }, }
type CfnFilter ¶
type CfnFilter interface { awscdk.CfnResource awscdk.IInspectable // The Amazon Resource Number (ARN) associated with this filter. AttrArn() *string // Options for this resource, such as condition, update policy etc. CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} // AWS resource type. CfnResourceType() *string // Returns: the stack trace of the point where this Resource was created from, sourced // from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most // node +internal+ entries filtered. CreationStack() *[]*string // A description of the filter. Description() *string SetDescription(val *string) // The action that is to be applied to the findings that match the filter. FilterAction() *string SetFilterAction(val *string) // Details on the filter criteria associated with this filter. FilterCriteria() interface{} SetFilterCriteria(val interface{}) // The logical ID for this CloudFormation stack element. // // The logical ID of the element // is calculated from the path of the resource node in the construct tree. // // To override this value, use `overrideLogicalId(newLogicalId)`. // // Returns: the logical ID as a stringified token. This value will only get // resolved during synthesis. LogicalId() *string // The name of the filter. Name() *string SetName(val *string) // The tree node. Node() constructs.Node // Return a string that will be resolved to a CloudFormation `{ Ref }` for this element. // // If, by any chance, the intrinsic reference of a resource is not a string, you could // coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`. Ref() *string // The stack in which this element is defined. // // CfnElements must be defined within a stack scope (directly or indirectly). Stack() awscdk.Stack // Deprecated. // Deprecated: use `updatedProperties` // // Return properties modified after initiation // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperites() *map[string]interface{} // Return properties modified after initiation. // // Resources that expose mutable properties should override this function to // collect and return the properties object for this resource. UpdatedProperties() *map[string]interface{} // Syntactic sugar for `addOverride(path, undefined)`. AddDeletionOverride(path *string) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // // This can be used for resources across stacks (or nested stack) boundaries // and the dependency will automatically be transferred to the relevant scope. AddDependency(target awscdk.CfnResource) // Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned. // Deprecated: use addDependency. AddDependsOn(target awscdk.CfnResource) // Add a value to the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // AddMetadata(key *string, value interface{}) // Adds an override to the synthesized CloudFormation resource. // // To add a // property override, either use `addPropertyOverride` or prefix `path` with // "Properties." (i.e. `Properties.TopicName`). // // If the override is nested, separate each nested level using a dot (.) in the path parameter. // If there is an array as part of the nesting, specify the index in the path. // // To include a literal `.` in the property name, prefix with a `\`. In most // programming languages you will need to write this as `"\\."` because the // `\` itself will need to be escaped. // // For example, // “`typescript // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']); // cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE'); // “` // would add the overrides // “`json // "Properties": { // "GlobalSecondaryIndexes": [ // { // "Projection": { // "NonKeyAttributes": [ "myattribute" ] // ... // } // ... // }, // { // "ProjectionType": "INCLUDE" // ... // }, // ] // ... // } // “` // // The `value` argument to `addOverride` will not be processed or translated // in any way. Pass raw JSON values in here with the correct capitalization // for CloudFormation. If you pass CDK classes or structs, they will be // rendered with lowercased key names, and CloudFormation will reject the // template. AddOverride(path *string, value interface{}) // Adds an override that deletes the value of a property from the resource definition. AddPropertyDeletionOverride(propertyPath *string) // Adds an override to a resource property. // // Syntactic sugar for `addOverride("Properties.<...>", value)`. AddPropertyOverride(propertyPath *string, value interface{}) // Sets the deletion policy of the resource based on the removal policy specified. // // The Removal Policy controls what happens to this resource when it stops // being managed by CloudFormation, either because you've removed it from the // CDK application or because you've made a change that requires the resource // to be replaced. // // The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS // account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some // cases, a snapshot can be taken of the resource prior to deletion // (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy // can be found in the following link:. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options // ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) // Returns a token for an runtime attribute of this resource. // // Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility // in case there is no generated attribute. GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference // Retrieve a value value from the CloudFormation Resource Metadata. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html // // Note that this is a different set of metadata from CDK node metadata; this // metadata ends up in the stack template under the resource, whereas CDK // node metadata ends up in the Cloud Assembly. // GetMetadata(key *string) interface{} // Examines the CloudFormation resource and discloses attributes. Inspect(inspector awscdk.TreeInspector) // Retrieves an array of resources this resource depends on. // // This assembles dependencies on resources across stacks (including nested stacks) // automatically. ObtainDependencies() *[]interface{} // Get a shallow copy of dependencies between this resource and other resources in the same stack. ObtainResourceDependencies() *[]awscdk.CfnResource // Overrides the auto-generated logical ID with a specific ID. OverrideLogicalId(newLogicalId *string) // Indicates that this resource no longer depends on another resource. // // This can be used for resources across stacks (including nested stacks) // and the dependency will automatically be removed from the relevant scope. RemoveDependency(target awscdk.CfnResource) RenderProperties(props *map[string]interface{}) *map[string]interface{} // Replaces one dependency with another. ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource) // Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template. // // Returns: `true` if the resource should be included or `false` is the resource // should be omitted. ShouldSynthesize() *bool // Returns a string representation of this construct. // // Returns: a string representation of this resource. ToString() *string ValidateProperties(_properties interface{}) }
Details about a filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnFilter := awscdk.Aws_inspectorv2.NewCfnFilter(this, jsii.String("MyCfnFilter"), &CfnFilterProps{ FilterAction: jsii.String("filterAction"), FilterCriteria: &FilterCriteriaProperty{ AwsAccountId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ComponentId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ComponentType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceImageId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceSubnetId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceVpcId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageArchitecture: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageHash: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImagePushedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, EcrImageRegistry: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageRepositoryName: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageTags: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingArn: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingStatus: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FirstObservedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, InspectorScore: []interface{}{ &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, }, LastObservedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, NetworkProtocol: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, PortRange: []interface{}{ &PortRangeFilterProperty{ BeginInclusive: jsii.Number(123), EndInclusive: jsii.Number(123), }, }, RelatedVulnerabilities: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ResourceId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ResourceTags: []interface{}{ &MapFilterProperty{ Comparison: jsii.String("comparison"), // the properties below are optional Key: jsii.String("key"), Value: jsii.String("value"), }, }, ResourceType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Severity: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Title: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, UpdatedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, VendorSeverity: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerabilityId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerabilitySource: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerablePackages: []interface{}{ &PackageFilterProperty{ Architecture: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Epoch: &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, Name: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Release: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, SourceLayerHash: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Version: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, }, }, Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), })
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html
func NewCfnFilter ¶
func NewCfnFilter(scope constructs.Construct, id *string, props *CfnFilterProps) CfnFilter
type CfnFilterProps ¶
type CfnFilterProps struct { // The action that is to be applied to the findings that match the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html#cfn-inspectorv2-filter-filteraction // FilterAction *string `field:"required" json:"filterAction" yaml:"filterAction"` // Details on the filter criteria associated with this filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html#cfn-inspectorv2-filter-filtercriteria // FilterCriteria interface{} `field:"required" json:"filterCriteria" yaml:"filterCriteria"` // The name of the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html#cfn-inspectorv2-filter-name // Name *string `field:"required" json:"name" yaml:"name"` // A description of the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html#cfn-inspectorv2-filter-description // Description *string `field:"optional" json:"description" yaml:"description"` }
Properties for defining a `CfnFilter`.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" cfnFilterProps := &CfnFilterProps{ FilterAction: jsii.String("filterAction"), FilterCriteria: &FilterCriteriaProperty{ AwsAccountId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ComponentId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ComponentType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceImageId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceSubnetId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceVpcId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageArchitecture: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageHash: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImagePushedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, EcrImageRegistry: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageRepositoryName: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageTags: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingArn: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingStatus: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FirstObservedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, InspectorScore: []interface{}{ &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, }, LastObservedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, NetworkProtocol: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, PortRange: []interface{}{ &PortRangeFilterProperty{ BeginInclusive: jsii.Number(123), EndInclusive: jsii.Number(123), }, }, RelatedVulnerabilities: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ResourceId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ResourceTags: []interface{}{ &MapFilterProperty{ Comparison: jsii.String("comparison"), // the properties below are optional Key: jsii.String("key"), Value: jsii.String("value"), }, }, ResourceType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Severity: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Title: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, UpdatedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, VendorSeverity: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerabilityId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerabilitySource: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerablePackages: []interface{}{ &PackageFilterProperty{ Architecture: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Epoch: &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, Name: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Release: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, SourceLayerHash: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Version: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, }, }, Name: jsii.String("name"), // the properties below are optional Description: jsii.String("description"), }
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspectorv2-filter.html
type CfnFilter_DateFilterProperty ¶
type CfnFilter_DateFilterProperty struct { // A timestamp representing the end of the time period filtered on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-datefilter.html#cfn-inspectorv2-filter-datefilter-endinclusive // EndInclusive *float64 `field:"optional" json:"endInclusive" yaml:"endInclusive"` // A timestamp representing the start of the time period filtered on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-datefilter.html#cfn-inspectorv2-filter-datefilter-startinclusive // StartInclusive *float64 `field:"optional" json:"startInclusive" yaml:"startInclusive"` }
Contains details on the time range used to filter findings.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" dateFilterProperty := &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }
type CfnFilter_FilterCriteriaProperty ¶
type CfnFilter_FilterCriteriaProperty struct { // Details of the AWS account IDs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-awsaccountid // AwsAccountId interface{} `field:"optional" json:"awsAccountId" yaml:"awsAccountId"` // Details of the component IDs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-componentid // ComponentId interface{} `field:"optional" json:"componentId" yaml:"componentId"` // Details of the component types used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-componenttype // ComponentType interface{} `field:"optional" json:"componentType" yaml:"componentType"` // Details of the Amazon EC2 instance image IDs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ec2instanceimageid // Ec2InstanceImageId interface{} `field:"optional" json:"ec2InstanceImageId" yaml:"ec2InstanceImageId"` // Details of the Amazon EC2 instance subnet IDs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ec2instancesubnetid // Ec2InstanceSubnetId interface{} `field:"optional" json:"ec2InstanceSubnetId" yaml:"ec2InstanceSubnetId"` // Details of the Amazon EC2 instance VPC IDs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ec2instancevpcid // Ec2InstanceVpcId interface{} `field:"optional" json:"ec2InstanceVpcId" yaml:"ec2InstanceVpcId"` // Details of the Amazon ECR image architecture types used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ecrimagearchitecture // EcrImageArchitecture interface{} `field:"optional" json:"ecrImageArchitecture" yaml:"ecrImageArchitecture"` // Details of the Amazon ECR image hashes used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ecrimagehash // EcrImageHash interface{} `field:"optional" json:"ecrImageHash" yaml:"ecrImageHash"` // Details on the Amazon ECR image push date and time used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ecrimagepushedat // EcrImagePushedAt interface{} `field:"optional" json:"ecrImagePushedAt" yaml:"ecrImagePushedAt"` // Details on the Amazon ECR registry used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ecrimageregistry // EcrImageRegistry interface{} `field:"optional" json:"ecrImageRegistry" yaml:"ecrImageRegistry"` // Details on the name of the Amazon ECR repository used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ecrimagerepositoryname // EcrImageRepositoryName interface{} `field:"optional" json:"ecrImageRepositoryName" yaml:"ecrImageRepositoryName"` // The tags attached to the Amazon ECR container image. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-ecrimagetags // EcrImageTags interface{} `field:"optional" json:"ecrImageTags" yaml:"ecrImageTags"` // Details on the finding ARNs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-findingarn // FindingArn interface{} `field:"optional" json:"findingArn" yaml:"findingArn"` // Details on the finding status types used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-findingstatus // FindingStatus interface{} `field:"optional" json:"findingStatus" yaml:"findingStatus"` // Details on the finding types used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-findingtype // FindingType interface{} `field:"optional" json:"findingType" yaml:"findingType"` // Details on the date and time a finding was first seen used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-firstobservedat // FirstObservedAt interface{} `field:"optional" json:"firstObservedAt" yaml:"firstObservedAt"` // The Amazon Inspector score to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-inspectorscore // InspectorScore interface{} `field:"optional" json:"inspectorScore" yaml:"inspectorScore"` // Details on the date and time a finding was last seen used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-lastobservedat // LastObservedAt interface{} `field:"optional" json:"lastObservedAt" yaml:"lastObservedAt"` // Details on network protocol used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-networkprotocol // NetworkProtocol interface{} `field:"optional" json:"networkProtocol" yaml:"networkProtocol"` // Details on the port ranges used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-portrange // PortRange interface{} `field:"optional" json:"portRange" yaml:"portRange"` // Details on the related vulnerabilities used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-relatedvulnerabilities // RelatedVulnerabilities interface{} `field:"optional" json:"relatedVulnerabilities" yaml:"relatedVulnerabilities"` // Details on the resource IDs used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-resourceid // ResourceId interface{} `field:"optional" json:"resourceId" yaml:"resourceId"` // Details on the resource tags used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-resourcetags // ResourceTags interface{} `field:"optional" json:"resourceTags" yaml:"resourceTags"` // Details on the resource types used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-resourcetype // ResourceType interface{} `field:"optional" json:"resourceType" yaml:"resourceType"` // Details on the severity used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-severity // Severity interface{} `field:"optional" json:"severity" yaml:"severity"` // Details on the finding title used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-title // Title interface{} `field:"optional" json:"title" yaml:"title"` // Details on the date and time a finding was last updated at used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-updatedat // UpdatedAt interface{} `field:"optional" json:"updatedAt" yaml:"updatedAt"` // Details on the vendor severity used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-vendorseverity // VendorSeverity interface{} `field:"optional" json:"vendorSeverity" yaml:"vendorSeverity"` // Details on the vulnerability ID used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-vulnerabilityid // VulnerabilityId interface{} `field:"optional" json:"vulnerabilityId" yaml:"vulnerabilityId"` // Details on the vulnerability score to filter findings by. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-vulnerabilitysource // VulnerabilitySource interface{} `field:"optional" json:"vulnerabilitySource" yaml:"vulnerabilitySource"` // Details on the vulnerable packages used to filter findings. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-filtercriteria.html#cfn-inspectorv2-filter-filtercriteria-vulnerablepackages // VulnerablePackages interface{} `field:"optional" json:"vulnerablePackages" yaml:"vulnerablePackages"` }
Details on the criteria used to define the filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" filterCriteriaProperty := &FilterCriteriaProperty{ AwsAccountId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ComponentId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ComponentType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceImageId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceSubnetId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Ec2InstanceVpcId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageArchitecture: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageHash: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImagePushedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, EcrImageRegistry: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageRepositoryName: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, EcrImageTags: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingArn: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingStatus: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FindingType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, FirstObservedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, InspectorScore: []interface{}{ &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, }, LastObservedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, NetworkProtocol: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, PortRange: []interface{}{ &PortRangeFilterProperty{ BeginInclusive: jsii.Number(123), EndInclusive: jsii.Number(123), }, }, RelatedVulnerabilities: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ResourceId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, ResourceTags: []interface{}{ &MapFilterProperty{ Comparison: jsii.String("comparison"), // the properties below are optional Key: jsii.String("key"), Value: jsii.String("value"), }, }, ResourceType: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Severity: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, Title: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, UpdatedAt: []interface{}{ &DateFilterProperty{ EndInclusive: jsii.Number(123), StartInclusive: jsii.Number(123), }, }, VendorSeverity: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerabilityId: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerabilitySource: []interface{}{ &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, VulnerablePackages: []interface{}{ &PackageFilterProperty{ Architecture: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Epoch: &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, Name: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Release: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, SourceLayerHash: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Version: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }, }, }
type CfnFilter_MapFilterProperty ¶
type CfnFilter_MapFilterProperty struct { // The operator to use when comparing values in the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-mapfilter.html#cfn-inspectorv2-filter-mapfilter-comparison // Comparison *string `field:"required" json:"comparison" yaml:"comparison"` // The tag key used in the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-mapfilter.html#cfn-inspectorv2-filter-mapfilter-key // Key *string `field:"optional" json:"key" yaml:"key"` // The tag value used in the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-mapfilter.html#cfn-inspectorv2-filter-mapfilter-value // Value *string `field:"optional" json:"value" yaml:"value"` }
An object that describes details of a map filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" mapFilterProperty := &MapFilterProperty{ Comparison: jsii.String("comparison"), // the properties below are optional Key: jsii.String("key"), Value: jsii.String("value"), }
type CfnFilter_NumberFilterProperty ¶
type CfnFilter_NumberFilterProperty struct { // The lowest number to be included in the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-numberfilter.html#cfn-inspectorv2-filter-numberfilter-lowerinclusive // LowerInclusive *float64 `field:"optional" json:"lowerInclusive" yaml:"lowerInclusive"` // The highest number to be included in the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-numberfilter.html#cfn-inspectorv2-filter-numberfilter-upperinclusive // UpperInclusive *float64 `field:"optional" json:"upperInclusive" yaml:"upperInclusive"` }
An object that describes the details of a number filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" numberFilterProperty := &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }
type CfnFilter_PackageFilterProperty ¶
type CfnFilter_PackageFilterProperty struct { // An object that contains details on the package architecture type to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html#cfn-inspectorv2-filter-packagefilter-architecture // Architecture interface{} `field:"optional" json:"architecture" yaml:"architecture"` // An object that contains details on the package epoch to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html#cfn-inspectorv2-filter-packagefilter-epoch // Epoch interface{} `field:"optional" json:"epoch" yaml:"epoch"` // An object that contains details on the name of the package to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html#cfn-inspectorv2-filter-packagefilter-name // Name interface{} `field:"optional" json:"name" yaml:"name"` // An object that contains details on the package release to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html#cfn-inspectorv2-filter-packagefilter-release // Release interface{} `field:"optional" json:"release" yaml:"release"` // An object that contains details on the source layer hash to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html#cfn-inspectorv2-filter-packagefilter-sourcelayerhash // SourceLayerHash interface{} `field:"optional" json:"sourceLayerHash" yaml:"sourceLayerHash"` // The package version to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-packagefilter.html#cfn-inspectorv2-filter-packagefilter-version // Version interface{} `field:"optional" json:"version" yaml:"version"` }
Contains information on the details of a package filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" packageFilterProperty := &PackageFilterProperty{ Architecture: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Epoch: &NumberFilterProperty{ LowerInclusive: jsii.Number(123), UpperInclusive: jsii.Number(123), }, Name: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Release: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, SourceLayerHash: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, Version: &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }, }
type CfnFilter_PortRangeFilterProperty ¶
type CfnFilter_PortRangeFilterProperty struct { // The port number the port range begins at. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-portrangefilter.html#cfn-inspectorv2-filter-portrangefilter-begininclusive // BeginInclusive *float64 `field:"optional" json:"beginInclusive" yaml:"beginInclusive"` // The port number the port range ends at. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-portrangefilter.html#cfn-inspectorv2-filter-portrangefilter-endinclusive // EndInclusive *float64 `field:"optional" json:"endInclusive" yaml:"endInclusive"` }
An object that describes the details of a port range filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" portRangeFilterProperty := &PortRangeFilterProperty{ BeginInclusive: jsii.Number(123), EndInclusive: jsii.Number(123), }
type CfnFilter_StringFilterProperty ¶
type CfnFilter_StringFilterProperty struct { // The operator to use when comparing values in the filter. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-stringfilter.html#cfn-inspectorv2-filter-stringfilter-comparison // Comparison *string `field:"required" json:"comparison" yaml:"comparison"` // The value to filter on. // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-inspectorv2-filter-stringfilter.html#cfn-inspectorv2-filter-stringfilter-value // Value *string `field:"required" json:"value" yaml:"value"` }
An object that describes the details of a string filter.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import "github.com/aws/aws-cdk-go/awscdk" stringFilterProperty := &StringFilterProperty{ Comparison: jsii.String("comparison"), Value: jsii.String("value"), }
Source Files ¶
- CfnCisScanConfiguration.go
- CfnCisScanConfigurationProps.go
- CfnCisScanConfiguration_CisTargetsProperty.go
- CfnCisScanConfiguration_DailyScheduleProperty.go
- CfnCisScanConfiguration_MonthlyScheduleProperty.go
- CfnCisScanConfiguration_ScheduleProperty.go
- CfnCisScanConfiguration_TimeProperty.go
- CfnCisScanConfiguration_WeeklyScheduleProperty.go
- CfnCisScanConfiguration__checks.go
- CfnFilter.go
- CfnFilterProps.go
- CfnFilter_DateFilterProperty.go
- CfnFilter_FilterCriteriaProperty.go
- CfnFilter_MapFilterProperty.go
- CfnFilter_NumberFilterProperty.go
- CfnFilter_PackageFilterProperty.go
- CfnFilter_PortRangeFilterProperty.go
- CfnFilter_StringFilterProperty.go
- CfnFilter__checks.go
- main.go