class IntegrationCredentials
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Apigatewayv2.IntegrationCredentials |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#IntegrationCredentials |
Java | software.amazon.awscdk.services.apigatewayv2.IntegrationCredentials |
Python | aws_cdk.aws_apigatewayv2.IntegrationCredentials |
TypeScript (source) | aws-cdk-lib » aws_apigatewayv2 » IntegrationCredentials |
Credentials used for AWS Service integrations.
Example
// 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
new IntegrationCredentials()
Properties
| Name | Type | Description |
|---|---|---|
| credentials | string | The ARN of the credentials. |
credentialsArn
Type:
string
The ARN of the credentials.
Methods
| Name | Description |
|---|---|
| static from | Use the specified role for integration requests. |
| static use | Use the calling user's identity to call the integration. |
static fromRole(role)
public static fromRole(role: IRoleRef): IntegrationCredentials
Parameters
- role
IRoleRef
Returns
Use the specified role for integration requests.
static useCallerIdentity()
public static useCallerIdentity(): IntegrationCredentials
Returns
Use the calling user's identity to call the integration.

.NET
Go
Java
Python
TypeScript (