Module: AWSCDK::S3Deployment::ISource

Defined in:
s3_deployment/i_source.rb

Overview

Represents a source for bucket deployments.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



19
20
21
22
23
# File 's3_deployment/i_source.rb', line 19

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bind(scope, context = nil) ⇒ AWSCDK::S3Deployment::SourceConfig

Binds the source to a bucket deployment.

Parameters:

Returns:



12
13
14
15
16
17
# File 's3_deployment/i_source.rb', line 12

def bind(scope, context = nil)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  context = context.is_a?(Hash) ? ::AWSCDK::S3Deployment::DeploymentSourceContext.new(**context.transform_keys(&:to_sym)) : context
  Jsii::Type.check_type(context, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczNfZGVwbG95bWVudC5EZXBsb3ltZW50U291cmNlQ29udGV4dCJ9")), "context") unless context.nil?
  jsii_call_method("bind", [scope, context])
end