Skip to content
v2.278.0

ServicePrincipalNameReference ​

Struct External

A reference to a ServicePrincipalName resource.

Example ​

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
# 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
// 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();
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
// 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 ​

connectorArnstringconnector_arnstrconnectorArnStringConnectorArnstringConnectorArn*string required #
The ConnectorArn of the ServicePrincipalName resource.
directoryRegistrationArnstringdirectory_registration_arnstrdirectoryRegistrationArnStringDirectoryRegistrationArnstringDirectoryRegistrationArn*string required #
The DirectoryRegistrationArn of the ServicePrincipalName resource.