# DependencyConfigProperty

Identifies the dependency using the `DependencyKeyAttributes` and `DependencyOperationName` .

- Source: Generated at build time
- Type last changed: v2.190.0 · 17 Apr 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationsignals as applicationsignals } from 'aws-cdk-lib';
const dependencyConfigProperty: applicationsignals.CfnServiceLevelObjective.DependencyConfigProperty = {
  dependencyKeyAttributes: {
    dependencyKeyAttributesKey: 'dependencyKeyAttributes',
  },
  dependencyOperationName: 'dependencyOperationName',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_applicationsignals as applicationsignals

dependency_config_property = applicationsignals.CfnServiceLevelObjective.DependencyConfigProperty(
    dependency_key_attributes={
        "dependency_key_attributes_key": "dependencyKeyAttributes"
    },
    dependency_operation_name="dependencyOperationName"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationsignals.*;

DependencyConfigProperty dependencyConfigProperty = DependencyConfigProperty.builder()
        .dependencyKeyAttributes(Map.of(
                "dependencyKeyAttributesKey", "dependencyKeyAttributes"))
        .dependencyOperationName("dependencyOperationName")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationSignals;

var dependencyConfigProperty = new DependencyConfigProperty {
    DependencyKeyAttributes = new Dictionary<string, string> {
        { "dependencyKeyAttributesKey", "dependencyKeyAttributes" }
    },
    DependencyOperationName = "dependencyOperationName"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"

dependencyConfigProperty := &DependencyConfigProperty{
	DependencyKeyAttributes: map[string]*string{
		"dependencyKeyAttributesKey": jsii.String("dependencyKeyAttributes"),
	},
	DependencyOperationName: jsii.String("dependencyOperationName"),
}
```

## Properties

- `dependencyKeyAttributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } (required) — If this SLO is related to a metric collected by Application Signals, you must use this field to specify which dependency the SLO metric is related to.

  - `Type` designates the type of object this is.
  - `ResourceType` specifies the type of the resource. This field is used only when the value of the `Type` field is `Resource` or `AWS::Resource` .
  - `Name` specifies the name of the object. This is used only if the value of the `Type` field is `Service` , `RemoteService` , or `AWS::Service` .
  - `Identifier` identifies the resource objects of this resource. This is used only if the value of the `Type` field is `Resource` or `AWS::Resource` .
  - `Environment` specifies the location where this object is hosted, or what it belongs to.

- `dependencyOperationName`: string (required) — When the SLO monitors a specific operation of the dependency, this field specifies the name of that operation in the dependency.
