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);
Initializer
ts
new IntegrationCredentials()
python
IntegrationCredentials()
java
new IntegrationCredentials()
csharp
new IntegrationCredentials()
go
NewIntegrationCredentials()
Properties
credentialsArnstringcredentials_arnstrcredentialsArnStringCredentialsArnstringCredentialsArn*stringrequired#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) IntegrationCredentialsstatic#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() IntegrationCredentialsstatic#Use the calling user's identity to call the integration.