InferenceProfile constructor
InferenceProfile(
- String name, {
- InferenceProfileArgs? args,
- CustomResourceOptions? options,
Creates a new InferenceProfile.
name The Pulumi resource name.
args Arguments used to configure this InferenceProfile. The set of arguments for InferenceProfile.
options Resource options controlling this resource's behavior.
Implementation
InferenceProfile(
String name, {
InferenceProfileArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'aws:bedrock/inferenceProfile:InferenceProfile',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
pulumi.CustomResourceOptions(version: '7.44.0').merge(options),
) {
arn = registerOutput<String>('arn');
createdAt = registerOutput<String>('createdAt');
description = registerOutput<String?>('description');
modelSource = registerOutput<InferenceProfileModelSource?>('modelSource', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return InferenceProfileModelSource.fromMap((guardedValue as Map).cast<String, dynamic>()); });
models = registerOutput<List<InferenceProfileModel>>('models', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<InferenceProfileModel>(guardedValue, (value) => InferenceProfileModel.fromMap((value as Map).cast<String, dynamic>())); });
this.name = registerOutput<String>('name');
region = registerOutput<String>('region');
status = registerOutput<String>('status');
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<InferenceProfileTimeouts?>('timeouts', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return InferenceProfileTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>()); });
type = registerOutput<String>('type');
updatedAt = registerOutput<String>('updatedAt');
}