Documentation
¶
Index ¶
- func CfnAlert_ArnForAlert(resource interfacesawslookoutmetrics.IAlertRef) *string
- func CfnAlert_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAlert_IsCfnAlert(x interface{}) *bool
- func CfnAlert_IsCfnElement(x interface{}) *bool
- func CfnAlert_IsCfnResource(x interface{}) *bool
- func CfnAlert_IsConstruct(x interface{}) *bool
- func CfnAnomalyDetector_ArnForAnomalyDetector(resource interfacesawslookoutmetrics.IAnomalyDetectorRef) *string
- func CfnAnomalyDetector_CFN_RESOURCE_TYPE_NAME() *string
- func CfnAnomalyDetector_IsCfnAnomalyDetector(x interface{}) *bool
- func CfnAnomalyDetector_IsCfnElement(x interface{}) *bool
- func CfnAnomalyDetector_IsCfnResource(x interface{}) *bool
- func CfnAnomalyDetector_IsConstruct(x interface{}) *bool
- func NewCfnAlert_Override(c CfnAlert, scope constructs.Construct, id *string, props *CfnAlertProps)
- func NewCfnAnomalyDetector_Override(c CfnAnomalyDetector, scope constructs.Construct, id *string, ...)
- type CfnAlert
- type CfnAlertProps
- type CfnAlert_ActionProperty
- type CfnAlert_LambdaConfigurationProperty
- type CfnAlert_SNSConfigurationProperty
- type CfnAnomalyDetector
- type CfnAnomalyDetectorProps
- type CfnAnomalyDetector_AnomalyDetectorConfigProperty
- type CfnAnomalyDetector_AppFlowConfigProperty
- type CfnAnomalyDetector_CloudwatchConfigProperty
- type CfnAnomalyDetector_CsvFormatDescriptorProperty
- type CfnAnomalyDetector_FileFormatDescriptorProperty
- type CfnAnomalyDetector_JsonFormatDescriptorProperty
- type CfnAnomalyDetector_MetricProperty
- type CfnAnomalyDetector_MetricSetProperty
- type CfnAnomalyDetector_MetricSourceProperty
- type CfnAnomalyDetector_RDSSourceConfigProperty
- type CfnAnomalyDetector_RedshiftSourceConfigProperty
- type CfnAnomalyDetector_S3SourceConfigProperty
- type CfnAnomalyDetector_TimestampColumnProperty
- type CfnAnomalyDetector_VpcConfigurationProperty
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnAlert_ArnForAlert ¶ added in v2.227.0
func CfnAlert_ArnForAlert(resource interfacesawslookoutmetrics.IAlertRef) *string
func CfnAlert_CFN_RESOURCE_TYPE_NAME ¶
func CfnAlert_CFN_RESOURCE_TYPE_NAME() *string
func CfnAlert_IsCfnAlert ¶ added in v2.231.0
func CfnAlert_IsCfnAlert(x interface{}) *bool
Checks whether the given object is a CfnAlert.
func CfnAlert_IsCfnElement ¶
func CfnAlert_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 CfnAlert_IsCfnResource ¶
func CfnAlert_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnAlert_IsConstruct ¶
func CfnAlert_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 CfnAnomalyDetector_ArnForAnomalyDetector ¶ added in v2.227.0
func CfnAnomalyDetector_ArnForAnomalyDetector(resource interfacesawslookoutmetrics.IAnomalyDetectorRef) *string
func CfnAnomalyDetector_CFN_RESOURCE_TYPE_NAME ¶
func CfnAnomalyDetector_CFN_RESOURCE_TYPE_NAME() *string
func CfnAnomalyDetector_IsCfnAnomalyDetector ¶ added in v2.231.0
func CfnAnomalyDetector_IsCfnAnomalyDetector(x interface{}) *bool
Checks whether the given object is a CfnAnomalyDetector.
func CfnAnomalyDetector_IsCfnElement ¶
func CfnAnomalyDetector_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 CfnAnomalyDetector_IsCfnResource ¶
func CfnAnomalyDetector_IsCfnResource(x interface{}) *bool
Check whether the given object is a CfnResource.
func CfnAnomalyDetector_IsConstruct ¶
func CfnAnomalyDetector_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 NewCfnAlert_Override ¶
func NewCfnAlert_Override(c CfnAlert, scope constructs.Construct, id *string, props *CfnAlertProps)
Create a new `AWS::LookoutMetrics::Alert`.
func NewCfnAnomalyDetector_Override ¶
func NewCfnAnomalyDetector_Override(c CfnAnomalyDetector, scope constructs.Construct, id *string, props *CfnAnomalyDetectorProps)
Create a new `AWS::LookoutMetrics::AnomalyDetector`.
Types ¶
type CfnAlert ¶
type CfnAlert interface {
awscdk.CfnResource
awscdk.IInspectable
interfacesawslookoutmetrics.IAlertRef
// Action that will be triggered when there is an alert.
Action() interface{}
SetAction(val interface{})
// A description of the alert.
AlertDescription() *string
SetAlertDescription(val *string)
// The name of the alert.
AlertName() *string
SetAlertName(val *string)
// A reference to a Alert resource.
AlertRef() *interfacesawslookoutmetrics.AlertReference
// An integer from 0 to 100 specifying the alert sensitivity threshold.
AlertSensitivityThreshold() *float64
SetAlertSensitivityThreshold(val *float64)
// The ARN of the detector to which the alert is attached.
AnomalyDetectorArn() *string
SetAnomalyDetectorArn(val *string)
// The Amazon Resource Name (ARN) of the alert.
//
// For example, `arn:aws:lookoutmetrics:us-east-2:123456789012:Alert:my-alert`.
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
Env() *interfaces.ResourceEnvironment
// 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 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{})
}
> End of support notice: On Oct 9, 2025, AWS will end support for Amazon Lookout for Metrics.
After Oct 9, 2025, you will no longer be able to access the Amazon Lookout for Metrics console or Amazon Lookout for Metrics resources. For more information, see [Amazon Lookout for Metrics end of support](https://docs.aws.amazon.com//blogs/machine-learning/transitioning-off-amazon-lookout-for-metrics/) .
The `AWS::LookoutMetrics::Alert` type creates an alert for an anomaly detector.
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"
cfnAlert := awscdk.Aws_lookoutmetrics.NewCfnAlert(this, jsii.String("MyCfnAlert"), &CfnAlertProps{
Action: &ActionProperty{
LambdaConfiguration: &LambdaConfigurationProperty{
LambdaArn: jsii.String("lambdaArn"),
RoleArn: jsii.String("roleArn"),
},
SnsConfiguration: &SNSConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SnsTopicArn: jsii.String("snsTopicArn"),
},
},
AlertSensitivityThreshold: jsii.Number(123),
AnomalyDetectorArn: jsii.String("anomalyDetectorArn"),
// the properties below are optional
AlertDescription: jsii.String("alertDescription"),
AlertName: jsii.String("alertName"),
})
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html
func NewCfnAlert ¶
func NewCfnAlert(scope constructs.Construct, id *string, props *CfnAlertProps) CfnAlert
Create a new `AWS::LookoutMetrics::Alert`.
type CfnAlertProps ¶
type CfnAlertProps struct {
// Action that will be triggered when there is an alert.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html#cfn-lookoutmetrics-alert-action
//
Action interface{} `field:"required" json:"action" yaml:"action"`
// An integer from 0 to 100 specifying the alert sensitivity threshold.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html#cfn-lookoutmetrics-alert-alertsensitivitythreshold
//
AlertSensitivityThreshold *float64 `field:"required" json:"alertSensitivityThreshold" yaml:"alertSensitivityThreshold"`
// The ARN of the detector to which the alert is attached.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html#cfn-lookoutmetrics-alert-anomalydetectorarn
//
AnomalyDetectorArn *string `field:"required" json:"anomalyDetectorArn" yaml:"anomalyDetectorArn"`
// A description of the alert.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html#cfn-lookoutmetrics-alert-alertdescription
//
AlertDescription *string `field:"optional" json:"alertDescription" yaml:"alertDescription"`
// The name of the alert.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html#cfn-lookoutmetrics-alert-alertname
//
AlertName *string `field:"optional" json:"alertName" yaml:"alertName"`
}
Properties for defining a `CfnAlert`.
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"
cfnAlertProps := &CfnAlertProps{
Action: &ActionProperty{
LambdaConfiguration: &LambdaConfigurationProperty{
LambdaArn: jsii.String("lambdaArn"),
RoleArn: jsii.String("roleArn"),
},
SnsConfiguration: &SNSConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SnsTopicArn: jsii.String("snsTopicArn"),
},
},
AlertSensitivityThreshold: jsii.Number(123),
AnomalyDetectorArn: jsii.String("anomalyDetectorArn"),
// the properties below are optional
AlertDescription: jsii.String("alertDescription"),
AlertName: jsii.String("alertName"),
}
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-alert.html
type CfnAlert_ActionProperty ¶
type CfnAlert_ActionProperty struct {
// A configuration for an AWS Lambda channel.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-alert-action.html#cfn-lookoutmetrics-alert-action-lambdaconfiguration
//
LambdaConfiguration interface{} `field:"optional" json:"lambdaConfiguration" yaml:"lambdaConfiguration"`
// A configuration for an Amazon SNS channel.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-alert-action.html#cfn-lookoutmetrics-alert-action-snsconfiguration
//
SnsConfiguration interface{} `field:"optional" json:"snsConfiguration" yaml:"snsConfiguration"`
}
A configuration that specifies the action to perform when anomalies are detected.
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"
actionProperty := &ActionProperty{
LambdaConfiguration: &LambdaConfigurationProperty{
LambdaArn: jsii.String("lambdaArn"),
RoleArn: jsii.String("roleArn"),
},
SnsConfiguration: &SNSConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SnsTopicArn: jsii.String("snsTopicArn"),
},
}
type CfnAlert_LambdaConfigurationProperty ¶
type CfnAlert_LambdaConfigurationProperty struct {
// The ARN of the Lambda function.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-alert-lambdaconfiguration.html#cfn-lookoutmetrics-alert-lambdaconfiguration-lambdaarn
//
LambdaArn *string `field:"required" json:"lambdaArn" yaml:"lambdaArn"`
// The ARN of an IAM role that has permission to invoke the Lambda function.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-alert-lambdaconfiguration.html#cfn-lookoutmetrics-alert-lambdaconfiguration-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
}
Contains information about a Lambda 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"
lambdaConfigurationProperty := &LambdaConfigurationProperty{
LambdaArn: jsii.String("lambdaArn"),
RoleArn: jsii.String("roleArn"),
}
type CfnAlert_SNSConfigurationProperty ¶
type CfnAlert_SNSConfigurationProperty struct {
// The ARN of the IAM role that has access to the target SNS topic.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-alert-snsconfiguration.html#cfn-lookoutmetrics-alert-snsconfiguration-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
// The ARN of the target SNS topic.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-alert-snsconfiguration.html#cfn-lookoutmetrics-alert-snsconfiguration-snstopicarn
//
SnsTopicArn *string `field:"required" json:"snsTopicArn" yaml:"snsTopicArn"`
}
Contains information about the SNS topic to which you want to send your alerts and the IAM role that has access to that topic.
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"
sNSConfigurationProperty := &SNSConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SnsTopicArn: jsii.String("snsTopicArn"),
}
type CfnAnomalyDetector ¶
type CfnAnomalyDetector interface {
awscdk.CfnResource
awscdk.IInspectable
interfacesawslookoutmetrics.IAnomalyDetectorRef
// Contains information about the configuration of the anomaly detector.
AnomalyDetectorConfig() interface{}
SetAnomalyDetectorConfig(val interface{})
// A description of the detector.
AnomalyDetectorDescription() *string
SetAnomalyDetectorDescription(val *string)
// The name of the detector.
AnomalyDetectorName() *string
SetAnomalyDetectorName(val *string)
// A reference to a AnomalyDetector resource.
AnomalyDetectorRef() *interfacesawslookoutmetrics.AnomalyDetectorReference
// The Amazon Resource Name (ARN) of the detector.
//
// For example, `arn:aws:lookoutmetrics:us-east-2:123456789012:AnomalyDetector:my-detector`.
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
Env() *interfaces.ResourceEnvironment
// The ARN of the KMS key to use to encrypt your data.
KmsKeyArn() *string
SetKmsKeyArn(val *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 detector's dataset.
MetricSetList() interface{}
SetMetricSetList(val interface{})
// 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{})
}
> End of support notice: On Oct 9, 2025, AWS will end support for Amazon Lookout for Metrics.
After Oct 9, 2025, you will no longer be able to access the Amazon Lookout for Metrics console or Amazon Lookout for Metrics resources. For more information, see [Amazon Lookout for Metrics end of support](https://docs.aws.amazon.com//blogs/machine-learning/transitioning-off-amazon-lookout-for-metrics/) .
The `AWS::LookoutMetrics::AnomalyDetector` type creates an anomaly detector.
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"
cfnAnomalyDetector := awscdk.Aws_lookoutmetrics.NewCfnAnomalyDetector(this, jsii.String("MyCfnAnomalyDetector"), &CfnAnomalyDetectorProps{
AnomalyDetectorConfig: &AnomalyDetectorConfigProperty{
AnomalyDetectorFrequency: jsii.String("anomalyDetectorFrequency"),
},
MetricSetList: []interface{}{
&MetricSetProperty{
MetricList: []interface{}{
&MetricProperty{
AggregationFunction: jsii.String("aggregationFunction"),
MetricName: jsii.String("metricName"),
// the properties below are optional
Namespace: jsii.String("namespace"),
},
},
MetricSetName: jsii.String("metricSetName"),
MetricSource: &MetricSourceProperty{
AppFlowConfig: &AppFlowConfigProperty{
FlowName: jsii.String("flowName"),
RoleArn: jsii.String("roleArn"),
},
CloudwatchConfig: &CloudwatchConfigProperty{
RoleArn: jsii.String("roleArn"),
},
RdsSourceConfig: &RDSSourceConfigProperty{
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
RedshiftSourceConfig: &RedshiftSourceConfigProperty{
ClusterIdentifier: jsii.String("clusterIdentifier"),
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
S3SourceConfig: &S3SourceConfigProperty{
FileFormatDescriptor: &FileFormatDescriptorProperty{
CsvFormatDescriptor: &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
},
JsonFormatDescriptor: &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
HistoricalDataPathList: []*string{
jsii.String("historicalDataPathList"),
},
TemplatedPathList: []*string{
jsii.String("templatedPathList"),
},
},
},
// the properties below are optional
DimensionList: []*string{
jsii.String("dimensionList"),
},
MetricSetDescription: jsii.String("metricSetDescription"),
MetricSetFrequency: jsii.String("metricSetFrequency"),
Offset: jsii.Number(123),
TimestampColumn: &TimestampColumnProperty{
ColumnFormat: jsii.String("columnFormat"),
ColumnName: jsii.String("columnName"),
},
Timezone: jsii.String("timezone"),
},
},
// the properties below are optional
AnomalyDetectorDescription: jsii.String("anomalyDetectorDescription"),
AnomalyDetectorName: jsii.String("anomalyDetectorName"),
KmsKeyArn: jsii.String("kmsKeyArn"),
})
func NewCfnAnomalyDetector ¶
func NewCfnAnomalyDetector(scope constructs.Construct, id *string, props *CfnAnomalyDetectorProps) CfnAnomalyDetector
Create a new `AWS::LookoutMetrics::AnomalyDetector`.
type CfnAnomalyDetectorProps ¶
type CfnAnomalyDetectorProps struct {
// Contains information about the configuration of the anomaly detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-anomalydetector.html#cfn-lookoutmetrics-anomalydetector-anomalydetectorconfig
//
AnomalyDetectorConfig interface{} `field:"required" json:"anomalyDetectorConfig" yaml:"anomalyDetectorConfig"`
// The detector's dataset.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-anomalydetector.html#cfn-lookoutmetrics-anomalydetector-metricsetlist
//
MetricSetList interface{} `field:"required" json:"metricSetList" yaml:"metricSetList"`
// A description of the detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-anomalydetector.html#cfn-lookoutmetrics-anomalydetector-anomalydetectordescription
//
AnomalyDetectorDescription *string `field:"optional" json:"anomalyDetectorDescription" yaml:"anomalyDetectorDescription"`
// The name of the detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-anomalydetector.html#cfn-lookoutmetrics-anomalydetector-anomalydetectorname
//
AnomalyDetectorName *string `field:"optional" json:"anomalyDetectorName" yaml:"anomalyDetectorName"`
// The ARN of the KMS key to use to encrypt your data.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lookoutmetrics-anomalydetector.html#cfn-lookoutmetrics-anomalydetector-kmskeyarn
//
KmsKeyArn interface{} `field:"optional" json:"kmsKeyArn" yaml:"kmsKeyArn"`
}
Properties for defining a `CfnAnomalyDetector`.
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"
cfnAnomalyDetectorProps := &CfnAnomalyDetectorProps{
AnomalyDetectorConfig: &AnomalyDetectorConfigProperty{
AnomalyDetectorFrequency: jsii.String("anomalyDetectorFrequency"),
},
MetricSetList: []interface{}{
&MetricSetProperty{
MetricList: []interface{}{
&MetricProperty{
AggregationFunction: jsii.String("aggregationFunction"),
MetricName: jsii.String("metricName"),
// the properties below are optional
Namespace: jsii.String("namespace"),
},
},
MetricSetName: jsii.String("metricSetName"),
MetricSource: &MetricSourceProperty{
AppFlowConfig: &AppFlowConfigProperty{
FlowName: jsii.String("flowName"),
RoleArn: jsii.String("roleArn"),
},
CloudwatchConfig: &CloudwatchConfigProperty{
RoleArn: jsii.String("roleArn"),
},
RdsSourceConfig: &RDSSourceConfigProperty{
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
RedshiftSourceConfig: &RedshiftSourceConfigProperty{
ClusterIdentifier: jsii.String("clusterIdentifier"),
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
S3SourceConfig: &S3SourceConfigProperty{
FileFormatDescriptor: &FileFormatDescriptorProperty{
CsvFormatDescriptor: &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
},
JsonFormatDescriptor: &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
HistoricalDataPathList: []*string{
jsii.String("historicalDataPathList"),
},
TemplatedPathList: []*string{
jsii.String("templatedPathList"),
},
},
},
// the properties below are optional
DimensionList: []*string{
jsii.String("dimensionList"),
},
MetricSetDescription: jsii.String("metricSetDescription"),
MetricSetFrequency: jsii.String("metricSetFrequency"),
Offset: jsii.Number(123),
TimestampColumn: &TimestampColumnProperty{
ColumnFormat: jsii.String("columnFormat"),
ColumnName: jsii.String("columnName"),
},
Timezone: jsii.String("timezone"),
},
},
// the properties below are optional
AnomalyDetectorDescription: jsii.String("anomalyDetectorDescription"),
AnomalyDetectorName: jsii.String("anomalyDetectorName"),
KmsKeyArn: jsii.String("kmsKeyArn"),
}
type CfnAnomalyDetector_AnomalyDetectorConfigProperty ¶
type CfnAnomalyDetector_AnomalyDetectorConfigProperty struct {
// The frequency at which the detector analyzes its source data.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-anomalydetectorconfig.html#cfn-lookoutmetrics-anomalydetector-anomalydetectorconfig-anomalydetectorfrequency
//
AnomalyDetectorFrequency *string `field:"required" json:"anomalyDetectorFrequency" yaml:"anomalyDetectorFrequency"`
}
Contains information about a detector's 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"
anomalyDetectorConfigProperty := &AnomalyDetectorConfigProperty{
AnomalyDetectorFrequency: jsii.String("anomalyDetectorFrequency"),
}
type CfnAnomalyDetector_AppFlowConfigProperty ¶
type CfnAnomalyDetector_AppFlowConfigProperty struct {
// name of the flow.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-appflowconfig.html#cfn-lookoutmetrics-anomalydetector-appflowconfig-flowname
//
FlowName *string `field:"required" json:"flowName" yaml:"flowName"`
// An IAM role that gives Amazon Lookout for Metrics permission to access the flow.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-appflowconfig.html#cfn-lookoutmetrics-anomalydetector-appflowconfig-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
}
Details about an Amazon AppFlow flow datasource.
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"
appFlowConfigProperty := &AppFlowConfigProperty{
FlowName: jsii.String("flowName"),
RoleArn: jsii.String("roleArn"),
}
type CfnAnomalyDetector_CloudwatchConfigProperty ¶
type CfnAnomalyDetector_CloudwatchConfigProperty struct {
// An IAM role that gives Amazon Lookout for Metrics permission to access data in Amazon CloudWatch.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-cloudwatchconfig.html#cfn-lookoutmetrics-anomalydetector-cloudwatchconfig-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
}
Details about an Amazon CloudWatch datasource.
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"
cloudwatchConfigProperty := &CloudwatchConfigProperty{
RoleArn: jsii.String("roleArn"),
}
type CfnAnomalyDetector_CsvFormatDescriptorProperty ¶
type CfnAnomalyDetector_CsvFormatDescriptorProperty struct {
// The character set in which the source CSV file is written.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-csvformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-csvformatdescriptor-charset
//
Charset *string `field:"optional" json:"charset" yaml:"charset"`
// Whether or not the source CSV file contains a header.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-csvformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-csvformatdescriptor-containsheader
//
ContainsHeader interface{} `field:"optional" json:"containsHeader" yaml:"containsHeader"`
// The character used to delimit the source CSV file.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-csvformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-csvformatdescriptor-delimiter
//
Delimiter *string `field:"optional" json:"delimiter" yaml:"delimiter"`
// The level of compression of the source CSV file.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-csvformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-csvformatdescriptor-filecompression
//
FileCompression *string `field:"optional" json:"fileCompression" yaml:"fileCompression"`
// A list of the source CSV file's headers, if any.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-csvformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-csvformatdescriptor-headerlist
//
HeaderList *[]*string `field:"optional" json:"headerList" yaml:"headerList"`
// The character used as a quote character.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-csvformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-csvformatdescriptor-quotesymbol
//
QuoteSymbol *string `field:"optional" json:"quoteSymbol" yaml:"quoteSymbol"`
}
Contains information about how a source CSV data file should be analyzed.
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"
csvFormatDescriptorProperty := &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
}
type CfnAnomalyDetector_FileFormatDescriptorProperty ¶
type CfnAnomalyDetector_FileFormatDescriptorProperty struct {
// Contains information about how a source CSV data file should be analyzed.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-fileformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-fileformatdescriptor-csvformatdescriptor
//
CsvFormatDescriptor interface{} `field:"optional" json:"csvFormatDescriptor" yaml:"csvFormatDescriptor"`
// Contains information about how a source JSON data file should be analyzed.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-fileformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-fileformatdescriptor-jsonformatdescriptor
//
JsonFormatDescriptor interface{} `field:"optional" json:"jsonFormatDescriptor" yaml:"jsonFormatDescriptor"`
}
Contains information about a source file's formatting.
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"
fileFormatDescriptorProperty := &FileFormatDescriptorProperty{
CsvFormatDescriptor: &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
},
JsonFormatDescriptor: &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
},
}
type CfnAnomalyDetector_JsonFormatDescriptorProperty ¶
type CfnAnomalyDetector_JsonFormatDescriptorProperty struct {
// The character set in which the source JSON file is written.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-jsonformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-jsonformatdescriptor-charset
//
Charset *string `field:"optional" json:"charset" yaml:"charset"`
// The level of compression of the source CSV file.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-jsonformatdescriptor.html#cfn-lookoutmetrics-anomalydetector-jsonformatdescriptor-filecompression
//
FileCompression *string `field:"optional" json:"fileCompression" yaml:"fileCompression"`
}
Contains information about how a source JSON data file should be analyzed.
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"
jsonFormatDescriptorProperty := &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
}
type CfnAnomalyDetector_MetricProperty ¶
type CfnAnomalyDetector_MetricProperty struct {
// The function with which the metric is calculated.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metric.html#cfn-lookoutmetrics-anomalydetector-metric-aggregationfunction
//
AggregationFunction *string `field:"required" json:"aggregationFunction" yaml:"aggregationFunction"`
// The name of the metric.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metric.html#cfn-lookoutmetrics-anomalydetector-metric-metricname
//
MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
// The namespace for the metric.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metric.html#cfn-lookoutmetrics-anomalydetector-metric-namespace
//
Namespace *string `field:"optional" json:"namespace" yaml:"namespace"`
}
A calculation made by contrasting a measure and a dimension from your source data.
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"
metricProperty := &MetricProperty{
AggregationFunction: jsii.String("aggregationFunction"),
MetricName: jsii.String("metricName"),
// the properties below are optional
Namespace: jsii.String("namespace"),
}
type CfnAnomalyDetector_MetricSetProperty ¶
type CfnAnomalyDetector_MetricSetProperty struct {
// A list of metrics that the dataset will contain.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-metriclist
//
MetricList interface{} `field:"required" json:"metricList" yaml:"metricList"`
// The name of the dataset.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-metricsetname
//
MetricSetName *string `field:"required" json:"metricSetName" yaml:"metricSetName"`
// Contains information about how the source data should be interpreted.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-metricsource
//
MetricSource interface{} `field:"required" json:"metricSource" yaml:"metricSource"`
// A list of the fields you want to treat as dimensions.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-dimensionlist
//
DimensionList *[]*string `field:"optional" json:"dimensionList" yaml:"dimensionList"`
// A description of the dataset you are creating.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-metricsetdescription
//
MetricSetDescription *string `field:"optional" json:"metricSetDescription" yaml:"metricSetDescription"`
// The frequency with which the source data will be analyzed for anomalies.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-metricsetfrequency
//
MetricSetFrequency *string `field:"optional" json:"metricSetFrequency" yaml:"metricSetFrequency"`
// After an interval ends, the amount of seconds that the detector waits before importing data.
//
// Offset is only supported for S3, Redshift, Athena and datasources.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-offset
//
Offset *float64 `field:"optional" json:"offset" yaml:"offset"`
// Contains information about the column used for tracking time in your source data.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-timestampcolumn
//
TimestampColumn interface{} `field:"optional" json:"timestampColumn" yaml:"timestampColumn"`
// The time zone in which your source data was recorded.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricset.html#cfn-lookoutmetrics-anomalydetector-metricset-timezone
//
Timezone *string `field:"optional" json:"timezone" yaml:"timezone"`
}
Contains information about a dataset.
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"
metricSetProperty := &MetricSetProperty{
MetricList: []interface{}{
&MetricProperty{
AggregationFunction: jsii.String("aggregationFunction"),
MetricName: jsii.String("metricName"),
// the properties below are optional
Namespace: jsii.String("namespace"),
},
},
MetricSetName: jsii.String("metricSetName"),
MetricSource: &MetricSourceProperty{
AppFlowConfig: &AppFlowConfigProperty{
FlowName: jsii.String("flowName"),
RoleArn: jsii.String("roleArn"),
},
CloudwatchConfig: &CloudwatchConfigProperty{
RoleArn: jsii.String("roleArn"),
},
RdsSourceConfig: &RDSSourceConfigProperty{
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
RedshiftSourceConfig: &RedshiftSourceConfigProperty{
ClusterIdentifier: jsii.String("clusterIdentifier"),
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
S3SourceConfig: &S3SourceConfigProperty{
FileFormatDescriptor: &FileFormatDescriptorProperty{
CsvFormatDescriptor: &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
},
JsonFormatDescriptor: &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
HistoricalDataPathList: []*string{
jsii.String("historicalDataPathList"),
},
TemplatedPathList: []*string{
jsii.String("templatedPathList"),
},
},
},
// the properties below are optional
DimensionList: []*string{
jsii.String("dimensionList"),
},
MetricSetDescription: jsii.String("metricSetDescription"),
MetricSetFrequency: jsii.String("metricSetFrequency"),
Offset: jsii.Number(123),
TimestampColumn: &TimestampColumnProperty{
ColumnFormat: jsii.String("columnFormat"),
ColumnName: jsii.String("columnName"),
},
Timezone: jsii.String("timezone"),
}
type CfnAnomalyDetector_MetricSourceProperty ¶
type CfnAnomalyDetector_MetricSourceProperty struct {
// Details about an AppFlow datasource.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricsource.html#cfn-lookoutmetrics-anomalydetector-metricsource-appflowconfig
//
AppFlowConfig interface{} `field:"optional" json:"appFlowConfig" yaml:"appFlowConfig"`
// Details about an Amazon CloudWatch monitoring datasource.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricsource.html#cfn-lookoutmetrics-anomalydetector-metricsource-cloudwatchconfig
//
CloudwatchConfig interface{} `field:"optional" json:"cloudwatchConfig" yaml:"cloudwatchConfig"`
// Details about an Amazon Relational Database Service (RDS) datasource.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricsource.html#cfn-lookoutmetrics-anomalydetector-metricsource-rdssourceconfig
//
RdsSourceConfig interface{} `field:"optional" json:"rdsSourceConfig" yaml:"rdsSourceConfig"`
// Details about an Amazon Redshift database datasource.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricsource.html#cfn-lookoutmetrics-anomalydetector-metricsource-redshiftsourceconfig
//
RedshiftSourceConfig interface{} `field:"optional" json:"redshiftSourceConfig" yaml:"redshiftSourceConfig"`
// Contains information about the configuration of the S3 bucket that contains source files.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-metricsource.html#cfn-lookoutmetrics-anomalydetector-metricsource-s3sourceconfig
//
S3SourceConfig interface{} `field:"optional" json:"s3SourceConfig" yaml:"s3SourceConfig"`
}
Contains information about how the source data should be interpreted.
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"
metricSourceProperty := &MetricSourceProperty{
AppFlowConfig: &AppFlowConfigProperty{
FlowName: jsii.String("flowName"),
RoleArn: jsii.String("roleArn"),
},
CloudwatchConfig: &CloudwatchConfigProperty{
RoleArn: jsii.String("roleArn"),
},
RdsSourceConfig: &RDSSourceConfigProperty{
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
RedshiftSourceConfig: &RedshiftSourceConfigProperty{
ClusterIdentifier: jsii.String("clusterIdentifier"),
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
},
S3SourceConfig: &S3SourceConfigProperty{
FileFormatDescriptor: &FileFormatDescriptorProperty{
CsvFormatDescriptor: &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
},
JsonFormatDescriptor: &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
HistoricalDataPathList: []*string{
jsii.String("historicalDataPathList"),
},
TemplatedPathList: []*string{
jsii.String("templatedPathList"),
},
},
}
type CfnAnomalyDetector_RDSSourceConfigProperty ¶
type CfnAnomalyDetector_RDSSourceConfigProperty struct {
// The host name of the database.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-databasehost
//
DatabaseHost *string `field:"required" json:"databaseHost" yaml:"databaseHost"`
// The name of the RDS database.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-databasename
//
DatabaseName *string `field:"required" json:"databaseName" yaml:"databaseName"`
// The port number where the database can be accessed.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-databaseport
//
DatabasePort *float64 `field:"required" json:"databasePort" yaml:"databasePort"`
// A string identifying the database instance.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-dbinstanceidentifier
//
DbInstanceIdentifier *string `field:"required" json:"dbInstanceIdentifier" yaml:"dbInstanceIdentifier"`
// The Amazon Resource Name (ARN) of the role.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
// The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-secretmanagerarn
//
SecretManagerArn *string `field:"required" json:"secretManagerArn" yaml:"secretManagerArn"`
// The name of the table in the database.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-tablename
//
TableName *string `field:"required" json:"tableName" yaml:"tableName"`
// An object containing information about the Amazon Virtual Private Cloud (VPC) configuration.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-rdssourceconfig.html#cfn-lookoutmetrics-anomalydetector-rdssourceconfig-vpcconfiguration
//
VpcConfiguration interface{} `field:"required" json:"vpcConfiguration" yaml:"vpcConfiguration"`
}
Contains information about the Amazon Relational Database Service (RDS) 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"
rDSSourceConfigProperty := &RDSSourceConfigProperty{
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
DbInstanceIdentifier: jsii.String("dbInstanceIdentifier"),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
}
type CfnAnomalyDetector_RedshiftSourceConfigProperty ¶
type CfnAnomalyDetector_RedshiftSourceConfigProperty struct {
// A string identifying the Redshift cluster.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-clusteridentifier
//
ClusterIdentifier *string `field:"required" json:"clusterIdentifier" yaml:"clusterIdentifier"`
// The name of the database host.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-databasehost
//
DatabaseHost *string `field:"required" json:"databaseHost" yaml:"databaseHost"`
// The Redshift database name.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-databasename
//
DatabaseName *string `field:"required" json:"databaseName" yaml:"databaseName"`
// The port number where the database can be accessed.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-databaseport
//
DatabasePort *float64 `field:"required" json:"databasePort" yaml:"databasePort"`
// The Amazon Resource Name (ARN) of the role providing access to the database.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
// The Amazon Resource Name (ARN) of the AWS Secrets Manager role.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-secretmanagerarn
//
SecretManagerArn *string `field:"required" json:"secretManagerArn" yaml:"secretManagerArn"`
// The table name of the Redshift database.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-tablename
//
TableName *string `field:"required" json:"tableName" yaml:"tableName"`
// Contains information about the Amazon Virtual Private Cloud (VPC) configuration.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-redshiftsourceconfig.html#cfn-lookoutmetrics-anomalydetector-redshiftsourceconfig-vpcconfiguration
//
VpcConfiguration interface{} `field:"required" json:"vpcConfiguration" yaml:"vpcConfiguration"`
}
Provides information about the Amazon Redshift database 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"
redshiftSourceConfigProperty := &RedshiftSourceConfigProperty{
ClusterIdentifier: jsii.String("clusterIdentifier"),
DatabaseHost: jsii.String("databaseHost"),
DatabaseName: jsii.String("databaseName"),
DatabasePort: jsii.Number(123),
RoleArn: jsii.String("roleArn"),
SecretManagerArn: jsii.String("secretManagerArn"),
TableName: jsii.String("tableName"),
VpcConfiguration: &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
},
}
type CfnAnomalyDetector_S3SourceConfigProperty ¶
type CfnAnomalyDetector_S3SourceConfigProperty struct {
// Contains information about a source file's formatting.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-s3sourceconfig.html#cfn-lookoutmetrics-anomalydetector-s3sourceconfig-fileformatdescriptor
//
FileFormatDescriptor interface{} `field:"required" json:"fileFormatDescriptor" yaml:"fileFormatDescriptor"`
// The ARN of an IAM role that has read and write access permissions to the source S3 bucket.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-s3sourceconfig.html#cfn-lookoutmetrics-anomalydetector-s3sourceconfig-rolearn
//
RoleArn *string `field:"required" json:"roleArn" yaml:"roleArn"`
// A list of paths to the historical data files.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-s3sourceconfig.html#cfn-lookoutmetrics-anomalydetector-s3sourceconfig-historicaldatapathlist
//
HistoricalDataPathList *[]*string `field:"optional" json:"historicalDataPathList" yaml:"historicalDataPathList"`
// A list of templated paths to the source files.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-s3sourceconfig.html#cfn-lookoutmetrics-anomalydetector-s3sourceconfig-templatedpathlist
//
TemplatedPathList *[]*string `field:"optional" json:"templatedPathList" yaml:"templatedPathList"`
}
Contains information about the configuration of the S3 bucket that contains source files.
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"
s3SourceConfigProperty := &S3SourceConfigProperty{
FileFormatDescriptor: &FileFormatDescriptorProperty{
CsvFormatDescriptor: &CsvFormatDescriptorProperty{
Charset: jsii.String("charset"),
ContainsHeader: jsii.Boolean(false),
Delimiter: jsii.String("delimiter"),
FileCompression: jsii.String("fileCompression"),
HeaderList: []*string{
jsii.String("headerList"),
},
QuoteSymbol: jsii.String("quoteSymbol"),
},
JsonFormatDescriptor: &JsonFormatDescriptorProperty{
Charset: jsii.String("charset"),
FileCompression: jsii.String("fileCompression"),
},
},
RoleArn: jsii.String("roleArn"),
// the properties below are optional
HistoricalDataPathList: []*string{
jsii.String("historicalDataPathList"),
},
TemplatedPathList: []*string{
jsii.String("templatedPathList"),
},
}
type CfnAnomalyDetector_TimestampColumnProperty ¶
type CfnAnomalyDetector_TimestampColumnProperty struct {
// The format of the timestamp column.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-timestampcolumn.html#cfn-lookoutmetrics-anomalydetector-timestampcolumn-columnformat
//
ColumnFormat *string `field:"optional" json:"columnFormat" yaml:"columnFormat"`
// The name of the timestamp column.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-timestampcolumn.html#cfn-lookoutmetrics-anomalydetector-timestampcolumn-columnname
//
ColumnName *string `field:"optional" json:"columnName" yaml:"columnName"`
}
Contains information about the column used to track time in a source data file.
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"
timestampColumnProperty := &TimestampColumnProperty{
ColumnFormat: jsii.String("columnFormat"),
ColumnName: jsii.String("columnName"),
}
type CfnAnomalyDetector_VpcConfigurationProperty ¶
type CfnAnomalyDetector_VpcConfigurationProperty struct {
// An array of strings containing the list of security groups.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-vpcconfiguration.html#cfn-lookoutmetrics-anomalydetector-vpcconfiguration-securitygroupidlist
//
SecurityGroupIdList *[]*string `field:"required" json:"securityGroupIdList" yaml:"securityGroupIdList"`
// An array of strings containing the Amazon VPC subnet IDs (e.g., `subnet-0bb1c79de3EXAMPLE` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutmetrics-anomalydetector-vpcconfiguration.html#cfn-lookoutmetrics-anomalydetector-vpcconfiguration-subnetidlist
//
SubnetIdList *[]*string `field:"required" json:"subnetIdList" yaml:"subnetIdList"`
}
Contains configuration information about the Amazon Virtual Private Cloud (VPC).
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"
vpcConfigurationProperty := &VpcConfigurationProperty{
SecurityGroupIdList: []*string{
jsii.String("securityGroupIdList"),
},
SubnetIdList: []*string{
jsii.String("subnetIdList"),
},
}
Source Files
¶
- CfnAlert.go
- CfnAlertProps.go
- CfnAlert_ActionProperty.go
- CfnAlert_LambdaConfigurationProperty.go
- CfnAlert_SNSConfigurationProperty.go
- CfnAlert__checks.go
- CfnAnomalyDetector.go
- CfnAnomalyDetectorProps.go
- CfnAnomalyDetector_AnomalyDetectorConfigProperty.go
- CfnAnomalyDetector_AppFlowConfigProperty.go
- CfnAnomalyDetector_CloudwatchConfigProperty.go
- CfnAnomalyDetector_CsvFormatDescriptorProperty.go
- CfnAnomalyDetector_FileFormatDescriptorProperty.go
- CfnAnomalyDetector_JsonFormatDescriptorProperty.go
- CfnAnomalyDetector_MetricProperty.go
- CfnAnomalyDetector_MetricSetProperty.go
- CfnAnomalyDetector_MetricSourceProperty.go
- CfnAnomalyDetector_RDSSourceConfigProperty.go
- CfnAnomalyDetector_RedshiftSourceConfigProperty.go
- CfnAnomalyDetector_S3SourceConfigProperty.go
- CfnAnomalyDetector_TimestampColumnProperty.go
- CfnAnomalyDetector_VpcConfigurationProperty.go
- CfnAnomalyDetector__checks.go
- main.go