PagerDutyDetailsProperty Struct
PagerDuty service 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';
declare const exchangeParameters: any;
const pagerDutyDetailsProperty: devopsagent.CfnService.PagerDutyDetailsProperty = {
authorizationConfig: {
oAuthClientCredentials: {
clientId: 'clientId',
clientSecret: 'clientSecret',
// the properties below are optional
clientName: 'clientName',
exchangeParameters: exchangeParameters,
},
},
scopes: ['scopes'],
};
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
# exchange_parameters: Any
pager_duty_details_property = devopsagent.CfnService.PagerDutyDetailsProperty(
authorization_config=devopsagent.CfnService.PagerDutyAuthorizationConfigProperty(
o_auth_client_credentials=devopsagent.CfnService.OAuthClientDetailsProperty(
client_id="clientId",
client_secret="clientSecret",
# the properties below are optional
client_name="clientName",
exchange_parameters=exchange_parameters
)
),
scopes=["scopes"]
)
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.*;
Object exchangeParameters;
PagerDutyDetailsProperty pagerDutyDetailsProperty = PagerDutyDetailsProperty.builder()
.authorizationConfig(PagerDutyAuthorizationConfigProperty.builder()
.oAuthClientCredentials(OAuthClientDetailsProperty.builder()
.clientId("clientId")
.clientSecret("clientSecret")
// the properties below are optional
.clientName("clientName")
.exchangeParameters(exchangeParameters)
.build())
.build())
.scopes(List.of("scopes"))
.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 exchangeParameters;
var pagerDutyDetailsProperty = new PagerDutyDetailsProperty {
AuthorizationConfig = new PagerDutyAuthorizationConfigProperty {
OAuthClientCredentials = new OAuthClientDetailsProperty {
ClientId = "clientId",
ClientSecret = "clientSecret",
// the properties below are optional
ClientName = "clientName",
ExchangeParameters = exchangeParameters
}
},
Scopes = new [] { "scopes" }
};
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"
var exchangeParameters interface{}
pagerDutyDetailsProperty := &PagerDutyDetailsProperty{
AuthorizationConfig: &PagerDutyAuthorizationConfigProperty{
OAuthClientCredentials: &OAuthClientDetailsProperty{
ClientId: jsii.String("clientId"),
ClientSecret: jsii.String("clientSecret"),
// the properties below are optional
ClientName: jsii.String("clientName"),
ExchangeParameters: exchangeParameters,
},
},
Scopes: []*string{
jsii.String("scopes"),
},
}
Properties
authorizationConfigIResolvable | CfnService.authorization_configtyping.Union[IResolvable, PagerDutyAuthorizationConfigProperty]authorizationConfigIResolvableAuthorizationConfigIResolvableAuthorizationConfiginterface{} required #PagerDuty OAuth authorization configuration.
PagerDuty scopes.