Skip to content
v2.277.0

ServiceReference Struct ​

A reference to a Service resource.

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 interfaces_refactorspaces } from 'aws-cdk-lib/interfaces';
const serviceReference: interfaces_refactorspaces.ServiceReference = {
  applicationIdentifier: 'applicationIdentifier',
  environmentIdentifier: 'environmentIdentifier',
  serviceArn: 'serviceArn',
  serviceIdentifier: 'serviceIdentifier',
};
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
// 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();
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"
};
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 ​

applicationIdentifierstringapplication_identifierstrapplicationIdentifierStringApplicationIdentifierstringApplicationIdentifier*string required #
The ApplicationIdentifier of the Service resource.
environmentIdentifierstringenvironment_identifierstrenvironmentIdentifierStringEnvironmentIdentifierstringEnvironmentIdentifier*string required #
The EnvironmentIdentifier of the Service resource.
serviceArnstringservice_arnstrserviceArnStringServiceArnstringServiceArn*string required #
The ARN of the Service resource.
serviceIdentifierstringservice_identifierstrserviceIdentifierStringServiceIdentifierstringServiceIdentifier*string required #
The ServiceIdentifier of the Service resource.