Skip to content
v2.278.0

NewRelicServiceDetailsProperty Struct ​

New Relic service configuration.

Example ​

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';
const newRelicServiceDetailsProperty: devopsagent.CfnService.NewRelicServiceDetailsProperty = {
  authorizationConfig: {
    apiKey: {
      accountId: 'accountId',
      apiKey: 'apiKey',
      region: 'region',

      // the properties below are optional
      alertPolicyIds: ['alertPolicyIds'],
      applicationIds: ['applicationIds'],
      entityGuids: ['entityGuids'],
    },
  },
};
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

new_relic_service_details_property = devopsagent.CfnService.NewRelicServiceDetailsProperty(
    authorization_config=devopsagent.CfnService.NewRelicAuthorizationConfigProperty(
        api_key=devopsagent.CfnService.NewRelicApiKeyConfigProperty(
            account_id="accountId",
            api_key="apiKey",
            region="region",

            # the properties below are optional
            alert_policy_ids=["alertPolicyIds"],
            application_ids=["applicationIds"],
            entity_guids=["entityGuids"]
        )
    )
)
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.*;

NewRelicServiceDetailsProperty newRelicServiceDetailsProperty = NewRelicServiceDetailsProperty.builder()
        .authorizationConfig(NewRelicAuthorizationConfigProperty.builder()
                .apiKey(NewRelicApiKeyConfigProperty.builder()
                        .accountId("accountId")
                        .apiKey("apiKey")
                        .region("region")

                        // the properties below are optional
                        .alertPolicyIds(List.of("alertPolicyIds"))
                        .applicationIds(List.of("applicationIds"))
                        .entityGuids(List.of("entityGuids"))
                        .build())
                .build())
        .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.AWS.DevOpsAgent;

var newRelicServiceDetailsProperty = new NewRelicServiceDetailsProperty {
    AuthorizationConfig = new NewRelicAuthorizationConfigProperty {
        ApiKey = new NewRelicApiKeyConfigProperty {
            AccountId = "accountId",
            ApiKey = "apiKey",
            Region = "region",

            // the properties below are optional
            AlertPolicyIds = new [] { "alertPolicyIds" },
            ApplicationIds = new [] { "applicationIds" },
            EntityGuids = new [] { "entityGuids" }
        }
    }
};
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"

newRelicServiceDetailsProperty := &NewRelicServiceDetailsProperty{
	AuthorizationConfig: &NewRelicAuthorizationConfigProperty{
		ApiKey: &NewRelicApiKeyConfigProperty{
			AccountId: jsii.String("accountId"),
			ApiKey: jsii.String("apiKey"),
			Region: jsii.String("region"),

			// the properties below are optional
			AlertPolicyIds: []*string{
				jsii.String("alertPolicyIds"),
			},
			ApplicationIds: []*string{
				jsii.String("applicationIds"),
			},
			EntityGuids: []*string{
				jsii.String("entityGuids"),
			},
		},
	},
}

Properties ​

authorizationConfigIResolvable | CfnService.NewRelicAuthorizationConfigPropertyauthorization_configtyping.Union[IResolvable, NewRelicAuthorizationConfigProperty]authorizationConfigIResolvableAuthorizationConfigIResolvableAuthorizationConfiginterface{} required #
New Relic authorization configuration.