# ServiceNowServiceDetailsProperty

ServiceNow service configuration.

- Source: Generated at build time
- Type last changed: v2.241.0 · 2 Mar 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_devopsagent as devopsagent } from 'aws-cdk-lib';

declare const exchangeParameters: any;
const serviceNowServiceDetailsProperty: devopsagent.CfnService.ServiceNowServiceDetailsProperty = {
  instanceUrl: 'instanceUrl',

  // the properties below are optional
  authorizationConfig: {
    oAuthClientCredentials: {
      clientId: 'clientId',
      clientSecret: 'clientSecret',

      // the properties below are optional
      clientName: 'clientName',
      exchangeParameters: exchangeParameters,
    },
  },
};
```

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_devopsagent as devopsagent

# exchange_parameters: Any

service_now_service_details_property = devopsagent.CfnService.ServiceNowServiceDetailsProperty(
    instance_url="instanceUrl",

    # the properties below are optional
    authorization_config=devopsagent.CfnService.ServiceNowAuthorizationConfigProperty(
        o_auth_client_credentials=devopsagent.CfnService.OAuthClientDetailsProperty(
            client_id="clientId",
            client_secret="clientSecret",

            # the properties below are optional
            client_name="clientName",
            exchange_parameters=exchange_parameters
        )
    )
)
```

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.devopsagent.*;

Object exchangeParameters;

ServiceNowServiceDetailsProperty serviceNowServiceDetailsProperty = ServiceNowServiceDetailsProperty.builder()
        .instanceUrl("instanceUrl")

        // the properties below are optional
        .authorizationConfig(ServiceNowAuthorizationConfigProperty.builder()
                .oAuthClientCredentials(OAuthClientDetailsProperty.builder()
                        .clientId("clientId")
                        .clientSecret("clientSecret")

                        // the properties below are optional
                        .clientName("clientName")
                        .exchangeParameters(exchangeParameters)
                        .build())
                .build())
        .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.DevOpsAgent;

var exchangeParameters;

var serviceNowServiceDetailsProperty = new ServiceNowServiceDetailsProperty {
    InstanceUrl = "instanceUrl",

    // the properties below are optional
    AuthorizationConfig = new ServiceNowAuthorizationConfigProperty {
        OAuthClientCredentials = new OAuthClientDetailsProperty {
            ClientId = "clientId",
            ClientSecret = "clientSecret",

            // the properties below are optional
            ClientName = "clientName",
            ExchangeParameters = exchangeParameters
        }
    }
};
```

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"

var exchangeParameters interface{}

serviceNowServiceDetailsProperty := &ServiceNowServiceDetailsProperty{
	InstanceUrl: jsii.String("instanceUrl"),

	// the properties below are optional
	AuthorizationConfig: &ServiceNowAuthorizationConfigProperty{
		OAuthClientCredentials: &OAuthClientDetailsProperty{
			ClientId: jsii.String("clientId"),
			ClientSecret: jsii.String("clientSecret"),

			// the properties below are optional
			ClientName: jsii.String("clientName"),
			ExchangeParameters: exchangeParameters,
		},
	},
}
```

## Properties

- `authorizationConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnService.ServiceNowAuthorizationConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnService.ServiceNowAuthorizationConfigProperty.html) — ServiceNow OAuth authorization configuration.

- `instanceUrl`: string (required) — ServiceNow instance URL.
