Class: AWSCDK::APIGatewayv2::IntegrationCredentials
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::APIGatewayv2::IntegrationCredentials
- Defined in:
- api_gatewayv2/integration_credentials.rb
Overview
Credentials used for AWS Service integrations.
Class Method Summary collapse
-
.from_role(role) ⇒ AWSCDK::APIGatewayv2::IntegrationCredentials
Use the specified role for integration requests.
- .jsii_overridable_methods ⇒ Object
-
.use_caller_identity ⇒ AWSCDK::APIGatewayv2::IntegrationCredentials
Use the calling user's identity to call the integration.
Instance Method Summary collapse
-
#credentials_arn ⇒ String
The ARN of the credentials.
-
#initialize ⇒ IntegrationCredentials
constructor
A new instance of IntegrationCredentials.
Constructor Details
#initialize ⇒ IntegrationCredentials
Returns a new instance of IntegrationCredentials.
8 9 10 |
# File 'api_gatewayv2/integration_credentials.rb', line 8 def initialize Jsii::Object.instance_method(:initialize).bind(self).call end |
Class Method Details
.from_role(role) ⇒ AWSCDK::APIGatewayv2::IntegrationCredentials
Use the specified role for integration requests.
22 23 24 25 |
# File 'api_gatewayv2/integration_credentials.rb', line 22 def self.from_role(role) Jsii::Type.check_type(role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVJvbGVSZWYifQ==")), "role") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_apigatewayv2.IntegrationCredentials", "fromRole", [role]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 'api_gatewayv2/integration_credentials.rb', line 12 def self.jsii_overridable_methods { :credentials_arn => { kind: :property, name: "credentialsArn", is_optional: false }, } end |
.use_caller_identity ⇒ AWSCDK::APIGatewayv2::IntegrationCredentials
Use the calling user's identity to call the integration.
30 31 32 |
# File 'api_gatewayv2/integration_credentials.rb', line 30 def self.use_caller_identity() Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_apigatewayv2.IntegrationCredentials", "useCallerIdentity", []) end |
Instance Method Details
#credentials_arn ⇒ String
The ARN of the credentials.
37 38 39 |
# File 'api_gatewayv2/integration_credentials.rb', line 37 def credentials_arn() jsii_get_property("credentialsArn") end |