# ServiceReference

A reference to a Service resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 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_refactorspaces as interfaces_refactorspaces } from 'aws-cdk-lib/interfaces';
const serviceReference: interfaces_refactorspaces.ServiceReference = {
  applicationIdentifier: 'applicationIdentifier',
  environmentIdentifier: 'environmentIdentifier',
  serviceArn: 'serviceArn',
  serviceIdentifier: 'serviceIdentifier',
};
```

Python:

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

service_reference = interfaces_refactorspaces.ServiceReference(
    application_identifier="applicationIdentifier",
    environment_identifier="environmentIdentifier",
    service_arn="serviceArn",
    service_identifier="serviceIdentifier"
)
```

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.interfaces.refactorspaces.*;

ServiceReference serviceReference = ServiceReference.builder()
        .applicationIdentifier("applicationIdentifier")
        .environmentIdentifier("environmentIdentifier")
        .serviceArn("serviceArn")
        .serviceIdentifier("serviceIdentifier")
        .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.Interfaces.RefactorSpaces;

var serviceReference = new ServiceReference {
    ApplicationIdentifier = "applicationIdentifier",
    EnvironmentIdentifier = "environmentIdentifier",
    ServiceArn = "serviceArn",
    ServiceIdentifier = "serviceIdentifier"
};
```

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"

serviceReference := &ServiceReference{
	ApplicationIdentifier: jsii.String("applicationIdentifier"),
	EnvironmentIdentifier: jsii.String("environmentIdentifier"),
	ServiceArn: jsii.String("serviceArn"),
	ServiceIdentifier: jsii.String("serviceIdentifier"),
}
```

## Properties

- `applicationIdentifier`: string (required) — The ApplicationIdentifier of the Service resource.

- `environmentIdentifier`: string (required) — The EnvironmentIdentifier of the Service resource.

- `serviceArn`: string (required) — The ARN of the Service resource.

- `serviceIdentifier`: string (required) — The ServiceIdentifier of the Service resource.
