NewRelicAuthorizationConfigProperty Struct
New Relic authorization configuration.
| Source | |
|---|---|
| Type last changed |
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 newRelicAuthorizationConfigProperty: devopsagent.CfnService.NewRelicAuthorizationConfigProperty = {
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_authorization_config_property = 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.*;
NewRelicAuthorizationConfigProperty newRelicAuthorizationConfigProperty = 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();
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 newRelicAuthorizationConfigProperty = 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"
newRelicAuthorizationConfigProperty := &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
apiKeyIResolvable | CfnService.api_keytyping.Union[IResolvable, NewRelicApiKeyConfigProperty]apiKeyIResolvableApiKeyIResolvableApiKeyinterface{} required #New Relic API key configuration.