AgentcoreCodeInterpreter.reference constructor
AgentcoreCodeInterpreter.reference(
- String urn
Creates a typed reference to an existing AgentcoreCodeInterpreter resource.
Implementation
AgentcoreCodeInterpreter.reference(String urn)
: super(
'aws:bedrock/agentcoreCodeInterpreter:AgentcoreCodeInterpreter',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
certificates = registerOutput<List<AgentcoreCodeInterpreterCertificate>?>('certificates', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AgentcoreCodeInterpreterCertificate>(guardedValue, (value) => AgentcoreCodeInterpreterCertificate.fromMap((value as Map).cast<String, dynamic>())); });
codeInterpreterArn = registerOutput<String>('codeInterpreterArn');
codeInterpreterId = registerOutput<String>('codeInterpreterId');
description = registerOutput<String?>('description');
executionRoleArn = registerOutput<String?>('executionRoleArn');
this.name = registerOutput<String>('name');
networkConfiguration = registerOutput<AgentcoreCodeInterpreterNetworkConfiguration>('networkConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentcoreCodeInterpreterNetworkConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
region = registerOutput<String>('region');
tags = registerOutput<Map<String, String>?>('tags', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
tagsAll = registerOutput<Map<String, String>>('tagsAll', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); });
timeouts = registerOutput<AgentcoreCodeInterpreterTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentcoreCodeInterpreterTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}