# CfnServiceProps

Properties for defining a `CfnService`.

Extends: CfnServiceProps
Used as props by: CfnService

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_refactorspaces as refactorspaces } from 'aws-cdk-lib';
const cfnServiceProps: refactorspaces.CfnServiceProps = {
  applicationIdentifier: 'applicationIdentifier',
  endpointType: 'endpointType',
  environmentIdentifier: 'environmentIdentifier',
  name: 'name',

  // the properties below are optional
  description: 'description',
  lambdaEndpoint: {
    arn: 'arn',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  urlEndpoint: {
    url: 'url',

    // the properties below are optional
    healthUrl: 'healthUrl',
  },
  vpcId: 'vpcId',
};
```

## Properties

- `applicationIdentifier`: string | [IApplicationRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_refactorspaces.IApplicationRef.html) (required) — The unique identifier of the application.

- `description`: string — A description of the service.

- `endpointType`: string (required) — The endpoint type of the service.

- `environmentIdentifier`: string | [IEnvironmentRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_refactorspaces.IEnvironmentRef.html) (required) — The unique identifier of the environment.

- `lambdaEndpoint`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.LambdaEndpointInputProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnService.LambdaEndpointInputProperty.html) — A summary of the configuration for the AWS Lambda endpoint type.

- `name`: string (required) — The name of the service.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags assigned to the service.

- `urlEndpoint`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.UrlEndpointInputProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_refactorspaces.CfnService.UrlEndpointInputProperty.html) — The summary of the configuration for the URL endpoint type.

- `vpcId`: string | [IVPCRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IVPCRef.html) — The ID of the virtual private cloud (VPC).
