AgentcoreGatewayRule.reference constructor
AgentcoreGatewayRule.reference(
- String urn
Creates a typed reference to an existing AgentcoreGatewayRule resource.
Implementation
AgentcoreGatewayRule.reference(String urn)
: super(
'aws:bedrock/agentcoreGatewayRule:AgentcoreGatewayRule',
pulumi.parseUrn(urn).urnName,
const <String, pulumi.Input<dynamic>>{},
pulumi.CustomResourceOptions(urn: pulumi.input(urn)),
isResourceReference: true,
) {
actions = registerOutput<List<AgentcoreGatewayRuleAction>?>('actions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AgentcoreGatewayRuleAction>(guardedValue, (value) => AgentcoreGatewayRuleAction.fromMap((value as Map).cast<String, dynamic>())); });
conditions = registerOutput<List<AgentcoreGatewayRuleCondition>?>('conditions', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AgentcoreGatewayRuleCondition>(guardedValue, (value) => AgentcoreGatewayRuleCondition.fromMap((value as Map).cast<String, dynamic>())); });
description = registerOutput<String>('description');
gatewayArn = registerOutput<String>('gatewayArn');
gatewayIdentifier = registerOutput<String>('gatewayIdentifier');
priority = registerOutput<int>('priority');
region = registerOutput<String>('region');
ruleId = registerOutput<String>('ruleId');
systems = registerOutput<List<AgentcoreGatewayRuleSystem>>('systems', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<AgentcoreGatewayRuleSystem>(guardedValue, (value) => AgentcoreGatewayRuleSystem.fromMap((value as Map).cast<String, dynamic>())); });
timeouts = registerOutput<AgentcoreGatewayRuleTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentcoreGatewayRuleTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}