AgentDataSource constructor
AgentDataSource(
- String name, {
- AgentDataSourceArgs? args,
- CustomResourceOptions? options,
Creates a new AgentDataSource.
name The Pulumi resource name.
args Arguments used to configure this AgentDataSource. The set of arguments for AgentDataSource.
options Resource options controlling this resource's behavior.
Implementation
AgentDataSource(
String name, {
AgentDataSourceArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:bedrock/agentDataSource:AgentDataSource',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
dataDeletionPolicy = registerOutput<String>('dataDeletionPolicy');
dataSourceConfiguration = registerOutput<AgentDataSourceDataSourceConfiguration>('dataSourceConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentDataSourceDataSourceConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
dataSourceId = registerOutput<String>('dataSourceId');
description = registerOutput<String?>('description');
knowledgeBaseId = registerOutput<String>('knowledgeBaseId');
this.name = registerOutput<String>('name');
region = registerOutput<String>('region');
serverSideEncryptionConfiguration = registerOutput<AgentDataSourceServerSideEncryptionConfiguration?>('serverSideEncryptionConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentDataSourceServerSideEncryptionConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
timeouts = registerOutput<AgentDataSourceTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentDataSourceTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
vectorIngestionConfiguration = registerOutput<AgentDataSourceVectorIngestionConfiguration?>('vectorIngestionConfiguration', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return AgentDataSourceVectorIngestionConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>()); });
}