@aws-cdk_aws-apigatewayv2-alpha.IntegrationCredentials

class IntegrationCredentials ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Apigatewayv2.Alpha.IntegrationCredentials
Gogithub.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2#IntegrationCredentials
Javasoftware.amazon.awscdk.services.apigatewayv2.alpha.IntegrationCredentials
Pythonaws_cdk.aws_apigatewayv2_alpha.IntegrationCredentials
TypeScript (source)@aws-cdk/aws-apigatewayv2-alpha ยป 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 * as apigatewayv2_alpha from '@aws-cdk/aws-apigatewayv2-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const integrationCredentials = apigatewayv2_alpha.IntegrationCredentials.fromRole(role);

Initializer

new IntegrationCredentials()

Properties

NameTypeDescription
credentialsArn๐Ÿ”นstringThe ARN of the credentials.

credentialsArn๐Ÿ”น

Type: string

The ARN of the credentials.

Methods

NameDescription
static fromRole(role)๐Ÿ”นUse the specified role for integration requests.
static useCallerIdentity()๐Ÿ”นUse the calling user's identity to call the integration.

static fromRole(role)๐Ÿ”น

public static fromRole(role: IRole): IntegrationCredentials

Parameters

  • role IRole

Returns

  • IntegrationCredentials

Use the specified role for integration requests.


static useCallerIdentity()๐Ÿ”น

public static useCallerIdentity(): IntegrationCredentials

Returns

  • IntegrationCredentials

Use the calling user's identity to call the integration.