Skip to content
v2.278.0

IntegrationCredentials Class ​

Credentials used for AWS Service integrations.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
import { aws_iam as interfaces_iam } from 'aws-cdk-lib/interfaces';

declare const roleRef: interfaces_iam.IRoleRef;
const integrationCredentials = apigatewayv2.IntegrationCredentials.fromRole(roleRef);
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_apigatewayv2 as apigatewayv2
from aws_cdk.interfaces import aws_iam as interfaces_iam

# role_ref: interfaces_iam.IRoleRef

integration_credentials = apigatewayv2.IntegrationCredentials.from_role(role_ref)
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.apigatewayv2.*;
import software.amazon.awscdk.interfaces.iam.*;

IRoleRef roleRef;

IntegrationCredentials integrationCredentials = IntegrationCredentials.fromRole(roleRef);
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.Apigatewayv2;
using Amazon.CDK.Interfaces.IAM;

IRoleRef roleRef;

var integrationCredentials = IntegrationCredentials.FromRole(roleRef);
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"
import "github.com/aws/aws-cdk-go/awscdk"

var roleRef IRoleRef

integrationCredentials := awscdk.Aws_apigatewayv2.IntegrationCredentials_FromRole(roleRef)

Initializer ​

ts
new IntegrationCredentials()
python
IntegrationCredentials()
java
new IntegrationCredentials()
csharp
new IntegrationCredentials()
go
NewIntegrationCredentials()

Properties ​

credentialsArnstringcredentials_arnstrcredentialsArnStringCredentialsArnstringCredentialsArn*string #
The ARN of the credentials.

Methods ​

fromRole(role: IRoleRef): IntegrationCredentials // chainable@staticmethod def from_role(role: IRoleRef) -> IntegrationCredentialspublic static IntegrationCredentials fromRole(IRoleRef role)public static IntegrationCredentials FromRole(IRoleRef role)func FromRole(Role IRoleRef) IntegrationCredentials static #
Use the specified role for integration requests.
useCallerIdentity(): IntegrationCredentials // chainable@staticmethod def use_caller_identity() -> IntegrationCredentialspublic static IntegrationCredentials useCallerIdentity()public static IntegrationCredentials UseCallerIdentity()func UseCallerIdentity() IntegrationCredentials static #
Use the calling user's identity to call the integration.