INNER CODE UNIT · TypeScript
generatePrimitiveToTerraform
jianyuan/terraform-provider-sentry · internal/providergen/index.ts:128
function generatePrimitiveToTerraform({
name,
attribute,
srcVar,
destVar,
}: {
name: string;
attribute: Attribute;
srcVar: string;
destVar: string;
}) {
const srcVarName = [
srcVar,
...(Array.isArray(attribute.sourceAttribute)
? attribute.sourceAttribute
: [camelize(attribute.name)]),
].join(".");
const destVarName = [