# ServicePrincipalNameReference

Struct · External

A reference to a ServicePrincipalName 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_pcaconnectorad as interfaces_pcaconnectorad } from 'aws-cdk-lib/interfaces';
const servicePrincipalNameReference: interfaces_pcaconnectorad.ServicePrincipalNameReference = {
  connectorArn: 'connectorArn',
  directoryRegistrationArn: 'directoryRegistrationArn',
};
```

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_pcaconnectorad as interfaces_pcaconnectorad

service_principal_name_reference = interfaces_pcaconnectorad.ServicePrincipalNameReference(
    connector_arn="connectorArn",
    directory_registration_arn="directoryRegistrationArn"
)
```

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

ServicePrincipalNameReference servicePrincipalNameReference = ServicePrincipalNameReference.builder()
        .connectorArn("connectorArn")
        .directoryRegistrationArn("directoryRegistrationArn")
        .build();
```

C#:

```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.PCAConnectorAD;

var servicePrincipalNameReference = new ServicePrincipalNameReference {
    ConnectorArn = "connectorArn",
    DirectoryRegistrationArn = "directoryRegistrationArn"
};
```

Go:

```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"

servicePrincipalNameReference := &ServicePrincipalNameReference{
	ConnectorArn: jsii.String("connectorArn"),
	DirectoryRegistrationArn: jsii.String("directoryRegistrationArn"),
}
```

## Properties

- `connectorArn`: string (required) — The ConnectorArn of the ServicePrincipalName resource.

- `directoryRegistrationArn`: string (required) — The DirectoryRegistrationArn of the ServicePrincipalName resource.
