From 6efbcafce95bd9b2714e84d5ec3da16c481f2827 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Fri, 20 Dec 2024 07:21:32 -0800 Subject: [PATCH] Automated SDK generation @ aws-cloudformation-user-guide 19dc52cd3f2007d6d268b65b739ffb5ebf8c1e76 (#1920) Automated SDK generation @ aws-cloudformation-user-guide 19dc52cd3f2007d6d268b65b739ffb5ebf8c1e76 No new resources or functions. --- .docs.version | 2 +- .../aws-bedrock-agent.json | 8 + .../aws-bedrock-prompt.json | 269 +- .../aws-logs-accountpolicy.json | 12 +- .../aws-opensearchservice-domain.json | 34 + .../aws-sagemaker-domain.json | 22 + .../aws-sagemaker-partnerapp.json | 2 + .../aws-sagemaker-space.json | 16 + .../aws-sagemaker-userprofile.json | 22 + meta/.botocore.version | 2 +- .../pulumi-resource-aws-native/metadata.json | 316 +- .../pulumi-resource-aws-native/schema.json | 447 ++- sdk/dotnet/Bedrock/Enums.cs | 63 + .../Bedrock/Inputs/AgentFunctionArgs.cs | 3 + .../Bedrock/Inputs/PromptAgentResourceArgs.cs | 29 + .../Bedrock/Inputs/PromptAnyToolChoiceArgs.cs | 23 + .../Inputs/PromptAutoToolChoiceArgs.cs | 23 + ...omptChatPromptTemplateConfigurationArgs.cs | 62 + .../PromptContentBlockPropertiesArgs.cs | 29 + .../PromptGenAiResourcePropertiesArgs.cs | 26 + .../Bedrock/Inputs/PromptMessageArgs.cs | 38 + .../Inputs/PromptSpecificToolChoiceArgs.cs | 29 + .../PromptSystemContentBlockPropertiesArgs.cs | 29 + ...ptTemplateConfiguration0PropertiesArgs.cs} | 6 +- ...mptTemplateConfiguration1PropertiesArgs.cs | 26 + .../Inputs/PromptToolChoice0PropertiesArgs.cs | 26 + .../Inputs/PromptToolChoice1PropertiesArgs.cs | 26 + .../Inputs/PromptToolChoice2PropertiesArgs.cs | 26 + .../Inputs/PromptToolConfigurationArgs.cs | 38 + .../PromptToolInputSchemaPropertiesArgs.cs | 26 + .../Inputs/PromptToolPropertiesArgs.cs | 26 + .../Inputs/PromptToolSpecificationArgs.cs | 35 + .../Bedrock/Inputs/PromptVariantArgs.cs | 5 +- sdk/dotnet/Bedrock/Outputs/AgentFunction.cs | 6 +- .../Bedrock/Outputs/PromptAgentResource.cs | 30 + .../Bedrock/Outputs/PromptAnyToolChoice.cs | 24 + .../Bedrock/Outputs/PromptAutoToolChoice.cs | 24 + .../PromptChatPromptTemplateConfiguration.cs | 49 + .../Outputs/PromptContentBlockProperties.cs | 30 + .../Outputs/PromptGenAiResourceProperties.cs | 27 + sdk/dotnet/Bedrock/Outputs/PromptMessage.cs | 35 + .../Outputs/PromptSpecificToolChoice.cs | 30 + .../PromptSystemContentBlockProperties.cs | 30 + ...PromptTemplateConfiguration0Properties.cs} | 4 +- .../PromptTemplateConfiguration1Properties.cs | 27 + .../Outputs/PromptToolChoice0Properties.cs | 27 + .../Outputs/PromptToolChoice1Properties.cs | 27 + .../Outputs/PromptToolChoice2Properties.cs | 27 + .../Outputs/PromptToolConfiguration.cs | 35 + .../PromptToolInputSchemaProperties.cs | 27 + .../Bedrock/Outputs/PromptToolProperties.cs | 27 + .../Outputs/PromptToolSpecification.cs | 39 + sdk/dotnet/Bedrock/Outputs/PromptVariant.cs | 8 +- sdk/dotnet/Logs/Enums.cs | 2 + sdk/dotnet/OpenSearchService/Enums.cs | 27 + .../Inputs/DomainClusterConfigArgs.cs | 8 + .../Inputs/DomainNodeConfigArgs.cs | 29 + .../Inputs/DomainNodeOptionArgs.cs | 26 + .../Outputs/DomainClusterConfig.cs | 4 + .../Outputs/DomainNodeConfig.cs | 33 + .../Outputs/DomainNodeOption.cs | 29 + .../DomainCustomFileSystemConfigArgs.cs | 3 + .../DomainFSxLustreFileSystemConfigArgs.cs | 26 + .../Inputs/SpaceCustomFileSystemArgs.cs | 3 + .../Inputs/SpaceFSxLustreFileSystemArgs.cs | 23 + .../UserProfileCustomFileSystemConfigArgs.cs | 3 + ...serProfileFSxLustreFileSystemConfigArgs.cs | 26 + .../Outputs/DomainCustomFileSystemConfig.cs | 7 +- .../DomainFSxLustreFileSystemConfig.cs | 29 + .../Outputs/SpaceCustomFileSystem.cs | 7 +- .../Outputs/SpaceFSxLustreFileSystem.cs | 24 + .../UserProfileCustomFileSystemConfig.cs | 7 +- .../UserProfileFSxLustreFileSystemConfig.cs | 29 + sdk/go/aws/bedrock/pulumiEnums.go | 342 ++ sdk/go/aws/bedrock/pulumiTypes.go | 2820 ++++++++++++++--- sdk/go/aws/logs/pulumiEnums.go | 4 + sdk/go/aws/opensearchservice/pulumiEnums.go | 167 + sdk/go/aws/opensearchservice/pulumiTypes.go | 290 +- sdk/go/aws/sagemaker/pulumiTypes.go | 475 ++- sdk/nodejs/types/enums/bedrock/index.ts | 21 + sdk/nodejs/types/enums/logs/index.ts | 2 + .../types/enums/opensearchservice/index.ts | 6 + sdk/nodejs/types/input.ts | 189 +- sdk/nodejs/types/output.ts | 189 +- .../pulumi_aws_native/bedrock/_enums.py | 19 + .../pulumi_aws_native/bedrock/_inputs.py | 697 +++- .../pulumi_aws_native/bedrock/outputs.py | 539 +++- sdk/python/pulumi_aws_native/logs/_enums.py | 2 + .../opensearchservice/_enums.py | 5 + .../opensearchservice/_inputs.py | 102 + .../opensearchservice/outputs.py | 81 + .../pulumi_aws_native/sagemaker/_inputs.py | 143 +- .../pulumi_aws_native/sagemaker/outputs.py | 146 +- 93 files changed, 8372 insertions(+), 491 deletions(-) create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptAgentResourceArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptAnyToolChoiceArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptAutoToolChoiceArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptChatPromptTemplateConfigurationArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptContentBlockPropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptGenAiResourcePropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptMessageArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptSpecificToolChoiceArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptSystemContentBlockPropertiesArgs.cs rename sdk/dotnet/Bedrock/Inputs/{PromptTemplateConfigurationPropertiesArgs.cs => PromptTemplateConfiguration0PropertiesArgs.cs} (66%) create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration1PropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolChoice0PropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolChoice1PropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolChoice2PropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolConfigurationArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolInputSchemaPropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolPropertiesArgs.cs create mode 100644 sdk/dotnet/Bedrock/Inputs/PromptToolSpecificationArgs.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptAgentResource.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptAnyToolChoice.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptAutoToolChoice.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptChatPromptTemplateConfiguration.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptContentBlockProperties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptGenAiResourceProperties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptMessage.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptSpecificToolChoice.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptSystemContentBlockProperties.cs rename sdk/dotnet/Bedrock/Outputs/{PromptTemplateConfigurationProperties.cs => PromptTemplateConfiguration0Properties.cs} (77%) create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration1Properties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolChoice0Properties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolChoice1Properties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolChoice2Properties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolConfiguration.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolInputSchemaProperties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolProperties.cs create mode 100644 sdk/dotnet/Bedrock/Outputs/PromptToolSpecification.cs create mode 100644 sdk/dotnet/OpenSearchService/Inputs/DomainNodeConfigArgs.cs create mode 100644 sdk/dotnet/OpenSearchService/Inputs/DomainNodeOptionArgs.cs create mode 100644 sdk/dotnet/OpenSearchService/Outputs/DomainNodeConfig.cs create mode 100644 sdk/dotnet/OpenSearchService/Outputs/DomainNodeOption.cs create mode 100644 sdk/dotnet/SageMaker/Inputs/DomainFSxLustreFileSystemConfigArgs.cs create mode 100644 sdk/dotnet/SageMaker/Inputs/SpaceFSxLustreFileSystemArgs.cs create mode 100644 sdk/dotnet/SageMaker/Inputs/UserProfileFSxLustreFileSystemConfigArgs.cs create mode 100644 sdk/dotnet/SageMaker/Outputs/DomainFSxLustreFileSystemConfig.cs create mode 100644 sdk/dotnet/SageMaker/Outputs/SpaceFSxLustreFileSystem.cs create mode 100644 sdk/dotnet/SageMaker/Outputs/UserProfileFSxLustreFileSystemConfig.cs diff --git a/.docs.version b/.docs.version index f14b633e99..0ac70c5370 100644 --- a/.docs.version +++ b/.docs.version @@ -1 +1 @@ -d5c4f2b3a13546420e779899f745eab045ae114a +66b7511f59401ec2374398c60cfe4f31e35bb6e6 diff --git a/aws-cloudformation-schema/aws-bedrock-agent.json b/aws-cloudformation-schema/aws-bedrock-agent.json index 80660044f0..92e95b8045 100644 --- a/aws-cloudformation-schema/aws-bedrock-agent.json +++ b/aws-cloudformation-schema/aws-bedrock-agent.json @@ -157,6 +157,9 @@ }, "Parameters" : { "$ref" : "#/definitions/ParameterMap" + }, + "RequireConfirmation" : { + "$ref" : "#/definitions/RequireConfirmation" } }, "required" : [ "Name" ], @@ -335,6 +338,11 @@ "description" : "Prompt Type.", "enum" : [ "PRE_PROCESSING", "ORCHESTRATION", "POST_PROCESSING", "KNOWLEDGE_BASE_RESPONSE_GENERATION" ] }, + "RequireConfirmation" : { + "type" : "string", + "description" : "ENUM to check if action requires user confirmation", + "enum" : [ "ENABLED", "DISABLED" ] + }, "S3Identifier" : { "type" : "object", "description" : "The identifier for the S3 resource.", diff --git a/aws-cloudformation-schema/aws-bedrock-prompt.json b/aws-cloudformation-schema/aws-bedrock-prompt.json index e3af04fd5c..d4cd89e26c 100644 --- a/aws-cloudformation-schema/aws-bedrock-prompt.json +++ b/aws-cloudformation-schema/aws-bedrock-prompt.json @@ -5,7 +5,7 @@ "PromptTemplateType" : { "type" : "string", "description" : "Prompt template type", - "enum" : [ "TEXT" ] + "enum" : [ "TEXT", "CHAT" ] }, "PromptVariant" : { "type" : "object", @@ -31,6 +31,9 @@ }, "InferenceConfiguration" : { "$ref" : "#/definitions/PromptInferenceConfiguration" + }, + "GenAiResource" : { + "$ref" : "#/definitions/PromptGenAiResource" } }, "required" : [ "Name", "TemplateType", "TemplateConfiguration" ], @@ -63,6 +66,45 @@ "required" : [ ], "additionalProperties" : false }, + "ChatPromptTemplateConfiguration" : { + "type" : "object", + "description" : "Configuration for chat prompt template", + "properties" : { + "Messages" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Message" + }, + "minItems" : 0, + "description" : "List of messages for chat prompt template", + "insertionOrder" : true + }, + "System" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/SystemContentBlock" + }, + "minItems" : 0, + "description" : "Configuration for chat prompt template", + "insertionOrder" : true + }, + "ToolConfiguration" : { + "$ref" : "#/definitions/ToolConfiguration" + }, + "InputVariables" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/PromptInputVariable" + }, + "maxItems" : 5, + "minItems" : 0, + "description" : "List of input variables", + "insertionOrder" : true + } + }, + "required" : [ "Messages" ], + "additionalProperties" : false + }, "PromptTemplateConfiguration" : { "description" : "Prompt template configuration", "oneOf" : [ { @@ -75,6 +117,16 @@ }, "required" : [ "Text" ], "additionalProperties" : false + }, { + "type" : "object", + "title" : "Chat", + "properties" : { + "Chat" : { + "$ref" : "#/definitions/ChatPromptTemplateConfiguration" + } + }, + "required" : [ "Chat" ], + "additionalProperties" : false } ] }, "TextS3Location" : { @@ -104,6 +156,193 @@ "required" : [ "Bucket", "Key" ], "additionalProperties" : false }, + "ConversationRole" : { + "type" : "string", + "description" : "Conversation roles for the chat prompt", + "enum" : [ "user", "assistant" ] + }, + "ContentBlock" : { + "description" : "Configuration for chat prompt template", + "oneOf" : [ { + "title" : "Text", + "type" : "object", + "properties" : { + "Text" : { + "type" : "string", + "minLength" : 1, + "description" : "Configuration for chat prompt template" + } + }, + "required" : [ "Text" ], + "additionalProperties" : false + } ] + }, + "SystemContentBlock" : { + "description" : "Configuration for chat prompt template", + "oneOf" : [ { + "title" : "Text", + "type" : "object", + "properties" : { + "Text" : { + "type" : "string", + "minLength" : 1, + "description" : "Configuration for chat prompt template" + } + }, + "required" : [ "Text" ], + "additionalProperties" : false + } ] + }, + "Message" : { + "type" : "object", + "description" : "Chat prompt Message", + "properties" : { + "Role" : { + "$ref" : "#/definitions/ConversationRole" + }, + "Content" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/ContentBlock" + }, + "minItems" : 1, + "description" : "List of Content Blocks", + "insertionOrder" : true + } + }, + "required" : [ "Role", "Content" ], + "additionalProperties" : false + }, + "ToolInputSchema" : { + "description" : "Tool input schema", + "oneOf" : [ { + "type" : "object", + "title" : "Json", + "properties" : { + "Json" : { + "type" : "object" + } + }, + "description" : "Tool input schema json", + "required" : [ "Json" ], + "additionalProperties" : false + } ] + }, + "ToolSpecification" : { + "type" : "object", + "description" : "Tool specification", + "properties" : { + "Name" : { + "type" : "string", + "pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$", + "minLength" : 1, + "maxLength" : 64, + "description" : "Tool name" + }, + "Description" : { + "type" : "string", + "minLength" : 1 + }, + "InputSchema" : { + "$ref" : "#/definitions/ToolInputSchema" + } + }, + "required" : [ "Name", "InputSchema" ], + "additionalProperties" : false + }, + "Tool" : { + "description" : "Tool details", + "oneOf" : [ { + "type" : "object", + "title" : "ToolSpec", + "properties" : { + "ToolSpec" : { + "$ref" : "#/definitions/ToolSpecification" + } + }, + "required" : [ "ToolSpec" ], + "additionalProperties" : false + } ] + }, + "AutoToolChoice" : { + "type" : "object", + "description" : "Auto Tool choice", + "additionalProperties" : false + }, + "AnyToolChoice" : { + "type" : "object", + "description" : "Any Tool choice", + "additionalProperties" : false + }, + "SpecificToolChoice" : { + "type" : "object", + "description" : "Specific Tool choice", + "properties" : { + "Name" : { + "type" : "string", + "pattern" : "^[a-zA-Z][a-zA-Z0-9_]*$", + "minLength" : 1, + "maxLength" : 64, + "description" : "Tool name" + } + }, + "required" : [ "Name" ], + "additionalProperties" : false + }, + "ToolChoice" : { + "description" : "Tool choice", + "oneOf" : [ { + "title" : "Auto", + "type" : "object", + "properties" : { + "Auto" : { + "$ref" : "#/definitions/AutoToolChoice" + } + }, + "required" : [ "Auto" ], + "additionalProperties" : false + }, { + "title" : "Any", + "type" : "object", + "properties" : { + "Any" : { + "$ref" : "#/definitions/AnyToolChoice" + } + }, + "required" : [ "Any" ], + "additionalProperties" : false + }, { + "title" : "Tool", + "type" : "object", + "properties" : { + "Tool" : { + "$ref" : "#/definitions/SpecificToolChoice" + } + }, + "required" : [ "Tool" ], + "additionalProperties" : false + } ] + }, + "ToolConfiguration" : { + "type" : "object", + "description" : "Tool configuration", + "properties" : { + "Tools" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/Tool" + }, + "minItems" : 1, + "description" : "List of Tools", + "insertionOrder" : true + }, + "ToolChoice" : { + "$ref" : "#/definitions/ToolChoice" + } + }, + "required" : [ "Tools" ], + "additionalProperties" : false + }, "PromptModelInferenceConfiguration" : { "type" : "object", "description" : "Prompt model inference configuration", @@ -178,6 +417,34 @@ } }, "additionalProperties" : false + }, + "PromptAgentResource" : { + "description" : "Target Agent to invoke with Prompt", + "type" : "object", + "properties" : { + "AgentIdentifier" : { + "type" : "string", + "maxLength" : 2048, + "pattern" : "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:agent-alias/[0-9a-zA-Z]{10}/[0-9a-zA-Z]{10}$", + "description" : "Arn representation of the Agent Alias." + } + }, + "required" : [ "AgentIdentifier" ], + "additionalProperties" : false + }, + "PromptGenAiResource" : { + "description" : "Target resource to invoke with Prompt", + "oneOf" : [ { + "type" : "object", + "title" : "Agent", + "properties" : { + "Agent" : { + "$ref" : "#/definitions/PromptAgentResource" + } + }, + "required" : [ "Agent" ], + "additionalProperties" : false + } ] } }, "properties" : { diff --git a/aws-cloudformation-schema/aws-logs-accountpolicy.json b/aws-cloudformation-schema/aws-logs-accountpolicy.json index ad31c326c3..f213cbd787 100644 --- a/aws-cloudformation-schema/aws-logs-accountpolicy.json +++ b/aws-cloudformation-schema/aws-logs-accountpolicy.json @@ -31,7 +31,7 @@ "PolicyType" : { "description" : "Type of the policy.", "type" : "string", - "enum" : [ "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY" ] + "enum" : [ "DATA_PROTECTION_POLICY", "SUBSCRIPTION_FILTER_POLICY", "FIELD_INDEX_POLICY", "TRANSFORMER_POLICY" ] }, "Scope" : { "description" : "Scope for policy application", @@ -45,19 +45,19 @@ }, "handlers" : { "create" : { - "permissions" : [ "logs:PutAccountPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:CreateLogDelivery", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "iam:PassRole" ] + "permissions" : [ "logs:PutAccountPolicy", "logs:PutIndexPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:CreateLogDelivery", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "logs:PutTransformer", "iam:PassRole" ] }, "read" : { - "permissions" : [ "logs:DescribeAccountPolicies" ] + "permissions" : [ "logs:DescribeAccountPolicies", "logs:GetTransformer" ] }, "update" : { - "permissions" : [ "logs:PutAccountPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteAccountPolicy", "logs:DeleteDataProtectionPolicy", "logs:CreateLogDelivery", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "iam:PassRole" ] + "permissions" : [ "logs:PutAccountPolicy", "logs:PutIndexPolicy", "logs:PutDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteAccountPolicy", "logs:DeleteIndexPolicy", "logs:DeleteDataProtectionPolicy", "logs:CreateLogDelivery", "logs:PutSubscriptionFilter", "logs:DeleteSubscriptionFilter", "logs:PutTransformer", "logs:DeleteTransformer", "s3:REST.PUT.OBJECT", "firehose:TagDeliveryStream", "iam:PassRole" ] }, "delete" : { - "permissions" : [ "logs:DeleteAccountPolicy", "logs:DeleteDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteSubscriptionFilter", "iam:PassRole" ] + "permissions" : [ "logs:DeleteAccountPolicy", "logs:DeleteIndexPolicy", "logs:DeleteDataProtectionPolicy", "logs:DescribeAccountPolicies", "logs:DeleteSubscriptionFilter", "logs:DeleteTransformer", "iam:PassRole" ] }, "list" : { - "permissions" : [ "logs:DescribeAccountPolicies" ], + "permissions" : [ "logs:DescribeAccountPolicies", "logs:GetTransformer" ], "handlerSchema" : { "properties" : { "PolicyType" : { diff --git a/aws-cloudformation-schema/aws-opensearchservice-domain.json b/aws-cloudformation-schema/aws-opensearchservice-domain.json index 214ea4efce..82e99de391 100644 --- a/aws-cloudformation-schema/aws-opensearchservice-domain.json +++ b/aws-cloudformation-schema/aws-opensearchservice-domain.json @@ -12,6 +12,34 @@ } } }, + "NodeConfig" : { + "type" : "object", + "properties" : { + "Enabled" : { + "type" : "boolean" + }, + "Type" : { + "type" : "string" + }, + "Count" : { + "type" : "integer" + } + }, + "additionalProperties" : false + }, + "NodeOption" : { + "type" : "object", + "properties" : { + "NodeType" : { + "type" : "string", + "enum" : [ "coordinator" ] + }, + "NodeConfig" : { + "$ref" : "#/definitions/NodeConfig" + } + }, + "additionalProperties" : false + }, "ClusterConfig" : { "type" : "object", "additionalProperties" : false, @@ -51,6 +79,12 @@ }, "ColdStorageOptions" : { "$ref" : "#/definitions/ColdStorageOptions" + }, + "NodeOptions" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/NodeOption" + } } } }, diff --git a/aws-cloudformation-schema/aws-sagemaker-domain.json b/aws-cloudformation-schema/aws-sagemaker-domain.json index 72ef9ce8db..413fce2e41 100644 --- a/aws-cloudformation-schema/aws-sagemaker-domain.json +++ b/aws-cloudformation-schema/aws-sagemaker-domain.json @@ -535,6 +535,9 @@ "properties" : { "EFSFileSystemConfig" : { "$ref" : "#/definitions/EFSFileSystemConfig" + }, + "FSxLustreFileSystemConfig" : { + "$ref" : "#/definitions/FSxLustreFileSystemConfig" } } }, @@ -557,6 +560,25 @@ }, "required" : [ "FileSystemId" ] }, + "FSxLustreFileSystemConfig" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "FileSystemPath" : { + "type" : "string", + "pattern" : "^\\/\\S*$", + "minLength" : 1, + "maxLength" : 256 + }, + "FileSystemId" : { + "type" : "string", + "minLength" : 11, + "maxLength" : 21, + "pattern" : "^(fs-[0-9a-f]{8,})$" + } + }, + "required" : [ "FileSystemId" ] + }, "CustomImage" : { "type" : "object", "description" : "A custom SageMaker image.", diff --git a/aws-cloudformation-schema/aws-sagemaker-partnerapp.json b/aws-cloudformation-schema/aws-sagemaker-partnerapp.json index b70c21ba8f..8bc74b074a 100644 --- a/aws-cloudformation-schema/aws-sagemaker-partnerapp.json +++ b/aws-cloudformation-schema/aws-sagemaker-partnerapp.json @@ -151,7 +151,9 @@ "createOnlyProperties" : [ "/properties/Name", "/properties/Type", "/properties/ExecutionRoleArn", "/properties/AuthType" ], "readOnlyProperties" : [ "/properties/Arn", "/properties/BaseUrl" ], "writeOnlyProperties" : [ "/properties/ClientToken" ], + "deprecatedProperties" : [ "/properties/ClientToken" ], "primaryIdentifier" : [ "/properties/Arn" ], + "replacementStrategy" : "delete_then_create", "handlers" : { "create" : { "permissions" : [ "sagemaker:CreatePartnerApp", "sagemaker:DescribePartnerApp", "sagemaker:AddTags", "sagemaker:ListTags", "iam:PassRole" ], diff --git a/aws-cloudformation-schema/aws-sagemaker-space.json b/aws-cloudformation-schema/aws-sagemaker-space.json index 615cd8a8c8..02acd0b31e 100644 --- a/aws-cloudformation-schema/aws-sagemaker-space.json +++ b/aws-cloudformation-schema/aws-sagemaker-space.json @@ -130,6 +130,9 @@ "properties" : { "EFSFileSystem" : { "$ref" : "#/definitions/EFSFileSystem" + }, + "FSxLustreFileSystem" : { + "$ref" : "#/definitions/FSxLustreFileSystem" } } }, @@ -146,6 +149,19 @@ }, "required" : [ "FileSystemId" ] }, + "FSxLustreFileSystem" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "FileSystemId" : { + "type" : "string", + "minLength" : 11, + "maxLength" : 21, + "pattern" : "^(fs-[0-9a-f]{8,})$" + } + }, + "required" : [ "FileSystemId" ] + }, "SpaceJupyterLabAppSettings" : { "type" : "object", "description" : "The JupyterServer app settings.", diff --git a/aws-cloudformation-schema/aws-sagemaker-userprofile.json b/aws-cloudformation-schema/aws-sagemaker-userprofile.json index 5195aac6b9..36e6132d97 100644 --- a/aws-cloudformation-schema/aws-sagemaker-userprofile.json +++ b/aws-cloudformation-schema/aws-sagemaker-userprofile.json @@ -407,6 +407,9 @@ "properties" : { "EFSFileSystemConfig" : { "$ref" : "#/definitions/EFSFileSystemConfig" + }, + "FSxLustreFileSystemConfig" : { + "$ref" : "#/definitions/FSxLustreFileSystemConfig" } } }, @@ -429,6 +432,25 @@ }, "required" : [ "FileSystemId" ] }, + "FSxLustreFileSystemConfig" : { + "type" : "object", + "additionalProperties" : false, + "properties" : { + "FileSystemPath" : { + "type" : "string", + "pattern" : "^\\/\\S*$", + "minLength" : 1, + "maxLength" : 256 + }, + "FileSystemId" : { + "type" : "string", + "minLength" : 11, + "maxLength" : 21, + "pattern" : "^(fs-[0-9a-f]{8,})$" + } + }, + "required" : [ "FileSystemId" ] + }, "CustomImage" : { "type" : "object", "description" : "A custom SageMaker image.", diff --git a/meta/.botocore.version b/meta/.botocore.version index 6d337d4bfa..5f33290f95 100644 --- a/meta/.botocore.version +++ b/meta/.botocore.version @@ -1 +1 @@ -1.35.83 +1.35.84 diff --git a/provider/cmd/pulumi-resource-aws-native/metadata.json b/provider/cmd/pulumi-resource-aws-native/metadata.json index 03fff09e52..800c8a9001 100644 --- a/provider/cmd/pulumi-resource-aws-native/metadata.json +++ b/provider/cmd/pulumi-resource-aws-native/metadata.json @@ -124335,6 +124335,9 @@ "$ref": "#/types/aws-native:bedrock:AgentParameterDetail" }, "description": "The parameters that the agent elicits from the user to fulfill the function." + }, + "requireConfirmation": { + "$ref": "#/types/aws-native:bedrock:AgentRequireConfirmation" } } }, @@ -124479,6 +124482,9 @@ "aws-native:bedrock:AgentPromptType": { "type": "string" }, + "aws-native:bedrock:AgentRequireConfirmation": { + "type": "string" + }, "aws-native:bedrock:AgentS3Identifier": { "type": "object", "properties": { @@ -126835,6 +126841,87 @@ } } }, + "aws-native:bedrock:PromptAgentResource": { + "type": "object", + "properties": { + "agentIdentifier": { + "type": "string", + "description": "Arn representation of the Agent Alias." + } + } + }, + "aws-native:bedrock:PromptAnyToolChoice": { + "type": "object" + }, + "aws-native:bedrock:PromptAutoToolChoice": { + "type": "object" + }, + "aws-native:bedrock:PromptChatPromptTemplateConfiguration": { + "type": "object", + "properties": { + "inputVariables": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptInputVariable" + }, + "description": "List of input variables" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptMessage" + }, + "description": "List of messages for chat prompt template" + }, + "system": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptSystemContentBlockProperties" + }, + "description": "Configuration for chat prompt template" + }, + "toolConfiguration": { + "$ref": "#/types/aws-native:bedrock:PromptToolConfiguration" + } + } + }, + "aws-native:bedrock:PromptContentBlock0Properties": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "Configuration for chat prompt template" + } + } + }, + "aws-native:bedrock:PromptContentBlockProperties": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "Configuration for chat prompt template" + } + } + }, + "aws-native:bedrock:PromptConversationRole": { + "type": "string" + }, + "aws-native:bedrock:PromptGenAiResource0Properties": { + "type": "object", + "properties": { + "agent": { + "$ref": "#/types/aws-native:bedrock:PromptAgentResource" + } + } + }, + "aws-native:bedrock:PromptGenAiResourceProperties": { + "type": "object", + "properties": { + "agent": { + "$ref": "#/types/aws-native:bedrock:PromptAgentResource" + } + } + }, "aws-native:bedrock:PromptInferenceConfiguration0Properties": { "type": "object", "properties": { @@ -126860,6 +126947,21 @@ } } }, + "aws-native:bedrock:PromptMessage": { + "type": "object", + "properties": { + "content": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptContentBlockProperties" + }, + "description": "List of Content Blocks" + }, + "role": { + "$ref": "#/types/aws-native:bedrock:PromptConversationRole" + } + } + }, "aws-native:bedrock:PromptModelInferenceConfiguration": { "type": "object", "properties": { @@ -126884,15 +126986,34 @@ } } }, - "aws-native:bedrock:PromptTemplateConfiguration0Properties": { + "aws-native:bedrock:PromptSpecificToolChoice": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Tool name" + } + } + }, + "aws-native:bedrock:PromptSystemContentBlock0Properties": { "type": "object", "properties": { "text": { - "$ref": "#/types/aws-native:bedrock:PromptTextPromptTemplateConfiguration" + "type": "string", + "description": "Configuration for chat prompt template" } } }, - "aws-native:bedrock:PromptTemplateConfigurationProperties": { + "aws-native:bedrock:PromptSystemContentBlockProperties": { + "type": "object", + "properties": { + "text": { + "type": "string", + "description": "Configuration for chat prompt template" + } + } + }, + "aws-native:bedrock:PromptTemplateConfiguration0Properties": { "type": "object", "properties": { "text": { @@ -126900,6 +127021,14 @@ } } }, + "aws-native:bedrock:PromptTemplateConfiguration1Properties": { + "type": "object", + "properties": { + "chat": { + "$ref": "#/types/aws-native:bedrock:PromptChatPromptTemplateConfiguration" + } + } + }, "aws-native:bedrock:PromptTemplateType": { "type": "string" }, @@ -126942,9 +127071,108 @@ } } }, + "aws-native:bedrock:PromptTool0Properties": { + "type": "object", + "properties": { + "toolSpec": { + "$ref": "#/types/aws-native:bedrock:PromptToolSpecification" + } + } + }, + "aws-native:bedrock:PromptToolChoice0Properties": { + "type": "object", + "properties": { + "auto": { + "$ref": "#/types/aws-native:bedrock:PromptAutoToolChoice" + } + } + }, + "aws-native:bedrock:PromptToolChoice1Properties": { + "type": "object", + "properties": { + "any": { + "$ref": "#/types/aws-native:bedrock:PromptAnyToolChoice" + } + } + }, + "aws-native:bedrock:PromptToolChoice2Properties": { + "type": "object", + "properties": { + "tool": { + "$ref": "#/types/aws-native:bedrock:PromptSpecificToolChoice" + } + } + }, + "aws-native:bedrock:PromptToolConfiguration": { + "type": "object", + "properties": { + "toolChoice": { + "oneOf": [ + { + "$ref": "#/types/aws-native:bedrock:PromptToolChoice0Properties" + }, + { + "$ref": "#/types/aws-native:bedrock:PromptToolChoice1Properties" + }, + { + "$ref": "#/types/aws-native:bedrock:PromptToolChoice2Properties" + } + ] + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptToolProperties" + }, + "description": "List of Tools" + } + } + }, + "aws-native:bedrock:PromptToolInputSchema0Properties": { + "type": "object", + "properties": { + "json": { + "$ref": "pulumi.json#/Any" + } + } + }, + "aws-native:bedrock:PromptToolInputSchemaProperties": { + "type": "object", + "properties": { + "json": { + "$ref": "pulumi.json#/Any" + } + } + }, + "aws-native:bedrock:PromptToolProperties": { + "type": "object", + "properties": { + "toolSpec": { + "$ref": "#/types/aws-native:bedrock:PromptToolSpecification" + } + } + }, + "aws-native:bedrock:PromptToolSpecification": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "inputSchema": { + "$ref": "#/types/aws-native:bedrock:PromptToolInputSchemaProperties" + }, + "name": { + "type": "string", + "description": "Tool name" + } + } + }, "aws-native:bedrock:PromptVariant": { "type": "object", "properties": { + "genAiResource": { + "$ref": "#/types/aws-native:bedrock:PromptGenAiResourceProperties" + }, "inferenceConfiguration": { "$ref": "#/types/aws-native:bedrock:PromptInferenceConfigurationProperties", "description": "Contains inference configurations for the prompt variant." @@ -126958,7 +127186,14 @@ "description": "Name for a variant." }, "templateConfiguration": { - "$ref": "#/types/aws-native:bedrock:PromptTemplateConfigurationProperties", + "oneOf": [ + { + "$ref": "#/types/aws-native:bedrock:PromptTemplateConfiguration0Properties" + }, + { + "$ref": "#/types/aws-native:bedrock:PromptTemplateConfiguration1Properties" + } + ], "description": "Contains configurations for the prompt template." }, "templateType": { @@ -177830,6 +178065,12 @@ "type": "boolean", "description": "Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) ." }, + "nodeOptions": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:opensearchservice:DomainNodeOption" + } + }, "warmCount": { "type": "integer", "description": "The number of warm nodes in the cluster." @@ -178050,6 +178291,34 @@ "masterUserArn": "MasterUserARN" } }, + "aws-native:opensearchservice:DomainNodeConfig": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "enabled": { + "type": "boolean" + }, + "type": { + "type": "string" + } + } + }, + "aws-native:opensearchservice:DomainNodeOption": { + "type": "object", + "properties": { + "nodeConfig": { + "$ref": "#/types/aws-native:opensearchservice:DomainNodeConfig" + }, + "nodeType": { + "$ref": "#/types/aws-native:opensearchservice:DomainNodeOptionNodeType" + } + } + }, + "aws-native:opensearchservice:DomainNodeOptionNodeType": { + "type": "string" + }, "aws-native:opensearchservice:DomainNodeToNodeEncryptionOptions": { "type": "object", "properties": { @@ -222607,6 +222876,9 @@ "efsFileSystemConfig": { "$ref": "#/types/aws-native:sagemaker:DomainEfsFileSystemConfig", "description": "The settings for a custom Amazon EFS file system." + }, + "fSxLustreFileSystemConfig": { + "$ref": "#/types/aws-native:sagemaker:DomainFSxLustreFileSystemConfig" } }, "irreversibleNames": { @@ -222740,6 +223012,17 @@ } } }, + "aws-native:sagemaker:DomainFSxLustreFileSystemConfig": { + "type": "object", + "properties": { + "fileSystemId": { + "type": "string" + }, + "fileSystemPath": { + "type": "string" + } + } + }, "aws-native:sagemaker:DomainIdleSettings": { "type": "object", "properties": { @@ -226794,6 +227077,9 @@ "properties": { "efsFileSystem": { "$ref": "#/types/aws-native:sagemaker:SpaceEfsFileSystem" + }, + "fSxLustreFileSystem": { + "$ref": "#/types/aws-native:sagemaker:SpaceFSxLustreFileSystem" } }, "irreversibleNames": { @@ -226834,6 +227120,14 @@ } } }, + "aws-native:sagemaker:SpaceFSxLustreFileSystem": { + "type": "object", + "properties": { + "fileSystemId": { + "type": "string" + } + } + }, "aws-native:sagemaker:SpaceIdleSettings": { "type": "object", "properties": { @@ -227075,6 +227369,9 @@ "efsFileSystemConfig": { "$ref": "#/types/aws-native:sagemaker:UserProfileEfsFileSystemConfig", "description": "The settings for a custom Amazon EFS file system." + }, + "fSxLustreFileSystemConfig": { + "$ref": "#/types/aws-native:sagemaker:UserProfileFSxLustreFileSystemConfig" } }, "irreversibleNames": { @@ -227146,6 +227443,17 @@ } } }, + "aws-native:sagemaker:UserProfileFSxLustreFileSystemConfig": { + "type": "object", + "properties": { + "fileSystemId": { + "type": "string" + }, + "fileSystemPath": { + "type": "string" + } + } + }, "aws-native:sagemaker:UserProfileIdleSettings": { "type": "object", "properties": { diff --git a/provider/cmd/pulumi-resource-aws-native/schema.json b/provider/cmd/pulumi-resource-aws-native/schema.json index 86043d472f..692862cbaf 100644 --- a/provider/cmd/pulumi-resource-aws-native/schema.json +++ b/provider/cmd/pulumi-resource-aws-native/schema.json @@ -18516,6 +18516,9 @@ "$ref": "#/types/aws-native:bedrock:AgentParameterDetail" }, "description": "The parameters that the agent elicits from the user to fulfill the function." + }, + "requireConfirmation": { + "$ref": "#/types/aws-native:bedrock:AgentRequireConfirmation" } }, "type": "object", @@ -18725,6 +18728,20 @@ } ] }, + "aws-native:bedrock:AgentRequireConfirmation": { + "description": "ENUM to check if action requires user confirmation", + "type": "string", + "enum": [ + { + "name": "Enabled", + "value": "ENABLED" + }, + { + "name": "Disabled", + "value": "DISABLED" + } + ] + }, "aws-native:bedrock:AgentS3Identifier": { "description": "The identifier for the S3 resource.", "properties": { @@ -22422,6 +22439,124 @@ "embeddingModelArn" ] }, + "aws-native:bedrock:PromptAgentResource": { + "description": "Target Agent to invoke with Prompt", + "properties": { + "agentIdentifier": { + "type": "string", + "description": "Arn representation of the Agent Alias." + } + }, + "type": "object", + "required": [ + "agentIdentifier" + ] + }, + "aws-native:bedrock:PromptAnyToolChoice": { + "description": "Any Tool choice", + "type": "object" + }, + "aws-native:bedrock:PromptAutoToolChoice": { + "description": "Auto Tool choice", + "type": "object" + }, + "aws-native:bedrock:PromptChatPromptTemplateConfiguration": { + "description": "Configuration for chat prompt template", + "properties": { + "inputVariables": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptInputVariable" + }, + "description": "List of input variables" + }, + "messages": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptMessage" + }, + "description": "List of messages for chat prompt template" + }, + "system": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptSystemContentBlockProperties" + }, + "description": "Configuration for chat prompt template" + }, + "toolConfiguration": { + "$ref": "#/types/aws-native:bedrock:PromptToolConfiguration" + } + }, + "type": "object", + "required": [ + "messages" + ] + }, + "aws-native:bedrock:PromptContentBlock0Properties": { + "description": "Configuration for chat prompt template", + "properties": { + "text": { + "type": "string", + "description": "Configuration for chat prompt template" + } + }, + "type": "object", + "required": [ + "text" + ] + }, + "aws-native:bedrock:PromptContentBlockProperties": { + "description": "Configuration for chat prompt template", + "properties": { + "text": { + "type": "string", + "description": "Configuration for chat prompt template" + } + }, + "type": "object", + "required": [ + "text" + ] + }, + "aws-native:bedrock:PromptConversationRole": { + "description": "Conversation roles for the chat prompt", + "type": "string", + "enum": [ + { + "name": "User", + "value": "user" + }, + { + "name": "Assistant", + "value": "assistant" + } + ] + }, + "aws-native:bedrock:PromptGenAiResource0Properties": { + "description": "Target resource to invoke with Prompt", + "properties": { + "agent": { + "$ref": "#/types/aws-native:bedrock:PromptAgentResource" + } + }, + "type": "object", + "required": [ + "agent" + ] + }, + "aws-native:bedrock:PromptGenAiResourceProperties": { + "description": "Target resource to invoke with Prompt", + "properties": { + "agent": { + "$ref": "#/types/aws-native:bedrock:PromptAgentResource" + } + }, + "type": "object", + "required": [ + "agent" + ] + }, "aws-native:bedrock:PromptInferenceConfiguration0Properties": { "description": "Model inference configuration", "properties": { @@ -22456,6 +22591,26 @@ }, "type": "object" }, + "aws-native:bedrock:PromptMessage": { + "description": "Chat prompt Message", + "properties": { + "content": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptContentBlockProperties" + }, + "description": "List of Content Blocks" + }, + "role": { + "$ref": "#/types/aws-native:bedrock:PromptConversationRole" + } + }, + "type": "object", + "required": [ + "content", + "role" + ] + }, "aws-native:bedrock:PromptModelInferenceConfiguration": { "description": "Prompt model inference configuration", "properties": { @@ -22481,11 +22636,38 @@ }, "type": "object" }, - "aws-native:bedrock:PromptTemplateConfiguration0Properties": { - "description": "Prompt template configuration", + "aws-native:bedrock:PromptSpecificToolChoice": { + "description": "Specific Tool choice", + "properties": { + "name": { + "type": "string", + "description": "Tool name" + } + }, + "type": "object", + "required": [ + "name" + ] + }, + "aws-native:bedrock:PromptSystemContentBlock0Properties": { + "description": "Configuration for chat prompt template", "properties": { "text": { - "$ref": "#/types/aws-native:bedrock:PromptTextPromptTemplateConfiguration" + "type": "string", + "description": "Configuration for chat prompt template" + } + }, + "type": "object", + "required": [ + "text" + ] + }, + "aws-native:bedrock:PromptSystemContentBlockProperties": { + "description": "Configuration for chat prompt template", + "properties": { + "text": { + "type": "string", + "description": "Configuration for chat prompt template" } }, "type": "object", @@ -22493,7 +22675,7 @@ "text" ] }, - "aws-native:bedrock:PromptTemplateConfigurationProperties": { + "aws-native:bedrock:PromptTemplateConfiguration0Properties": { "description": "Prompt template configuration", "properties": { "text": { @@ -22505,6 +22687,18 @@ "text" ] }, + "aws-native:bedrock:PromptTemplateConfiguration1Properties": { + "description": "Prompt template configuration", + "properties": { + "chat": { + "$ref": "#/types/aws-native:bedrock:PromptChatPromptTemplateConfiguration" + } + }, + "type": "object", + "required": [ + "chat" + ] + }, "aws-native:bedrock:PromptTemplateType": { "description": "Prompt template type", "type": "string", @@ -22512,6 +22706,10 @@ { "name": "Text", "value": "TEXT" + }, + { + "name": "Chat", + "value": "CHAT" } ] }, @@ -22557,9 +22755,145 @@ "key" ] }, + "aws-native:bedrock:PromptTool0Properties": { + "description": "Tool details", + "properties": { + "toolSpec": { + "$ref": "#/types/aws-native:bedrock:PromptToolSpecification" + } + }, + "type": "object", + "required": [ + "toolSpec" + ] + }, + "aws-native:bedrock:PromptToolChoice0Properties": { + "description": "Tool choice", + "properties": { + "auto": { + "$ref": "#/types/aws-native:bedrock:PromptAutoToolChoice" + } + }, + "type": "object", + "required": [ + "auto" + ] + }, + "aws-native:bedrock:PromptToolChoice1Properties": { + "description": "Tool choice", + "properties": { + "any": { + "$ref": "#/types/aws-native:bedrock:PromptAnyToolChoice" + } + }, + "type": "object", + "required": [ + "any" + ] + }, + "aws-native:bedrock:PromptToolChoice2Properties": { + "description": "Tool choice", + "properties": { + "tool": { + "$ref": "#/types/aws-native:bedrock:PromptSpecificToolChoice" + } + }, + "type": "object", + "required": [ + "tool" + ] + }, + "aws-native:bedrock:PromptToolConfiguration": { + "description": "Tool configuration", + "properties": { + "toolChoice": { + "oneOf": [ + { + "$ref": "#/types/aws-native:bedrock:PromptToolChoice0Properties" + }, + { + "$ref": "#/types/aws-native:bedrock:PromptToolChoice1Properties" + }, + { + "$ref": "#/types/aws-native:bedrock:PromptToolChoice2Properties" + } + ] + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:bedrock:PromptToolProperties" + }, + "description": "List of Tools" + } + }, + "type": "object", + "required": [ + "tools" + ] + }, + "aws-native:bedrock:PromptToolInputSchema0Properties": { + "description": "Tool input schema json", + "properties": { + "json": { + "$ref": "pulumi.json#/Any" + } + }, + "type": "object", + "required": [ + "json" + ] + }, + "aws-native:bedrock:PromptToolInputSchemaProperties": { + "description": "Tool input schema json", + "properties": { + "json": { + "$ref": "pulumi.json#/Any" + } + }, + "type": "object", + "required": [ + "json" + ] + }, + "aws-native:bedrock:PromptToolProperties": { + "description": "Tool details", + "properties": { + "toolSpec": { + "$ref": "#/types/aws-native:bedrock:PromptToolSpecification" + } + }, + "type": "object", + "required": [ + "toolSpec" + ] + }, + "aws-native:bedrock:PromptToolSpecification": { + "description": "Tool specification", + "properties": { + "description": { + "type": "string" + }, + "inputSchema": { + "$ref": "#/types/aws-native:bedrock:PromptToolInputSchemaProperties" + }, + "name": { + "type": "string", + "description": "Tool name" + } + }, + "type": "object", + "required": [ + "inputSchema", + "name" + ] + }, "aws-native:bedrock:PromptVariant": { "description": "Prompt variant", "properties": { + "genAiResource": { + "$ref": "#/types/aws-native:bedrock:PromptGenAiResourceProperties" + }, "inferenceConfiguration": { "$ref": "#/types/aws-native:bedrock:PromptInferenceConfigurationProperties", "description": "Contains inference configurations for the prompt variant." @@ -22573,7 +22907,14 @@ "description": "Name for a variant." }, "templateConfiguration": { - "$ref": "#/types/aws-native:bedrock:PromptTemplateConfigurationProperties", + "oneOf": [ + { + "$ref": "#/types/aws-native:bedrock:PromptTemplateConfiguration0Properties" + }, + { + "$ref": "#/types/aws-native:bedrock:PromptTemplateConfiguration1Properties" + } + ], "description": "Contains configurations for the prompt template." }, "templateType": { @@ -85604,6 +85945,14 @@ { "name": "SubscriptionFilterPolicy", "value": "SUBSCRIPTION_FILTER_POLICY" + }, + { + "name": "FieldIndexPolicy", + "value": "FIELD_INDEX_POLICY" + }, + { + "name": "TransformerPolicy", + "value": "TRANSFORMER_POLICY" } ] }, @@ -96685,6 +97034,12 @@ "type": "boolean", "description": "Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) ." }, + "nodeOptions": { + "type": "array", + "items": { + "$ref": "#/types/aws-native:opensearchservice:DomainNodeOption" + } + }, "warmCount": { "type": "integer", "description": "The number of warm nodes in the cluster." @@ -96893,6 +97248,40 @@ }, "type": "object" }, + "aws-native:opensearchservice:DomainNodeConfig": { + "properties": { + "count": { + "type": "integer" + }, + "enabled": { + "type": "boolean" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "aws-native:opensearchservice:DomainNodeOption": { + "properties": { + "nodeConfig": { + "$ref": "#/types/aws-native:opensearchservice:DomainNodeConfig" + }, + "nodeType": { + "$ref": "#/types/aws-native:opensearchservice:DomainNodeOptionNodeType" + } + }, + "type": "object" + }, + "aws-native:opensearchservice:DomainNodeOptionNodeType": { + "type": "string", + "enum": [ + { + "name": "Coordinator", + "value": "coordinator" + } + ] + }, "aws-native:opensearchservice:DomainNodeToNodeEncryptionOptions": { "properties": { "enabled": { @@ -156012,6 +156401,9 @@ "efsFileSystemConfig": { "$ref": "#/types/aws-native:sagemaker:DomainEfsFileSystemConfig", "description": "The settings for a custom Amazon EFS file system." + }, + "fSxLustreFileSystemConfig": { + "$ref": "#/types/aws-native:sagemaker:DomainFSxLustreFileSystemConfig" } }, "type": "object" @@ -156177,6 +156569,20 @@ "fileSystemId" ] }, + "aws-native:sagemaker:DomainFSxLustreFileSystemConfig": { + "properties": { + "fileSystemId": { + "type": "string" + }, + "fileSystemPath": { + "type": "string" + } + }, + "type": "object", + "required": [ + "fileSystemId" + ] + }, "aws-native:sagemaker:DomainIdleSettings": { "properties": { "idleTimeoutInMinutes": { @@ -162126,6 +162532,9 @@ "properties": { "efsFileSystem": { "$ref": "#/types/aws-native:sagemaker:SpaceEfsFileSystem" + }, + "fSxLustreFileSystem": { + "$ref": "#/types/aws-native:sagemaker:SpaceFSxLustreFileSystem" } }, "type": "object" @@ -162176,6 +162585,17 @@ "fileSystemId" ] }, + "aws-native:sagemaker:SpaceFSxLustreFileSystem": { + "properties": { + "fileSystemId": { + "type": "string" + } + }, + "type": "object", + "required": [ + "fileSystemId" + ] + }, "aws-native:sagemaker:SpaceIdleSettings": { "properties": { "idleTimeoutInMinutes": { @@ -162753,6 +163173,9 @@ "efsFileSystemConfig": { "$ref": "#/types/aws-native:sagemaker:UserProfileEfsFileSystemConfig", "description": "The settings for a custom Amazon EFS file system." + }, + "fSxLustreFileSystemConfig": { + "$ref": "#/types/aws-native:sagemaker:UserProfileFSxLustreFileSystemConfig" } }, "type": "object" @@ -162840,6 +163263,20 @@ "fileSystemId" ] }, + "aws-native:sagemaker:UserProfileFSxLustreFileSystemConfig": { + "properties": { + "fileSystemId": { + "type": "string" + }, + "fileSystemPath": { + "type": "string" + } + }, + "type": "object", + "required": [ + "fileSystemId" + ] + }, "aws-native:sagemaker:UserProfileIdleSettings": { "properties": { "idleTimeoutInMinutes": { diff --git a/sdk/dotnet/Bedrock/Enums.cs b/sdk/dotnet/Bedrock/Enums.cs index b63d108e76..093bd3c1e5 100644 --- a/sdk/dotnet/Bedrock/Enums.cs +++ b/sdk/dotnet/Bedrock/Enums.cs @@ -259,6 +259,37 @@ private AgentPromptType(string value) public override string ToString() => _value; } + /// + /// ENUM to check if action requires user confirmation + /// + [EnumType] + public readonly struct AgentRequireConfirmation : IEquatable + { + private readonly string _value; + + private AgentRequireConfirmation(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + public static AgentRequireConfirmation Enabled { get; } = new AgentRequireConfirmation("ENABLED"); + public static AgentRequireConfirmation Disabled { get; } = new AgentRequireConfirmation("DISABLED"); + + public static bool operator ==(AgentRequireConfirmation left, AgentRequireConfirmation right) => left.Equals(right); + public static bool operator !=(AgentRequireConfirmation left, AgentRequireConfirmation right) => !left.Equals(right); + + public static explicit operator string(AgentRequireConfirmation value) => value._value; + + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) => obj is AgentRequireConfirmation other && Equals(other); + public bool Equals(AgentRequireConfirmation other) => string.Equals(_value, other._value, StringComparison.Ordinal); + + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + + public override string ToString() => _value; + } + /// /// Schema Type for Action APIs. /// @@ -1514,6 +1545,37 @@ private KnowledgeBaseType(string value) public override string ToString() => _value; } + /// + /// Conversation roles for the chat prompt + /// + [EnumType] + public readonly struct PromptConversationRole : IEquatable + { + private readonly string _value; + + private PromptConversationRole(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + public static PromptConversationRole User { get; } = new PromptConversationRole("user"); + public static PromptConversationRole Assistant { get; } = new PromptConversationRole("assistant"); + + public static bool operator ==(PromptConversationRole left, PromptConversationRole right) => left.Equals(right); + public static bool operator !=(PromptConversationRole left, PromptConversationRole right) => !left.Equals(right); + + public static explicit operator string(PromptConversationRole value) => value._value; + + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) => obj is PromptConversationRole other && Equals(other); + public bool Equals(PromptConversationRole other) => string.Equals(_value, other._value, StringComparison.Ordinal); + + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + + public override string ToString() => _value; + } + /// /// Prompt template type /// @@ -1528,6 +1590,7 @@ private PromptTemplateType(string value) } public static PromptTemplateType Text { get; } = new PromptTemplateType("TEXT"); + public static PromptTemplateType Chat { get; } = new PromptTemplateType("CHAT"); public static bool operator ==(PromptTemplateType left, PromptTemplateType right) => left.Equals(right); public static bool operator !=(PromptTemplateType left, PromptTemplateType right) => !left.Equals(right); diff --git a/sdk/dotnet/Bedrock/Inputs/AgentFunctionArgs.cs b/sdk/dotnet/Bedrock/Inputs/AgentFunctionArgs.cs index f9708d0fc6..39246efbb8 100644 --- a/sdk/dotnet/Bedrock/Inputs/AgentFunctionArgs.cs +++ b/sdk/dotnet/Bedrock/Inputs/AgentFunctionArgs.cs @@ -39,6 +39,9 @@ public InputMap Parameters set => _parameters = value; } + [Input("requireConfirmation")] + public Input? RequireConfirmation { get; set; } + public AgentFunctionArgs() { } diff --git a/sdk/dotnet/Bedrock/Inputs/PromptAgentResourceArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptAgentResourceArgs.cs new file mode 100644 index 0000000000..cc2674b7d6 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptAgentResourceArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Target Agent to invoke with Prompt + /// + public sealed class PromptAgentResourceArgs : global::Pulumi.ResourceArgs + { + /// + /// Arn representation of the Agent Alias. + /// + [Input("agentIdentifier", required: true)] + public Input AgentIdentifier { get; set; } = null!; + + public PromptAgentResourceArgs() + { + } + public static new PromptAgentResourceArgs Empty => new PromptAgentResourceArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptAnyToolChoiceArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptAnyToolChoiceArgs.cs new file mode 100644 index 0000000000..c61fbdbe8a --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptAnyToolChoiceArgs.cs @@ -0,0 +1,23 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Any Tool choice + /// + public sealed class PromptAnyToolChoiceArgs : global::Pulumi.ResourceArgs + { + public PromptAnyToolChoiceArgs() + { + } + public static new PromptAnyToolChoiceArgs Empty => new PromptAnyToolChoiceArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptAutoToolChoiceArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptAutoToolChoiceArgs.cs new file mode 100644 index 0000000000..c6b78780d2 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptAutoToolChoiceArgs.cs @@ -0,0 +1,23 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Auto Tool choice + /// + public sealed class PromptAutoToolChoiceArgs : global::Pulumi.ResourceArgs + { + public PromptAutoToolChoiceArgs() + { + } + public static new PromptAutoToolChoiceArgs Empty => new PromptAutoToolChoiceArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptChatPromptTemplateConfigurationArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptChatPromptTemplateConfigurationArgs.cs new file mode 100644 index 0000000000..afde53052b --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptChatPromptTemplateConfigurationArgs.cs @@ -0,0 +1,62 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Configuration for chat prompt template + /// + public sealed class PromptChatPromptTemplateConfigurationArgs : global::Pulumi.ResourceArgs + { + [Input("inputVariables")] + private InputList? _inputVariables; + + /// + /// List of input variables + /// + public InputList InputVariables + { + get => _inputVariables ?? (_inputVariables = new InputList()); + set => _inputVariables = value; + } + + [Input("messages", required: true)] + private InputList? _messages; + + /// + /// List of messages for chat prompt template + /// + public InputList Messages + { + get => _messages ?? (_messages = new InputList()); + set => _messages = value; + } + + [Input("system")] + private InputList? _system; + + /// + /// Configuration for chat prompt template + /// + public InputList System + { + get => _system ?? (_system = new InputList()); + set => _system = value; + } + + [Input("toolConfiguration")] + public Input? ToolConfiguration { get; set; } + + public PromptChatPromptTemplateConfigurationArgs() + { + } + public static new PromptChatPromptTemplateConfigurationArgs Empty => new PromptChatPromptTemplateConfigurationArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptContentBlockPropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptContentBlockPropertiesArgs.cs new file mode 100644 index 0000000000..c22fe90cac --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptContentBlockPropertiesArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Configuration for chat prompt template + /// + public sealed class PromptContentBlockPropertiesArgs : global::Pulumi.ResourceArgs + { + /// + /// Configuration for chat prompt template + /// + [Input("text", required: true)] + public Input Text { get; set; } = null!; + + public PromptContentBlockPropertiesArgs() + { + } + public static new PromptContentBlockPropertiesArgs Empty => new PromptContentBlockPropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptGenAiResourcePropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptGenAiResourcePropertiesArgs.cs new file mode 100644 index 0000000000..5ad87d9512 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptGenAiResourcePropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Target resource to invoke with Prompt + /// + public sealed class PromptGenAiResourcePropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("agent", required: true)] + public Input Agent { get; set; } = null!; + + public PromptGenAiResourcePropertiesArgs() + { + } + public static new PromptGenAiResourcePropertiesArgs Empty => new PromptGenAiResourcePropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptMessageArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptMessageArgs.cs new file mode 100644 index 0000000000..20b9ea95ff --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptMessageArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Chat prompt Message + /// + public sealed class PromptMessageArgs : global::Pulumi.ResourceArgs + { + [Input("content", required: true)] + private InputList? _content; + + /// + /// List of Content Blocks + /// + public InputList Content + { + get => _content ?? (_content = new InputList()); + set => _content = value; + } + + [Input("role", required: true)] + public Input Role { get; set; } = null!; + + public PromptMessageArgs() + { + } + public static new PromptMessageArgs Empty => new PromptMessageArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptSpecificToolChoiceArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptSpecificToolChoiceArgs.cs new file mode 100644 index 0000000000..4596a016bc --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptSpecificToolChoiceArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Specific Tool choice + /// + public sealed class PromptSpecificToolChoiceArgs : global::Pulumi.ResourceArgs + { + /// + /// Tool name + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public PromptSpecificToolChoiceArgs() + { + } + public static new PromptSpecificToolChoiceArgs Empty => new PromptSpecificToolChoiceArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptSystemContentBlockPropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptSystemContentBlockPropertiesArgs.cs new file mode 100644 index 0000000000..a663b078e0 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptSystemContentBlockPropertiesArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Configuration for chat prompt template + /// + public sealed class PromptSystemContentBlockPropertiesArgs : global::Pulumi.ResourceArgs + { + /// + /// Configuration for chat prompt template + /// + [Input("text", required: true)] + public Input Text { get; set; } = null!; + + public PromptSystemContentBlockPropertiesArgs() + { + } + public static new PromptSystemContentBlockPropertiesArgs Empty => new PromptSystemContentBlockPropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfigurationPropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration0PropertiesArgs.cs similarity index 66% rename from sdk/dotnet/Bedrock/Inputs/PromptTemplateConfigurationPropertiesArgs.cs rename to sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration0PropertiesArgs.cs index ba03d1d822..8333fd924f 100644 --- a/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfigurationPropertiesArgs.cs +++ b/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration0PropertiesArgs.cs @@ -13,14 +13,14 @@ namespace Pulumi.AwsNative.Bedrock.Inputs /// /// Prompt template configuration /// - public sealed class PromptTemplateConfigurationPropertiesArgs : global::Pulumi.ResourceArgs + public sealed class PromptTemplateConfiguration0PropertiesArgs : global::Pulumi.ResourceArgs { [Input("text", required: true)] public Input Text { get; set; } = null!; - public PromptTemplateConfigurationPropertiesArgs() + public PromptTemplateConfiguration0PropertiesArgs() { } - public static new PromptTemplateConfigurationPropertiesArgs Empty => new PromptTemplateConfigurationPropertiesArgs(); + public static new PromptTemplateConfiguration0PropertiesArgs Empty => new PromptTemplateConfiguration0PropertiesArgs(); } } diff --git a/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration1PropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration1PropertiesArgs.cs new file mode 100644 index 0000000000..ae9dea0425 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptTemplateConfiguration1PropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Prompt template configuration + /// + public sealed class PromptTemplateConfiguration1PropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("chat", required: true)] + public Input Chat { get; set; } = null!; + + public PromptTemplateConfiguration1PropertiesArgs() + { + } + public static new PromptTemplateConfiguration1PropertiesArgs Empty => new PromptTemplateConfiguration1PropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolChoice0PropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolChoice0PropertiesArgs.cs new file mode 100644 index 0000000000..65d340ce4f --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolChoice0PropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool choice + /// + public sealed class PromptToolChoice0PropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("auto", required: true)] + public Input Auto { get; set; } = null!; + + public PromptToolChoice0PropertiesArgs() + { + } + public static new PromptToolChoice0PropertiesArgs Empty => new PromptToolChoice0PropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolChoice1PropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolChoice1PropertiesArgs.cs new file mode 100644 index 0000000000..015e581053 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolChoice1PropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool choice + /// + public sealed class PromptToolChoice1PropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("any", required: true)] + public Input Any { get; set; } = null!; + + public PromptToolChoice1PropertiesArgs() + { + } + public static new PromptToolChoice1PropertiesArgs Empty => new PromptToolChoice1PropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolChoice2PropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolChoice2PropertiesArgs.cs new file mode 100644 index 0000000000..6ecd3d1e40 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolChoice2PropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool choice + /// + public sealed class PromptToolChoice2PropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("tool", required: true)] + public Input Tool { get; set; } = null!; + + public PromptToolChoice2PropertiesArgs() + { + } + public static new PromptToolChoice2PropertiesArgs Empty => new PromptToolChoice2PropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolConfigurationArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolConfigurationArgs.cs new file mode 100644 index 0000000000..caf0475581 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolConfigurationArgs.cs @@ -0,0 +1,38 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool configuration + /// + public sealed class PromptToolConfigurationArgs : global::Pulumi.ResourceArgs + { + [Input("toolChoice")] + public object? ToolChoice { get; set; } + + [Input("tools", required: true)] + private InputList? _tools; + + /// + /// List of Tools + /// + public InputList Tools + { + get => _tools ?? (_tools = new InputList()); + set => _tools = value; + } + + public PromptToolConfigurationArgs() + { + } + public static new PromptToolConfigurationArgs Empty => new PromptToolConfigurationArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolInputSchemaPropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolInputSchemaPropertiesArgs.cs new file mode 100644 index 0000000000..36fa92b694 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolInputSchemaPropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool input schema json + /// + public sealed class PromptToolInputSchemaPropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("json", required: true)] + public Input Json { get; set; } = null!; + + public PromptToolInputSchemaPropertiesArgs() + { + } + public static new PromptToolInputSchemaPropertiesArgs Empty => new PromptToolInputSchemaPropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolPropertiesArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolPropertiesArgs.cs new file mode 100644 index 0000000000..e076cacb36 --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolPropertiesArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool details + /// + public sealed class PromptToolPropertiesArgs : global::Pulumi.ResourceArgs + { + [Input("toolSpec", required: true)] + public Input ToolSpec { get; set; } = null!; + + public PromptToolPropertiesArgs() + { + } + public static new PromptToolPropertiesArgs Empty => new PromptToolPropertiesArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptToolSpecificationArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptToolSpecificationArgs.cs new file mode 100644 index 0000000000..c7fc84713b --- /dev/null +++ b/sdk/dotnet/Bedrock/Inputs/PromptToolSpecificationArgs.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Inputs +{ + + /// + /// Tool specification + /// + public sealed class PromptToolSpecificationArgs : global::Pulumi.ResourceArgs + { + [Input("description")] + public Input? Description { get; set; } + + [Input("inputSchema", required: true)] + public Input InputSchema { get; set; } = null!; + + /// + /// Tool name + /// + [Input("name", required: true)] + public Input Name { get; set; } = null!; + + public PromptToolSpecificationArgs() + { + } + public static new PromptToolSpecificationArgs Empty => new PromptToolSpecificationArgs(); + } +} diff --git a/sdk/dotnet/Bedrock/Inputs/PromptVariantArgs.cs b/sdk/dotnet/Bedrock/Inputs/PromptVariantArgs.cs index 6ccf46f6eb..36939bdf84 100644 --- a/sdk/dotnet/Bedrock/Inputs/PromptVariantArgs.cs +++ b/sdk/dotnet/Bedrock/Inputs/PromptVariantArgs.cs @@ -15,6 +15,9 @@ namespace Pulumi.AwsNative.Bedrock.Inputs /// public sealed class PromptVariantArgs : global::Pulumi.ResourceArgs { + [Input("genAiResource")] + public Input? GenAiResource { get; set; } + /// /// Contains inference configurations for the prompt variant. /// @@ -37,7 +40,7 @@ public sealed class PromptVariantArgs : global::Pulumi.ResourceArgs /// Contains configurations for the prompt template. /// [Input("templateConfiguration", required: true)] - public Input TemplateConfiguration { get; set; } = null!; + public InputUnion TemplateConfiguration { get; set; } = null!; /// /// The type of prompt template to use. diff --git a/sdk/dotnet/Bedrock/Outputs/AgentFunction.cs b/sdk/dotnet/Bedrock/Outputs/AgentFunction.cs index cf59baff35..8ebfd0c73e 100644 --- a/sdk/dotnet/Bedrock/Outputs/AgentFunction.cs +++ b/sdk/dotnet/Bedrock/Outputs/AgentFunction.cs @@ -28,6 +28,7 @@ public sealed class AgentFunction /// The parameters that the agent elicits from the user to fulfill the function. /// public readonly ImmutableDictionary? Parameters; + public readonly Pulumi.AwsNative.Bedrock.AgentRequireConfirmation? RequireConfirmation; [OutputConstructor] private AgentFunction( @@ -35,11 +36,14 @@ private AgentFunction( string name, - ImmutableDictionary? parameters) + ImmutableDictionary? parameters, + + Pulumi.AwsNative.Bedrock.AgentRequireConfirmation? requireConfirmation) { Description = description; Name = name; Parameters = parameters; + RequireConfirmation = requireConfirmation; } } } diff --git a/sdk/dotnet/Bedrock/Outputs/PromptAgentResource.cs b/sdk/dotnet/Bedrock/Outputs/PromptAgentResource.cs new file mode 100644 index 0000000000..772be5393e --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptAgentResource.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Target Agent to invoke with Prompt + /// + [OutputType] + public sealed class PromptAgentResource + { + /// + /// Arn representation of the Agent Alias. + /// + public readonly string AgentIdentifier; + + [OutputConstructor] + private PromptAgentResource(string agentIdentifier) + { + AgentIdentifier = agentIdentifier; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptAnyToolChoice.cs b/sdk/dotnet/Bedrock/Outputs/PromptAnyToolChoice.cs new file mode 100644 index 0000000000..c8a8bf9dfb --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptAnyToolChoice.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Any Tool choice + /// + [OutputType] + public sealed class PromptAnyToolChoice + { + [OutputConstructor] + private PromptAnyToolChoice() + { + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptAutoToolChoice.cs b/sdk/dotnet/Bedrock/Outputs/PromptAutoToolChoice.cs new file mode 100644 index 0000000000..3f03232b21 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptAutoToolChoice.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Auto Tool choice + /// + [OutputType] + public sealed class PromptAutoToolChoice + { + [OutputConstructor] + private PromptAutoToolChoice() + { + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptChatPromptTemplateConfiguration.cs b/sdk/dotnet/Bedrock/Outputs/PromptChatPromptTemplateConfiguration.cs new file mode 100644 index 0000000000..678bcabcc8 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptChatPromptTemplateConfiguration.cs @@ -0,0 +1,49 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Configuration for chat prompt template + /// + [OutputType] + public sealed class PromptChatPromptTemplateConfiguration + { + /// + /// List of input variables + /// + public readonly ImmutableArray InputVariables; + /// + /// List of messages for chat prompt template + /// + public readonly ImmutableArray Messages; + /// + /// Configuration for chat prompt template + /// + public readonly ImmutableArray System; + public readonly Outputs.PromptToolConfiguration? ToolConfiguration; + + [OutputConstructor] + private PromptChatPromptTemplateConfiguration( + ImmutableArray inputVariables, + + ImmutableArray messages, + + ImmutableArray system, + + Outputs.PromptToolConfiguration? toolConfiguration) + { + InputVariables = inputVariables; + Messages = messages; + System = system; + ToolConfiguration = toolConfiguration; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptContentBlockProperties.cs b/sdk/dotnet/Bedrock/Outputs/PromptContentBlockProperties.cs new file mode 100644 index 0000000000..a7dea36d58 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptContentBlockProperties.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Configuration for chat prompt template + /// + [OutputType] + public sealed class PromptContentBlockProperties + { + /// + /// Configuration for chat prompt template + /// + public readonly string Text; + + [OutputConstructor] + private PromptContentBlockProperties(string text) + { + Text = text; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptGenAiResourceProperties.cs b/sdk/dotnet/Bedrock/Outputs/PromptGenAiResourceProperties.cs new file mode 100644 index 0000000000..2891049c6c --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptGenAiResourceProperties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Target resource to invoke with Prompt + /// + [OutputType] + public sealed class PromptGenAiResourceProperties + { + public readonly Outputs.PromptAgentResource Agent; + + [OutputConstructor] + private PromptGenAiResourceProperties(Outputs.PromptAgentResource agent) + { + Agent = agent; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptMessage.cs b/sdk/dotnet/Bedrock/Outputs/PromptMessage.cs new file mode 100644 index 0000000000..f4965e99da --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptMessage.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Chat prompt Message + /// + [OutputType] + public sealed class PromptMessage + { + /// + /// List of Content Blocks + /// + public readonly ImmutableArray Content; + public readonly Pulumi.AwsNative.Bedrock.PromptConversationRole Role; + + [OutputConstructor] + private PromptMessage( + ImmutableArray content, + + Pulumi.AwsNative.Bedrock.PromptConversationRole role) + { + Content = content; + Role = role; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptSpecificToolChoice.cs b/sdk/dotnet/Bedrock/Outputs/PromptSpecificToolChoice.cs new file mode 100644 index 0000000000..e8ceaf9bfc --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptSpecificToolChoice.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Specific Tool choice + /// + [OutputType] + public sealed class PromptSpecificToolChoice + { + /// + /// Tool name + /// + public readonly string Name; + + [OutputConstructor] + private PromptSpecificToolChoice(string name) + { + Name = name; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptSystemContentBlockProperties.cs b/sdk/dotnet/Bedrock/Outputs/PromptSystemContentBlockProperties.cs new file mode 100644 index 0000000000..8f21933e3c --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptSystemContentBlockProperties.cs @@ -0,0 +1,30 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Configuration for chat prompt template + /// + [OutputType] + public sealed class PromptSystemContentBlockProperties + { + /// + /// Configuration for chat prompt template + /// + public readonly string Text; + + [OutputConstructor] + private PromptSystemContentBlockProperties(string text) + { + Text = text; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfigurationProperties.cs b/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration0Properties.cs similarity index 77% rename from sdk/dotnet/Bedrock/Outputs/PromptTemplateConfigurationProperties.cs rename to sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration0Properties.cs index 68c4766597..5be28f03a8 100644 --- a/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfigurationProperties.cs +++ b/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration0Properties.cs @@ -14,12 +14,12 @@ namespace Pulumi.AwsNative.Bedrock.Outputs /// Prompt template configuration /// [OutputType] - public sealed class PromptTemplateConfigurationProperties + public sealed class PromptTemplateConfiguration0Properties { public readonly Outputs.PromptTextPromptTemplateConfiguration Text; [OutputConstructor] - private PromptTemplateConfigurationProperties(Outputs.PromptTextPromptTemplateConfiguration text) + private PromptTemplateConfiguration0Properties(Outputs.PromptTextPromptTemplateConfiguration text) { Text = text; } diff --git a/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration1Properties.cs b/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration1Properties.cs new file mode 100644 index 0000000000..65cd0de25e --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptTemplateConfiguration1Properties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Prompt template configuration + /// + [OutputType] + public sealed class PromptTemplateConfiguration1Properties + { + public readonly Outputs.PromptChatPromptTemplateConfiguration Chat; + + [OutputConstructor] + private PromptTemplateConfiguration1Properties(Outputs.PromptChatPromptTemplateConfiguration chat) + { + Chat = chat; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolChoice0Properties.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolChoice0Properties.cs new file mode 100644 index 0000000000..6aca6759c6 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolChoice0Properties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool choice + /// + [OutputType] + public sealed class PromptToolChoice0Properties + { + public readonly Outputs.PromptAutoToolChoice Auto; + + [OutputConstructor] + private PromptToolChoice0Properties(Outputs.PromptAutoToolChoice auto) + { + Auto = auto; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolChoice1Properties.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolChoice1Properties.cs new file mode 100644 index 0000000000..1230b384bc --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolChoice1Properties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool choice + /// + [OutputType] + public sealed class PromptToolChoice1Properties + { + public readonly Outputs.PromptAnyToolChoice Any; + + [OutputConstructor] + private PromptToolChoice1Properties(Outputs.PromptAnyToolChoice any) + { + Any = any; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolChoice2Properties.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolChoice2Properties.cs new file mode 100644 index 0000000000..2d6c005562 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolChoice2Properties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool choice + /// + [OutputType] + public sealed class PromptToolChoice2Properties + { + public readonly Outputs.PromptSpecificToolChoice Tool; + + [OutputConstructor] + private PromptToolChoice2Properties(Outputs.PromptSpecificToolChoice tool) + { + Tool = tool; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolConfiguration.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolConfiguration.cs new file mode 100644 index 0000000000..2d207bbf26 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolConfiguration.cs @@ -0,0 +1,35 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool configuration + /// + [OutputType] + public sealed class PromptToolConfiguration + { + public readonly object? ToolChoice; + /// + /// List of Tools + /// + public readonly ImmutableArray Tools; + + [OutputConstructor] + private PromptToolConfiguration( + object? toolChoice, + + ImmutableArray tools) + { + ToolChoice = toolChoice; + Tools = tools; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolInputSchemaProperties.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolInputSchemaProperties.cs new file mode 100644 index 0000000000..c48c75d37c --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolInputSchemaProperties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool input schema json + /// + [OutputType] + public sealed class PromptToolInputSchemaProperties + { + public readonly object Json; + + [OutputConstructor] + private PromptToolInputSchemaProperties(object json) + { + Json = json; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolProperties.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolProperties.cs new file mode 100644 index 0000000000..7c6e180e19 --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolProperties.cs @@ -0,0 +1,27 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool details + /// + [OutputType] + public sealed class PromptToolProperties + { + public readonly Outputs.PromptToolSpecification ToolSpec; + + [OutputConstructor] + private PromptToolProperties(Outputs.PromptToolSpecification toolSpec) + { + ToolSpec = toolSpec; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptToolSpecification.cs b/sdk/dotnet/Bedrock/Outputs/PromptToolSpecification.cs new file mode 100644 index 0000000000..521f1a37dc --- /dev/null +++ b/sdk/dotnet/Bedrock/Outputs/PromptToolSpecification.cs @@ -0,0 +1,39 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.Bedrock.Outputs +{ + + /// + /// Tool specification + /// + [OutputType] + public sealed class PromptToolSpecification + { + public readonly string? Description; + public readonly Outputs.PromptToolInputSchemaProperties InputSchema; + /// + /// Tool name + /// + public readonly string Name; + + [OutputConstructor] + private PromptToolSpecification( + string? description, + + Outputs.PromptToolInputSchemaProperties inputSchema, + + string name) + { + Description = description; + InputSchema = inputSchema; + Name = name; + } + } +} diff --git a/sdk/dotnet/Bedrock/Outputs/PromptVariant.cs b/sdk/dotnet/Bedrock/Outputs/PromptVariant.cs index e631a610bd..dab9793579 100644 --- a/sdk/dotnet/Bedrock/Outputs/PromptVariant.cs +++ b/sdk/dotnet/Bedrock/Outputs/PromptVariant.cs @@ -16,6 +16,7 @@ namespace Pulumi.AwsNative.Bedrock.Outputs [OutputType] public sealed class PromptVariant { + public readonly Outputs.PromptGenAiResourceProperties? GenAiResource; /// /// Contains inference configurations for the prompt variant. /// @@ -31,7 +32,7 @@ public sealed class PromptVariant /// /// Contains configurations for the prompt template. /// - public readonly Outputs.PromptTemplateConfigurationProperties TemplateConfiguration; + public readonly Union TemplateConfiguration; /// /// The type of prompt template to use. /// @@ -39,16 +40,19 @@ public sealed class PromptVariant [OutputConstructor] private PromptVariant( + Outputs.PromptGenAiResourceProperties? genAiResource, + Outputs.PromptInferenceConfigurationProperties? inferenceConfiguration, string? modelId, string name, - Outputs.PromptTemplateConfigurationProperties templateConfiguration, + Union templateConfiguration, Pulumi.AwsNative.Bedrock.PromptTemplateType templateType) { + GenAiResource = genAiResource; InferenceConfiguration = inferenceConfiguration; ModelId = modelId; Name = name; diff --git a/sdk/dotnet/Logs/Enums.cs b/sdk/dotnet/Logs/Enums.cs index 413694ba7c..9322912928 100644 --- a/sdk/dotnet/Logs/Enums.cs +++ b/sdk/dotnet/Logs/Enums.cs @@ -22,6 +22,8 @@ private AccountPolicyPolicyType(string value) public static AccountPolicyPolicyType DataProtectionPolicy { get; } = new AccountPolicyPolicyType("DATA_PROTECTION_POLICY"); public static AccountPolicyPolicyType SubscriptionFilterPolicy { get; } = new AccountPolicyPolicyType("SUBSCRIPTION_FILTER_POLICY"); + public static AccountPolicyPolicyType FieldIndexPolicy { get; } = new AccountPolicyPolicyType("FIELD_INDEX_POLICY"); + public static AccountPolicyPolicyType TransformerPolicy { get; } = new AccountPolicyPolicyType("TRANSFORMER_POLICY"); public static bool operator ==(AccountPolicyPolicyType left, AccountPolicyPolicyType right) => left.Equals(right); public static bool operator !=(AccountPolicyPolicyType left, AccountPolicyPolicyType right) => !left.Equals(right); diff --git a/sdk/dotnet/OpenSearchService/Enums.cs b/sdk/dotnet/OpenSearchService/Enums.cs index 3a14d61f7c..c3084dbdd2 100644 --- a/sdk/dotnet/OpenSearchService/Enums.cs +++ b/sdk/dotnet/OpenSearchService/Enums.cs @@ -38,6 +38,33 @@ private ApplicationAppConfigType(string value) public override string ToString() => _value; } + [EnumType] + public readonly struct DomainNodeOptionNodeType : IEquatable + { + private readonly string _value; + + private DomainNodeOptionNodeType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + public static DomainNodeOptionNodeType Coordinator { get; } = new DomainNodeOptionNodeType("coordinator"); + + public static bool operator ==(DomainNodeOptionNodeType left, DomainNodeOptionNodeType right) => left.Equals(right); + public static bool operator !=(DomainNodeOptionNodeType left, DomainNodeOptionNodeType right) => !left.Equals(right); + + public static explicit operator string(DomainNodeOptionNodeType value) => value._value; + + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object? obj) => obj is DomainNodeOptionNodeType other && Equals(other); + public bool Equals(DomainNodeOptionNodeType other) => string.Equals(_value, other._value, StringComparison.Ordinal); + + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + + public override string ToString() => _value; + } + /// /// Roles Key Idc type values. /// diff --git a/sdk/dotnet/OpenSearchService/Inputs/DomainClusterConfigArgs.cs b/sdk/dotnet/OpenSearchService/Inputs/DomainClusterConfigArgs.cs index 56d2a4643b..e675aca573 100644 --- a/sdk/dotnet/OpenSearchService/Inputs/DomainClusterConfigArgs.cs +++ b/sdk/dotnet/OpenSearchService/Inputs/DomainClusterConfigArgs.cs @@ -54,6 +54,14 @@ public sealed class DomainClusterConfigArgs : global::Pulumi.ResourceArgs [Input("multiAzWithStandbyEnabled")] public Input? MultiAzWithStandbyEnabled { get; set; } + [Input("nodeOptions")] + private InputList? _nodeOptions; + public InputList NodeOptions + { + get => _nodeOptions ?? (_nodeOptions = new InputList()); + set => _nodeOptions = value; + } + /// /// The number of warm nodes in the cluster. /// diff --git a/sdk/dotnet/OpenSearchService/Inputs/DomainNodeConfigArgs.cs b/sdk/dotnet/OpenSearchService/Inputs/DomainNodeConfigArgs.cs new file mode 100644 index 0000000000..b8e84b7e6d --- /dev/null +++ b/sdk/dotnet/OpenSearchService/Inputs/DomainNodeConfigArgs.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.OpenSearchService.Inputs +{ + + public sealed class DomainNodeConfigArgs : global::Pulumi.ResourceArgs + { + [Input("count")] + public Input? Count { get; set; } + + [Input("enabled")] + public Input? Enabled { get; set; } + + [Input("type")] + public Input? Type { get; set; } + + public DomainNodeConfigArgs() + { + } + public static new DomainNodeConfigArgs Empty => new DomainNodeConfigArgs(); + } +} diff --git a/sdk/dotnet/OpenSearchService/Inputs/DomainNodeOptionArgs.cs b/sdk/dotnet/OpenSearchService/Inputs/DomainNodeOptionArgs.cs new file mode 100644 index 0000000000..8a441f33a6 --- /dev/null +++ b/sdk/dotnet/OpenSearchService/Inputs/DomainNodeOptionArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.OpenSearchService.Inputs +{ + + public sealed class DomainNodeOptionArgs : global::Pulumi.ResourceArgs + { + [Input("nodeConfig")] + public Input? NodeConfig { get; set; } + + [Input("nodeType")] + public Input? NodeType { get; set; } + + public DomainNodeOptionArgs() + { + } + public static new DomainNodeOptionArgs Empty => new DomainNodeOptionArgs(); + } +} diff --git a/sdk/dotnet/OpenSearchService/Outputs/DomainClusterConfig.cs b/sdk/dotnet/OpenSearchService/Outputs/DomainClusterConfig.cs index a0e0542321..929dd9a8fd 100644 --- a/sdk/dotnet/OpenSearchService/Outputs/DomainClusterConfig.cs +++ b/sdk/dotnet/OpenSearchService/Outputs/DomainClusterConfig.cs @@ -41,6 +41,7 @@ public sealed class DomainClusterConfig /// Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) . /// public readonly bool? MultiAzWithStandbyEnabled; + public readonly ImmutableArray NodeOptions; /// /// The number of warm nodes in the cluster. /// @@ -78,6 +79,8 @@ private DomainClusterConfig( bool? multiAzWithStandbyEnabled, + ImmutableArray nodeOptions, + int? warmCount, bool? warmEnabled, @@ -95,6 +98,7 @@ private DomainClusterConfig( InstanceCount = instanceCount; InstanceType = instanceType; MultiAzWithStandbyEnabled = multiAzWithStandbyEnabled; + NodeOptions = nodeOptions; WarmCount = warmCount; WarmEnabled = warmEnabled; WarmType = warmType; diff --git a/sdk/dotnet/OpenSearchService/Outputs/DomainNodeConfig.cs b/sdk/dotnet/OpenSearchService/Outputs/DomainNodeConfig.cs new file mode 100644 index 0000000000..e87a72f4a2 --- /dev/null +++ b/sdk/dotnet/OpenSearchService/Outputs/DomainNodeConfig.cs @@ -0,0 +1,33 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.OpenSearchService.Outputs +{ + + [OutputType] + public sealed class DomainNodeConfig + { + public readonly int? Count; + public readonly bool? Enabled; + public readonly string? Type; + + [OutputConstructor] + private DomainNodeConfig( + int? count, + + bool? enabled, + + string? type) + { + Count = count; + Enabled = enabled; + Type = type; + } + } +} diff --git a/sdk/dotnet/OpenSearchService/Outputs/DomainNodeOption.cs b/sdk/dotnet/OpenSearchService/Outputs/DomainNodeOption.cs new file mode 100644 index 0000000000..532b6ffc29 --- /dev/null +++ b/sdk/dotnet/OpenSearchService/Outputs/DomainNodeOption.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.OpenSearchService.Outputs +{ + + [OutputType] + public sealed class DomainNodeOption + { + public readonly Outputs.DomainNodeConfig? NodeConfig; + public readonly Pulumi.AwsNative.OpenSearchService.DomainNodeOptionNodeType? NodeType; + + [OutputConstructor] + private DomainNodeOption( + Outputs.DomainNodeConfig? nodeConfig, + + Pulumi.AwsNative.OpenSearchService.DomainNodeOptionNodeType? nodeType) + { + NodeConfig = nodeConfig; + NodeType = nodeType; + } + } +} diff --git a/sdk/dotnet/SageMaker/Inputs/DomainCustomFileSystemConfigArgs.cs b/sdk/dotnet/SageMaker/Inputs/DomainCustomFileSystemConfigArgs.cs index 78b5cbc4c8..6ad74d70b4 100644 --- a/sdk/dotnet/SageMaker/Inputs/DomainCustomFileSystemConfigArgs.cs +++ b/sdk/dotnet/SageMaker/Inputs/DomainCustomFileSystemConfigArgs.cs @@ -18,6 +18,9 @@ public sealed class DomainCustomFileSystemConfigArgs : global::Pulumi.ResourceAr [Input("efsFileSystemConfig")] public Input? EfsFileSystemConfig { get; set; } + [Input("fSxLustreFileSystemConfig")] + public Input? FSxLustreFileSystemConfig { get; set; } + public DomainCustomFileSystemConfigArgs() { } diff --git a/sdk/dotnet/SageMaker/Inputs/DomainFSxLustreFileSystemConfigArgs.cs b/sdk/dotnet/SageMaker/Inputs/DomainFSxLustreFileSystemConfigArgs.cs new file mode 100644 index 0000000000..8fd00d7b81 --- /dev/null +++ b/sdk/dotnet/SageMaker/Inputs/DomainFSxLustreFileSystemConfigArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.SageMaker.Inputs +{ + + public sealed class DomainFSxLustreFileSystemConfigArgs : global::Pulumi.ResourceArgs + { + [Input("fileSystemId", required: true)] + public Input FileSystemId { get; set; } = null!; + + [Input("fileSystemPath")] + public Input? FileSystemPath { get; set; } + + public DomainFSxLustreFileSystemConfigArgs() + { + } + public static new DomainFSxLustreFileSystemConfigArgs Empty => new DomainFSxLustreFileSystemConfigArgs(); + } +} diff --git a/sdk/dotnet/SageMaker/Inputs/SpaceCustomFileSystemArgs.cs b/sdk/dotnet/SageMaker/Inputs/SpaceCustomFileSystemArgs.cs index dc3716243e..4396128e91 100644 --- a/sdk/dotnet/SageMaker/Inputs/SpaceCustomFileSystemArgs.cs +++ b/sdk/dotnet/SageMaker/Inputs/SpaceCustomFileSystemArgs.cs @@ -15,6 +15,9 @@ public sealed class SpaceCustomFileSystemArgs : global::Pulumi.ResourceArgs [Input("efsFileSystem")] public Input? EfsFileSystem { get; set; } + [Input("fSxLustreFileSystem")] + public Input? FSxLustreFileSystem { get; set; } + public SpaceCustomFileSystemArgs() { } diff --git a/sdk/dotnet/SageMaker/Inputs/SpaceFSxLustreFileSystemArgs.cs b/sdk/dotnet/SageMaker/Inputs/SpaceFSxLustreFileSystemArgs.cs new file mode 100644 index 0000000000..1345ceeae1 --- /dev/null +++ b/sdk/dotnet/SageMaker/Inputs/SpaceFSxLustreFileSystemArgs.cs @@ -0,0 +1,23 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.SageMaker.Inputs +{ + + public sealed class SpaceFSxLustreFileSystemArgs : global::Pulumi.ResourceArgs + { + [Input("fileSystemId", required: true)] + public Input FileSystemId { get; set; } = null!; + + public SpaceFSxLustreFileSystemArgs() + { + } + public static new SpaceFSxLustreFileSystemArgs Empty => new SpaceFSxLustreFileSystemArgs(); + } +} diff --git a/sdk/dotnet/SageMaker/Inputs/UserProfileCustomFileSystemConfigArgs.cs b/sdk/dotnet/SageMaker/Inputs/UserProfileCustomFileSystemConfigArgs.cs index 827f2d3419..2483762175 100644 --- a/sdk/dotnet/SageMaker/Inputs/UserProfileCustomFileSystemConfigArgs.cs +++ b/sdk/dotnet/SageMaker/Inputs/UserProfileCustomFileSystemConfigArgs.cs @@ -18,6 +18,9 @@ public sealed class UserProfileCustomFileSystemConfigArgs : global::Pulumi.Resou [Input("efsFileSystemConfig")] public Input? EfsFileSystemConfig { get; set; } + [Input("fSxLustreFileSystemConfig")] + public Input? FSxLustreFileSystemConfig { get; set; } + public UserProfileCustomFileSystemConfigArgs() { } diff --git a/sdk/dotnet/SageMaker/Inputs/UserProfileFSxLustreFileSystemConfigArgs.cs b/sdk/dotnet/SageMaker/Inputs/UserProfileFSxLustreFileSystemConfigArgs.cs new file mode 100644 index 0000000000..7c169d58c9 --- /dev/null +++ b/sdk/dotnet/SageMaker/Inputs/UserProfileFSxLustreFileSystemConfigArgs.cs @@ -0,0 +1,26 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.SageMaker.Inputs +{ + + public sealed class UserProfileFSxLustreFileSystemConfigArgs : global::Pulumi.ResourceArgs + { + [Input("fileSystemId", required: true)] + public Input FileSystemId { get; set; } = null!; + + [Input("fileSystemPath")] + public Input? FileSystemPath { get; set; } + + public UserProfileFSxLustreFileSystemConfigArgs() + { + } + public static new UserProfileFSxLustreFileSystemConfigArgs Empty => new UserProfileFSxLustreFileSystemConfigArgs(); + } +} diff --git a/sdk/dotnet/SageMaker/Outputs/DomainCustomFileSystemConfig.cs b/sdk/dotnet/SageMaker/Outputs/DomainCustomFileSystemConfig.cs index e1877e6fe4..0d958caf0f 100644 --- a/sdk/dotnet/SageMaker/Outputs/DomainCustomFileSystemConfig.cs +++ b/sdk/dotnet/SageMaker/Outputs/DomainCustomFileSystemConfig.cs @@ -17,11 +17,16 @@ public sealed class DomainCustomFileSystemConfig /// The settings for a custom Amazon EFS file system. /// public readonly Outputs.DomainEfsFileSystemConfig? EfsFileSystemConfig; + public readonly Outputs.DomainFSxLustreFileSystemConfig? FSxLustreFileSystemConfig; [OutputConstructor] - private DomainCustomFileSystemConfig(Outputs.DomainEfsFileSystemConfig? efsFileSystemConfig) + private DomainCustomFileSystemConfig( + Outputs.DomainEfsFileSystemConfig? efsFileSystemConfig, + + Outputs.DomainFSxLustreFileSystemConfig? fSxLustreFileSystemConfig) { EfsFileSystemConfig = efsFileSystemConfig; + FSxLustreFileSystemConfig = fSxLustreFileSystemConfig; } } } diff --git a/sdk/dotnet/SageMaker/Outputs/DomainFSxLustreFileSystemConfig.cs b/sdk/dotnet/SageMaker/Outputs/DomainFSxLustreFileSystemConfig.cs new file mode 100644 index 0000000000..45718f52ce --- /dev/null +++ b/sdk/dotnet/SageMaker/Outputs/DomainFSxLustreFileSystemConfig.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.SageMaker.Outputs +{ + + [OutputType] + public sealed class DomainFSxLustreFileSystemConfig + { + public readonly string FileSystemId; + public readonly string? FileSystemPath; + + [OutputConstructor] + private DomainFSxLustreFileSystemConfig( + string fileSystemId, + + string? fileSystemPath) + { + FileSystemId = fileSystemId; + FileSystemPath = fileSystemPath; + } + } +} diff --git a/sdk/dotnet/SageMaker/Outputs/SpaceCustomFileSystem.cs b/sdk/dotnet/SageMaker/Outputs/SpaceCustomFileSystem.cs index fbd44b65d9..db4907a12c 100644 --- a/sdk/dotnet/SageMaker/Outputs/SpaceCustomFileSystem.cs +++ b/sdk/dotnet/SageMaker/Outputs/SpaceCustomFileSystem.cs @@ -14,11 +14,16 @@ namespace Pulumi.AwsNative.SageMaker.Outputs public sealed class SpaceCustomFileSystem { public readonly Outputs.SpaceEfsFileSystem? EfsFileSystem; + public readonly Outputs.SpaceFSxLustreFileSystem? FSxLustreFileSystem; [OutputConstructor] - private SpaceCustomFileSystem(Outputs.SpaceEfsFileSystem? efsFileSystem) + private SpaceCustomFileSystem( + Outputs.SpaceEfsFileSystem? efsFileSystem, + + Outputs.SpaceFSxLustreFileSystem? fSxLustreFileSystem) { EfsFileSystem = efsFileSystem; + FSxLustreFileSystem = fSxLustreFileSystem; } } } diff --git a/sdk/dotnet/SageMaker/Outputs/SpaceFSxLustreFileSystem.cs b/sdk/dotnet/SageMaker/Outputs/SpaceFSxLustreFileSystem.cs new file mode 100644 index 0000000000..05fb32af13 --- /dev/null +++ b/sdk/dotnet/SageMaker/Outputs/SpaceFSxLustreFileSystem.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.SageMaker.Outputs +{ + + [OutputType] + public sealed class SpaceFSxLustreFileSystem + { + public readonly string FileSystemId; + + [OutputConstructor] + private SpaceFSxLustreFileSystem(string fileSystemId) + { + FileSystemId = fileSystemId; + } + } +} diff --git a/sdk/dotnet/SageMaker/Outputs/UserProfileCustomFileSystemConfig.cs b/sdk/dotnet/SageMaker/Outputs/UserProfileCustomFileSystemConfig.cs index f4ea41694d..23a35f32ca 100644 --- a/sdk/dotnet/SageMaker/Outputs/UserProfileCustomFileSystemConfig.cs +++ b/sdk/dotnet/SageMaker/Outputs/UserProfileCustomFileSystemConfig.cs @@ -17,11 +17,16 @@ public sealed class UserProfileCustomFileSystemConfig /// The settings for a custom Amazon EFS file system. /// public readonly Outputs.UserProfileEfsFileSystemConfig? EfsFileSystemConfig; + public readonly Outputs.UserProfileFSxLustreFileSystemConfig? FSxLustreFileSystemConfig; [OutputConstructor] - private UserProfileCustomFileSystemConfig(Outputs.UserProfileEfsFileSystemConfig? efsFileSystemConfig) + private UserProfileCustomFileSystemConfig( + Outputs.UserProfileEfsFileSystemConfig? efsFileSystemConfig, + + Outputs.UserProfileFSxLustreFileSystemConfig? fSxLustreFileSystemConfig) { EfsFileSystemConfig = efsFileSystemConfig; + FSxLustreFileSystemConfig = fSxLustreFileSystemConfig; } } } diff --git a/sdk/dotnet/SageMaker/Outputs/UserProfileFSxLustreFileSystemConfig.cs b/sdk/dotnet/SageMaker/Outputs/UserProfileFSxLustreFileSystemConfig.cs new file mode 100644 index 0000000000..5a104b4690 --- /dev/null +++ b/sdk/dotnet/SageMaker/Outputs/UserProfileFSxLustreFileSystemConfig.cs @@ -0,0 +1,29 @@ +// *** WARNING: this file was generated by pulumi. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.AwsNative.SageMaker.Outputs +{ + + [OutputType] + public sealed class UserProfileFSxLustreFileSystemConfig + { + public readonly string FileSystemId; + public readonly string? FileSystemPath; + + [OutputConstructor] + private UserProfileFSxLustreFileSystemConfig( + string fileSystemId, + + string? fileSystemPath) + { + FileSystemId = fileSystemId; + FileSystemPath = fileSystemPath; + } + } +} diff --git a/sdk/go/aws/bedrock/pulumiEnums.go b/sdk/go/aws/bedrock/pulumiEnums.go index 4b95e2fe62..d0e0510d79 100644 --- a/sdk/go/aws/bedrock/pulumiEnums.go +++ b/sdk/go/aws/bedrock/pulumiEnums.go @@ -1268,6 +1268,172 @@ func (in *agentPromptTypePtr) ToAgentPromptTypePtrOutputWithContext(ctx context. return pulumi.ToOutputWithContext(ctx, in).(AgentPromptTypePtrOutput) } +// ENUM to check if action requires user confirmation +type AgentRequireConfirmation string + +const ( + AgentRequireConfirmationEnabled = AgentRequireConfirmation("ENABLED") + AgentRequireConfirmationDisabled = AgentRequireConfirmation("DISABLED") +) + +func (AgentRequireConfirmation) ElementType() reflect.Type { + return reflect.TypeOf((*AgentRequireConfirmation)(nil)).Elem() +} + +func (e AgentRequireConfirmation) ToAgentRequireConfirmationOutput() AgentRequireConfirmationOutput { + return pulumi.ToOutput(e).(AgentRequireConfirmationOutput) +} + +func (e AgentRequireConfirmation) ToAgentRequireConfirmationOutputWithContext(ctx context.Context) AgentRequireConfirmationOutput { + return pulumi.ToOutputWithContext(ctx, e).(AgentRequireConfirmationOutput) +} + +func (e AgentRequireConfirmation) ToAgentRequireConfirmationPtrOutput() AgentRequireConfirmationPtrOutput { + return e.ToAgentRequireConfirmationPtrOutputWithContext(context.Background()) +} + +func (e AgentRequireConfirmation) ToAgentRequireConfirmationPtrOutputWithContext(ctx context.Context) AgentRequireConfirmationPtrOutput { + return AgentRequireConfirmation(e).ToAgentRequireConfirmationOutputWithContext(ctx).ToAgentRequireConfirmationPtrOutputWithContext(ctx) +} + +func (e AgentRequireConfirmation) ToStringOutput() pulumi.StringOutput { + return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) +} + +func (e AgentRequireConfirmation) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) +} + +func (e AgentRequireConfirmation) ToStringPtrOutput() pulumi.StringPtrOutput { + return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) +} + +func (e AgentRequireConfirmation) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) +} + +type AgentRequireConfirmationOutput struct{ *pulumi.OutputState } + +func (AgentRequireConfirmationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*AgentRequireConfirmation)(nil)).Elem() +} + +func (o AgentRequireConfirmationOutput) ToAgentRequireConfirmationOutput() AgentRequireConfirmationOutput { + return o +} + +func (o AgentRequireConfirmationOutput) ToAgentRequireConfirmationOutputWithContext(ctx context.Context) AgentRequireConfirmationOutput { + return o +} + +func (o AgentRequireConfirmationOutput) ToAgentRequireConfirmationPtrOutput() AgentRequireConfirmationPtrOutput { + return o.ToAgentRequireConfirmationPtrOutputWithContext(context.Background()) +} + +func (o AgentRequireConfirmationOutput) ToAgentRequireConfirmationPtrOutputWithContext(ctx context.Context) AgentRequireConfirmationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v AgentRequireConfirmation) *AgentRequireConfirmation { + return &v + }).(AgentRequireConfirmationPtrOutput) +} + +func (o AgentRequireConfirmationOutput) ToStringOutput() pulumi.StringOutput { + return o.ToStringOutputWithContext(context.Background()) +} + +func (o AgentRequireConfirmationOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e AgentRequireConfirmation) string { + return string(e) + }).(pulumi.StringOutput) +} + +func (o AgentRequireConfirmationOutput) ToStringPtrOutput() pulumi.StringPtrOutput { + return o.ToStringPtrOutputWithContext(context.Background()) +} + +func (o AgentRequireConfirmationOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e AgentRequireConfirmation) *string { + v := string(e) + return &v + }).(pulumi.StringPtrOutput) +} + +type AgentRequireConfirmationPtrOutput struct{ *pulumi.OutputState } + +func (AgentRequireConfirmationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**AgentRequireConfirmation)(nil)).Elem() +} + +func (o AgentRequireConfirmationPtrOutput) ToAgentRequireConfirmationPtrOutput() AgentRequireConfirmationPtrOutput { + return o +} + +func (o AgentRequireConfirmationPtrOutput) ToAgentRequireConfirmationPtrOutputWithContext(ctx context.Context) AgentRequireConfirmationPtrOutput { + return o +} + +func (o AgentRequireConfirmationPtrOutput) Elem() AgentRequireConfirmationOutput { + return o.ApplyT(func(v *AgentRequireConfirmation) AgentRequireConfirmation { + if v != nil { + return *v + } + var ret AgentRequireConfirmation + return ret + }).(AgentRequireConfirmationOutput) +} + +func (o AgentRequireConfirmationPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { + return o.ToStringPtrOutputWithContext(context.Background()) +} + +func (o AgentRequireConfirmationPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *AgentRequireConfirmation) *string { + if e == nil { + return nil + } + v := string(*e) + return &v + }).(pulumi.StringPtrOutput) +} + +// AgentRequireConfirmationInput is an input type that accepts values of the AgentRequireConfirmation enum +// A concrete instance of `AgentRequireConfirmationInput` can be one of the following: +// +// AgentRequireConfirmationEnabled +// AgentRequireConfirmationDisabled +type AgentRequireConfirmationInput interface { + pulumi.Input + + ToAgentRequireConfirmationOutput() AgentRequireConfirmationOutput + ToAgentRequireConfirmationOutputWithContext(context.Context) AgentRequireConfirmationOutput +} + +var agentRequireConfirmationPtrType = reflect.TypeOf((**AgentRequireConfirmation)(nil)).Elem() + +type AgentRequireConfirmationPtrInput interface { + pulumi.Input + + ToAgentRequireConfirmationPtrOutput() AgentRequireConfirmationPtrOutput + ToAgentRequireConfirmationPtrOutputWithContext(context.Context) AgentRequireConfirmationPtrOutput +} + +type agentRequireConfirmationPtr string + +func AgentRequireConfirmationPtr(v string) AgentRequireConfirmationPtrInput { + return (*agentRequireConfirmationPtr)(&v) +} + +func (*agentRequireConfirmationPtr) ElementType() reflect.Type { + return agentRequireConfirmationPtrType +} + +func (in *agentRequireConfirmationPtr) ToAgentRequireConfirmationPtrOutput() AgentRequireConfirmationPtrOutput { + return pulumi.ToOutput(in).(AgentRequireConfirmationPtrOutput) +} + +func (in *agentRequireConfirmationPtr) ToAgentRequireConfirmationPtrOutputWithContext(ctx context.Context) AgentRequireConfirmationPtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(AgentRequireConfirmationPtrOutput) +} + // Schema Type for Action APIs. type AgentStatus string @@ -6800,11 +6966,178 @@ func (in *knowledgeBaseTypePtr) ToKnowledgeBaseTypePtrOutputWithContext(ctx cont return pulumi.ToOutputWithContext(ctx, in).(KnowledgeBaseTypePtrOutput) } +// Conversation roles for the chat prompt +type PromptConversationRole string + +const ( + PromptConversationRoleUser = PromptConversationRole("user") + PromptConversationRoleAssistant = PromptConversationRole("assistant") +) + +func (PromptConversationRole) ElementType() reflect.Type { + return reflect.TypeOf((*PromptConversationRole)(nil)).Elem() +} + +func (e PromptConversationRole) ToPromptConversationRoleOutput() PromptConversationRoleOutput { + return pulumi.ToOutput(e).(PromptConversationRoleOutput) +} + +func (e PromptConversationRole) ToPromptConversationRoleOutputWithContext(ctx context.Context) PromptConversationRoleOutput { + return pulumi.ToOutputWithContext(ctx, e).(PromptConversationRoleOutput) +} + +func (e PromptConversationRole) ToPromptConversationRolePtrOutput() PromptConversationRolePtrOutput { + return e.ToPromptConversationRolePtrOutputWithContext(context.Background()) +} + +func (e PromptConversationRole) ToPromptConversationRolePtrOutputWithContext(ctx context.Context) PromptConversationRolePtrOutput { + return PromptConversationRole(e).ToPromptConversationRoleOutputWithContext(ctx).ToPromptConversationRolePtrOutputWithContext(ctx) +} + +func (e PromptConversationRole) ToStringOutput() pulumi.StringOutput { + return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) +} + +func (e PromptConversationRole) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) +} + +func (e PromptConversationRole) ToStringPtrOutput() pulumi.StringPtrOutput { + return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) +} + +func (e PromptConversationRole) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) +} + +type PromptConversationRoleOutput struct{ *pulumi.OutputState } + +func (PromptConversationRoleOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptConversationRole)(nil)).Elem() +} + +func (o PromptConversationRoleOutput) ToPromptConversationRoleOutput() PromptConversationRoleOutput { + return o +} + +func (o PromptConversationRoleOutput) ToPromptConversationRoleOutputWithContext(ctx context.Context) PromptConversationRoleOutput { + return o +} + +func (o PromptConversationRoleOutput) ToPromptConversationRolePtrOutput() PromptConversationRolePtrOutput { + return o.ToPromptConversationRolePtrOutputWithContext(context.Background()) +} + +func (o PromptConversationRoleOutput) ToPromptConversationRolePtrOutputWithContext(ctx context.Context) PromptConversationRolePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptConversationRole) *PromptConversationRole { + return &v + }).(PromptConversationRolePtrOutput) +} + +func (o PromptConversationRoleOutput) ToStringOutput() pulumi.StringOutput { + return o.ToStringOutputWithContext(context.Background()) +} + +func (o PromptConversationRoleOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e PromptConversationRole) string { + return string(e) + }).(pulumi.StringOutput) +} + +func (o PromptConversationRoleOutput) ToStringPtrOutput() pulumi.StringPtrOutput { + return o.ToStringPtrOutputWithContext(context.Background()) +} + +func (o PromptConversationRoleOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e PromptConversationRole) *string { + v := string(e) + return &v + }).(pulumi.StringPtrOutput) +} + +type PromptConversationRolePtrOutput struct{ *pulumi.OutputState } + +func (PromptConversationRolePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptConversationRole)(nil)).Elem() +} + +func (o PromptConversationRolePtrOutput) ToPromptConversationRolePtrOutput() PromptConversationRolePtrOutput { + return o +} + +func (o PromptConversationRolePtrOutput) ToPromptConversationRolePtrOutputWithContext(ctx context.Context) PromptConversationRolePtrOutput { + return o +} + +func (o PromptConversationRolePtrOutput) Elem() PromptConversationRoleOutput { + return o.ApplyT(func(v *PromptConversationRole) PromptConversationRole { + if v != nil { + return *v + } + var ret PromptConversationRole + return ret + }).(PromptConversationRoleOutput) +} + +func (o PromptConversationRolePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { + return o.ToStringPtrOutputWithContext(context.Background()) +} + +func (o PromptConversationRolePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *PromptConversationRole) *string { + if e == nil { + return nil + } + v := string(*e) + return &v + }).(pulumi.StringPtrOutput) +} + +// PromptConversationRoleInput is an input type that accepts values of the PromptConversationRole enum +// A concrete instance of `PromptConversationRoleInput` can be one of the following: +// +// PromptConversationRoleUser +// PromptConversationRoleAssistant +type PromptConversationRoleInput interface { + pulumi.Input + + ToPromptConversationRoleOutput() PromptConversationRoleOutput + ToPromptConversationRoleOutputWithContext(context.Context) PromptConversationRoleOutput +} + +var promptConversationRolePtrType = reflect.TypeOf((**PromptConversationRole)(nil)).Elem() + +type PromptConversationRolePtrInput interface { + pulumi.Input + + ToPromptConversationRolePtrOutput() PromptConversationRolePtrOutput + ToPromptConversationRolePtrOutputWithContext(context.Context) PromptConversationRolePtrOutput +} + +type promptConversationRolePtr string + +func PromptConversationRolePtr(v string) PromptConversationRolePtrInput { + return (*promptConversationRolePtr)(&v) +} + +func (*promptConversationRolePtr) ElementType() reflect.Type { + return promptConversationRolePtrType +} + +func (in *promptConversationRolePtr) ToPromptConversationRolePtrOutput() PromptConversationRolePtrOutput { + return pulumi.ToOutput(in).(PromptConversationRolePtrOutput) +} + +func (in *promptConversationRolePtr) ToPromptConversationRolePtrOutputWithContext(ctx context.Context) PromptConversationRolePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(PromptConversationRolePtrOutput) +} + // Prompt template type type PromptTemplateType string const ( PromptTemplateTypeText = PromptTemplateType("TEXT") + PromptTemplateTypeChat = PromptTemplateType("CHAT") ) func (PromptTemplateType) ElementType() reflect.Type { @@ -6930,6 +7263,7 @@ func (o PromptTemplateTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Co // A concrete instance of `PromptTemplateTypeInput` can be one of the following: // // PromptTemplateTypeText +// PromptTemplateTypeChat type PromptTemplateTypeInput interface { pulumi.Input @@ -7069,6 +7403,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*AgentPromptStatePtrInput)(nil)).Elem(), AgentPromptState("ENABLED")) pulumi.RegisterInputType(reflect.TypeOf((*AgentPromptTypeInput)(nil)).Elem(), AgentPromptType("PRE_PROCESSING")) pulumi.RegisterInputType(reflect.TypeOf((*AgentPromptTypePtrInput)(nil)).Elem(), AgentPromptType("PRE_PROCESSING")) + pulumi.RegisterInputType(reflect.TypeOf((*AgentRequireConfirmationInput)(nil)).Elem(), AgentRequireConfirmation("ENABLED")) + pulumi.RegisterInputType(reflect.TypeOf((*AgentRequireConfirmationPtrInput)(nil)).Elem(), AgentRequireConfirmation("ENABLED")) pulumi.RegisterInputType(reflect.TypeOf((*AgentTypeInput)(nil)).Elem(), AgentType("string")) pulumi.RegisterInputType(reflect.TypeOf((*AgentTypePtrInput)(nil)).Elem(), AgentType("string")) pulumi.RegisterInputType(reflect.TypeOf((*DataSourceChunkingStrategyInput)(nil)).Elem(), DataSourceChunkingStrategy("FIXED_SIZE")) @@ -7121,6 +7457,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*KnowledgeBaseStorageTypePtrInput)(nil)).Elem(), KnowledgeBaseStorageType("OPENSEARCH_SERVERLESS")) pulumi.RegisterInputType(reflect.TypeOf((*KnowledgeBaseTypeInput)(nil)).Elem(), KnowledgeBaseType("VECTOR")) pulumi.RegisterInputType(reflect.TypeOf((*KnowledgeBaseTypePtrInput)(nil)).Elem(), KnowledgeBaseType("VECTOR")) + pulumi.RegisterInputType(reflect.TypeOf((*PromptConversationRoleInput)(nil)).Elem(), PromptConversationRole("user")) + pulumi.RegisterInputType(reflect.TypeOf((*PromptConversationRolePtrInput)(nil)).Elem(), PromptConversationRole("user")) pulumi.RegisterInputType(reflect.TypeOf((*PromptTemplateTypeInput)(nil)).Elem(), PromptTemplateType("TEXT")) pulumi.RegisterInputType(reflect.TypeOf((*PromptTemplateTypePtrInput)(nil)).Elem(), PromptTemplateType("TEXT")) pulumi.RegisterOutputType(AgentActionGroupSignatureOutput{}) @@ -7139,6 +7477,8 @@ func init() { pulumi.RegisterOutputType(AgentPromptStatePtrOutput{}) pulumi.RegisterOutputType(AgentPromptTypeOutput{}) pulumi.RegisterOutputType(AgentPromptTypePtrOutput{}) + pulumi.RegisterOutputType(AgentRequireConfirmationOutput{}) + pulumi.RegisterOutputType(AgentRequireConfirmationPtrOutput{}) pulumi.RegisterOutputType(AgentStatusOutput{}) pulumi.RegisterOutputType(AgentStatusPtrOutput{}) pulumi.RegisterOutputType(AgentTypeOutput{}) @@ -7215,6 +7555,8 @@ func init() { pulumi.RegisterOutputType(KnowledgeBaseStorageTypePtrOutput{}) pulumi.RegisterOutputType(KnowledgeBaseTypeOutput{}) pulumi.RegisterOutputType(KnowledgeBaseTypePtrOutput{}) + pulumi.RegisterOutputType(PromptConversationRoleOutput{}) + pulumi.RegisterOutputType(PromptConversationRolePtrOutput{}) pulumi.RegisterOutputType(PromptTemplateTypeOutput{}) pulumi.RegisterOutputType(PromptTemplateTypePtrOutput{}) pulumi.RegisterOutputType(PromptVersionPromptTemplateTypeOutput{}) diff --git a/sdk/go/aws/bedrock/pulumiTypes.go b/sdk/go/aws/bedrock/pulumiTypes.go index c9b1bdea54..e6e6c8a0bf 100644 --- a/sdk/go/aws/bedrock/pulumiTypes.go +++ b/sdk/go/aws/bedrock/pulumiTypes.go @@ -901,7 +901,8 @@ type AgentFunction struct { // Name for a resource. Name string `pulumi:"name"` // The parameters that the agent elicits from the user to fulfill the function. - Parameters map[string]AgentParameterDetail `pulumi:"parameters"` + Parameters map[string]AgentParameterDetail `pulumi:"parameters"` + RequireConfirmation *AgentRequireConfirmation `pulumi:"requireConfirmation"` } // AgentFunctionInput is an input type that accepts AgentFunctionArgs and AgentFunctionOutput values. @@ -922,7 +923,8 @@ type AgentFunctionArgs struct { // Name for a resource. Name pulumi.StringInput `pulumi:"name"` // The parameters that the agent elicits from the user to fulfill the function. - Parameters AgentParameterDetailMapInput `pulumi:"parameters"` + Parameters AgentParameterDetailMapInput `pulumi:"parameters"` + RequireConfirmation AgentRequireConfirmationPtrInput `pulumi:"requireConfirmation"` } func (AgentFunctionArgs) ElementType() reflect.Type { @@ -992,6 +994,10 @@ func (o AgentFunctionOutput) Parameters() AgentParameterDetailMapOutput { return o.ApplyT(func(v AgentFunction) map[string]AgentParameterDetail { return v.Parameters }).(AgentParameterDetailMapOutput) } +func (o AgentFunctionOutput) RequireConfirmation() AgentRequireConfirmationPtrOutput { + return o.ApplyT(func(v AgentFunction) *AgentRequireConfirmation { return v.RequireConfirmation }).(AgentRequireConfirmationPtrOutput) +} + type AgentFunctionArrayOutput struct{ *pulumi.OutputState } func (AgentFunctionArrayOutput) ElementType() reflect.Type { @@ -21990,751 +21996,2648 @@ func (o KnowledgeBaseVectorKnowledgeBaseConfigurationOutput) EmbeddingModelConfi }).(KnowledgeBaseEmbeddingModelConfigurationPtrOutput) } -// Model inference configuration -type PromptInferenceConfiguration0Properties struct { - Text PromptModelInferenceConfiguration `pulumi:"text"` -} - -// Model inference configuration -type PromptInferenceConfigurationProperties struct { - Text PromptModelInferenceConfiguration `pulumi:"text"` +// Target Agent to invoke with Prompt +type PromptAgentResource struct { + // Arn representation of the Agent Alias. + AgentIdentifier string `pulumi:"agentIdentifier"` } -// PromptInferenceConfigurationPropertiesInput is an input type that accepts PromptInferenceConfigurationPropertiesArgs and PromptInferenceConfigurationPropertiesOutput values. -// You can construct a concrete instance of `PromptInferenceConfigurationPropertiesInput` via: +// PromptAgentResourceInput is an input type that accepts PromptAgentResourceArgs and PromptAgentResourceOutput values. +// You can construct a concrete instance of `PromptAgentResourceInput` via: // -// PromptInferenceConfigurationPropertiesArgs{...} -type PromptInferenceConfigurationPropertiesInput interface { +// PromptAgentResourceArgs{...} +type PromptAgentResourceInput interface { pulumi.Input - ToPromptInferenceConfigurationPropertiesOutput() PromptInferenceConfigurationPropertiesOutput - ToPromptInferenceConfigurationPropertiesOutputWithContext(context.Context) PromptInferenceConfigurationPropertiesOutput + ToPromptAgentResourceOutput() PromptAgentResourceOutput + ToPromptAgentResourceOutputWithContext(context.Context) PromptAgentResourceOutput } -// Model inference configuration -type PromptInferenceConfigurationPropertiesArgs struct { - Text PromptModelInferenceConfigurationInput `pulumi:"text"` +// Target Agent to invoke with Prompt +type PromptAgentResourceArgs struct { + // Arn representation of the Agent Alias. + AgentIdentifier pulumi.StringInput `pulumi:"agentIdentifier"` } -func (PromptInferenceConfigurationPropertiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PromptInferenceConfigurationProperties)(nil)).Elem() +func (PromptAgentResourceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptAgentResource)(nil)).Elem() } -func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesOutput() PromptInferenceConfigurationPropertiesOutput { - return i.ToPromptInferenceConfigurationPropertiesOutputWithContext(context.Background()) +func (i PromptAgentResourceArgs) ToPromptAgentResourceOutput() PromptAgentResourceOutput { + return i.ToPromptAgentResourceOutputWithContext(context.Background()) } -func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptInferenceConfigurationPropertiesOutput) +func (i PromptAgentResourceArgs) ToPromptAgentResourceOutputWithContext(ctx context.Context) PromptAgentResourceOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAgentResourceOutput) } -func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { - return i.ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Background()) +func (i PromptAgentResourceArgs) ToPromptAgentResourcePtrOutput() PromptAgentResourcePtrOutput { + return i.ToPromptAgentResourcePtrOutputWithContext(context.Background()) } -func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptInferenceConfigurationPropertiesOutput).ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx) +func (i PromptAgentResourceArgs) ToPromptAgentResourcePtrOutputWithContext(ctx context.Context) PromptAgentResourcePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAgentResourceOutput).ToPromptAgentResourcePtrOutputWithContext(ctx) } -// PromptInferenceConfigurationPropertiesPtrInput is an input type that accepts PromptInferenceConfigurationPropertiesArgs, PromptInferenceConfigurationPropertiesPtr and PromptInferenceConfigurationPropertiesPtrOutput values. -// You can construct a concrete instance of `PromptInferenceConfigurationPropertiesPtrInput` via: +// PromptAgentResourcePtrInput is an input type that accepts PromptAgentResourceArgs, PromptAgentResourcePtr and PromptAgentResourcePtrOutput values. +// You can construct a concrete instance of `PromptAgentResourcePtrInput` via: // -// PromptInferenceConfigurationPropertiesArgs{...} +// PromptAgentResourceArgs{...} // // or: // // nil -type PromptInferenceConfigurationPropertiesPtrInput interface { +type PromptAgentResourcePtrInput interface { pulumi.Input - ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput - ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Context) PromptInferenceConfigurationPropertiesPtrOutput + ToPromptAgentResourcePtrOutput() PromptAgentResourcePtrOutput + ToPromptAgentResourcePtrOutputWithContext(context.Context) PromptAgentResourcePtrOutput } -type promptInferenceConfigurationPropertiesPtrType PromptInferenceConfigurationPropertiesArgs +type promptAgentResourcePtrType PromptAgentResourceArgs -func PromptInferenceConfigurationPropertiesPtr(v *PromptInferenceConfigurationPropertiesArgs) PromptInferenceConfigurationPropertiesPtrInput { - return (*promptInferenceConfigurationPropertiesPtrType)(v) +func PromptAgentResourcePtr(v *PromptAgentResourceArgs) PromptAgentResourcePtrInput { + return (*promptAgentResourcePtrType)(v) } -func (*promptInferenceConfigurationPropertiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**PromptInferenceConfigurationProperties)(nil)).Elem() +func (*promptAgentResourcePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptAgentResource)(nil)).Elem() } -func (i *promptInferenceConfigurationPropertiesPtrType) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { - return i.ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Background()) +func (i *promptAgentResourcePtrType) ToPromptAgentResourcePtrOutput() PromptAgentResourcePtrOutput { + return i.ToPromptAgentResourcePtrOutputWithContext(context.Background()) } -func (i *promptInferenceConfigurationPropertiesPtrType) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptInferenceConfigurationPropertiesPtrOutput) +func (i *promptAgentResourcePtrType) ToPromptAgentResourcePtrOutputWithContext(ctx context.Context) PromptAgentResourcePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAgentResourcePtrOutput) } -// Model inference configuration -type PromptInferenceConfigurationPropertiesOutput struct{ *pulumi.OutputState } +// Target Agent to invoke with Prompt +type PromptAgentResourceOutput struct{ *pulumi.OutputState } -func (PromptInferenceConfigurationPropertiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PromptInferenceConfigurationProperties)(nil)).Elem() +func (PromptAgentResourceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptAgentResource)(nil)).Elem() } -func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesOutput() PromptInferenceConfigurationPropertiesOutput { +func (o PromptAgentResourceOutput) ToPromptAgentResourceOutput() PromptAgentResourceOutput { return o } -func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesOutput { +func (o PromptAgentResourceOutput) ToPromptAgentResourceOutputWithContext(ctx context.Context) PromptAgentResourceOutput { return o } -func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { - return o.ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Background()) +func (o PromptAgentResourceOutput) ToPromptAgentResourcePtrOutput() PromptAgentResourcePtrOutput { + return o.ToPromptAgentResourcePtrOutputWithContext(context.Background()) } -func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptInferenceConfigurationProperties) *PromptInferenceConfigurationProperties { +func (o PromptAgentResourceOutput) ToPromptAgentResourcePtrOutputWithContext(ctx context.Context) PromptAgentResourcePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptAgentResource) *PromptAgentResource { return &v - }).(PromptInferenceConfigurationPropertiesPtrOutput) + }).(PromptAgentResourcePtrOutput) } -func (o PromptInferenceConfigurationPropertiesOutput) Text() PromptModelInferenceConfigurationOutput { - return o.ApplyT(func(v PromptInferenceConfigurationProperties) PromptModelInferenceConfiguration { return v.Text }).(PromptModelInferenceConfigurationOutput) +// Arn representation of the Agent Alias. +func (o PromptAgentResourceOutput) AgentIdentifier() pulumi.StringOutput { + return o.ApplyT(func(v PromptAgentResource) string { return v.AgentIdentifier }).(pulumi.StringOutput) } -type PromptInferenceConfigurationPropertiesPtrOutput struct{ *pulumi.OutputState } +type PromptAgentResourcePtrOutput struct{ *pulumi.OutputState } -func (PromptInferenceConfigurationPropertiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**PromptInferenceConfigurationProperties)(nil)).Elem() +func (PromptAgentResourcePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptAgentResource)(nil)).Elem() } -func (o PromptInferenceConfigurationPropertiesPtrOutput) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { +func (o PromptAgentResourcePtrOutput) ToPromptAgentResourcePtrOutput() PromptAgentResourcePtrOutput { return o } -func (o PromptInferenceConfigurationPropertiesPtrOutput) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { +func (o PromptAgentResourcePtrOutput) ToPromptAgentResourcePtrOutputWithContext(ctx context.Context) PromptAgentResourcePtrOutput { return o } -func (o PromptInferenceConfigurationPropertiesPtrOutput) Elem() PromptInferenceConfigurationPropertiesOutput { - return o.ApplyT(func(v *PromptInferenceConfigurationProperties) PromptInferenceConfigurationProperties { +func (o PromptAgentResourcePtrOutput) Elem() PromptAgentResourceOutput { + return o.ApplyT(func(v *PromptAgentResource) PromptAgentResource { if v != nil { return *v } - var ret PromptInferenceConfigurationProperties + var ret PromptAgentResource return ret - }).(PromptInferenceConfigurationPropertiesOutput) + }).(PromptAgentResourceOutput) } -func (o PromptInferenceConfigurationPropertiesPtrOutput) Text() PromptModelInferenceConfigurationPtrOutput { - return o.ApplyT(func(v *PromptInferenceConfigurationProperties) *PromptModelInferenceConfiguration { +// Arn representation of the Agent Alias. +func (o PromptAgentResourcePtrOutput) AgentIdentifier() pulumi.StringPtrOutput { + return o.ApplyT(func(v *PromptAgentResource) *string { if v == nil { return nil } - return &v.Text - }).(PromptModelInferenceConfigurationPtrOutput) + return &v.AgentIdentifier + }).(pulumi.StringPtrOutput) } -// Input variable -type PromptInputVariable struct { - // Name for an input variable - Name *string `pulumi:"name"` +// Any Tool choice +type PromptAnyToolChoice struct { } -// PromptInputVariableInput is an input type that accepts PromptInputVariableArgs and PromptInputVariableOutput values. -// You can construct a concrete instance of `PromptInputVariableInput` via: +// PromptAnyToolChoiceInput is an input type that accepts PromptAnyToolChoiceArgs and PromptAnyToolChoiceOutput values. +// You can construct a concrete instance of `PromptAnyToolChoiceInput` via: // -// PromptInputVariableArgs{...} -type PromptInputVariableInput interface { +// PromptAnyToolChoiceArgs{...} +type PromptAnyToolChoiceInput interface { pulumi.Input - ToPromptInputVariableOutput() PromptInputVariableOutput - ToPromptInputVariableOutputWithContext(context.Context) PromptInputVariableOutput + ToPromptAnyToolChoiceOutput() PromptAnyToolChoiceOutput + ToPromptAnyToolChoiceOutputWithContext(context.Context) PromptAnyToolChoiceOutput } -// Input variable -type PromptInputVariableArgs struct { - // Name for an input variable - Name pulumi.StringPtrInput `pulumi:"name"` +// Any Tool choice +type PromptAnyToolChoiceArgs struct { } -func (PromptInputVariableArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PromptInputVariable)(nil)).Elem() +func (PromptAnyToolChoiceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptAnyToolChoice)(nil)).Elem() } -func (i PromptInputVariableArgs) ToPromptInputVariableOutput() PromptInputVariableOutput { - return i.ToPromptInputVariableOutputWithContext(context.Background()) +func (i PromptAnyToolChoiceArgs) ToPromptAnyToolChoiceOutput() PromptAnyToolChoiceOutput { + return i.ToPromptAnyToolChoiceOutputWithContext(context.Background()) } -func (i PromptInputVariableArgs) ToPromptInputVariableOutputWithContext(ctx context.Context) PromptInputVariableOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptInputVariableOutput) +func (i PromptAnyToolChoiceArgs) ToPromptAnyToolChoiceOutputWithContext(ctx context.Context) PromptAnyToolChoiceOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAnyToolChoiceOutput) } -// PromptInputVariableArrayInput is an input type that accepts PromptInputVariableArray and PromptInputVariableArrayOutput values. -// You can construct a concrete instance of `PromptInputVariableArrayInput` via: +func (i PromptAnyToolChoiceArgs) ToPromptAnyToolChoicePtrOutput() PromptAnyToolChoicePtrOutput { + return i.ToPromptAnyToolChoicePtrOutputWithContext(context.Background()) +} + +func (i PromptAnyToolChoiceArgs) ToPromptAnyToolChoicePtrOutputWithContext(ctx context.Context) PromptAnyToolChoicePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAnyToolChoiceOutput).ToPromptAnyToolChoicePtrOutputWithContext(ctx) +} + +// PromptAnyToolChoicePtrInput is an input type that accepts PromptAnyToolChoiceArgs, PromptAnyToolChoicePtr and PromptAnyToolChoicePtrOutput values. +// You can construct a concrete instance of `PromptAnyToolChoicePtrInput` via: // -// PromptInputVariableArray{ PromptInputVariableArgs{...} } -type PromptInputVariableArrayInput interface { +// PromptAnyToolChoiceArgs{...} +// +// or: +// +// nil +type PromptAnyToolChoicePtrInput interface { pulumi.Input - ToPromptInputVariableArrayOutput() PromptInputVariableArrayOutput - ToPromptInputVariableArrayOutputWithContext(context.Context) PromptInputVariableArrayOutput + ToPromptAnyToolChoicePtrOutput() PromptAnyToolChoicePtrOutput + ToPromptAnyToolChoicePtrOutputWithContext(context.Context) PromptAnyToolChoicePtrOutput } -type PromptInputVariableArray []PromptInputVariableInput +type promptAnyToolChoicePtrType PromptAnyToolChoiceArgs -func (PromptInputVariableArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]PromptInputVariable)(nil)).Elem() +func PromptAnyToolChoicePtr(v *PromptAnyToolChoiceArgs) PromptAnyToolChoicePtrInput { + return (*promptAnyToolChoicePtrType)(v) } -func (i PromptInputVariableArray) ToPromptInputVariableArrayOutput() PromptInputVariableArrayOutput { - return i.ToPromptInputVariableArrayOutputWithContext(context.Background()) +func (*promptAnyToolChoicePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptAnyToolChoice)(nil)).Elem() } -func (i PromptInputVariableArray) ToPromptInputVariableArrayOutputWithContext(ctx context.Context) PromptInputVariableArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptInputVariableArrayOutput) +func (i *promptAnyToolChoicePtrType) ToPromptAnyToolChoicePtrOutput() PromptAnyToolChoicePtrOutput { + return i.ToPromptAnyToolChoicePtrOutputWithContext(context.Background()) } -// Input variable -type PromptInputVariableOutput struct{ *pulumi.OutputState } +func (i *promptAnyToolChoicePtrType) ToPromptAnyToolChoicePtrOutputWithContext(ctx context.Context) PromptAnyToolChoicePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAnyToolChoicePtrOutput) +} -func (PromptInputVariableOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PromptInputVariable)(nil)).Elem() +// Any Tool choice +type PromptAnyToolChoiceOutput struct{ *pulumi.OutputState } + +func (PromptAnyToolChoiceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptAnyToolChoice)(nil)).Elem() } -func (o PromptInputVariableOutput) ToPromptInputVariableOutput() PromptInputVariableOutput { +func (o PromptAnyToolChoiceOutput) ToPromptAnyToolChoiceOutput() PromptAnyToolChoiceOutput { return o } -func (o PromptInputVariableOutput) ToPromptInputVariableOutputWithContext(ctx context.Context) PromptInputVariableOutput { +func (o PromptAnyToolChoiceOutput) ToPromptAnyToolChoiceOutputWithContext(ctx context.Context) PromptAnyToolChoiceOutput { return o } -// Name for an input variable -func (o PromptInputVariableOutput) Name() pulumi.StringPtrOutput { - return o.ApplyT(func(v PromptInputVariable) *string { return v.Name }).(pulumi.StringPtrOutput) +func (o PromptAnyToolChoiceOutput) ToPromptAnyToolChoicePtrOutput() PromptAnyToolChoicePtrOutput { + return o.ToPromptAnyToolChoicePtrOutputWithContext(context.Background()) } -type PromptInputVariableArrayOutput struct{ *pulumi.OutputState } +func (o PromptAnyToolChoiceOutput) ToPromptAnyToolChoicePtrOutputWithContext(ctx context.Context) PromptAnyToolChoicePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptAnyToolChoice) *PromptAnyToolChoice { + return &v + }).(PromptAnyToolChoicePtrOutput) +} -func (PromptInputVariableArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]PromptInputVariable)(nil)).Elem() +type PromptAnyToolChoicePtrOutput struct{ *pulumi.OutputState } + +func (PromptAnyToolChoicePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptAnyToolChoice)(nil)).Elem() } -func (o PromptInputVariableArrayOutput) ToPromptInputVariableArrayOutput() PromptInputVariableArrayOutput { +func (o PromptAnyToolChoicePtrOutput) ToPromptAnyToolChoicePtrOutput() PromptAnyToolChoicePtrOutput { return o } -func (o PromptInputVariableArrayOutput) ToPromptInputVariableArrayOutputWithContext(ctx context.Context) PromptInputVariableArrayOutput { +func (o PromptAnyToolChoicePtrOutput) ToPromptAnyToolChoicePtrOutputWithContext(ctx context.Context) PromptAnyToolChoicePtrOutput { return o } -func (o PromptInputVariableArrayOutput) Index(i pulumi.IntInput) PromptInputVariableOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) PromptInputVariable { - return vs[0].([]PromptInputVariable)[vs[1].(int)] - }).(PromptInputVariableOutput) +func (o PromptAnyToolChoicePtrOutput) Elem() PromptAnyToolChoiceOutput { + return o.ApplyT(func(v *PromptAnyToolChoice) PromptAnyToolChoice { + if v != nil { + return *v + } + var ret PromptAnyToolChoice + return ret + }).(PromptAnyToolChoiceOutput) } -// Prompt model inference configuration -type PromptModelInferenceConfiguration struct { - // Maximum length of output - MaxTokens *float64 `pulumi:"maxTokens"` - // List of stop sequences - StopSequences []string `pulumi:"stopSequences"` - // Controls randomness, higher values increase diversity - Temperature *float64 `pulumi:"temperature"` - // Cumulative probability cutoff for token selection - TopP *float64 `pulumi:"topP"` +// Auto Tool choice +type PromptAutoToolChoice struct { } -// PromptModelInferenceConfigurationInput is an input type that accepts PromptModelInferenceConfigurationArgs and PromptModelInferenceConfigurationOutput values. -// You can construct a concrete instance of `PromptModelInferenceConfigurationInput` via: +// PromptAutoToolChoiceInput is an input type that accepts PromptAutoToolChoiceArgs and PromptAutoToolChoiceOutput values. +// You can construct a concrete instance of `PromptAutoToolChoiceInput` via: // -// PromptModelInferenceConfigurationArgs{...} -type PromptModelInferenceConfigurationInput interface { +// PromptAutoToolChoiceArgs{...} +type PromptAutoToolChoiceInput interface { pulumi.Input - ToPromptModelInferenceConfigurationOutput() PromptModelInferenceConfigurationOutput - ToPromptModelInferenceConfigurationOutputWithContext(context.Context) PromptModelInferenceConfigurationOutput + ToPromptAutoToolChoiceOutput() PromptAutoToolChoiceOutput + ToPromptAutoToolChoiceOutputWithContext(context.Context) PromptAutoToolChoiceOutput } -// Prompt model inference configuration -type PromptModelInferenceConfigurationArgs struct { - // Maximum length of output - MaxTokens pulumi.Float64PtrInput `pulumi:"maxTokens"` - // List of stop sequences - StopSequences pulumi.StringArrayInput `pulumi:"stopSequences"` - // Controls randomness, higher values increase diversity - Temperature pulumi.Float64PtrInput `pulumi:"temperature"` - // Cumulative probability cutoff for token selection - TopP pulumi.Float64PtrInput `pulumi:"topP"` +// Auto Tool choice +type PromptAutoToolChoiceArgs struct { } -func (PromptModelInferenceConfigurationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PromptModelInferenceConfiguration)(nil)).Elem() +func (PromptAutoToolChoiceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptAutoToolChoice)(nil)).Elem() } -func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationOutput() PromptModelInferenceConfigurationOutput { - return i.ToPromptModelInferenceConfigurationOutputWithContext(context.Background()) +func (i PromptAutoToolChoiceArgs) ToPromptAutoToolChoiceOutput() PromptAutoToolChoiceOutput { + return i.ToPromptAutoToolChoiceOutputWithContext(context.Background()) } -func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptModelInferenceConfigurationOutput) +func (i PromptAutoToolChoiceArgs) ToPromptAutoToolChoiceOutputWithContext(ctx context.Context) PromptAutoToolChoiceOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAutoToolChoiceOutput) } -func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { - return i.ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Background()) +func (i PromptAutoToolChoiceArgs) ToPromptAutoToolChoicePtrOutput() PromptAutoToolChoicePtrOutput { + return i.ToPromptAutoToolChoicePtrOutputWithContext(context.Background()) } -func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptModelInferenceConfigurationOutput).ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx) +func (i PromptAutoToolChoiceArgs) ToPromptAutoToolChoicePtrOutputWithContext(ctx context.Context) PromptAutoToolChoicePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAutoToolChoiceOutput).ToPromptAutoToolChoicePtrOutputWithContext(ctx) } -// PromptModelInferenceConfigurationPtrInput is an input type that accepts PromptModelInferenceConfigurationArgs, PromptModelInferenceConfigurationPtr and PromptModelInferenceConfigurationPtrOutput values. -// You can construct a concrete instance of `PromptModelInferenceConfigurationPtrInput` via: +// PromptAutoToolChoicePtrInput is an input type that accepts PromptAutoToolChoiceArgs, PromptAutoToolChoicePtr and PromptAutoToolChoicePtrOutput values. +// You can construct a concrete instance of `PromptAutoToolChoicePtrInput` via: // -// PromptModelInferenceConfigurationArgs{...} +// PromptAutoToolChoiceArgs{...} // // or: // // nil -type PromptModelInferenceConfigurationPtrInput interface { +type PromptAutoToolChoicePtrInput interface { pulumi.Input - ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput - ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Context) PromptModelInferenceConfigurationPtrOutput + ToPromptAutoToolChoicePtrOutput() PromptAutoToolChoicePtrOutput + ToPromptAutoToolChoicePtrOutputWithContext(context.Context) PromptAutoToolChoicePtrOutput } -type promptModelInferenceConfigurationPtrType PromptModelInferenceConfigurationArgs +type promptAutoToolChoicePtrType PromptAutoToolChoiceArgs -func PromptModelInferenceConfigurationPtr(v *PromptModelInferenceConfigurationArgs) PromptModelInferenceConfigurationPtrInput { - return (*promptModelInferenceConfigurationPtrType)(v) +func PromptAutoToolChoicePtr(v *PromptAutoToolChoiceArgs) PromptAutoToolChoicePtrInput { + return (*promptAutoToolChoicePtrType)(v) } -func (*promptModelInferenceConfigurationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**PromptModelInferenceConfiguration)(nil)).Elem() +func (*promptAutoToolChoicePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptAutoToolChoice)(nil)).Elem() } -func (i *promptModelInferenceConfigurationPtrType) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { - return i.ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Background()) +func (i *promptAutoToolChoicePtrType) ToPromptAutoToolChoicePtrOutput() PromptAutoToolChoicePtrOutput { + return i.ToPromptAutoToolChoicePtrOutputWithContext(context.Background()) } -func (i *promptModelInferenceConfigurationPtrType) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptModelInferenceConfigurationPtrOutput) +func (i *promptAutoToolChoicePtrType) ToPromptAutoToolChoicePtrOutputWithContext(ctx context.Context) PromptAutoToolChoicePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptAutoToolChoicePtrOutput) } -// Prompt model inference configuration -type PromptModelInferenceConfigurationOutput struct{ *pulumi.OutputState } +// Auto Tool choice +type PromptAutoToolChoiceOutput struct{ *pulumi.OutputState } -func (PromptModelInferenceConfigurationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PromptModelInferenceConfiguration)(nil)).Elem() +func (PromptAutoToolChoiceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptAutoToolChoice)(nil)).Elem() } -func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationOutput() PromptModelInferenceConfigurationOutput { +func (o PromptAutoToolChoiceOutput) ToPromptAutoToolChoiceOutput() PromptAutoToolChoiceOutput { return o } -func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationOutput { +func (o PromptAutoToolChoiceOutput) ToPromptAutoToolChoiceOutputWithContext(ctx context.Context) PromptAutoToolChoiceOutput { return o } -func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { - return o.ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Background()) +func (o PromptAutoToolChoiceOutput) ToPromptAutoToolChoicePtrOutput() PromptAutoToolChoicePtrOutput { + return o.ToPromptAutoToolChoicePtrOutputWithContext(context.Background()) } -func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptModelInferenceConfiguration) *PromptModelInferenceConfiguration { +func (o PromptAutoToolChoiceOutput) ToPromptAutoToolChoicePtrOutputWithContext(ctx context.Context) PromptAutoToolChoicePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptAutoToolChoice) *PromptAutoToolChoice { return &v - }).(PromptModelInferenceConfigurationPtrOutput) -} - -// Maximum length of output -func (o PromptModelInferenceConfigurationOutput) MaxTokens() pulumi.Float64PtrOutput { - return o.ApplyT(func(v PromptModelInferenceConfiguration) *float64 { return v.MaxTokens }).(pulumi.Float64PtrOutput) -} - -// List of stop sequences -func (o PromptModelInferenceConfigurationOutput) StopSequences() pulumi.StringArrayOutput { - return o.ApplyT(func(v PromptModelInferenceConfiguration) []string { return v.StopSequences }).(pulumi.StringArrayOutput) -} - -// Controls randomness, higher values increase diversity -func (o PromptModelInferenceConfigurationOutput) Temperature() pulumi.Float64PtrOutput { - return o.ApplyT(func(v PromptModelInferenceConfiguration) *float64 { return v.Temperature }).(pulumi.Float64PtrOutput) -} - -// Cumulative probability cutoff for token selection -func (o PromptModelInferenceConfigurationOutput) TopP() pulumi.Float64PtrOutput { - return o.ApplyT(func(v PromptModelInferenceConfiguration) *float64 { return v.TopP }).(pulumi.Float64PtrOutput) + }).(PromptAutoToolChoicePtrOutput) } -type PromptModelInferenceConfigurationPtrOutput struct{ *pulumi.OutputState } +type PromptAutoToolChoicePtrOutput struct{ *pulumi.OutputState } -func (PromptModelInferenceConfigurationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**PromptModelInferenceConfiguration)(nil)).Elem() +func (PromptAutoToolChoicePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptAutoToolChoice)(nil)).Elem() } -func (o PromptModelInferenceConfigurationPtrOutput) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { +func (o PromptAutoToolChoicePtrOutput) ToPromptAutoToolChoicePtrOutput() PromptAutoToolChoicePtrOutput { return o } -func (o PromptModelInferenceConfigurationPtrOutput) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { +func (o PromptAutoToolChoicePtrOutput) ToPromptAutoToolChoicePtrOutputWithContext(ctx context.Context) PromptAutoToolChoicePtrOutput { return o } -func (o PromptModelInferenceConfigurationPtrOutput) Elem() PromptModelInferenceConfigurationOutput { - return o.ApplyT(func(v *PromptModelInferenceConfiguration) PromptModelInferenceConfiguration { +func (o PromptAutoToolChoicePtrOutput) Elem() PromptAutoToolChoiceOutput { + return o.ApplyT(func(v *PromptAutoToolChoice) PromptAutoToolChoice { if v != nil { return *v } - var ret PromptModelInferenceConfiguration + var ret PromptAutoToolChoice return ret - }).(PromptModelInferenceConfigurationOutput) + }).(PromptAutoToolChoiceOutput) } -// Maximum length of output -func (o PromptModelInferenceConfigurationPtrOutput) MaxTokens() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *PromptModelInferenceConfiguration) *float64 { - if v == nil { - return nil - } - return v.MaxTokens - }).(pulumi.Float64PtrOutput) +// Configuration for chat prompt template +type PromptChatPromptTemplateConfiguration struct { + // List of input variables + InputVariables []PromptInputVariable `pulumi:"inputVariables"` + // List of messages for chat prompt template + Messages []PromptMessage `pulumi:"messages"` + // Configuration for chat prompt template + System []PromptSystemContentBlockProperties `pulumi:"system"` + ToolConfiguration *PromptToolConfiguration `pulumi:"toolConfiguration"` } -// List of stop sequences -func (o PromptModelInferenceConfigurationPtrOutput) StopSequences() pulumi.StringArrayOutput { - return o.ApplyT(func(v *PromptModelInferenceConfiguration) []string { - if v == nil { - return nil - } - return v.StopSequences - }).(pulumi.StringArrayOutput) +// PromptChatPromptTemplateConfigurationInput is an input type that accepts PromptChatPromptTemplateConfigurationArgs and PromptChatPromptTemplateConfigurationOutput values. +// You can construct a concrete instance of `PromptChatPromptTemplateConfigurationInput` via: +// +// PromptChatPromptTemplateConfigurationArgs{...} +type PromptChatPromptTemplateConfigurationInput interface { + pulumi.Input + + ToPromptChatPromptTemplateConfigurationOutput() PromptChatPromptTemplateConfigurationOutput + ToPromptChatPromptTemplateConfigurationOutputWithContext(context.Context) PromptChatPromptTemplateConfigurationOutput } -// Controls randomness, higher values increase diversity +// Configuration for chat prompt template +type PromptChatPromptTemplateConfigurationArgs struct { + // List of input variables + InputVariables PromptInputVariableArrayInput `pulumi:"inputVariables"` + // List of messages for chat prompt template + Messages PromptMessageArrayInput `pulumi:"messages"` + // Configuration for chat prompt template + System PromptSystemContentBlockPropertiesArrayInput `pulumi:"system"` + ToolConfiguration PromptToolConfigurationPtrInput `pulumi:"toolConfiguration"` +} + +func (PromptChatPromptTemplateConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptChatPromptTemplateConfiguration)(nil)).Elem() +} + +func (i PromptChatPromptTemplateConfigurationArgs) ToPromptChatPromptTemplateConfigurationOutput() PromptChatPromptTemplateConfigurationOutput { + return i.ToPromptChatPromptTemplateConfigurationOutputWithContext(context.Background()) +} + +func (i PromptChatPromptTemplateConfigurationArgs) ToPromptChatPromptTemplateConfigurationOutputWithContext(ctx context.Context) PromptChatPromptTemplateConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptChatPromptTemplateConfigurationOutput) +} + +// Configuration for chat prompt template +type PromptChatPromptTemplateConfigurationOutput struct{ *pulumi.OutputState } + +func (PromptChatPromptTemplateConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptChatPromptTemplateConfiguration)(nil)).Elem() +} + +func (o PromptChatPromptTemplateConfigurationOutput) ToPromptChatPromptTemplateConfigurationOutput() PromptChatPromptTemplateConfigurationOutput { + return o +} + +func (o PromptChatPromptTemplateConfigurationOutput) ToPromptChatPromptTemplateConfigurationOutputWithContext(ctx context.Context) PromptChatPromptTemplateConfigurationOutput { + return o +} + +// List of input variables +func (o PromptChatPromptTemplateConfigurationOutput) InputVariables() PromptInputVariableArrayOutput { + return o.ApplyT(func(v PromptChatPromptTemplateConfiguration) []PromptInputVariable { return v.InputVariables }).(PromptInputVariableArrayOutput) +} + +// List of messages for chat prompt template +func (o PromptChatPromptTemplateConfigurationOutput) Messages() PromptMessageArrayOutput { + return o.ApplyT(func(v PromptChatPromptTemplateConfiguration) []PromptMessage { return v.Messages }).(PromptMessageArrayOutput) +} + +// Configuration for chat prompt template +func (o PromptChatPromptTemplateConfigurationOutput) System() PromptSystemContentBlockPropertiesArrayOutput { + return o.ApplyT(func(v PromptChatPromptTemplateConfiguration) []PromptSystemContentBlockProperties { return v.System }).(PromptSystemContentBlockPropertiesArrayOutput) +} + +func (o PromptChatPromptTemplateConfigurationOutput) ToolConfiguration() PromptToolConfigurationPtrOutput { + return o.ApplyT(func(v PromptChatPromptTemplateConfiguration) *PromptToolConfiguration { return v.ToolConfiguration }).(PromptToolConfigurationPtrOutput) +} + +// Configuration for chat prompt template +type PromptContentBlock0Properties struct { + // Configuration for chat prompt template + Text string `pulumi:"text"` +} + +// Configuration for chat prompt template +type PromptContentBlockProperties struct { + // Configuration for chat prompt template + Text string `pulumi:"text"` +} + +// PromptContentBlockPropertiesInput is an input type that accepts PromptContentBlockPropertiesArgs and PromptContentBlockPropertiesOutput values. +// You can construct a concrete instance of `PromptContentBlockPropertiesInput` via: +// +// PromptContentBlockPropertiesArgs{...} +type PromptContentBlockPropertiesInput interface { + pulumi.Input + + ToPromptContentBlockPropertiesOutput() PromptContentBlockPropertiesOutput + ToPromptContentBlockPropertiesOutputWithContext(context.Context) PromptContentBlockPropertiesOutput +} + +// Configuration for chat prompt template +type PromptContentBlockPropertiesArgs struct { + // Configuration for chat prompt template + Text pulumi.StringInput `pulumi:"text"` +} + +func (PromptContentBlockPropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptContentBlockProperties)(nil)).Elem() +} + +func (i PromptContentBlockPropertiesArgs) ToPromptContentBlockPropertiesOutput() PromptContentBlockPropertiesOutput { + return i.ToPromptContentBlockPropertiesOutputWithContext(context.Background()) +} + +func (i PromptContentBlockPropertiesArgs) ToPromptContentBlockPropertiesOutputWithContext(ctx context.Context) PromptContentBlockPropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptContentBlockPropertiesOutput) +} + +// PromptContentBlockPropertiesArrayInput is an input type that accepts PromptContentBlockPropertiesArray and PromptContentBlockPropertiesArrayOutput values. +// You can construct a concrete instance of `PromptContentBlockPropertiesArrayInput` via: +// +// PromptContentBlockPropertiesArray{ PromptContentBlockPropertiesArgs{...} } +type PromptContentBlockPropertiesArrayInput interface { + pulumi.Input + + ToPromptContentBlockPropertiesArrayOutput() PromptContentBlockPropertiesArrayOutput + ToPromptContentBlockPropertiesArrayOutputWithContext(context.Context) PromptContentBlockPropertiesArrayOutput +} + +type PromptContentBlockPropertiesArray []PromptContentBlockPropertiesInput + +func (PromptContentBlockPropertiesArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptContentBlockProperties)(nil)).Elem() +} + +func (i PromptContentBlockPropertiesArray) ToPromptContentBlockPropertiesArrayOutput() PromptContentBlockPropertiesArrayOutput { + return i.ToPromptContentBlockPropertiesArrayOutputWithContext(context.Background()) +} + +func (i PromptContentBlockPropertiesArray) ToPromptContentBlockPropertiesArrayOutputWithContext(ctx context.Context) PromptContentBlockPropertiesArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptContentBlockPropertiesArrayOutput) +} + +// Configuration for chat prompt template +type PromptContentBlockPropertiesOutput struct{ *pulumi.OutputState } + +func (PromptContentBlockPropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptContentBlockProperties)(nil)).Elem() +} + +func (o PromptContentBlockPropertiesOutput) ToPromptContentBlockPropertiesOutput() PromptContentBlockPropertiesOutput { + return o +} + +func (o PromptContentBlockPropertiesOutput) ToPromptContentBlockPropertiesOutputWithContext(ctx context.Context) PromptContentBlockPropertiesOutput { + return o +} + +// Configuration for chat prompt template +func (o PromptContentBlockPropertiesOutput) Text() pulumi.StringOutput { + return o.ApplyT(func(v PromptContentBlockProperties) string { return v.Text }).(pulumi.StringOutput) +} + +type PromptContentBlockPropertiesArrayOutput struct{ *pulumi.OutputState } + +func (PromptContentBlockPropertiesArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptContentBlockProperties)(nil)).Elem() +} + +func (o PromptContentBlockPropertiesArrayOutput) ToPromptContentBlockPropertiesArrayOutput() PromptContentBlockPropertiesArrayOutput { + return o +} + +func (o PromptContentBlockPropertiesArrayOutput) ToPromptContentBlockPropertiesArrayOutputWithContext(ctx context.Context) PromptContentBlockPropertiesArrayOutput { + return o +} + +func (o PromptContentBlockPropertiesArrayOutput) Index(i pulumi.IntInput) PromptContentBlockPropertiesOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PromptContentBlockProperties { + return vs[0].([]PromptContentBlockProperties)[vs[1].(int)] + }).(PromptContentBlockPropertiesOutput) +} + +// Target resource to invoke with Prompt +type PromptGenAiResource0Properties struct { + Agent PromptAgentResource `pulumi:"agent"` +} + +// Target resource to invoke with Prompt +type PromptGenAiResourceProperties struct { + Agent PromptAgentResource `pulumi:"agent"` +} + +// PromptGenAiResourcePropertiesInput is an input type that accepts PromptGenAiResourcePropertiesArgs and PromptGenAiResourcePropertiesOutput values. +// You can construct a concrete instance of `PromptGenAiResourcePropertiesInput` via: +// +// PromptGenAiResourcePropertiesArgs{...} +type PromptGenAiResourcePropertiesInput interface { + pulumi.Input + + ToPromptGenAiResourcePropertiesOutput() PromptGenAiResourcePropertiesOutput + ToPromptGenAiResourcePropertiesOutputWithContext(context.Context) PromptGenAiResourcePropertiesOutput +} + +// Target resource to invoke with Prompt +type PromptGenAiResourcePropertiesArgs struct { + Agent PromptAgentResourceInput `pulumi:"agent"` +} + +func (PromptGenAiResourcePropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptGenAiResourceProperties)(nil)).Elem() +} + +func (i PromptGenAiResourcePropertiesArgs) ToPromptGenAiResourcePropertiesOutput() PromptGenAiResourcePropertiesOutput { + return i.ToPromptGenAiResourcePropertiesOutputWithContext(context.Background()) +} + +func (i PromptGenAiResourcePropertiesArgs) ToPromptGenAiResourcePropertiesOutputWithContext(ctx context.Context) PromptGenAiResourcePropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptGenAiResourcePropertiesOutput) +} + +func (i PromptGenAiResourcePropertiesArgs) ToPromptGenAiResourcePropertiesPtrOutput() PromptGenAiResourcePropertiesPtrOutput { + return i.ToPromptGenAiResourcePropertiesPtrOutputWithContext(context.Background()) +} + +func (i PromptGenAiResourcePropertiesArgs) ToPromptGenAiResourcePropertiesPtrOutputWithContext(ctx context.Context) PromptGenAiResourcePropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptGenAiResourcePropertiesOutput).ToPromptGenAiResourcePropertiesPtrOutputWithContext(ctx) +} + +// PromptGenAiResourcePropertiesPtrInput is an input type that accepts PromptGenAiResourcePropertiesArgs, PromptGenAiResourcePropertiesPtr and PromptGenAiResourcePropertiesPtrOutput values. +// You can construct a concrete instance of `PromptGenAiResourcePropertiesPtrInput` via: +// +// PromptGenAiResourcePropertiesArgs{...} +// +// or: +// +// nil +type PromptGenAiResourcePropertiesPtrInput interface { + pulumi.Input + + ToPromptGenAiResourcePropertiesPtrOutput() PromptGenAiResourcePropertiesPtrOutput + ToPromptGenAiResourcePropertiesPtrOutputWithContext(context.Context) PromptGenAiResourcePropertiesPtrOutput +} + +type promptGenAiResourcePropertiesPtrType PromptGenAiResourcePropertiesArgs + +func PromptGenAiResourcePropertiesPtr(v *PromptGenAiResourcePropertiesArgs) PromptGenAiResourcePropertiesPtrInput { + return (*promptGenAiResourcePropertiesPtrType)(v) +} + +func (*promptGenAiResourcePropertiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptGenAiResourceProperties)(nil)).Elem() +} + +func (i *promptGenAiResourcePropertiesPtrType) ToPromptGenAiResourcePropertiesPtrOutput() PromptGenAiResourcePropertiesPtrOutput { + return i.ToPromptGenAiResourcePropertiesPtrOutputWithContext(context.Background()) +} + +func (i *promptGenAiResourcePropertiesPtrType) ToPromptGenAiResourcePropertiesPtrOutputWithContext(ctx context.Context) PromptGenAiResourcePropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptGenAiResourcePropertiesPtrOutput) +} + +// Target resource to invoke with Prompt +type PromptGenAiResourcePropertiesOutput struct{ *pulumi.OutputState } + +func (PromptGenAiResourcePropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptGenAiResourceProperties)(nil)).Elem() +} + +func (o PromptGenAiResourcePropertiesOutput) ToPromptGenAiResourcePropertiesOutput() PromptGenAiResourcePropertiesOutput { + return o +} + +func (o PromptGenAiResourcePropertiesOutput) ToPromptGenAiResourcePropertiesOutputWithContext(ctx context.Context) PromptGenAiResourcePropertiesOutput { + return o +} + +func (o PromptGenAiResourcePropertiesOutput) ToPromptGenAiResourcePropertiesPtrOutput() PromptGenAiResourcePropertiesPtrOutput { + return o.ToPromptGenAiResourcePropertiesPtrOutputWithContext(context.Background()) +} + +func (o PromptGenAiResourcePropertiesOutput) ToPromptGenAiResourcePropertiesPtrOutputWithContext(ctx context.Context) PromptGenAiResourcePropertiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptGenAiResourceProperties) *PromptGenAiResourceProperties { + return &v + }).(PromptGenAiResourcePropertiesPtrOutput) +} + +func (o PromptGenAiResourcePropertiesOutput) Agent() PromptAgentResourceOutput { + return o.ApplyT(func(v PromptGenAiResourceProperties) PromptAgentResource { return v.Agent }).(PromptAgentResourceOutput) +} + +type PromptGenAiResourcePropertiesPtrOutput struct{ *pulumi.OutputState } + +func (PromptGenAiResourcePropertiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptGenAiResourceProperties)(nil)).Elem() +} + +func (o PromptGenAiResourcePropertiesPtrOutput) ToPromptGenAiResourcePropertiesPtrOutput() PromptGenAiResourcePropertiesPtrOutput { + return o +} + +func (o PromptGenAiResourcePropertiesPtrOutput) ToPromptGenAiResourcePropertiesPtrOutputWithContext(ctx context.Context) PromptGenAiResourcePropertiesPtrOutput { + return o +} + +func (o PromptGenAiResourcePropertiesPtrOutput) Elem() PromptGenAiResourcePropertiesOutput { + return o.ApplyT(func(v *PromptGenAiResourceProperties) PromptGenAiResourceProperties { + if v != nil { + return *v + } + var ret PromptGenAiResourceProperties + return ret + }).(PromptGenAiResourcePropertiesOutput) +} + +func (o PromptGenAiResourcePropertiesPtrOutput) Agent() PromptAgentResourcePtrOutput { + return o.ApplyT(func(v *PromptGenAiResourceProperties) *PromptAgentResource { + if v == nil { + return nil + } + return &v.Agent + }).(PromptAgentResourcePtrOutput) +} + +// Model inference configuration +type PromptInferenceConfiguration0Properties struct { + Text PromptModelInferenceConfiguration `pulumi:"text"` +} + +// Model inference configuration +type PromptInferenceConfigurationProperties struct { + Text PromptModelInferenceConfiguration `pulumi:"text"` +} + +// PromptInferenceConfigurationPropertiesInput is an input type that accepts PromptInferenceConfigurationPropertiesArgs and PromptInferenceConfigurationPropertiesOutput values. +// You can construct a concrete instance of `PromptInferenceConfigurationPropertiesInput` via: +// +// PromptInferenceConfigurationPropertiesArgs{...} +type PromptInferenceConfigurationPropertiesInput interface { + pulumi.Input + + ToPromptInferenceConfigurationPropertiesOutput() PromptInferenceConfigurationPropertiesOutput + ToPromptInferenceConfigurationPropertiesOutputWithContext(context.Context) PromptInferenceConfigurationPropertiesOutput +} + +// Model inference configuration +type PromptInferenceConfigurationPropertiesArgs struct { + Text PromptModelInferenceConfigurationInput `pulumi:"text"` +} + +func (PromptInferenceConfigurationPropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptInferenceConfigurationProperties)(nil)).Elem() +} + +func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesOutput() PromptInferenceConfigurationPropertiesOutput { + return i.ToPromptInferenceConfigurationPropertiesOutputWithContext(context.Background()) +} + +func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptInferenceConfigurationPropertiesOutput) +} + +func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { + return i.ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Background()) +} + +func (i PromptInferenceConfigurationPropertiesArgs) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptInferenceConfigurationPropertiesOutput).ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx) +} + +// PromptInferenceConfigurationPropertiesPtrInput is an input type that accepts PromptInferenceConfigurationPropertiesArgs, PromptInferenceConfigurationPropertiesPtr and PromptInferenceConfigurationPropertiesPtrOutput values. +// You can construct a concrete instance of `PromptInferenceConfigurationPropertiesPtrInput` via: +// +// PromptInferenceConfigurationPropertiesArgs{...} +// +// or: +// +// nil +type PromptInferenceConfigurationPropertiesPtrInput interface { + pulumi.Input + + ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput + ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Context) PromptInferenceConfigurationPropertiesPtrOutput +} + +type promptInferenceConfigurationPropertiesPtrType PromptInferenceConfigurationPropertiesArgs + +func PromptInferenceConfigurationPropertiesPtr(v *PromptInferenceConfigurationPropertiesArgs) PromptInferenceConfigurationPropertiesPtrInput { + return (*promptInferenceConfigurationPropertiesPtrType)(v) +} + +func (*promptInferenceConfigurationPropertiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptInferenceConfigurationProperties)(nil)).Elem() +} + +func (i *promptInferenceConfigurationPropertiesPtrType) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { + return i.ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Background()) +} + +func (i *promptInferenceConfigurationPropertiesPtrType) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptInferenceConfigurationPropertiesPtrOutput) +} + +// Model inference configuration +type PromptInferenceConfigurationPropertiesOutput struct{ *pulumi.OutputState } + +func (PromptInferenceConfigurationPropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptInferenceConfigurationProperties)(nil)).Elem() +} + +func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesOutput() PromptInferenceConfigurationPropertiesOutput { + return o +} + +func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesOutput { + return o +} + +func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { + return o.ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(context.Background()) +} + +func (o PromptInferenceConfigurationPropertiesOutput) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptInferenceConfigurationProperties) *PromptInferenceConfigurationProperties { + return &v + }).(PromptInferenceConfigurationPropertiesPtrOutput) +} + +func (o PromptInferenceConfigurationPropertiesOutput) Text() PromptModelInferenceConfigurationOutput { + return o.ApplyT(func(v PromptInferenceConfigurationProperties) PromptModelInferenceConfiguration { return v.Text }).(PromptModelInferenceConfigurationOutput) +} + +type PromptInferenceConfigurationPropertiesPtrOutput struct{ *pulumi.OutputState } + +func (PromptInferenceConfigurationPropertiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptInferenceConfigurationProperties)(nil)).Elem() +} + +func (o PromptInferenceConfigurationPropertiesPtrOutput) ToPromptInferenceConfigurationPropertiesPtrOutput() PromptInferenceConfigurationPropertiesPtrOutput { + return o +} + +func (o PromptInferenceConfigurationPropertiesPtrOutput) ToPromptInferenceConfigurationPropertiesPtrOutputWithContext(ctx context.Context) PromptInferenceConfigurationPropertiesPtrOutput { + return o +} + +func (o PromptInferenceConfigurationPropertiesPtrOutput) Elem() PromptInferenceConfigurationPropertiesOutput { + return o.ApplyT(func(v *PromptInferenceConfigurationProperties) PromptInferenceConfigurationProperties { + if v != nil { + return *v + } + var ret PromptInferenceConfigurationProperties + return ret + }).(PromptInferenceConfigurationPropertiesOutput) +} + +func (o PromptInferenceConfigurationPropertiesPtrOutput) Text() PromptModelInferenceConfigurationPtrOutput { + return o.ApplyT(func(v *PromptInferenceConfigurationProperties) *PromptModelInferenceConfiguration { + if v == nil { + return nil + } + return &v.Text + }).(PromptModelInferenceConfigurationPtrOutput) +} + +// Input variable +type PromptInputVariable struct { + // Name for an input variable + Name *string `pulumi:"name"` +} + +// PromptInputVariableInput is an input type that accepts PromptInputVariableArgs and PromptInputVariableOutput values. +// You can construct a concrete instance of `PromptInputVariableInput` via: +// +// PromptInputVariableArgs{...} +type PromptInputVariableInput interface { + pulumi.Input + + ToPromptInputVariableOutput() PromptInputVariableOutput + ToPromptInputVariableOutputWithContext(context.Context) PromptInputVariableOutput +} + +// Input variable +type PromptInputVariableArgs struct { + // Name for an input variable + Name pulumi.StringPtrInput `pulumi:"name"` +} + +func (PromptInputVariableArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptInputVariable)(nil)).Elem() +} + +func (i PromptInputVariableArgs) ToPromptInputVariableOutput() PromptInputVariableOutput { + return i.ToPromptInputVariableOutputWithContext(context.Background()) +} + +func (i PromptInputVariableArgs) ToPromptInputVariableOutputWithContext(ctx context.Context) PromptInputVariableOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptInputVariableOutput) +} + +// PromptInputVariableArrayInput is an input type that accepts PromptInputVariableArray and PromptInputVariableArrayOutput values. +// You can construct a concrete instance of `PromptInputVariableArrayInput` via: +// +// PromptInputVariableArray{ PromptInputVariableArgs{...} } +type PromptInputVariableArrayInput interface { + pulumi.Input + + ToPromptInputVariableArrayOutput() PromptInputVariableArrayOutput + ToPromptInputVariableArrayOutputWithContext(context.Context) PromptInputVariableArrayOutput +} + +type PromptInputVariableArray []PromptInputVariableInput + +func (PromptInputVariableArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptInputVariable)(nil)).Elem() +} + +func (i PromptInputVariableArray) ToPromptInputVariableArrayOutput() PromptInputVariableArrayOutput { + return i.ToPromptInputVariableArrayOutputWithContext(context.Background()) +} + +func (i PromptInputVariableArray) ToPromptInputVariableArrayOutputWithContext(ctx context.Context) PromptInputVariableArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptInputVariableArrayOutput) +} + +// Input variable +type PromptInputVariableOutput struct{ *pulumi.OutputState } + +func (PromptInputVariableOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptInputVariable)(nil)).Elem() +} + +func (o PromptInputVariableOutput) ToPromptInputVariableOutput() PromptInputVariableOutput { + return o +} + +func (o PromptInputVariableOutput) ToPromptInputVariableOutputWithContext(ctx context.Context) PromptInputVariableOutput { + return o +} + +// Name for an input variable +func (o PromptInputVariableOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v PromptInputVariable) *string { return v.Name }).(pulumi.StringPtrOutput) +} + +type PromptInputVariableArrayOutput struct{ *pulumi.OutputState } + +func (PromptInputVariableArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptInputVariable)(nil)).Elem() +} + +func (o PromptInputVariableArrayOutput) ToPromptInputVariableArrayOutput() PromptInputVariableArrayOutput { + return o +} + +func (o PromptInputVariableArrayOutput) ToPromptInputVariableArrayOutputWithContext(ctx context.Context) PromptInputVariableArrayOutput { + return o +} + +func (o PromptInputVariableArrayOutput) Index(i pulumi.IntInput) PromptInputVariableOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PromptInputVariable { + return vs[0].([]PromptInputVariable)[vs[1].(int)] + }).(PromptInputVariableOutput) +} + +// Chat prompt Message +type PromptMessage struct { + // List of Content Blocks + Content []PromptContentBlockProperties `pulumi:"content"` + Role PromptConversationRole `pulumi:"role"` +} + +// PromptMessageInput is an input type that accepts PromptMessageArgs and PromptMessageOutput values. +// You can construct a concrete instance of `PromptMessageInput` via: +// +// PromptMessageArgs{...} +type PromptMessageInput interface { + pulumi.Input + + ToPromptMessageOutput() PromptMessageOutput + ToPromptMessageOutputWithContext(context.Context) PromptMessageOutput +} + +// Chat prompt Message +type PromptMessageArgs struct { + // List of Content Blocks + Content PromptContentBlockPropertiesArrayInput `pulumi:"content"` + Role PromptConversationRoleInput `pulumi:"role"` +} + +func (PromptMessageArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptMessage)(nil)).Elem() +} + +func (i PromptMessageArgs) ToPromptMessageOutput() PromptMessageOutput { + return i.ToPromptMessageOutputWithContext(context.Background()) +} + +func (i PromptMessageArgs) ToPromptMessageOutputWithContext(ctx context.Context) PromptMessageOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptMessageOutput) +} + +// PromptMessageArrayInput is an input type that accepts PromptMessageArray and PromptMessageArrayOutput values. +// You can construct a concrete instance of `PromptMessageArrayInput` via: +// +// PromptMessageArray{ PromptMessageArgs{...} } +type PromptMessageArrayInput interface { + pulumi.Input + + ToPromptMessageArrayOutput() PromptMessageArrayOutput + ToPromptMessageArrayOutputWithContext(context.Context) PromptMessageArrayOutput +} + +type PromptMessageArray []PromptMessageInput + +func (PromptMessageArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptMessage)(nil)).Elem() +} + +func (i PromptMessageArray) ToPromptMessageArrayOutput() PromptMessageArrayOutput { + return i.ToPromptMessageArrayOutputWithContext(context.Background()) +} + +func (i PromptMessageArray) ToPromptMessageArrayOutputWithContext(ctx context.Context) PromptMessageArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptMessageArrayOutput) +} + +// Chat prompt Message +type PromptMessageOutput struct{ *pulumi.OutputState } + +func (PromptMessageOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptMessage)(nil)).Elem() +} + +func (o PromptMessageOutput) ToPromptMessageOutput() PromptMessageOutput { + return o +} + +func (o PromptMessageOutput) ToPromptMessageOutputWithContext(ctx context.Context) PromptMessageOutput { + return o +} + +// List of Content Blocks +func (o PromptMessageOutput) Content() PromptContentBlockPropertiesArrayOutput { + return o.ApplyT(func(v PromptMessage) []PromptContentBlockProperties { return v.Content }).(PromptContentBlockPropertiesArrayOutput) +} + +func (o PromptMessageOutput) Role() PromptConversationRoleOutput { + return o.ApplyT(func(v PromptMessage) PromptConversationRole { return v.Role }).(PromptConversationRoleOutput) +} + +type PromptMessageArrayOutput struct{ *pulumi.OutputState } + +func (PromptMessageArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptMessage)(nil)).Elem() +} + +func (o PromptMessageArrayOutput) ToPromptMessageArrayOutput() PromptMessageArrayOutput { + return o +} + +func (o PromptMessageArrayOutput) ToPromptMessageArrayOutputWithContext(ctx context.Context) PromptMessageArrayOutput { + return o +} + +func (o PromptMessageArrayOutput) Index(i pulumi.IntInput) PromptMessageOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PromptMessage { + return vs[0].([]PromptMessage)[vs[1].(int)] + }).(PromptMessageOutput) +} + +// Prompt model inference configuration +type PromptModelInferenceConfiguration struct { + // Maximum length of output + MaxTokens *float64 `pulumi:"maxTokens"` + // List of stop sequences + StopSequences []string `pulumi:"stopSequences"` + // Controls randomness, higher values increase diversity + Temperature *float64 `pulumi:"temperature"` + // Cumulative probability cutoff for token selection + TopP *float64 `pulumi:"topP"` +} + +// PromptModelInferenceConfigurationInput is an input type that accepts PromptModelInferenceConfigurationArgs and PromptModelInferenceConfigurationOutput values. +// You can construct a concrete instance of `PromptModelInferenceConfigurationInput` via: +// +// PromptModelInferenceConfigurationArgs{...} +type PromptModelInferenceConfigurationInput interface { + pulumi.Input + + ToPromptModelInferenceConfigurationOutput() PromptModelInferenceConfigurationOutput + ToPromptModelInferenceConfigurationOutputWithContext(context.Context) PromptModelInferenceConfigurationOutput +} + +// Prompt model inference configuration +type PromptModelInferenceConfigurationArgs struct { + // Maximum length of output + MaxTokens pulumi.Float64PtrInput `pulumi:"maxTokens"` + // List of stop sequences + StopSequences pulumi.StringArrayInput `pulumi:"stopSequences"` + // Controls randomness, higher values increase diversity + Temperature pulumi.Float64PtrInput `pulumi:"temperature"` + // Cumulative probability cutoff for token selection + TopP pulumi.Float64PtrInput `pulumi:"topP"` +} + +func (PromptModelInferenceConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptModelInferenceConfiguration)(nil)).Elem() +} + +func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationOutput() PromptModelInferenceConfigurationOutput { + return i.ToPromptModelInferenceConfigurationOutputWithContext(context.Background()) +} + +func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptModelInferenceConfigurationOutput) +} + +func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { + return i.ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Background()) +} + +func (i PromptModelInferenceConfigurationArgs) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptModelInferenceConfigurationOutput).ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx) +} + +// PromptModelInferenceConfigurationPtrInput is an input type that accepts PromptModelInferenceConfigurationArgs, PromptModelInferenceConfigurationPtr and PromptModelInferenceConfigurationPtrOutput values. +// You can construct a concrete instance of `PromptModelInferenceConfigurationPtrInput` via: +// +// PromptModelInferenceConfigurationArgs{...} +// +// or: +// +// nil +type PromptModelInferenceConfigurationPtrInput interface { + pulumi.Input + + ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput + ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Context) PromptModelInferenceConfigurationPtrOutput +} + +type promptModelInferenceConfigurationPtrType PromptModelInferenceConfigurationArgs + +func PromptModelInferenceConfigurationPtr(v *PromptModelInferenceConfigurationArgs) PromptModelInferenceConfigurationPtrInput { + return (*promptModelInferenceConfigurationPtrType)(v) +} + +func (*promptModelInferenceConfigurationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptModelInferenceConfiguration)(nil)).Elem() +} + +func (i *promptModelInferenceConfigurationPtrType) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { + return i.ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Background()) +} + +func (i *promptModelInferenceConfigurationPtrType) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptModelInferenceConfigurationPtrOutput) +} + +// Prompt model inference configuration +type PromptModelInferenceConfigurationOutput struct{ *pulumi.OutputState } + +func (PromptModelInferenceConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptModelInferenceConfiguration)(nil)).Elem() +} + +func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationOutput() PromptModelInferenceConfigurationOutput { + return o +} + +func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationOutput { + return o +} + +func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { + return o.ToPromptModelInferenceConfigurationPtrOutputWithContext(context.Background()) +} + +func (o PromptModelInferenceConfigurationOutput) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptModelInferenceConfiguration) *PromptModelInferenceConfiguration { + return &v + }).(PromptModelInferenceConfigurationPtrOutput) +} + +// Maximum length of output +func (o PromptModelInferenceConfigurationOutput) MaxTokens() pulumi.Float64PtrOutput { + return o.ApplyT(func(v PromptModelInferenceConfiguration) *float64 { return v.MaxTokens }).(pulumi.Float64PtrOutput) +} + +// List of stop sequences +func (o PromptModelInferenceConfigurationOutput) StopSequences() pulumi.StringArrayOutput { + return o.ApplyT(func(v PromptModelInferenceConfiguration) []string { return v.StopSequences }).(pulumi.StringArrayOutput) +} + +// Controls randomness, higher values increase diversity +func (o PromptModelInferenceConfigurationOutput) Temperature() pulumi.Float64PtrOutput { + return o.ApplyT(func(v PromptModelInferenceConfiguration) *float64 { return v.Temperature }).(pulumi.Float64PtrOutput) +} + +// Cumulative probability cutoff for token selection +func (o PromptModelInferenceConfigurationOutput) TopP() pulumi.Float64PtrOutput { + return o.ApplyT(func(v PromptModelInferenceConfiguration) *float64 { return v.TopP }).(pulumi.Float64PtrOutput) +} + +type PromptModelInferenceConfigurationPtrOutput struct{ *pulumi.OutputState } + +func (PromptModelInferenceConfigurationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptModelInferenceConfiguration)(nil)).Elem() +} + +func (o PromptModelInferenceConfigurationPtrOutput) ToPromptModelInferenceConfigurationPtrOutput() PromptModelInferenceConfigurationPtrOutput { + return o +} + +func (o PromptModelInferenceConfigurationPtrOutput) ToPromptModelInferenceConfigurationPtrOutputWithContext(ctx context.Context) PromptModelInferenceConfigurationPtrOutput { + return o +} + +func (o PromptModelInferenceConfigurationPtrOutput) Elem() PromptModelInferenceConfigurationOutput { + return o.ApplyT(func(v *PromptModelInferenceConfiguration) PromptModelInferenceConfiguration { + if v != nil { + return *v + } + var ret PromptModelInferenceConfiguration + return ret + }).(PromptModelInferenceConfigurationOutput) +} + +// Maximum length of output +func (o PromptModelInferenceConfigurationPtrOutput) MaxTokens() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *PromptModelInferenceConfiguration) *float64 { + if v == nil { + return nil + } + return v.MaxTokens + }).(pulumi.Float64PtrOutput) +} + +// List of stop sequences +func (o PromptModelInferenceConfigurationPtrOutput) StopSequences() pulumi.StringArrayOutput { + return o.ApplyT(func(v *PromptModelInferenceConfiguration) []string { + if v == nil { + return nil + } + return v.StopSequences + }).(pulumi.StringArrayOutput) +} + +// Controls randomness, higher values increase diversity func (o PromptModelInferenceConfigurationPtrOutput) Temperature() pulumi.Float64PtrOutput { return o.ApplyT(func(v *PromptModelInferenceConfiguration) *float64 { if v == nil { return nil } - return v.Temperature - }).(pulumi.Float64PtrOutput) + return v.Temperature + }).(pulumi.Float64PtrOutput) +} + +// Cumulative probability cutoff for token selection +func (o PromptModelInferenceConfigurationPtrOutput) TopP() pulumi.Float64PtrOutput { + return o.ApplyT(func(v *PromptModelInferenceConfiguration) *float64 { + if v == nil { + return nil + } + return v.TopP + }).(pulumi.Float64PtrOutput) +} + +// Specific Tool choice +type PromptSpecificToolChoice struct { + // Tool name + Name string `pulumi:"name"` +} + +// PromptSpecificToolChoiceInput is an input type that accepts PromptSpecificToolChoiceArgs and PromptSpecificToolChoiceOutput values. +// You can construct a concrete instance of `PromptSpecificToolChoiceInput` via: +// +// PromptSpecificToolChoiceArgs{...} +type PromptSpecificToolChoiceInput interface { + pulumi.Input + + ToPromptSpecificToolChoiceOutput() PromptSpecificToolChoiceOutput + ToPromptSpecificToolChoiceOutputWithContext(context.Context) PromptSpecificToolChoiceOutput +} + +// Specific Tool choice +type PromptSpecificToolChoiceArgs struct { + // Tool name + Name pulumi.StringInput `pulumi:"name"` +} + +func (PromptSpecificToolChoiceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptSpecificToolChoice)(nil)).Elem() +} + +func (i PromptSpecificToolChoiceArgs) ToPromptSpecificToolChoiceOutput() PromptSpecificToolChoiceOutput { + return i.ToPromptSpecificToolChoiceOutputWithContext(context.Background()) +} + +func (i PromptSpecificToolChoiceArgs) ToPromptSpecificToolChoiceOutputWithContext(ctx context.Context) PromptSpecificToolChoiceOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptSpecificToolChoiceOutput) +} + +func (i PromptSpecificToolChoiceArgs) ToPromptSpecificToolChoicePtrOutput() PromptSpecificToolChoicePtrOutput { + return i.ToPromptSpecificToolChoicePtrOutputWithContext(context.Background()) +} + +func (i PromptSpecificToolChoiceArgs) ToPromptSpecificToolChoicePtrOutputWithContext(ctx context.Context) PromptSpecificToolChoicePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptSpecificToolChoiceOutput).ToPromptSpecificToolChoicePtrOutputWithContext(ctx) +} + +// PromptSpecificToolChoicePtrInput is an input type that accepts PromptSpecificToolChoiceArgs, PromptSpecificToolChoicePtr and PromptSpecificToolChoicePtrOutput values. +// You can construct a concrete instance of `PromptSpecificToolChoicePtrInput` via: +// +// PromptSpecificToolChoiceArgs{...} +// +// or: +// +// nil +type PromptSpecificToolChoicePtrInput interface { + pulumi.Input + + ToPromptSpecificToolChoicePtrOutput() PromptSpecificToolChoicePtrOutput + ToPromptSpecificToolChoicePtrOutputWithContext(context.Context) PromptSpecificToolChoicePtrOutput +} + +type promptSpecificToolChoicePtrType PromptSpecificToolChoiceArgs + +func PromptSpecificToolChoicePtr(v *PromptSpecificToolChoiceArgs) PromptSpecificToolChoicePtrInput { + return (*promptSpecificToolChoicePtrType)(v) +} + +func (*promptSpecificToolChoicePtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptSpecificToolChoice)(nil)).Elem() +} + +func (i *promptSpecificToolChoicePtrType) ToPromptSpecificToolChoicePtrOutput() PromptSpecificToolChoicePtrOutput { + return i.ToPromptSpecificToolChoicePtrOutputWithContext(context.Background()) +} + +func (i *promptSpecificToolChoicePtrType) ToPromptSpecificToolChoicePtrOutputWithContext(ctx context.Context) PromptSpecificToolChoicePtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptSpecificToolChoicePtrOutput) +} + +// Specific Tool choice +type PromptSpecificToolChoiceOutput struct{ *pulumi.OutputState } + +func (PromptSpecificToolChoiceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptSpecificToolChoice)(nil)).Elem() +} + +func (o PromptSpecificToolChoiceOutput) ToPromptSpecificToolChoiceOutput() PromptSpecificToolChoiceOutput { + return o +} + +func (o PromptSpecificToolChoiceOutput) ToPromptSpecificToolChoiceOutputWithContext(ctx context.Context) PromptSpecificToolChoiceOutput { + return o +} + +func (o PromptSpecificToolChoiceOutput) ToPromptSpecificToolChoicePtrOutput() PromptSpecificToolChoicePtrOutput { + return o.ToPromptSpecificToolChoicePtrOutputWithContext(context.Background()) +} + +func (o PromptSpecificToolChoiceOutput) ToPromptSpecificToolChoicePtrOutputWithContext(ctx context.Context) PromptSpecificToolChoicePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptSpecificToolChoice) *PromptSpecificToolChoice { + return &v + }).(PromptSpecificToolChoicePtrOutput) +} + +// Tool name +func (o PromptSpecificToolChoiceOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v PromptSpecificToolChoice) string { return v.Name }).(pulumi.StringOutput) +} + +type PromptSpecificToolChoicePtrOutput struct{ *pulumi.OutputState } + +func (PromptSpecificToolChoicePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptSpecificToolChoice)(nil)).Elem() +} + +func (o PromptSpecificToolChoicePtrOutput) ToPromptSpecificToolChoicePtrOutput() PromptSpecificToolChoicePtrOutput { + return o +} + +func (o PromptSpecificToolChoicePtrOutput) ToPromptSpecificToolChoicePtrOutputWithContext(ctx context.Context) PromptSpecificToolChoicePtrOutput { + return o +} + +func (o PromptSpecificToolChoicePtrOutput) Elem() PromptSpecificToolChoiceOutput { + return o.ApplyT(func(v *PromptSpecificToolChoice) PromptSpecificToolChoice { + if v != nil { + return *v + } + var ret PromptSpecificToolChoice + return ret + }).(PromptSpecificToolChoiceOutput) +} + +// Tool name +func (o PromptSpecificToolChoicePtrOutput) Name() pulumi.StringPtrOutput { + return o.ApplyT(func(v *PromptSpecificToolChoice) *string { + if v == nil { + return nil + } + return &v.Name + }).(pulumi.StringPtrOutput) +} + +// Configuration for chat prompt template +type PromptSystemContentBlock0Properties struct { + // Configuration for chat prompt template + Text string `pulumi:"text"` +} + +// Configuration for chat prompt template +type PromptSystemContentBlockProperties struct { + // Configuration for chat prompt template + Text string `pulumi:"text"` +} + +// PromptSystemContentBlockPropertiesInput is an input type that accepts PromptSystemContentBlockPropertiesArgs and PromptSystemContentBlockPropertiesOutput values. +// You can construct a concrete instance of `PromptSystemContentBlockPropertiesInput` via: +// +// PromptSystemContentBlockPropertiesArgs{...} +type PromptSystemContentBlockPropertiesInput interface { + pulumi.Input + + ToPromptSystemContentBlockPropertiesOutput() PromptSystemContentBlockPropertiesOutput + ToPromptSystemContentBlockPropertiesOutputWithContext(context.Context) PromptSystemContentBlockPropertiesOutput +} + +// Configuration for chat prompt template +type PromptSystemContentBlockPropertiesArgs struct { + // Configuration for chat prompt template + Text pulumi.StringInput `pulumi:"text"` +} + +func (PromptSystemContentBlockPropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptSystemContentBlockProperties)(nil)).Elem() +} + +func (i PromptSystemContentBlockPropertiesArgs) ToPromptSystemContentBlockPropertiesOutput() PromptSystemContentBlockPropertiesOutput { + return i.ToPromptSystemContentBlockPropertiesOutputWithContext(context.Background()) +} + +func (i PromptSystemContentBlockPropertiesArgs) ToPromptSystemContentBlockPropertiesOutputWithContext(ctx context.Context) PromptSystemContentBlockPropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptSystemContentBlockPropertiesOutput) +} + +// PromptSystemContentBlockPropertiesArrayInput is an input type that accepts PromptSystemContentBlockPropertiesArray and PromptSystemContentBlockPropertiesArrayOutput values. +// You can construct a concrete instance of `PromptSystemContentBlockPropertiesArrayInput` via: +// +// PromptSystemContentBlockPropertiesArray{ PromptSystemContentBlockPropertiesArgs{...} } +type PromptSystemContentBlockPropertiesArrayInput interface { + pulumi.Input + + ToPromptSystemContentBlockPropertiesArrayOutput() PromptSystemContentBlockPropertiesArrayOutput + ToPromptSystemContentBlockPropertiesArrayOutputWithContext(context.Context) PromptSystemContentBlockPropertiesArrayOutput +} + +type PromptSystemContentBlockPropertiesArray []PromptSystemContentBlockPropertiesInput + +func (PromptSystemContentBlockPropertiesArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptSystemContentBlockProperties)(nil)).Elem() +} + +func (i PromptSystemContentBlockPropertiesArray) ToPromptSystemContentBlockPropertiesArrayOutput() PromptSystemContentBlockPropertiesArrayOutput { + return i.ToPromptSystemContentBlockPropertiesArrayOutputWithContext(context.Background()) +} + +func (i PromptSystemContentBlockPropertiesArray) ToPromptSystemContentBlockPropertiesArrayOutputWithContext(ctx context.Context) PromptSystemContentBlockPropertiesArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptSystemContentBlockPropertiesArrayOutput) +} + +// Configuration for chat prompt template +type PromptSystemContentBlockPropertiesOutput struct{ *pulumi.OutputState } + +func (PromptSystemContentBlockPropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptSystemContentBlockProperties)(nil)).Elem() +} + +func (o PromptSystemContentBlockPropertiesOutput) ToPromptSystemContentBlockPropertiesOutput() PromptSystemContentBlockPropertiesOutput { + return o +} + +func (o PromptSystemContentBlockPropertiesOutput) ToPromptSystemContentBlockPropertiesOutputWithContext(ctx context.Context) PromptSystemContentBlockPropertiesOutput { + return o +} + +// Configuration for chat prompt template +func (o PromptSystemContentBlockPropertiesOutput) Text() pulumi.StringOutput { + return o.ApplyT(func(v PromptSystemContentBlockProperties) string { return v.Text }).(pulumi.StringOutput) +} + +type PromptSystemContentBlockPropertiesArrayOutput struct{ *pulumi.OutputState } + +func (PromptSystemContentBlockPropertiesArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptSystemContentBlockProperties)(nil)).Elem() +} + +func (o PromptSystemContentBlockPropertiesArrayOutput) ToPromptSystemContentBlockPropertiesArrayOutput() PromptSystemContentBlockPropertiesArrayOutput { + return o +} + +func (o PromptSystemContentBlockPropertiesArrayOutput) ToPromptSystemContentBlockPropertiesArrayOutputWithContext(ctx context.Context) PromptSystemContentBlockPropertiesArrayOutput { + return o +} + +func (o PromptSystemContentBlockPropertiesArrayOutput) Index(i pulumi.IntInput) PromptSystemContentBlockPropertiesOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PromptSystemContentBlockProperties { + return vs[0].([]PromptSystemContentBlockProperties)[vs[1].(int)] + }).(PromptSystemContentBlockPropertiesOutput) +} + +// Prompt template configuration +type PromptTemplateConfiguration0Properties struct { + Text PromptTextPromptTemplateConfiguration `pulumi:"text"` +} + +// PromptTemplateConfiguration0PropertiesInput is an input type that accepts PromptTemplateConfiguration0PropertiesArgs and PromptTemplateConfiguration0PropertiesOutput values. +// You can construct a concrete instance of `PromptTemplateConfiguration0PropertiesInput` via: +// +// PromptTemplateConfiguration0PropertiesArgs{...} +type PromptTemplateConfiguration0PropertiesInput interface { + pulumi.Input + + ToPromptTemplateConfiguration0PropertiesOutput() PromptTemplateConfiguration0PropertiesOutput + ToPromptTemplateConfiguration0PropertiesOutputWithContext(context.Context) PromptTemplateConfiguration0PropertiesOutput +} + +// Prompt template configuration +type PromptTemplateConfiguration0PropertiesArgs struct { + Text PromptTextPromptTemplateConfigurationInput `pulumi:"text"` +} + +func (PromptTemplateConfiguration0PropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTemplateConfiguration0Properties)(nil)).Elem() +} + +func (i PromptTemplateConfiguration0PropertiesArgs) ToPromptTemplateConfiguration0PropertiesOutput() PromptTemplateConfiguration0PropertiesOutput { + return i.ToPromptTemplateConfiguration0PropertiesOutputWithContext(context.Background()) +} + +func (i PromptTemplateConfiguration0PropertiesArgs) ToPromptTemplateConfiguration0PropertiesOutputWithContext(ctx context.Context) PromptTemplateConfiguration0PropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptTemplateConfiguration0PropertiesOutput) +} + +// Prompt template configuration +type PromptTemplateConfiguration0PropertiesOutput struct{ *pulumi.OutputState } + +func (PromptTemplateConfiguration0PropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTemplateConfiguration0Properties)(nil)).Elem() +} + +func (o PromptTemplateConfiguration0PropertiesOutput) ToPromptTemplateConfiguration0PropertiesOutput() PromptTemplateConfiguration0PropertiesOutput { + return o +} + +func (o PromptTemplateConfiguration0PropertiesOutput) ToPromptTemplateConfiguration0PropertiesOutputWithContext(ctx context.Context) PromptTemplateConfiguration0PropertiesOutput { + return o +} + +func (o PromptTemplateConfiguration0PropertiesOutput) Text() PromptTextPromptTemplateConfigurationOutput { + return o.ApplyT(func(v PromptTemplateConfiguration0Properties) PromptTextPromptTemplateConfiguration { return v.Text }).(PromptTextPromptTemplateConfigurationOutput) +} + +// Prompt template configuration +type PromptTemplateConfiguration1Properties struct { + Chat PromptChatPromptTemplateConfiguration `pulumi:"chat"` +} + +// PromptTemplateConfiguration1PropertiesInput is an input type that accepts PromptTemplateConfiguration1PropertiesArgs and PromptTemplateConfiguration1PropertiesOutput values. +// You can construct a concrete instance of `PromptTemplateConfiguration1PropertiesInput` via: +// +// PromptTemplateConfiguration1PropertiesArgs{...} +type PromptTemplateConfiguration1PropertiesInput interface { + pulumi.Input + + ToPromptTemplateConfiguration1PropertiesOutput() PromptTemplateConfiguration1PropertiesOutput + ToPromptTemplateConfiguration1PropertiesOutputWithContext(context.Context) PromptTemplateConfiguration1PropertiesOutput +} + +// Prompt template configuration +type PromptTemplateConfiguration1PropertiesArgs struct { + Chat PromptChatPromptTemplateConfigurationInput `pulumi:"chat"` +} + +func (PromptTemplateConfiguration1PropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTemplateConfiguration1Properties)(nil)).Elem() +} + +func (i PromptTemplateConfiguration1PropertiesArgs) ToPromptTemplateConfiguration1PropertiesOutput() PromptTemplateConfiguration1PropertiesOutput { + return i.ToPromptTemplateConfiguration1PropertiesOutputWithContext(context.Background()) +} + +func (i PromptTemplateConfiguration1PropertiesArgs) ToPromptTemplateConfiguration1PropertiesOutputWithContext(ctx context.Context) PromptTemplateConfiguration1PropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptTemplateConfiguration1PropertiesOutput) +} + +// Prompt template configuration +type PromptTemplateConfiguration1PropertiesOutput struct{ *pulumi.OutputState } + +func (PromptTemplateConfiguration1PropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTemplateConfiguration1Properties)(nil)).Elem() +} + +func (o PromptTemplateConfiguration1PropertiesOutput) ToPromptTemplateConfiguration1PropertiesOutput() PromptTemplateConfiguration1PropertiesOutput { + return o +} + +func (o PromptTemplateConfiguration1PropertiesOutput) ToPromptTemplateConfiguration1PropertiesOutputWithContext(ctx context.Context) PromptTemplateConfiguration1PropertiesOutput { + return o +} + +func (o PromptTemplateConfiguration1PropertiesOutput) Chat() PromptChatPromptTemplateConfigurationOutput { + return o.ApplyT(func(v PromptTemplateConfiguration1Properties) PromptChatPromptTemplateConfiguration { return v.Chat }).(PromptChatPromptTemplateConfigurationOutput) +} + +// Configuration for text prompt template +type PromptTextPromptTemplateConfiguration struct { + // List of input variables + InputVariables []PromptInputVariable `pulumi:"inputVariables"` + // Prompt content for String prompt template + Text *string `pulumi:"text"` + TextS3Location *PromptTextS3Location `pulumi:"textS3Location"` +} + +// PromptTextPromptTemplateConfigurationInput is an input type that accepts PromptTextPromptTemplateConfigurationArgs and PromptTextPromptTemplateConfigurationOutput values. +// You can construct a concrete instance of `PromptTextPromptTemplateConfigurationInput` via: +// +// PromptTextPromptTemplateConfigurationArgs{...} +type PromptTextPromptTemplateConfigurationInput interface { + pulumi.Input + + ToPromptTextPromptTemplateConfigurationOutput() PromptTextPromptTemplateConfigurationOutput + ToPromptTextPromptTemplateConfigurationOutputWithContext(context.Context) PromptTextPromptTemplateConfigurationOutput +} + +// Configuration for text prompt template +type PromptTextPromptTemplateConfigurationArgs struct { + // List of input variables + InputVariables PromptInputVariableArrayInput `pulumi:"inputVariables"` + // Prompt content for String prompt template + Text pulumi.StringPtrInput `pulumi:"text"` + TextS3Location PromptTextS3LocationPtrInput `pulumi:"textS3Location"` +} + +func (PromptTextPromptTemplateConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTextPromptTemplateConfiguration)(nil)).Elem() +} + +func (i PromptTextPromptTemplateConfigurationArgs) ToPromptTextPromptTemplateConfigurationOutput() PromptTextPromptTemplateConfigurationOutput { + return i.ToPromptTextPromptTemplateConfigurationOutputWithContext(context.Background()) +} + +func (i PromptTextPromptTemplateConfigurationArgs) ToPromptTextPromptTemplateConfigurationOutputWithContext(ctx context.Context) PromptTextPromptTemplateConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptTextPromptTemplateConfigurationOutput) +} + +// Configuration for text prompt template +type PromptTextPromptTemplateConfigurationOutput struct{ *pulumi.OutputState } + +func (PromptTextPromptTemplateConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTextPromptTemplateConfiguration)(nil)).Elem() +} + +func (o PromptTextPromptTemplateConfigurationOutput) ToPromptTextPromptTemplateConfigurationOutput() PromptTextPromptTemplateConfigurationOutput { + return o +} + +func (o PromptTextPromptTemplateConfigurationOutput) ToPromptTextPromptTemplateConfigurationOutputWithContext(ctx context.Context) PromptTextPromptTemplateConfigurationOutput { + return o +} + +// List of input variables +func (o PromptTextPromptTemplateConfigurationOutput) InputVariables() PromptInputVariableArrayOutput { + return o.ApplyT(func(v PromptTextPromptTemplateConfiguration) []PromptInputVariable { return v.InputVariables }).(PromptInputVariableArrayOutput) +} + +// Prompt content for String prompt template +func (o PromptTextPromptTemplateConfigurationOutput) Text() pulumi.StringPtrOutput { + return o.ApplyT(func(v PromptTextPromptTemplateConfiguration) *string { return v.Text }).(pulumi.StringPtrOutput) +} + +func (o PromptTextPromptTemplateConfigurationOutput) TextS3Location() PromptTextS3LocationPtrOutput { + return o.ApplyT(func(v PromptTextPromptTemplateConfiguration) *PromptTextS3Location { return v.TextS3Location }).(PromptTextS3LocationPtrOutput) +} + +// The identifier for the S3 resource. +type PromptTextS3Location struct { + // A bucket in S3 + Bucket string `pulumi:"bucket"` + // A object key in S3 + Key string `pulumi:"key"` + // The version of the the S3 object to use + Version *string `pulumi:"version"` +} + +// PromptTextS3LocationInput is an input type that accepts PromptTextS3LocationArgs and PromptTextS3LocationOutput values. +// You can construct a concrete instance of `PromptTextS3LocationInput` via: +// +// PromptTextS3LocationArgs{...} +type PromptTextS3LocationInput interface { + pulumi.Input + + ToPromptTextS3LocationOutput() PromptTextS3LocationOutput + ToPromptTextS3LocationOutputWithContext(context.Context) PromptTextS3LocationOutput +} + +// The identifier for the S3 resource. +type PromptTextS3LocationArgs struct { + // A bucket in S3 + Bucket pulumi.StringInput `pulumi:"bucket"` + // A object key in S3 + Key pulumi.StringInput `pulumi:"key"` + // The version of the the S3 object to use + Version pulumi.StringPtrInput `pulumi:"version"` +} + +func (PromptTextS3LocationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTextS3Location)(nil)).Elem() +} + +func (i PromptTextS3LocationArgs) ToPromptTextS3LocationOutput() PromptTextS3LocationOutput { + return i.ToPromptTextS3LocationOutputWithContext(context.Background()) +} + +func (i PromptTextS3LocationArgs) ToPromptTextS3LocationOutputWithContext(ctx context.Context) PromptTextS3LocationOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptTextS3LocationOutput) +} + +func (i PromptTextS3LocationArgs) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { + return i.ToPromptTextS3LocationPtrOutputWithContext(context.Background()) +} + +func (i PromptTextS3LocationArgs) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptTextS3LocationOutput).ToPromptTextS3LocationPtrOutputWithContext(ctx) +} + +// PromptTextS3LocationPtrInput is an input type that accepts PromptTextS3LocationArgs, PromptTextS3LocationPtr and PromptTextS3LocationPtrOutput values. +// You can construct a concrete instance of `PromptTextS3LocationPtrInput` via: +// +// PromptTextS3LocationArgs{...} +// +// or: +// +// nil +type PromptTextS3LocationPtrInput interface { + pulumi.Input + + ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput + ToPromptTextS3LocationPtrOutputWithContext(context.Context) PromptTextS3LocationPtrOutput +} + +type promptTextS3LocationPtrType PromptTextS3LocationArgs + +func PromptTextS3LocationPtr(v *PromptTextS3LocationArgs) PromptTextS3LocationPtrInput { + return (*promptTextS3LocationPtrType)(v) +} + +func (*promptTextS3LocationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptTextS3Location)(nil)).Elem() +} + +func (i *promptTextS3LocationPtrType) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { + return i.ToPromptTextS3LocationPtrOutputWithContext(context.Background()) +} + +func (i *promptTextS3LocationPtrType) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptTextS3LocationPtrOutput) +} + +// The identifier for the S3 resource. +type PromptTextS3LocationOutput struct{ *pulumi.OutputState } + +func (PromptTextS3LocationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptTextS3Location)(nil)).Elem() +} + +func (o PromptTextS3LocationOutput) ToPromptTextS3LocationOutput() PromptTextS3LocationOutput { + return o +} + +func (o PromptTextS3LocationOutput) ToPromptTextS3LocationOutputWithContext(ctx context.Context) PromptTextS3LocationOutput { + return o +} + +func (o PromptTextS3LocationOutput) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { + return o.ToPromptTextS3LocationPtrOutputWithContext(context.Background()) +} + +func (o PromptTextS3LocationOutput) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptTextS3Location) *PromptTextS3Location { + return &v + }).(PromptTextS3LocationPtrOutput) +} + +// A bucket in S3 +func (o PromptTextS3LocationOutput) Bucket() pulumi.StringOutput { + return o.ApplyT(func(v PromptTextS3Location) string { return v.Bucket }).(pulumi.StringOutput) +} + +// A object key in S3 +func (o PromptTextS3LocationOutput) Key() pulumi.StringOutput { + return o.ApplyT(func(v PromptTextS3Location) string { return v.Key }).(pulumi.StringOutput) +} + +// The version of the the S3 object to use +func (o PromptTextS3LocationOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v PromptTextS3Location) *string { return v.Version }).(pulumi.StringPtrOutput) +} + +type PromptTextS3LocationPtrOutput struct{ *pulumi.OutputState } + +func (PromptTextS3LocationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptTextS3Location)(nil)).Elem() +} + +func (o PromptTextS3LocationPtrOutput) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { + return o +} + +func (o PromptTextS3LocationPtrOutput) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { + return o +} + +func (o PromptTextS3LocationPtrOutput) Elem() PromptTextS3LocationOutput { + return o.ApplyT(func(v *PromptTextS3Location) PromptTextS3Location { + if v != nil { + return *v + } + var ret PromptTextS3Location + return ret + }).(PromptTextS3LocationOutput) +} + +// A bucket in S3 +func (o PromptTextS3LocationPtrOutput) Bucket() pulumi.StringPtrOutput { + return o.ApplyT(func(v *PromptTextS3Location) *string { + if v == nil { + return nil + } + return &v.Bucket + }).(pulumi.StringPtrOutput) +} + +// A object key in S3 +func (o PromptTextS3LocationPtrOutput) Key() pulumi.StringPtrOutput { + return o.ApplyT(func(v *PromptTextS3Location) *string { + if v == nil { + return nil + } + return &v.Key + }).(pulumi.StringPtrOutput) +} + +// The version of the the S3 object to use +func (o PromptTextS3LocationPtrOutput) Version() pulumi.StringPtrOutput { + return o.ApplyT(func(v *PromptTextS3Location) *string { + if v == nil { + return nil + } + return v.Version + }).(pulumi.StringPtrOutput) +} + +// Tool details +type PromptTool0Properties struct { + ToolSpec PromptToolSpecification `pulumi:"toolSpec"` +} + +// Tool choice +type PromptToolChoice0Properties struct { + Auto PromptAutoToolChoice `pulumi:"auto"` +} + +// PromptToolChoice0PropertiesInput is an input type that accepts PromptToolChoice0PropertiesArgs and PromptToolChoice0PropertiesOutput values. +// You can construct a concrete instance of `PromptToolChoice0PropertiesInput` via: +// +// PromptToolChoice0PropertiesArgs{...} +type PromptToolChoice0PropertiesInput interface { + pulumi.Input + + ToPromptToolChoice0PropertiesOutput() PromptToolChoice0PropertiesOutput + ToPromptToolChoice0PropertiesOutputWithContext(context.Context) PromptToolChoice0PropertiesOutput +} + +// Tool choice +type PromptToolChoice0PropertiesArgs struct { + Auto PromptAutoToolChoiceInput `pulumi:"auto"` +} + +func (PromptToolChoice0PropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolChoice0Properties)(nil)).Elem() +} + +func (i PromptToolChoice0PropertiesArgs) ToPromptToolChoice0PropertiesOutput() PromptToolChoice0PropertiesOutput { + return i.ToPromptToolChoice0PropertiesOutputWithContext(context.Background()) +} + +func (i PromptToolChoice0PropertiesArgs) ToPromptToolChoice0PropertiesOutputWithContext(ctx context.Context) PromptToolChoice0PropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice0PropertiesOutput) +} + +func (i PromptToolChoice0PropertiesArgs) ToPromptToolChoice0PropertiesPtrOutput() PromptToolChoice0PropertiesPtrOutput { + return i.ToPromptToolChoice0PropertiesPtrOutputWithContext(context.Background()) +} + +func (i PromptToolChoice0PropertiesArgs) ToPromptToolChoice0PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice0PropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice0PropertiesOutput).ToPromptToolChoice0PropertiesPtrOutputWithContext(ctx) +} + +// PromptToolChoice0PropertiesPtrInput is an input type that accepts PromptToolChoice0PropertiesArgs, PromptToolChoice0PropertiesPtr and PromptToolChoice0PropertiesPtrOutput values. +// You can construct a concrete instance of `PromptToolChoice0PropertiesPtrInput` via: +// +// PromptToolChoice0PropertiesArgs{...} +// +// or: +// +// nil +type PromptToolChoice0PropertiesPtrInput interface { + pulumi.Input + + ToPromptToolChoice0PropertiesPtrOutput() PromptToolChoice0PropertiesPtrOutput + ToPromptToolChoice0PropertiesPtrOutputWithContext(context.Context) PromptToolChoice0PropertiesPtrOutput +} + +type promptToolChoice0PropertiesPtrType PromptToolChoice0PropertiesArgs + +func PromptToolChoice0PropertiesPtr(v *PromptToolChoice0PropertiesArgs) PromptToolChoice0PropertiesPtrInput { + return (*promptToolChoice0PropertiesPtrType)(v) +} + +func (*promptToolChoice0PropertiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolChoice0Properties)(nil)).Elem() +} + +func (i *promptToolChoice0PropertiesPtrType) ToPromptToolChoice0PropertiesPtrOutput() PromptToolChoice0PropertiesPtrOutput { + return i.ToPromptToolChoice0PropertiesPtrOutputWithContext(context.Background()) +} + +func (i *promptToolChoice0PropertiesPtrType) ToPromptToolChoice0PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice0PropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice0PropertiesPtrOutput) +} + +// Tool choice +type PromptToolChoice0PropertiesOutput struct{ *pulumi.OutputState } + +func (PromptToolChoice0PropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolChoice0Properties)(nil)).Elem() +} + +func (o PromptToolChoice0PropertiesOutput) ToPromptToolChoice0PropertiesOutput() PromptToolChoice0PropertiesOutput { + return o +} + +func (o PromptToolChoice0PropertiesOutput) ToPromptToolChoice0PropertiesOutputWithContext(ctx context.Context) PromptToolChoice0PropertiesOutput { + return o +} + +func (o PromptToolChoice0PropertiesOutput) ToPromptToolChoice0PropertiesPtrOutput() PromptToolChoice0PropertiesPtrOutput { + return o.ToPromptToolChoice0PropertiesPtrOutputWithContext(context.Background()) +} + +func (o PromptToolChoice0PropertiesOutput) ToPromptToolChoice0PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice0PropertiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptToolChoice0Properties) *PromptToolChoice0Properties { + return &v + }).(PromptToolChoice0PropertiesPtrOutput) +} + +func (o PromptToolChoice0PropertiesOutput) Auto() PromptAutoToolChoiceOutput { + return o.ApplyT(func(v PromptToolChoice0Properties) PromptAutoToolChoice { return v.Auto }).(PromptAutoToolChoiceOutput) +} + +type PromptToolChoice0PropertiesPtrOutput struct{ *pulumi.OutputState } + +func (PromptToolChoice0PropertiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolChoice0Properties)(nil)).Elem() +} + +func (o PromptToolChoice0PropertiesPtrOutput) ToPromptToolChoice0PropertiesPtrOutput() PromptToolChoice0PropertiesPtrOutput { + return o +} + +func (o PromptToolChoice0PropertiesPtrOutput) ToPromptToolChoice0PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice0PropertiesPtrOutput { + return o +} + +func (o PromptToolChoice0PropertiesPtrOutput) Elem() PromptToolChoice0PropertiesOutput { + return o.ApplyT(func(v *PromptToolChoice0Properties) PromptToolChoice0Properties { + if v != nil { + return *v + } + var ret PromptToolChoice0Properties + return ret + }).(PromptToolChoice0PropertiesOutput) +} + +func (o PromptToolChoice0PropertiesPtrOutput) Auto() PromptAutoToolChoicePtrOutput { + return o.ApplyT(func(v *PromptToolChoice0Properties) *PromptAutoToolChoice { + if v == nil { + return nil + } + return &v.Auto + }).(PromptAutoToolChoicePtrOutput) +} + +// Tool choice +type PromptToolChoice1Properties struct { + Any PromptAnyToolChoice `pulumi:"any"` +} + +// PromptToolChoice1PropertiesInput is an input type that accepts PromptToolChoice1PropertiesArgs and PromptToolChoice1PropertiesOutput values. +// You can construct a concrete instance of `PromptToolChoice1PropertiesInput` via: +// +// PromptToolChoice1PropertiesArgs{...} +type PromptToolChoice1PropertiesInput interface { + pulumi.Input + + ToPromptToolChoice1PropertiesOutput() PromptToolChoice1PropertiesOutput + ToPromptToolChoice1PropertiesOutputWithContext(context.Context) PromptToolChoice1PropertiesOutput +} + +// Tool choice +type PromptToolChoice1PropertiesArgs struct { + Any PromptAnyToolChoiceInput `pulumi:"any"` +} + +func (PromptToolChoice1PropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolChoice1Properties)(nil)).Elem() +} + +func (i PromptToolChoice1PropertiesArgs) ToPromptToolChoice1PropertiesOutput() PromptToolChoice1PropertiesOutput { + return i.ToPromptToolChoice1PropertiesOutputWithContext(context.Background()) +} + +func (i PromptToolChoice1PropertiesArgs) ToPromptToolChoice1PropertiesOutputWithContext(ctx context.Context) PromptToolChoice1PropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice1PropertiesOutput) +} + +func (i PromptToolChoice1PropertiesArgs) ToPromptToolChoice1PropertiesPtrOutput() PromptToolChoice1PropertiesPtrOutput { + return i.ToPromptToolChoice1PropertiesPtrOutputWithContext(context.Background()) +} + +func (i PromptToolChoice1PropertiesArgs) ToPromptToolChoice1PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice1PropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice1PropertiesOutput).ToPromptToolChoice1PropertiesPtrOutputWithContext(ctx) +} + +// PromptToolChoice1PropertiesPtrInput is an input type that accepts PromptToolChoice1PropertiesArgs, PromptToolChoice1PropertiesPtr and PromptToolChoice1PropertiesPtrOutput values. +// You can construct a concrete instance of `PromptToolChoice1PropertiesPtrInput` via: +// +// PromptToolChoice1PropertiesArgs{...} +// +// or: +// +// nil +type PromptToolChoice1PropertiesPtrInput interface { + pulumi.Input + + ToPromptToolChoice1PropertiesPtrOutput() PromptToolChoice1PropertiesPtrOutput + ToPromptToolChoice1PropertiesPtrOutputWithContext(context.Context) PromptToolChoice1PropertiesPtrOutput +} + +type promptToolChoice1PropertiesPtrType PromptToolChoice1PropertiesArgs + +func PromptToolChoice1PropertiesPtr(v *PromptToolChoice1PropertiesArgs) PromptToolChoice1PropertiesPtrInput { + return (*promptToolChoice1PropertiesPtrType)(v) +} + +func (*promptToolChoice1PropertiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolChoice1Properties)(nil)).Elem() +} + +func (i *promptToolChoice1PropertiesPtrType) ToPromptToolChoice1PropertiesPtrOutput() PromptToolChoice1PropertiesPtrOutput { + return i.ToPromptToolChoice1PropertiesPtrOutputWithContext(context.Background()) +} + +func (i *promptToolChoice1PropertiesPtrType) ToPromptToolChoice1PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice1PropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice1PropertiesPtrOutput) +} + +// Tool choice +type PromptToolChoice1PropertiesOutput struct{ *pulumi.OutputState } + +func (PromptToolChoice1PropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolChoice1Properties)(nil)).Elem() +} + +func (o PromptToolChoice1PropertiesOutput) ToPromptToolChoice1PropertiesOutput() PromptToolChoice1PropertiesOutput { + return o +} + +func (o PromptToolChoice1PropertiesOutput) ToPromptToolChoice1PropertiesOutputWithContext(ctx context.Context) PromptToolChoice1PropertiesOutput { + return o +} + +func (o PromptToolChoice1PropertiesOutput) ToPromptToolChoice1PropertiesPtrOutput() PromptToolChoice1PropertiesPtrOutput { + return o.ToPromptToolChoice1PropertiesPtrOutputWithContext(context.Background()) +} + +func (o PromptToolChoice1PropertiesOutput) ToPromptToolChoice1PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice1PropertiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptToolChoice1Properties) *PromptToolChoice1Properties { + return &v + }).(PromptToolChoice1PropertiesPtrOutput) +} + +func (o PromptToolChoice1PropertiesOutput) Any() PromptAnyToolChoiceOutput { + return o.ApplyT(func(v PromptToolChoice1Properties) PromptAnyToolChoice { return v.Any }).(PromptAnyToolChoiceOutput) +} + +type PromptToolChoice1PropertiesPtrOutput struct{ *pulumi.OutputState } + +func (PromptToolChoice1PropertiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolChoice1Properties)(nil)).Elem() +} + +func (o PromptToolChoice1PropertiesPtrOutput) ToPromptToolChoice1PropertiesPtrOutput() PromptToolChoice1PropertiesPtrOutput { + return o +} + +func (o PromptToolChoice1PropertiesPtrOutput) ToPromptToolChoice1PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice1PropertiesPtrOutput { + return o +} + +func (o PromptToolChoice1PropertiesPtrOutput) Elem() PromptToolChoice1PropertiesOutput { + return o.ApplyT(func(v *PromptToolChoice1Properties) PromptToolChoice1Properties { + if v != nil { + return *v + } + var ret PromptToolChoice1Properties + return ret + }).(PromptToolChoice1PropertiesOutput) +} + +func (o PromptToolChoice1PropertiesPtrOutput) Any() PromptAnyToolChoicePtrOutput { + return o.ApplyT(func(v *PromptToolChoice1Properties) *PromptAnyToolChoice { + if v == nil { + return nil + } + return &v.Any + }).(PromptAnyToolChoicePtrOutput) +} + +// Tool choice +type PromptToolChoice2Properties struct { + Tool PromptSpecificToolChoice `pulumi:"tool"` +} + +// PromptToolChoice2PropertiesInput is an input type that accepts PromptToolChoice2PropertiesArgs and PromptToolChoice2PropertiesOutput values. +// You can construct a concrete instance of `PromptToolChoice2PropertiesInput` via: +// +// PromptToolChoice2PropertiesArgs{...} +type PromptToolChoice2PropertiesInput interface { + pulumi.Input + + ToPromptToolChoice2PropertiesOutput() PromptToolChoice2PropertiesOutput + ToPromptToolChoice2PropertiesOutputWithContext(context.Context) PromptToolChoice2PropertiesOutput +} + +// Tool choice +type PromptToolChoice2PropertiesArgs struct { + Tool PromptSpecificToolChoiceInput `pulumi:"tool"` +} + +func (PromptToolChoice2PropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolChoice2Properties)(nil)).Elem() +} + +func (i PromptToolChoice2PropertiesArgs) ToPromptToolChoice2PropertiesOutput() PromptToolChoice2PropertiesOutput { + return i.ToPromptToolChoice2PropertiesOutputWithContext(context.Background()) +} + +func (i PromptToolChoice2PropertiesArgs) ToPromptToolChoice2PropertiesOutputWithContext(ctx context.Context) PromptToolChoice2PropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice2PropertiesOutput) +} + +func (i PromptToolChoice2PropertiesArgs) ToPromptToolChoice2PropertiesPtrOutput() PromptToolChoice2PropertiesPtrOutput { + return i.ToPromptToolChoice2PropertiesPtrOutputWithContext(context.Background()) +} + +func (i PromptToolChoice2PropertiesArgs) ToPromptToolChoice2PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice2PropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice2PropertiesOutput).ToPromptToolChoice2PropertiesPtrOutputWithContext(ctx) +} + +// PromptToolChoice2PropertiesPtrInput is an input type that accepts PromptToolChoice2PropertiesArgs, PromptToolChoice2PropertiesPtr and PromptToolChoice2PropertiesPtrOutput values. +// You can construct a concrete instance of `PromptToolChoice2PropertiesPtrInput` via: +// +// PromptToolChoice2PropertiesArgs{...} +// +// or: +// +// nil +type PromptToolChoice2PropertiesPtrInput interface { + pulumi.Input + + ToPromptToolChoice2PropertiesPtrOutput() PromptToolChoice2PropertiesPtrOutput + ToPromptToolChoice2PropertiesPtrOutputWithContext(context.Context) PromptToolChoice2PropertiesPtrOutput +} + +type promptToolChoice2PropertiesPtrType PromptToolChoice2PropertiesArgs + +func PromptToolChoice2PropertiesPtr(v *PromptToolChoice2PropertiesArgs) PromptToolChoice2PropertiesPtrInput { + return (*promptToolChoice2PropertiesPtrType)(v) +} + +func (*promptToolChoice2PropertiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolChoice2Properties)(nil)).Elem() +} + +func (i *promptToolChoice2PropertiesPtrType) ToPromptToolChoice2PropertiesPtrOutput() PromptToolChoice2PropertiesPtrOutput { + return i.ToPromptToolChoice2PropertiesPtrOutputWithContext(context.Background()) +} + +func (i *promptToolChoice2PropertiesPtrType) ToPromptToolChoice2PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice2PropertiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolChoice2PropertiesPtrOutput) +} + +// Tool choice +type PromptToolChoice2PropertiesOutput struct{ *pulumi.OutputState } + +func (PromptToolChoice2PropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolChoice2Properties)(nil)).Elem() +} + +func (o PromptToolChoice2PropertiesOutput) ToPromptToolChoice2PropertiesOutput() PromptToolChoice2PropertiesOutput { + return o +} + +func (o PromptToolChoice2PropertiesOutput) ToPromptToolChoice2PropertiesOutputWithContext(ctx context.Context) PromptToolChoice2PropertiesOutput { + return o +} + +func (o PromptToolChoice2PropertiesOutput) ToPromptToolChoice2PropertiesPtrOutput() PromptToolChoice2PropertiesPtrOutput { + return o.ToPromptToolChoice2PropertiesPtrOutputWithContext(context.Background()) +} + +func (o PromptToolChoice2PropertiesOutput) ToPromptToolChoice2PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice2PropertiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptToolChoice2Properties) *PromptToolChoice2Properties { + return &v + }).(PromptToolChoice2PropertiesPtrOutput) +} + +func (o PromptToolChoice2PropertiesOutput) Tool() PromptSpecificToolChoiceOutput { + return o.ApplyT(func(v PromptToolChoice2Properties) PromptSpecificToolChoice { return v.Tool }).(PromptSpecificToolChoiceOutput) +} + +type PromptToolChoice2PropertiesPtrOutput struct{ *pulumi.OutputState } + +func (PromptToolChoice2PropertiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolChoice2Properties)(nil)).Elem() +} + +func (o PromptToolChoice2PropertiesPtrOutput) ToPromptToolChoice2PropertiesPtrOutput() PromptToolChoice2PropertiesPtrOutput { + return o +} + +func (o PromptToolChoice2PropertiesPtrOutput) ToPromptToolChoice2PropertiesPtrOutputWithContext(ctx context.Context) PromptToolChoice2PropertiesPtrOutput { + return o +} + +func (o PromptToolChoice2PropertiesPtrOutput) Elem() PromptToolChoice2PropertiesOutput { + return o.ApplyT(func(v *PromptToolChoice2Properties) PromptToolChoice2Properties { + if v != nil { + return *v + } + var ret PromptToolChoice2Properties + return ret + }).(PromptToolChoice2PropertiesOutput) } -// Cumulative probability cutoff for token selection -func (o PromptModelInferenceConfigurationPtrOutput) TopP() pulumi.Float64PtrOutput { - return o.ApplyT(func(v *PromptModelInferenceConfiguration) *float64 { +func (o PromptToolChoice2PropertiesPtrOutput) Tool() PromptSpecificToolChoicePtrOutput { + return o.ApplyT(func(v *PromptToolChoice2Properties) *PromptSpecificToolChoice { if v == nil { return nil } - return v.TopP - }).(pulumi.Float64PtrOutput) -} - -// Prompt template configuration -type PromptTemplateConfiguration0Properties struct { - Text PromptTextPromptTemplateConfiguration `pulumi:"text"` + return &v.Tool + }).(PromptSpecificToolChoicePtrOutput) } -// Prompt template configuration -type PromptTemplateConfigurationProperties struct { - Text PromptTextPromptTemplateConfiguration `pulumi:"text"` +// Tool configuration +type PromptToolConfiguration struct { + ToolChoice interface{} `pulumi:"toolChoice"` + // List of Tools + Tools []PromptToolProperties `pulumi:"tools"` } -// PromptTemplateConfigurationPropertiesInput is an input type that accepts PromptTemplateConfigurationPropertiesArgs and PromptTemplateConfigurationPropertiesOutput values. -// You can construct a concrete instance of `PromptTemplateConfigurationPropertiesInput` via: +// PromptToolConfigurationInput is an input type that accepts PromptToolConfigurationArgs and PromptToolConfigurationOutput values. +// You can construct a concrete instance of `PromptToolConfigurationInput` via: // -// PromptTemplateConfigurationPropertiesArgs{...} -type PromptTemplateConfigurationPropertiesInput interface { +// PromptToolConfigurationArgs{...} +type PromptToolConfigurationInput interface { pulumi.Input - ToPromptTemplateConfigurationPropertiesOutput() PromptTemplateConfigurationPropertiesOutput - ToPromptTemplateConfigurationPropertiesOutputWithContext(context.Context) PromptTemplateConfigurationPropertiesOutput + ToPromptToolConfigurationOutput() PromptToolConfigurationOutput + ToPromptToolConfigurationOutputWithContext(context.Context) PromptToolConfigurationOutput } -// Prompt template configuration -type PromptTemplateConfigurationPropertiesArgs struct { - Text PromptTextPromptTemplateConfigurationInput `pulumi:"text"` +// Tool configuration +type PromptToolConfigurationArgs struct { + ToolChoice pulumi.Input `pulumi:"toolChoice"` + // List of Tools + Tools PromptToolPropertiesArrayInput `pulumi:"tools"` } -func (PromptTemplateConfigurationPropertiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PromptTemplateConfigurationProperties)(nil)).Elem() +func (PromptToolConfigurationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolConfiguration)(nil)).Elem() } -func (i PromptTemplateConfigurationPropertiesArgs) ToPromptTemplateConfigurationPropertiesOutput() PromptTemplateConfigurationPropertiesOutput { - return i.ToPromptTemplateConfigurationPropertiesOutputWithContext(context.Background()) +func (i PromptToolConfigurationArgs) ToPromptToolConfigurationOutput() PromptToolConfigurationOutput { + return i.ToPromptToolConfigurationOutputWithContext(context.Background()) } -func (i PromptTemplateConfigurationPropertiesArgs) ToPromptTemplateConfigurationPropertiesOutputWithContext(ctx context.Context) PromptTemplateConfigurationPropertiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptTemplateConfigurationPropertiesOutput) +func (i PromptToolConfigurationArgs) ToPromptToolConfigurationOutputWithContext(ctx context.Context) PromptToolConfigurationOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolConfigurationOutput) } -// Prompt template configuration -type PromptTemplateConfigurationPropertiesOutput struct{ *pulumi.OutputState } +func (i PromptToolConfigurationArgs) ToPromptToolConfigurationPtrOutput() PromptToolConfigurationPtrOutput { + return i.ToPromptToolConfigurationPtrOutputWithContext(context.Background()) +} -func (PromptTemplateConfigurationPropertiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PromptTemplateConfigurationProperties)(nil)).Elem() +func (i PromptToolConfigurationArgs) ToPromptToolConfigurationPtrOutputWithContext(ctx context.Context) PromptToolConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolConfigurationOutput).ToPromptToolConfigurationPtrOutputWithContext(ctx) } -func (o PromptTemplateConfigurationPropertiesOutput) ToPromptTemplateConfigurationPropertiesOutput() PromptTemplateConfigurationPropertiesOutput { - return o +// PromptToolConfigurationPtrInput is an input type that accepts PromptToolConfigurationArgs, PromptToolConfigurationPtr and PromptToolConfigurationPtrOutput values. +// You can construct a concrete instance of `PromptToolConfigurationPtrInput` via: +// +// PromptToolConfigurationArgs{...} +// +// or: +// +// nil +type PromptToolConfigurationPtrInput interface { + pulumi.Input + + ToPromptToolConfigurationPtrOutput() PromptToolConfigurationPtrOutput + ToPromptToolConfigurationPtrOutputWithContext(context.Context) PromptToolConfigurationPtrOutput } -func (o PromptTemplateConfigurationPropertiesOutput) ToPromptTemplateConfigurationPropertiesOutputWithContext(ctx context.Context) PromptTemplateConfigurationPropertiesOutput { - return o +type promptToolConfigurationPtrType PromptToolConfigurationArgs + +func PromptToolConfigurationPtr(v *PromptToolConfigurationArgs) PromptToolConfigurationPtrInput { + return (*promptToolConfigurationPtrType)(v) } -func (o PromptTemplateConfigurationPropertiesOutput) Text() PromptTextPromptTemplateConfigurationOutput { - return o.ApplyT(func(v PromptTemplateConfigurationProperties) PromptTextPromptTemplateConfiguration { return v.Text }).(PromptTextPromptTemplateConfigurationOutput) +func (*promptToolConfigurationPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolConfiguration)(nil)).Elem() } -// Configuration for text prompt template -type PromptTextPromptTemplateConfiguration struct { - // List of input variables - InputVariables []PromptInputVariable `pulumi:"inputVariables"` - // Prompt content for String prompt template - Text *string `pulumi:"text"` - TextS3Location *PromptTextS3Location `pulumi:"textS3Location"` +func (i *promptToolConfigurationPtrType) ToPromptToolConfigurationPtrOutput() PromptToolConfigurationPtrOutput { + return i.ToPromptToolConfigurationPtrOutputWithContext(context.Background()) } -// PromptTextPromptTemplateConfigurationInput is an input type that accepts PromptTextPromptTemplateConfigurationArgs and PromptTextPromptTemplateConfigurationOutput values. -// You can construct a concrete instance of `PromptTextPromptTemplateConfigurationInput` via: -// -// PromptTextPromptTemplateConfigurationArgs{...} -type PromptTextPromptTemplateConfigurationInput interface { - pulumi.Input +func (i *promptToolConfigurationPtrType) ToPromptToolConfigurationPtrOutputWithContext(ctx context.Context) PromptToolConfigurationPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolConfigurationPtrOutput) +} - ToPromptTextPromptTemplateConfigurationOutput() PromptTextPromptTemplateConfigurationOutput - ToPromptTextPromptTemplateConfigurationOutputWithContext(context.Context) PromptTextPromptTemplateConfigurationOutput +// Tool configuration +type PromptToolConfigurationOutput struct{ *pulumi.OutputState } + +func (PromptToolConfigurationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolConfiguration)(nil)).Elem() } -// Configuration for text prompt template -type PromptTextPromptTemplateConfigurationArgs struct { - // List of input variables - InputVariables PromptInputVariableArrayInput `pulumi:"inputVariables"` - // Prompt content for String prompt template - Text pulumi.StringPtrInput `pulumi:"text"` - TextS3Location PromptTextS3LocationPtrInput `pulumi:"textS3Location"` +func (o PromptToolConfigurationOutput) ToPromptToolConfigurationOutput() PromptToolConfigurationOutput { + return o } -func (PromptTextPromptTemplateConfigurationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PromptTextPromptTemplateConfiguration)(nil)).Elem() +func (o PromptToolConfigurationOutput) ToPromptToolConfigurationOutputWithContext(ctx context.Context) PromptToolConfigurationOutput { + return o } -func (i PromptTextPromptTemplateConfigurationArgs) ToPromptTextPromptTemplateConfigurationOutput() PromptTextPromptTemplateConfigurationOutput { - return i.ToPromptTextPromptTemplateConfigurationOutputWithContext(context.Background()) +func (o PromptToolConfigurationOutput) ToPromptToolConfigurationPtrOutput() PromptToolConfigurationPtrOutput { + return o.ToPromptToolConfigurationPtrOutputWithContext(context.Background()) } -func (i PromptTextPromptTemplateConfigurationArgs) ToPromptTextPromptTemplateConfigurationOutputWithContext(ctx context.Context) PromptTextPromptTemplateConfigurationOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptTextPromptTemplateConfigurationOutput) +func (o PromptToolConfigurationOutput) ToPromptToolConfigurationPtrOutputWithContext(ctx context.Context) PromptToolConfigurationPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptToolConfiguration) *PromptToolConfiguration { + return &v + }).(PromptToolConfigurationPtrOutput) } -// Configuration for text prompt template -type PromptTextPromptTemplateConfigurationOutput struct{ *pulumi.OutputState } +func (o PromptToolConfigurationOutput) ToolChoice() pulumi.AnyOutput { + return o.ApplyT(func(v PromptToolConfiguration) interface{} { return v.ToolChoice }).(pulumi.AnyOutput) +} -func (PromptTextPromptTemplateConfigurationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PromptTextPromptTemplateConfiguration)(nil)).Elem() +// List of Tools +func (o PromptToolConfigurationOutput) Tools() PromptToolPropertiesArrayOutput { + return o.ApplyT(func(v PromptToolConfiguration) []PromptToolProperties { return v.Tools }).(PromptToolPropertiesArrayOutput) } -func (o PromptTextPromptTemplateConfigurationOutput) ToPromptTextPromptTemplateConfigurationOutput() PromptTextPromptTemplateConfigurationOutput { +type PromptToolConfigurationPtrOutput struct{ *pulumi.OutputState } + +func (PromptToolConfigurationPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**PromptToolConfiguration)(nil)).Elem() +} + +func (o PromptToolConfigurationPtrOutput) ToPromptToolConfigurationPtrOutput() PromptToolConfigurationPtrOutput { return o } -func (o PromptTextPromptTemplateConfigurationOutput) ToPromptTextPromptTemplateConfigurationOutputWithContext(ctx context.Context) PromptTextPromptTemplateConfigurationOutput { +func (o PromptToolConfigurationPtrOutput) ToPromptToolConfigurationPtrOutputWithContext(ctx context.Context) PromptToolConfigurationPtrOutput { return o } -// List of input variables -func (o PromptTextPromptTemplateConfigurationOutput) InputVariables() PromptInputVariableArrayOutput { - return o.ApplyT(func(v PromptTextPromptTemplateConfiguration) []PromptInputVariable { return v.InputVariables }).(PromptInputVariableArrayOutput) +func (o PromptToolConfigurationPtrOutput) Elem() PromptToolConfigurationOutput { + return o.ApplyT(func(v *PromptToolConfiguration) PromptToolConfiguration { + if v != nil { + return *v + } + var ret PromptToolConfiguration + return ret + }).(PromptToolConfigurationOutput) } -// Prompt content for String prompt template -func (o PromptTextPromptTemplateConfigurationOutput) Text() pulumi.StringPtrOutput { - return o.ApplyT(func(v PromptTextPromptTemplateConfiguration) *string { return v.Text }).(pulumi.StringPtrOutput) +func (o PromptToolConfigurationPtrOutput) ToolChoice() pulumi.AnyOutput { + return o.ApplyT(func(v *PromptToolConfiguration) interface{} { + if v == nil { + return nil + } + return v.ToolChoice + }).(pulumi.AnyOutput) } -func (o PromptTextPromptTemplateConfigurationOutput) TextS3Location() PromptTextS3LocationPtrOutput { - return o.ApplyT(func(v PromptTextPromptTemplateConfiguration) *PromptTextS3Location { return v.TextS3Location }).(PromptTextS3LocationPtrOutput) +// List of Tools +func (o PromptToolConfigurationPtrOutput) Tools() PromptToolPropertiesArrayOutput { + return o.ApplyT(func(v *PromptToolConfiguration) []PromptToolProperties { + if v == nil { + return nil + } + return v.Tools + }).(PromptToolPropertiesArrayOutput) } -// The identifier for the S3 resource. -type PromptTextS3Location struct { - // A bucket in S3 - Bucket string `pulumi:"bucket"` - // A object key in S3 - Key string `pulumi:"key"` - // The version of the the S3 object to use - Version *string `pulumi:"version"` +// Tool input schema json +type PromptToolInputSchema0Properties struct { + Json interface{} `pulumi:"json"` } -// PromptTextS3LocationInput is an input type that accepts PromptTextS3LocationArgs and PromptTextS3LocationOutput values. -// You can construct a concrete instance of `PromptTextS3LocationInput` via: +// Tool input schema json +type PromptToolInputSchemaProperties struct { + Json interface{} `pulumi:"json"` +} + +// PromptToolInputSchemaPropertiesInput is an input type that accepts PromptToolInputSchemaPropertiesArgs and PromptToolInputSchemaPropertiesOutput values. +// You can construct a concrete instance of `PromptToolInputSchemaPropertiesInput` via: // -// PromptTextS3LocationArgs{...} -type PromptTextS3LocationInput interface { +// PromptToolInputSchemaPropertiesArgs{...} +type PromptToolInputSchemaPropertiesInput interface { pulumi.Input - ToPromptTextS3LocationOutput() PromptTextS3LocationOutput - ToPromptTextS3LocationOutputWithContext(context.Context) PromptTextS3LocationOutput + ToPromptToolInputSchemaPropertiesOutput() PromptToolInputSchemaPropertiesOutput + ToPromptToolInputSchemaPropertiesOutputWithContext(context.Context) PromptToolInputSchemaPropertiesOutput } -// The identifier for the S3 resource. -type PromptTextS3LocationArgs struct { - // A bucket in S3 - Bucket pulumi.StringInput `pulumi:"bucket"` - // A object key in S3 - Key pulumi.StringInput `pulumi:"key"` - // The version of the the S3 object to use - Version pulumi.StringPtrInput `pulumi:"version"` +// Tool input schema json +type PromptToolInputSchemaPropertiesArgs struct { + Json pulumi.Input `pulumi:"json"` } -func (PromptTextS3LocationArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PromptTextS3Location)(nil)).Elem() +func (PromptToolInputSchemaPropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolInputSchemaProperties)(nil)).Elem() } -func (i PromptTextS3LocationArgs) ToPromptTextS3LocationOutput() PromptTextS3LocationOutput { - return i.ToPromptTextS3LocationOutputWithContext(context.Background()) +func (i PromptToolInputSchemaPropertiesArgs) ToPromptToolInputSchemaPropertiesOutput() PromptToolInputSchemaPropertiesOutput { + return i.ToPromptToolInputSchemaPropertiesOutputWithContext(context.Background()) } -func (i PromptTextS3LocationArgs) ToPromptTextS3LocationOutputWithContext(ctx context.Context) PromptTextS3LocationOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptTextS3LocationOutput) +func (i PromptToolInputSchemaPropertiesArgs) ToPromptToolInputSchemaPropertiesOutputWithContext(ctx context.Context) PromptToolInputSchemaPropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolInputSchemaPropertiesOutput) } -func (i PromptTextS3LocationArgs) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { - return i.ToPromptTextS3LocationPtrOutputWithContext(context.Background()) +// Tool input schema json +type PromptToolInputSchemaPropertiesOutput struct{ *pulumi.OutputState } + +func (PromptToolInputSchemaPropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolInputSchemaProperties)(nil)).Elem() } -func (i PromptTextS3LocationArgs) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptTextS3LocationOutput).ToPromptTextS3LocationPtrOutputWithContext(ctx) +func (o PromptToolInputSchemaPropertiesOutput) ToPromptToolInputSchemaPropertiesOutput() PromptToolInputSchemaPropertiesOutput { + return o } -// PromptTextS3LocationPtrInput is an input type that accepts PromptTextS3LocationArgs, PromptTextS3LocationPtr and PromptTextS3LocationPtrOutput values. -// You can construct a concrete instance of `PromptTextS3LocationPtrInput` via: -// -// PromptTextS3LocationArgs{...} +func (o PromptToolInputSchemaPropertiesOutput) ToPromptToolInputSchemaPropertiesOutputWithContext(ctx context.Context) PromptToolInputSchemaPropertiesOutput { + return o +} + +func (o PromptToolInputSchemaPropertiesOutput) Json() pulumi.AnyOutput { + return o.ApplyT(func(v PromptToolInputSchemaProperties) interface{} { return v.Json }).(pulumi.AnyOutput) +} + +// Tool details +type PromptToolProperties struct { + ToolSpec PromptToolSpecification `pulumi:"toolSpec"` +} + +// PromptToolPropertiesInput is an input type that accepts PromptToolPropertiesArgs and PromptToolPropertiesOutput values. +// You can construct a concrete instance of `PromptToolPropertiesInput` via: // -// or: +// PromptToolPropertiesArgs{...} +type PromptToolPropertiesInput interface { + pulumi.Input + + ToPromptToolPropertiesOutput() PromptToolPropertiesOutput + ToPromptToolPropertiesOutputWithContext(context.Context) PromptToolPropertiesOutput +} + +// Tool details +type PromptToolPropertiesArgs struct { + ToolSpec PromptToolSpecificationInput `pulumi:"toolSpec"` +} + +func (PromptToolPropertiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolProperties)(nil)).Elem() +} + +func (i PromptToolPropertiesArgs) ToPromptToolPropertiesOutput() PromptToolPropertiesOutput { + return i.ToPromptToolPropertiesOutputWithContext(context.Background()) +} + +func (i PromptToolPropertiesArgs) ToPromptToolPropertiesOutputWithContext(ctx context.Context) PromptToolPropertiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolPropertiesOutput) +} + +// PromptToolPropertiesArrayInput is an input type that accepts PromptToolPropertiesArray and PromptToolPropertiesArrayOutput values. +// You can construct a concrete instance of `PromptToolPropertiesArrayInput` via: // -// nil -type PromptTextS3LocationPtrInput interface { +// PromptToolPropertiesArray{ PromptToolPropertiesArgs{...} } +type PromptToolPropertiesArrayInput interface { pulumi.Input - ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput - ToPromptTextS3LocationPtrOutputWithContext(context.Context) PromptTextS3LocationPtrOutput + ToPromptToolPropertiesArrayOutput() PromptToolPropertiesArrayOutput + ToPromptToolPropertiesArrayOutputWithContext(context.Context) PromptToolPropertiesArrayOutput } -type promptTextS3LocationPtrType PromptTextS3LocationArgs +type PromptToolPropertiesArray []PromptToolPropertiesInput -func PromptTextS3LocationPtr(v *PromptTextS3LocationArgs) PromptTextS3LocationPtrInput { - return (*promptTextS3LocationPtrType)(v) +func (PromptToolPropertiesArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptToolProperties)(nil)).Elem() } -func (*promptTextS3LocationPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**PromptTextS3Location)(nil)).Elem() +func (i PromptToolPropertiesArray) ToPromptToolPropertiesArrayOutput() PromptToolPropertiesArrayOutput { + return i.ToPromptToolPropertiesArrayOutputWithContext(context.Background()) } -func (i *promptTextS3LocationPtrType) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { - return i.ToPromptTextS3LocationPtrOutputWithContext(context.Background()) +func (i PromptToolPropertiesArray) ToPromptToolPropertiesArrayOutputWithContext(ctx context.Context) PromptToolPropertiesArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolPropertiesArrayOutput) } -func (i *promptTextS3LocationPtrType) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(PromptTextS3LocationPtrOutput) +// Tool details +type PromptToolPropertiesOutput struct{ *pulumi.OutputState } + +func (PromptToolPropertiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolProperties)(nil)).Elem() } -// The identifier for the S3 resource. -type PromptTextS3LocationOutput struct{ *pulumi.OutputState } +func (o PromptToolPropertiesOutput) ToPromptToolPropertiesOutput() PromptToolPropertiesOutput { + return o +} -func (PromptTextS3LocationOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PromptTextS3Location)(nil)).Elem() +func (o PromptToolPropertiesOutput) ToPromptToolPropertiesOutputWithContext(ctx context.Context) PromptToolPropertiesOutput { + return o } -func (o PromptTextS3LocationOutput) ToPromptTextS3LocationOutput() PromptTextS3LocationOutput { +func (o PromptToolPropertiesOutput) ToolSpec() PromptToolSpecificationOutput { + return o.ApplyT(func(v PromptToolProperties) PromptToolSpecification { return v.ToolSpec }).(PromptToolSpecificationOutput) +} + +type PromptToolPropertiesArrayOutput struct{ *pulumi.OutputState } + +func (PromptToolPropertiesArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PromptToolProperties)(nil)).Elem() +} + +func (o PromptToolPropertiesArrayOutput) ToPromptToolPropertiesArrayOutput() PromptToolPropertiesArrayOutput { return o } -func (o PromptTextS3LocationOutput) ToPromptTextS3LocationOutputWithContext(ctx context.Context) PromptTextS3LocationOutput { +func (o PromptToolPropertiesArrayOutput) ToPromptToolPropertiesArrayOutputWithContext(ctx context.Context) PromptToolPropertiesArrayOutput { return o } -func (o PromptTextS3LocationOutput) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { - return o.ToPromptTextS3LocationPtrOutputWithContext(context.Background()) +func (o PromptToolPropertiesArrayOutput) Index(i pulumi.IntInput) PromptToolPropertiesOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PromptToolProperties { + return vs[0].([]PromptToolProperties)[vs[1].(int)] + }).(PromptToolPropertiesOutput) } -func (o PromptTextS3LocationOutput) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v PromptTextS3Location) *PromptTextS3Location { - return &v - }).(PromptTextS3LocationPtrOutput) +// Tool specification +type PromptToolSpecification struct { + Description *string `pulumi:"description"` + InputSchema PromptToolInputSchemaProperties `pulumi:"inputSchema"` + // Tool name + Name string `pulumi:"name"` } -// A bucket in S3 -func (o PromptTextS3LocationOutput) Bucket() pulumi.StringOutput { - return o.ApplyT(func(v PromptTextS3Location) string { return v.Bucket }).(pulumi.StringOutput) +// PromptToolSpecificationInput is an input type that accepts PromptToolSpecificationArgs and PromptToolSpecificationOutput values. +// You can construct a concrete instance of `PromptToolSpecificationInput` via: +// +// PromptToolSpecificationArgs{...} +type PromptToolSpecificationInput interface { + pulumi.Input + + ToPromptToolSpecificationOutput() PromptToolSpecificationOutput + ToPromptToolSpecificationOutputWithContext(context.Context) PromptToolSpecificationOutput } -// A object key in S3 -func (o PromptTextS3LocationOutput) Key() pulumi.StringOutput { - return o.ApplyT(func(v PromptTextS3Location) string { return v.Key }).(pulumi.StringOutput) +// Tool specification +type PromptToolSpecificationArgs struct { + Description pulumi.StringPtrInput `pulumi:"description"` + InputSchema PromptToolInputSchemaPropertiesInput `pulumi:"inputSchema"` + // Tool name + Name pulumi.StringInput `pulumi:"name"` } -// The version of the the S3 object to use -func (o PromptTextS3LocationOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v PromptTextS3Location) *string { return v.Version }).(pulumi.StringPtrOutput) +func (PromptToolSpecificationArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolSpecification)(nil)).Elem() } -type PromptTextS3LocationPtrOutput struct{ *pulumi.OutputState } +func (i PromptToolSpecificationArgs) ToPromptToolSpecificationOutput() PromptToolSpecificationOutput { + return i.ToPromptToolSpecificationOutputWithContext(context.Background()) +} -func (PromptTextS3LocationPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**PromptTextS3Location)(nil)).Elem() +func (i PromptToolSpecificationArgs) ToPromptToolSpecificationOutputWithContext(ctx context.Context) PromptToolSpecificationOutput { + return pulumi.ToOutputWithContext(ctx, i).(PromptToolSpecificationOutput) } -func (o PromptTextS3LocationPtrOutput) ToPromptTextS3LocationPtrOutput() PromptTextS3LocationPtrOutput { - return o +// Tool specification +type PromptToolSpecificationOutput struct{ *pulumi.OutputState } + +func (PromptToolSpecificationOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PromptToolSpecification)(nil)).Elem() } -func (o PromptTextS3LocationPtrOutput) ToPromptTextS3LocationPtrOutputWithContext(ctx context.Context) PromptTextS3LocationPtrOutput { +func (o PromptToolSpecificationOutput) ToPromptToolSpecificationOutput() PromptToolSpecificationOutput { return o } -func (o PromptTextS3LocationPtrOutput) Elem() PromptTextS3LocationOutput { - return o.ApplyT(func(v *PromptTextS3Location) PromptTextS3Location { - if v != nil { - return *v - } - var ret PromptTextS3Location - return ret - }).(PromptTextS3LocationOutput) +func (o PromptToolSpecificationOutput) ToPromptToolSpecificationOutputWithContext(ctx context.Context) PromptToolSpecificationOutput { + return o } -// A bucket in S3 -func (o PromptTextS3LocationPtrOutput) Bucket() pulumi.StringPtrOutput { - return o.ApplyT(func(v *PromptTextS3Location) *string { - if v == nil { - return nil - } - return &v.Bucket - }).(pulumi.StringPtrOutput) +func (o PromptToolSpecificationOutput) Description() pulumi.StringPtrOutput { + return o.ApplyT(func(v PromptToolSpecification) *string { return v.Description }).(pulumi.StringPtrOutput) } -// A object key in S3 -func (o PromptTextS3LocationPtrOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v *PromptTextS3Location) *string { - if v == nil { - return nil - } - return &v.Key - }).(pulumi.StringPtrOutput) +func (o PromptToolSpecificationOutput) InputSchema() PromptToolInputSchemaPropertiesOutput { + return o.ApplyT(func(v PromptToolSpecification) PromptToolInputSchemaProperties { return v.InputSchema }).(PromptToolInputSchemaPropertiesOutput) } -// The version of the the S3 object to use -func (o PromptTextS3LocationPtrOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v *PromptTextS3Location) *string { - if v == nil { - return nil - } - return v.Version - }).(pulumi.StringPtrOutput) +// Tool name +func (o PromptToolSpecificationOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v PromptToolSpecification) string { return v.Name }).(pulumi.StringOutput) } // Prompt variant type PromptVariant struct { + GenAiResource *PromptGenAiResourceProperties `pulumi:"genAiResource"` // Contains inference configurations for the prompt variant. InferenceConfiguration *PromptInferenceConfigurationProperties `pulumi:"inferenceConfiguration"` // ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models. @@ -22742,7 +24645,7 @@ type PromptVariant struct { // Name for a variant. Name string `pulumi:"name"` // Contains configurations for the prompt template. - TemplateConfiguration PromptTemplateConfigurationProperties `pulumi:"templateConfiguration"` + TemplateConfiguration interface{} `pulumi:"templateConfiguration"` // The type of prompt template to use. TemplateType PromptTemplateType `pulumi:"templateType"` } @@ -22760,6 +24663,7 @@ type PromptVariantInput interface { // Prompt variant type PromptVariantArgs struct { + GenAiResource PromptGenAiResourcePropertiesPtrInput `pulumi:"genAiResource"` // Contains inference configurations for the prompt variant. InferenceConfiguration PromptInferenceConfigurationPropertiesPtrInput `pulumi:"inferenceConfiguration"` // ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models. @@ -22767,7 +24671,7 @@ type PromptVariantArgs struct { // Name for a variant. Name pulumi.StringInput `pulumi:"name"` // Contains configurations for the prompt template. - TemplateConfiguration PromptTemplateConfigurationPropertiesInput `pulumi:"templateConfiguration"` + TemplateConfiguration pulumi.Input `pulumi:"templateConfiguration"` // The type of prompt template to use. TemplateType PromptTemplateTypeInput `pulumi:"templateType"` } @@ -22824,6 +24728,10 @@ func (o PromptVariantOutput) ToPromptVariantOutputWithContext(ctx context.Contex return o } +func (o PromptVariantOutput) GenAiResource() PromptGenAiResourcePropertiesPtrOutput { + return o.ApplyT(func(v PromptVariant) *PromptGenAiResourceProperties { return v.GenAiResource }).(PromptGenAiResourcePropertiesPtrOutput) +} + // Contains inference configurations for the prompt variant. func (o PromptVariantOutput) InferenceConfiguration() PromptInferenceConfigurationPropertiesPtrOutput { return o.ApplyT(func(v PromptVariant) *PromptInferenceConfigurationProperties { return v.InferenceConfiguration }).(PromptInferenceConfigurationPropertiesPtrOutput) @@ -22840,8 +24748,8 @@ func (o PromptVariantOutput) Name() pulumi.StringOutput { } // Contains configurations for the prompt template. -func (o PromptVariantOutput) TemplateConfiguration() PromptTemplateConfigurationPropertiesOutput { - return o.ApplyT(func(v PromptVariant) PromptTemplateConfigurationProperties { return v.TemplateConfiguration }).(PromptTemplateConfigurationPropertiesOutput) +func (o PromptVariantOutput) TemplateConfiguration() pulumi.AnyOutput { + return o.ApplyT(func(v PromptVariant) interface{} { return v.TemplateConfiguration }).(pulumi.AnyOutput) } // The type of prompt template to use. @@ -23483,16 +25391,46 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*KnowledgeBaseRdsFieldMappingPtrInput)(nil)).Elem(), KnowledgeBaseRdsFieldMappingArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*KnowledgeBaseStorageConfigurationInput)(nil)).Elem(), KnowledgeBaseStorageConfigurationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*KnowledgeBaseVectorKnowledgeBaseConfigurationInput)(nil)).Elem(), KnowledgeBaseVectorKnowledgeBaseConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptAgentResourceInput)(nil)).Elem(), PromptAgentResourceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptAgentResourcePtrInput)(nil)).Elem(), PromptAgentResourceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptAnyToolChoiceInput)(nil)).Elem(), PromptAnyToolChoiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptAnyToolChoicePtrInput)(nil)).Elem(), PromptAnyToolChoiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptAutoToolChoiceInput)(nil)).Elem(), PromptAutoToolChoiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptAutoToolChoicePtrInput)(nil)).Elem(), PromptAutoToolChoiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptChatPromptTemplateConfigurationInput)(nil)).Elem(), PromptChatPromptTemplateConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptContentBlockPropertiesInput)(nil)).Elem(), PromptContentBlockPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptContentBlockPropertiesArrayInput)(nil)).Elem(), PromptContentBlockPropertiesArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptGenAiResourcePropertiesInput)(nil)).Elem(), PromptGenAiResourcePropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptGenAiResourcePropertiesPtrInput)(nil)).Elem(), PromptGenAiResourcePropertiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptInferenceConfigurationPropertiesInput)(nil)).Elem(), PromptInferenceConfigurationPropertiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptInferenceConfigurationPropertiesPtrInput)(nil)).Elem(), PromptInferenceConfigurationPropertiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptInputVariableInput)(nil)).Elem(), PromptInputVariableArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptInputVariableArrayInput)(nil)).Elem(), PromptInputVariableArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptMessageInput)(nil)).Elem(), PromptMessageArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptMessageArrayInput)(nil)).Elem(), PromptMessageArray{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptModelInferenceConfigurationInput)(nil)).Elem(), PromptModelInferenceConfigurationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptModelInferenceConfigurationPtrInput)(nil)).Elem(), PromptModelInferenceConfigurationArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*PromptTemplateConfigurationPropertiesInput)(nil)).Elem(), PromptTemplateConfigurationPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptSpecificToolChoiceInput)(nil)).Elem(), PromptSpecificToolChoiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptSpecificToolChoicePtrInput)(nil)).Elem(), PromptSpecificToolChoiceArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptSystemContentBlockPropertiesInput)(nil)).Elem(), PromptSystemContentBlockPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptSystemContentBlockPropertiesArrayInput)(nil)).Elem(), PromptSystemContentBlockPropertiesArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptTemplateConfiguration0PropertiesInput)(nil)).Elem(), PromptTemplateConfiguration0PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptTemplateConfiguration1PropertiesInput)(nil)).Elem(), PromptTemplateConfiguration1PropertiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptTextPromptTemplateConfigurationInput)(nil)).Elem(), PromptTextPromptTemplateConfigurationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptTextS3LocationInput)(nil)).Elem(), PromptTextS3LocationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptTextS3LocationPtrInput)(nil)).Elem(), PromptTextS3LocationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolChoice0PropertiesInput)(nil)).Elem(), PromptToolChoice0PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolChoice0PropertiesPtrInput)(nil)).Elem(), PromptToolChoice0PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolChoice1PropertiesInput)(nil)).Elem(), PromptToolChoice1PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolChoice1PropertiesPtrInput)(nil)).Elem(), PromptToolChoice1PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolChoice2PropertiesInput)(nil)).Elem(), PromptToolChoice2PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolChoice2PropertiesPtrInput)(nil)).Elem(), PromptToolChoice2PropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolConfigurationInput)(nil)).Elem(), PromptToolConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolConfigurationPtrInput)(nil)).Elem(), PromptToolConfigurationArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolInputSchemaPropertiesInput)(nil)).Elem(), PromptToolInputSchemaPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolPropertiesInput)(nil)).Elem(), PromptToolPropertiesArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolPropertiesArrayInput)(nil)).Elem(), PromptToolPropertiesArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*PromptToolSpecificationInput)(nil)).Elem(), PromptToolSpecificationArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptVariantInput)(nil)).Elem(), PromptVariantArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*PromptVariantArrayInput)(nil)).Elem(), PromptVariantArray{}) pulumi.RegisterOutputType(AgentActionGroupOutput{}) @@ -23846,16 +25784,46 @@ func init() { pulumi.RegisterOutputType(KnowledgeBaseRdsFieldMappingPtrOutput{}) pulumi.RegisterOutputType(KnowledgeBaseStorageConfigurationOutput{}) pulumi.RegisterOutputType(KnowledgeBaseVectorKnowledgeBaseConfigurationOutput{}) + pulumi.RegisterOutputType(PromptAgentResourceOutput{}) + pulumi.RegisterOutputType(PromptAgentResourcePtrOutput{}) + pulumi.RegisterOutputType(PromptAnyToolChoiceOutput{}) + pulumi.RegisterOutputType(PromptAnyToolChoicePtrOutput{}) + pulumi.RegisterOutputType(PromptAutoToolChoiceOutput{}) + pulumi.RegisterOutputType(PromptAutoToolChoicePtrOutput{}) + pulumi.RegisterOutputType(PromptChatPromptTemplateConfigurationOutput{}) + pulumi.RegisterOutputType(PromptContentBlockPropertiesOutput{}) + pulumi.RegisterOutputType(PromptContentBlockPropertiesArrayOutput{}) + pulumi.RegisterOutputType(PromptGenAiResourcePropertiesOutput{}) + pulumi.RegisterOutputType(PromptGenAiResourcePropertiesPtrOutput{}) pulumi.RegisterOutputType(PromptInferenceConfigurationPropertiesOutput{}) pulumi.RegisterOutputType(PromptInferenceConfigurationPropertiesPtrOutput{}) pulumi.RegisterOutputType(PromptInputVariableOutput{}) pulumi.RegisterOutputType(PromptInputVariableArrayOutput{}) + pulumi.RegisterOutputType(PromptMessageOutput{}) + pulumi.RegisterOutputType(PromptMessageArrayOutput{}) pulumi.RegisterOutputType(PromptModelInferenceConfigurationOutput{}) pulumi.RegisterOutputType(PromptModelInferenceConfigurationPtrOutput{}) - pulumi.RegisterOutputType(PromptTemplateConfigurationPropertiesOutput{}) + pulumi.RegisterOutputType(PromptSpecificToolChoiceOutput{}) + pulumi.RegisterOutputType(PromptSpecificToolChoicePtrOutput{}) + pulumi.RegisterOutputType(PromptSystemContentBlockPropertiesOutput{}) + pulumi.RegisterOutputType(PromptSystemContentBlockPropertiesArrayOutput{}) + pulumi.RegisterOutputType(PromptTemplateConfiguration0PropertiesOutput{}) + pulumi.RegisterOutputType(PromptTemplateConfiguration1PropertiesOutput{}) pulumi.RegisterOutputType(PromptTextPromptTemplateConfigurationOutput{}) pulumi.RegisterOutputType(PromptTextS3LocationOutput{}) pulumi.RegisterOutputType(PromptTextS3LocationPtrOutput{}) + pulumi.RegisterOutputType(PromptToolChoice0PropertiesOutput{}) + pulumi.RegisterOutputType(PromptToolChoice0PropertiesPtrOutput{}) + pulumi.RegisterOutputType(PromptToolChoice1PropertiesOutput{}) + pulumi.RegisterOutputType(PromptToolChoice1PropertiesPtrOutput{}) + pulumi.RegisterOutputType(PromptToolChoice2PropertiesOutput{}) + pulumi.RegisterOutputType(PromptToolChoice2PropertiesPtrOutput{}) + pulumi.RegisterOutputType(PromptToolConfigurationOutput{}) + pulumi.RegisterOutputType(PromptToolConfigurationPtrOutput{}) + pulumi.RegisterOutputType(PromptToolInputSchemaPropertiesOutput{}) + pulumi.RegisterOutputType(PromptToolPropertiesOutput{}) + pulumi.RegisterOutputType(PromptToolPropertiesArrayOutput{}) + pulumi.RegisterOutputType(PromptToolSpecificationOutput{}) pulumi.RegisterOutputType(PromptVariantOutput{}) pulumi.RegisterOutputType(PromptVariantArrayOutput{}) pulumi.RegisterOutputType(PromptVersionPromptInferenceConfigurationPropertiesOutput{}) diff --git a/sdk/go/aws/logs/pulumiEnums.go b/sdk/go/aws/logs/pulumiEnums.go index 5cc28c0d1c..120693add2 100644 --- a/sdk/go/aws/logs/pulumiEnums.go +++ b/sdk/go/aws/logs/pulumiEnums.go @@ -16,6 +16,8 @@ type AccountPolicyPolicyType string const ( AccountPolicyPolicyTypeDataProtectionPolicy = AccountPolicyPolicyType("DATA_PROTECTION_POLICY") AccountPolicyPolicyTypeSubscriptionFilterPolicy = AccountPolicyPolicyType("SUBSCRIPTION_FILTER_POLICY") + AccountPolicyPolicyTypeFieldIndexPolicy = AccountPolicyPolicyType("FIELD_INDEX_POLICY") + AccountPolicyPolicyTypeTransformerPolicy = AccountPolicyPolicyType("TRANSFORMER_POLICY") ) func (AccountPolicyPolicyType) ElementType() reflect.Type { @@ -142,6 +144,8 @@ func (o AccountPolicyPolicyTypePtrOutput) ToStringPtrOutputWithContext(ctx conte // // AccountPolicyPolicyTypeDataProtectionPolicy // AccountPolicyPolicyTypeSubscriptionFilterPolicy +// AccountPolicyPolicyTypeFieldIndexPolicy +// AccountPolicyPolicyTypeTransformerPolicy type AccountPolicyPolicyTypeInput interface { pulumi.Input diff --git a/sdk/go/aws/opensearchservice/pulumiEnums.go b/sdk/go/aws/opensearchservice/pulumiEnums.go index 0e1d27e6d5..2078b936a2 100644 --- a/sdk/go/aws/opensearchservice/pulumiEnums.go +++ b/sdk/go/aws/opensearchservice/pulumiEnums.go @@ -176,6 +176,169 @@ func (in *applicationAppConfigTypePtr) ToApplicationAppConfigTypePtrOutputWithCo return pulumi.ToOutputWithContext(ctx, in).(ApplicationAppConfigTypePtrOutput) } +type DomainNodeOptionNodeType string + +const ( + DomainNodeOptionNodeTypeCoordinator = DomainNodeOptionNodeType("coordinator") +) + +func (DomainNodeOptionNodeType) ElementType() reflect.Type { + return reflect.TypeOf((*DomainNodeOptionNodeType)(nil)).Elem() +} + +func (e DomainNodeOptionNodeType) ToDomainNodeOptionNodeTypeOutput() DomainNodeOptionNodeTypeOutput { + return pulumi.ToOutput(e).(DomainNodeOptionNodeTypeOutput) +} + +func (e DomainNodeOptionNodeType) ToDomainNodeOptionNodeTypeOutputWithContext(ctx context.Context) DomainNodeOptionNodeTypeOutput { + return pulumi.ToOutputWithContext(ctx, e).(DomainNodeOptionNodeTypeOutput) +} + +func (e DomainNodeOptionNodeType) ToDomainNodeOptionNodeTypePtrOutput() DomainNodeOptionNodeTypePtrOutput { + return e.ToDomainNodeOptionNodeTypePtrOutputWithContext(context.Background()) +} + +func (e DomainNodeOptionNodeType) ToDomainNodeOptionNodeTypePtrOutputWithContext(ctx context.Context) DomainNodeOptionNodeTypePtrOutput { + return DomainNodeOptionNodeType(e).ToDomainNodeOptionNodeTypeOutputWithContext(ctx).ToDomainNodeOptionNodeTypePtrOutputWithContext(ctx) +} + +func (e DomainNodeOptionNodeType) ToStringOutput() pulumi.StringOutput { + return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) +} + +func (e DomainNodeOptionNodeType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) +} + +func (e DomainNodeOptionNodeType) ToStringPtrOutput() pulumi.StringPtrOutput { + return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) +} + +func (e DomainNodeOptionNodeType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) +} + +type DomainNodeOptionNodeTypeOutput struct{ *pulumi.OutputState } + +func (DomainNodeOptionNodeTypeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DomainNodeOptionNodeType)(nil)).Elem() +} + +func (o DomainNodeOptionNodeTypeOutput) ToDomainNodeOptionNodeTypeOutput() DomainNodeOptionNodeTypeOutput { + return o +} + +func (o DomainNodeOptionNodeTypeOutput) ToDomainNodeOptionNodeTypeOutputWithContext(ctx context.Context) DomainNodeOptionNodeTypeOutput { + return o +} + +func (o DomainNodeOptionNodeTypeOutput) ToDomainNodeOptionNodeTypePtrOutput() DomainNodeOptionNodeTypePtrOutput { + return o.ToDomainNodeOptionNodeTypePtrOutputWithContext(context.Background()) +} + +func (o DomainNodeOptionNodeTypeOutput) ToDomainNodeOptionNodeTypePtrOutputWithContext(ctx context.Context) DomainNodeOptionNodeTypePtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainNodeOptionNodeType) *DomainNodeOptionNodeType { + return &v + }).(DomainNodeOptionNodeTypePtrOutput) +} + +func (o DomainNodeOptionNodeTypeOutput) ToStringOutput() pulumi.StringOutput { + return o.ToStringOutputWithContext(context.Background()) +} + +func (o DomainNodeOptionNodeTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e DomainNodeOptionNodeType) string { + return string(e) + }).(pulumi.StringOutput) +} + +func (o DomainNodeOptionNodeTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { + return o.ToStringPtrOutputWithContext(context.Background()) +} + +func (o DomainNodeOptionNodeTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e DomainNodeOptionNodeType) *string { + v := string(e) + return &v + }).(pulumi.StringPtrOutput) +} + +type DomainNodeOptionNodeTypePtrOutput struct{ *pulumi.OutputState } + +func (DomainNodeOptionNodeTypePtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DomainNodeOptionNodeType)(nil)).Elem() +} + +func (o DomainNodeOptionNodeTypePtrOutput) ToDomainNodeOptionNodeTypePtrOutput() DomainNodeOptionNodeTypePtrOutput { + return o +} + +func (o DomainNodeOptionNodeTypePtrOutput) ToDomainNodeOptionNodeTypePtrOutputWithContext(ctx context.Context) DomainNodeOptionNodeTypePtrOutput { + return o +} + +func (o DomainNodeOptionNodeTypePtrOutput) Elem() DomainNodeOptionNodeTypeOutput { + return o.ApplyT(func(v *DomainNodeOptionNodeType) DomainNodeOptionNodeType { + if v != nil { + return *v + } + var ret DomainNodeOptionNodeType + return ret + }).(DomainNodeOptionNodeTypeOutput) +} + +func (o DomainNodeOptionNodeTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { + return o.ToStringPtrOutputWithContext(context.Background()) +} + +func (o DomainNodeOptionNodeTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, e *DomainNodeOptionNodeType) *string { + if e == nil { + return nil + } + v := string(*e) + return &v + }).(pulumi.StringPtrOutput) +} + +// DomainNodeOptionNodeTypeInput is an input type that accepts values of the DomainNodeOptionNodeType enum +// A concrete instance of `DomainNodeOptionNodeTypeInput` can be one of the following: +// +// DomainNodeOptionNodeTypeCoordinator +type DomainNodeOptionNodeTypeInput interface { + pulumi.Input + + ToDomainNodeOptionNodeTypeOutput() DomainNodeOptionNodeTypeOutput + ToDomainNodeOptionNodeTypeOutputWithContext(context.Context) DomainNodeOptionNodeTypeOutput +} + +var domainNodeOptionNodeTypePtrType = reflect.TypeOf((**DomainNodeOptionNodeType)(nil)).Elem() + +type DomainNodeOptionNodeTypePtrInput interface { + pulumi.Input + + ToDomainNodeOptionNodeTypePtrOutput() DomainNodeOptionNodeTypePtrOutput + ToDomainNodeOptionNodeTypePtrOutputWithContext(context.Context) DomainNodeOptionNodeTypePtrOutput +} + +type domainNodeOptionNodeTypePtr string + +func DomainNodeOptionNodeTypePtr(v string) DomainNodeOptionNodeTypePtrInput { + return (*domainNodeOptionNodeTypePtr)(&v) +} + +func (*domainNodeOptionNodeTypePtr) ElementType() reflect.Type { + return domainNodeOptionNodeTypePtrType +} + +func (in *domainNodeOptionNodeTypePtr) ToDomainNodeOptionNodeTypePtrOutput() DomainNodeOptionNodeTypePtrOutput { + return pulumi.ToOutput(in).(DomainNodeOptionNodeTypePtrOutput) +} + +func (in *domainNodeOptionNodeTypePtr) ToDomainNodeOptionNodeTypePtrOutputWithContext(ctx context.Context) DomainNodeOptionNodeTypePtrOutput { + return pulumi.ToOutputWithContext(ctx, in).(DomainNodeOptionNodeTypePtrOutput) +} + // Roles Key Idc type values. type DomainRolesKeyIdcType string @@ -513,12 +676,16 @@ func (in *domainSubjectKeyIdcTypePtr) ToDomainSubjectKeyIdcTypePtrOutputWithCont func init() { pulumi.RegisterInputType(reflect.TypeOf((*ApplicationAppConfigTypeInput)(nil)).Elem(), ApplicationAppConfigType("opensearchDashboards.dashboardAdmin.users")) pulumi.RegisterInputType(reflect.TypeOf((*ApplicationAppConfigTypePtrInput)(nil)).Elem(), ApplicationAppConfigType("opensearchDashboards.dashboardAdmin.users")) + pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeOptionNodeTypeInput)(nil)).Elem(), DomainNodeOptionNodeType("coordinator")) + pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeOptionNodeTypePtrInput)(nil)).Elem(), DomainNodeOptionNodeType("coordinator")) pulumi.RegisterInputType(reflect.TypeOf((*DomainRolesKeyIdcTypeInput)(nil)).Elem(), DomainRolesKeyIdcType("GroupName")) pulumi.RegisterInputType(reflect.TypeOf((*DomainRolesKeyIdcTypePtrInput)(nil)).Elem(), DomainRolesKeyIdcType("GroupName")) pulumi.RegisterInputType(reflect.TypeOf((*DomainSubjectKeyIdcTypeInput)(nil)).Elem(), DomainSubjectKeyIdcType("UserName")) pulumi.RegisterInputType(reflect.TypeOf((*DomainSubjectKeyIdcTypePtrInput)(nil)).Elem(), DomainSubjectKeyIdcType("UserName")) pulumi.RegisterOutputType(ApplicationAppConfigTypeOutput{}) pulumi.RegisterOutputType(ApplicationAppConfigTypePtrOutput{}) + pulumi.RegisterOutputType(DomainNodeOptionNodeTypeOutput{}) + pulumi.RegisterOutputType(DomainNodeOptionNodeTypePtrOutput{}) pulumi.RegisterOutputType(DomainRolesKeyIdcTypeOutput{}) pulumi.RegisterOutputType(DomainRolesKeyIdcTypePtrOutput{}) pulumi.RegisterOutputType(DomainSubjectKeyIdcTypeOutput{}) diff --git a/sdk/go/aws/opensearchservice/pulumiTypes.go b/sdk/go/aws/opensearchservice/pulumiTypes.go index c3ddffbe10..1387410213 100644 --- a/sdk/go/aws/opensearchservice/pulumiTypes.go +++ b/sdk/go/aws/opensearchservice/pulumiTypes.go @@ -504,7 +504,8 @@ type DomainClusterConfig struct { // The instance type for your data nodes, such as `m3.medium.search` . For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) . InstanceType *string `pulumi:"instanceType"` // Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) . - MultiAzWithStandbyEnabled *bool `pulumi:"multiAzWithStandbyEnabled"` + MultiAzWithStandbyEnabled *bool `pulumi:"multiAzWithStandbyEnabled"` + NodeOptions []DomainNodeOption `pulumi:"nodeOptions"` // The number of warm nodes in the cluster. WarmCount *int `pulumi:"warmCount"` // Whether to enable UltraWarm storage for the cluster. See [UltraWarm storage for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ultrawarm.html) . @@ -542,7 +543,8 @@ type DomainClusterConfigArgs struct { // The instance type for your data nodes, such as `m3.medium.search` . For valid values, see [Supported instance types in Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) . InstanceType pulumi.StringPtrInput `pulumi:"instanceType"` // Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) . - MultiAzWithStandbyEnabled pulumi.BoolPtrInput `pulumi:"multiAzWithStandbyEnabled"` + MultiAzWithStandbyEnabled pulumi.BoolPtrInput `pulumi:"multiAzWithStandbyEnabled"` + NodeOptions DomainNodeOptionArrayInput `pulumi:"nodeOptions"` // The number of warm nodes in the cluster. WarmCount pulumi.IntPtrInput `pulumi:"warmCount"` // Whether to enable UltraWarm storage for the cluster. See [UltraWarm storage for Amazon OpenSearch Service](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/ultrawarm.html) . @@ -667,6 +669,10 @@ func (o DomainClusterConfigOutput) MultiAzWithStandbyEnabled() pulumi.BoolPtrOut return o.ApplyT(func(v DomainClusterConfig) *bool { return v.MultiAzWithStandbyEnabled }).(pulumi.BoolPtrOutput) } +func (o DomainClusterConfigOutput) NodeOptions() DomainNodeOptionArrayOutput { + return o.ApplyT(func(v DomainClusterConfig) []DomainNodeOption { return v.NodeOptions }).(DomainNodeOptionArrayOutput) +} + // The number of warm nodes in the cluster. func (o DomainClusterConfigOutput) WarmCount() pulumi.IntPtrOutput { return o.ApplyT(func(v DomainClusterConfig) *int { return v.WarmCount }).(pulumi.IntPtrOutput) @@ -786,6 +792,15 @@ func (o DomainClusterConfigPtrOutput) MultiAzWithStandbyEnabled() pulumi.BoolPtr }).(pulumi.BoolPtrOutput) } +func (o DomainClusterConfigPtrOutput) NodeOptions() DomainNodeOptionArrayOutput { + return o.ApplyT(func(v *DomainClusterConfig) []DomainNodeOption { + if v == nil { + return nil + } + return v.NodeOptions + }).(DomainNodeOptionArrayOutput) +} + // The number of warm nodes in the cluster. func (o DomainClusterConfigPtrOutput) WarmCount() pulumi.IntPtrOutput { return o.ApplyT(func(v *DomainClusterConfig) *int { @@ -2673,6 +2688,269 @@ func (o DomainMasterUserOptionsPtrOutput) MasterUserPassword() pulumi.StringPtrO }).(pulumi.StringPtrOutput) } +type DomainNodeConfig struct { + Count *int `pulumi:"count"` + Enabled *bool `pulumi:"enabled"` + Type *string `pulumi:"type"` +} + +// DomainNodeConfigInput is an input type that accepts DomainNodeConfigArgs and DomainNodeConfigOutput values. +// You can construct a concrete instance of `DomainNodeConfigInput` via: +// +// DomainNodeConfigArgs{...} +type DomainNodeConfigInput interface { + pulumi.Input + + ToDomainNodeConfigOutput() DomainNodeConfigOutput + ToDomainNodeConfigOutputWithContext(context.Context) DomainNodeConfigOutput +} + +type DomainNodeConfigArgs struct { + Count pulumi.IntPtrInput `pulumi:"count"` + Enabled pulumi.BoolPtrInput `pulumi:"enabled"` + Type pulumi.StringPtrInput `pulumi:"type"` +} + +func (DomainNodeConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DomainNodeConfig)(nil)).Elem() +} + +func (i DomainNodeConfigArgs) ToDomainNodeConfigOutput() DomainNodeConfigOutput { + return i.ToDomainNodeConfigOutputWithContext(context.Background()) +} + +func (i DomainNodeConfigArgs) ToDomainNodeConfigOutputWithContext(ctx context.Context) DomainNodeConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainNodeConfigOutput) +} + +func (i DomainNodeConfigArgs) ToDomainNodeConfigPtrOutput() DomainNodeConfigPtrOutput { + return i.ToDomainNodeConfigPtrOutputWithContext(context.Background()) +} + +func (i DomainNodeConfigArgs) ToDomainNodeConfigPtrOutputWithContext(ctx context.Context) DomainNodeConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainNodeConfigOutput).ToDomainNodeConfigPtrOutputWithContext(ctx) +} + +// DomainNodeConfigPtrInput is an input type that accepts DomainNodeConfigArgs, DomainNodeConfigPtr and DomainNodeConfigPtrOutput values. +// You can construct a concrete instance of `DomainNodeConfigPtrInput` via: +// +// DomainNodeConfigArgs{...} +// +// or: +// +// nil +type DomainNodeConfigPtrInput interface { + pulumi.Input + + ToDomainNodeConfigPtrOutput() DomainNodeConfigPtrOutput + ToDomainNodeConfigPtrOutputWithContext(context.Context) DomainNodeConfigPtrOutput +} + +type domainNodeConfigPtrType DomainNodeConfigArgs + +func DomainNodeConfigPtr(v *DomainNodeConfigArgs) DomainNodeConfigPtrInput { + return (*domainNodeConfigPtrType)(v) +} + +func (*domainNodeConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DomainNodeConfig)(nil)).Elem() +} + +func (i *domainNodeConfigPtrType) ToDomainNodeConfigPtrOutput() DomainNodeConfigPtrOutput { + return i.ToDomainNodeConfigPtrOutputWithContext(context.Background()) +} + +func (i *domainNodeConfigPtrType) ToDomainNodeConfigPtrOutputWithContext(ctx context.Context) DomainNodeConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainNodeConfigPtrOutput) +} + +type DomainNodeConfigOutput struct{ *pulumi.OutputState } + +func (DomainNodeConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DomainNodeConfig)(nil)).Elem() +} + +func (o DomainNodeConfigOutput) ToDomainNodeConfigOutput() DomainNodeConfigOutput { + return o +} + +func (o DomainNodeConfigOutput) ToDomainNodeConfigOutputWithContext(ctx context.Context) DomainNodeConfigOutput { + return o +} + +func (o DomainNodeConfigOutput) ToDomainNodeConfigPtrOutput() DomainNodeConfigPtrOutput { + return o.ToDomainNodeConfigPtrOutputWithContext(context.Background()) +} + +func (o DomainNodeConfigOutput) ToDomainNodeConfigPtrOutputWithContext(ctx context.Context) DomainNodeConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainNodeConfig) *DomainNodeConfig { + return &v + }).(DomainNodeConfigPtrOutput) +} + +func (o DomainNodeConfigOutput) Count() pulumi.IntPtrOutput { + return o.ApplyT(func(v DomainNodeConfig) *int { return v.Count }).(pulumi.IntPtrOutput) +} + +func (o DomainNodeConfigOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v DomainNodeConfig) *bool { return v.Enabled }).(pulumi.BoolPtrOutput) +} + +func (o DomainNodeConfigOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v DomainNodeConfig) *string { return v.Type }).(pulumi.StringPtrOutput) +} + +type DomainNodeConfigPtrOutput struct{ *pulumi.OutputState } + +func (DomainNodeConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DomainNodeConfig)(nil)).Elem() +} + +func (o DomainNodeConfigPtrOutput) ToDomainNodeConfigPtrOutput() DomainNodeConfigPtrOutput { + return o +} + +func (o DomainNodeConfigPtrOutput) ToDomainNodeConfigPtrOutputWithContext(ctx context.Context) DomainNodeConfigPtrOutput { + return o +} + +func (o DomainNodeConfigPtrOutput) Elem() DomainNodeConfigOutput { + return o.ApplyT(func(v *DomainNodeConfig) DomainNodeConfig { + if v != nil { + return *v + } + var ret DomainNodeConfig + return ret + }).(DomainNodeConfigOutput) +} + +func (o DomainNodeConfigPtrOutput) Count() pulumi.IntPtrOutput { + return o.ApplyT(func(v *DomainNodeConfig) *int { + if v == nil { + return nil + } + return v.Count + }).(pulumi.IntPtrOutput) +} + +func (o DomainNodeConfigPtrOutput) Enabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *DomainNodeConfig) *bool { + if v == nil { + return nil + } + return v.Enabled + }).(pulumi.BoolPtrOutput) +} + +func (o DomainNodeConfigPtrOutput) Type() pulumi.StringPtrOutput { + return o.ApplyT(func(v *DomainNodeConfig) *string { + if v == nil { + return nil + } + return v.Type + }).(pulumi.StringPtrOutput) +} + +type DomainNodeOption struct { + NodeConfig *DomainNodeConfig `pulumi:"nodeConfig"` + NodeType *DomainNodeOptionNodeType `pulumi:"nodeType"` +} + +// DomainNodeOptionInput is an input type that accepts DomainNodeOptionArgs and DomainNodeOptionOutput values. +// You can construct a concrete instance of `DomainNodeOptionInput` via: +// +// DomainNodeOptionArgs{...} +type DomainNodeOptionInput interface { + pulumi.Input + + ToDomainNodeOptionOutput() DomainNodeOptionOutput + ToDomainNodeOptionOutputWithContext(context.Context) DomainNodeOptionOutput +} + +type DomainNodeOptionArgs struct { + NodeConfig DomainNodeConfigPtrInput `pulumi:"nodeConfig"` + NodeType DomainNodeOptionNodeTypePtrInput `pulumi:"nodeType"` +} + +func (DomainNodeOptionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DomainNodeOption)(nil)).Elem() +} + +func (i DomainNodeOptionArgs) ToDomainNodeOptionOutput() DomainNodeOptionOutput { + return i.ToDomainNodeOptionOutputWithContext(context.Background()) +} + +func (i DomainNodeOptionArgs) ToDomainNodeOptionOutputWithContext(ctx context.Context) DomainNodeOptionOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainNodeOptionOutput) +} + +// DomainNodeOptionArrayInput is an input type that accepts DomainNodeOptionArray and DomainNodeOptionArrayOutput values. +// You can construct a concrete instance of `DomainNodeOptionArrayInput` via: +// +// DomainNodeOptionArray{ DomainNodeOptionArgs{...} } +type DomainNodeOptionArrayInput interface { + pulumi.Input + + ToDomainNodeOptionArrayOutput() DomainNodeOptionArrayOutput + ToDomainNodeOptionArrayOutputWithContext(context.Context) DomainNodeOptionArrayOutput +} + +type DomainNodeOptionArray []DomainNodeOptionInput + +func (DomainNodeOptionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]DomainNodeOption)(nil)).Elem() +} + +func (i DomainNodeOptionArray) ToDomainNodeOptionArrayOutput() DomainNodeOptionArrayOutput { + return i.ToDomainNodeOptionArrayOutputWithContext(context.Background()) +} + +func (i DomainNodeOptionArray) ToDomainNodeOptionArrayOutputWithContext(ctx context.Context) DomainNodeOptionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainNodeOptionArrayOutput) +} + +type DomainNodeOptionOutput struct{ *pulumi.OutputState } + +func (DomainNodeOptionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DomainNodeOption)(nil)).Elem() +} + +func (o DomainNodeOptionOutput) ToDomainNodeOptionOutput() DomainNodeOptionOutput { + return o +} + +func (o DomainNodeOptionOutput) ToDomainNodeOptionOutputWithContext(ctx context.Context) DomainNodeOptionOutput { + return o +} + +func (o DomainNodeOptionOutput) NodeConfig() DomainNodeConfigPtrOutput { + return o.ApplyT(func(v DomainNodeOption) *DomainNodeConfig { return v.NodeConfig }).(DomainNodeConfigPtrOutput) +} + +func (o DomainNodeOptionOutput) NodeType() DomainNodeOptionNodeTypePtrOutput { + return o.ApplyT(func(v DomainNodeOption) *DomainNodeOptionNodeType { return v.NodeType }).(DomainNodeOptionNodeTypePtrOutput) +} + +type DomainNodeOptionArrayOutput struct{ *pulumi.OutputState } + +func (DomainNodeOptionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]DomainNodeOption)(nil)).Elem() +} + +func (o DomainNodeOptionArrayOutput) ToDomainNodeOptionArrayOutput() DomainNodeOptionArrayOutput { + return o +} + +func (o DomainNodeOptionArrayOutput) ToDomainNodeOptionArrayOutputWithContext(ctx context.Context) DomainNodeOptionArrayOutput { + return o +} + +func (o DomainNodeOptionArrayOutput) Index(i pulumi.IntInput) DomainNodeOptionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) DomainNodeOption { + return vs[0].([]DomainNodeOption)[vs[1].(int)] + }).(DomainNodeOptionOutput) +} + type DomainNodeToNodeEncryptionOptions struct { // Specifies to enable or disable node-to-node encryption on the domain. Required if you enable fine-grained access control in [AdvancedSecurityOptionsInput](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-advancedsecurityoptionsinput.html) . Enabled *bool `pulumi:"enabled"` @@ -4484,6 +4762,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DomainLogPublishingOptionMapInput)(nil)).Elem(), DomainLogPublishingOptionMap{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainMasterUserOptionsInput)(nil)).Elem(), DomainMasterUserOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainMasterUserOptionsPtrInput)(nil)).Elem(), DomainMasterUserOptionsArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeConfigInput)(nil)).Elem(), DomainNodeConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeConfigPtrInput)(nil)).Elem(), DomainNodeConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeOptionInput)(nil)).Elem(), DomainNodeOptionArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeOptionArrayInput)(nil)).Elem(), DomainNodeOptionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeToNodeEncryptionOptionsInput)(nil)).Elem(), DomainNodeToNodeEncryptionOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainNodeToNodeEncryptionOptionsPtrInput)(nil)).Elem(), DomainNodeToNodeEncryptionOptionsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainOffPeakWindowInput)(nil)).Elem(), DomainOffPeakWindowArgs{}) @@ -4532,6 +4814,10 @@ func init() { pulumi.RegisterOutputType(DomainLogPublishingOptionMapOutput{}) pulumi.RegisterOutputType(DomainMasterUserOptionsOutput{}) pulumi.RegisterOutputType(DomainMasterUserOptionsPtrOutput{}) + pulumi.RegisterOutputType(DomainNodeConfigOutput{}) + pulumi.RegisterOutputType(DomainNodeConfigPtrOutput{}) + pulumi.RegisterOutputType(DomainNodeOptionOutput{}) + pulumi.RegisterOutputType(DomainNodeOptionArrayOutput{}) pulumi.RegisterOutputType(DomainNodeToNodeEncryptionOptionsOutput{}) pulumi.RegisterOutputType(DomainNodeToNodeEncryptionOptionsPtrOutput{}) pulumi.RegisterOutputType(DomainOffPeakWindowOutput{}) diff --git a/sdk/go/aws/sagemaker/pulumiTypes.go b/sdk/go/aws/sagemaker/pulumiTypes.go index 08756e0e7a..202b8991b7 100644 --- a/sdk/go/aws/sagemaker/pulumiTypes.go +++ b/sdk/go/aws/sagemaker/pulumiTypes.go @@ -5135,7 +5135,8 @@ func (o DomainCodeRepositoryArrayOutput) Index(i pulumi.IntInput) DomainCodeRepo type DomainCustomFileSystemConfig struct { // The settings for a custom Amazon EFS file system. - EfsFileSystemConfig *DomainEfsFileSystemConfig `pulumi:"efsFileSystemConfig"` + EfsFileSystemConfig *DomainEfsFileSystemConfig `pulumi:"efsFileSystemConfig"` + FSxLustreFileSystemConfig *DomainFSxLustreFileSystemConfig `pulumi:"fSxLustreFileSystemConfig"` } // DomainCustomFileSystemConfigInput is an input type that accepts DomainCustomFileSystemConfigArgs and DomainCustomFileSystemConfigOutput values. @@ -5151,7 +5152,8 @@ type DomainCustomFileSystemConfigInput interface { type DomainCustomFileSystemConfigArgs struct { // The settings for a custom Amazon EFS file system. - EfsFileSystemConfig DomainEfsFileSystemConfigPtrInput `pulumi:"efsFileSystemConfig"` + EfsFileSystemConfig DomainEfsFileSystemConfigPtrInput `pulumi:"efsFileSystemConfig"` + FSxLustreFileSystemConfig DomainFSxLustreFileSystemConfigPtrInput `pulumi:"fSxLustreFileSystemConfig"` } func (DomainCustomFileSystemConfigArgs) ElementType() reflect.Type { @@ -5210,6 +5212,12 @@ func (o DomainCustomFileSystemConfigOutput) EfsFileSystemConfig() DomainEfsFileS return o.ApplyT(func(v DomainCustomFileSystemConfig) *DomainEfsFileSystemConfig { return v.EfsFileSystemConfig }).(DomainEfsFileSystemConfigPtrOutput) } +func (o DomainCustomFileSystemConfigOutput) FSxLustreFileSystemConfig() DomainFSxLustreFileSystemConfigPtrOutput { + return o.ApplyT(func(v DomainCustomFileSystemConfig) *DomainFSxLustreFileSystemConfig { + return v.FSxLustreFileSystemConfig + }).(DomainFSxLustreFileSystemConfigPtrOutput) +} + type DomainCustomFileSystemConfigArrayOutput struct{ *pulumi.OutputState } func (DomainCustomFileSystemConfigArrayOutput) ElementType() reflect.Type { @@ -6393,6 +6401,154 @@ func (o DomainEfsFileSystemConfigPtrOutput) FileSystemPath() pulumi.StringPtrOut }).(pulumi.StringPtrOutput) } +type DomainFSxLustreFileSystemConfig struct { + FileSystemId string `pulumi:"fileSystemId"` + FileSystemPath *string `pulumi:"fileSystemPath"` +} + +// DomainFSxLustreFileSystemConfigInput is an input type that accepts DomainFSxLustreFileSystemConfigArgs and DomainFSxLustreFileSystemConfigOutput values. +// You can construct a concrete instance of `DomainFSxLustreFileSystemConfigInput` via: +// +// DomainFSxLustreFileSystemConfigArgs{...} +type DomainFSxLustreFileSystemConfigInput interface { + pulumi.Input + + ToDomainFSxLustreFileSystemConfigOutput() DomainFSxLustreFileSystemConfigOutput + ToDomainFSxLustreFileSystemConfigOutputWithContext(context.Context) DomainFSxLustreFileSystemConfigOutput +} + +type DomainFSxLustreFileSystemConfigArgs struct { + FileSystemId pulumi.StringInput `pulumi:"fileSystemId"` + FileSystemPath pulumi.StringPtrInput `pulumi:"fileSystemPath"` +} + +func (DomainFSxLustreFileSystemConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*DomainFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (i DomainFSxLustreFileSystemConfigArgs) ToDomainFSxLustreFileSystemConfigOutput() DomainFSxLustreFileSystemConfigOutput { + return i.ToDomainFSxLustreFileSystemConfigOutputWithContext(context.Background()) +} + +func (i DomainFSxLustreFileSystemConfigArgs) ToDomainFSxLustreFileSystemConfigOutputWithContext(ctx context.Context) DomainFSxLustreFileSystemConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainFSxLustreFileSystemConfigOutput) +} + +func (i DomainFSxLustreFileSystemConfigArgs) ToDomainFSxLustreFileSystemConfigPtrOutput() DomainFSxLustreFileSystemConfigPtrOutput { + return i.ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(context.Background()) +} + +func (i DomainFSxLustreFileSystemConfigArgs) ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) DomainFSxLustreFileSystemConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainFSxLustreFileSystemConfigOutput).ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(ctx) +} + +// DomainFSxLustreFileSystemConfigPtrInput is an input type that accepts DomainFSxLustreFileSystemConfigArgs, DomainFSxLustreFileSystemConfigPtr and DomainFSxLustreFileSystemConfigPtrOutput values. +// You can construct a concrete instance of `DomainFSxLustreFileSystemConfigPtrInput` via: +// +// DomainFSxLustreFileSystemConfigArgs{...} +// +// or: +// +// nil +type DomainFSxLustreFileSystemConfigPtrInput interface { + pulumi.Input + + ToDomainFSxLustreFileSystemConfigPtrOutput() DomainFSxLustreFileSystemConfigPtrOutput + ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(context.Context) DomainFSxLustreFileSystemConfigPtrOutput +} + +type domainFSxLustreFileSystemConfigPtrType DomainFSxLustreFileSystemConfigArgs + +func DomainFSxLustreFileSystemConfigPtr(v *DomainFSxLustreFileSystemConfigArgs) DomainFSxLustreFileSystemConfigPtrInput { + return (*domainFSxLustreFileSystemConfigPtrType)(v) +} + +func (*domainFSxLustreFileSystemConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**DomainFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (i *domainFSxLustreFileSystemConfigPtrType) ToDomainFSxLustreFileSystemConfigPtrOutput() DomainFSxLustreFileSystemConfigPtrOutput { + return i.ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(context.Background()) +} + +func (i *domainFSxLustreFileSystemConfigPtrType) ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) DomainFSxLustreFileSystemConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(DomainFSxLustreFileSystemConfigPtrOutput) +} + +type DomainFSxLustreFileSystemConfigOutput struct{ *pulumi.OutputState } + +func (DomainFSxLustreFileSystemConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*DomainFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (o DomainFSxLustreFileSystemConfigOutput) ToDomainFSxLustreFileSystemConfigOutput() DomainFSxLustreFileSystemConfigOutput { + return o +} + +func (o DomainFSxLustreFileSystemConfigOutput) ToDomainFSxLustreFileSystemConfigOutputWithContext(ctx context.Context) DomainFSxLustreFileSystemConfigOutput { + return o +} + +func (o DomainFSxLustreFileSystemConfigOutput) ToDomainFSxLustreFileSystemConfigPtrOutput() DomainFSxLustreFileSystemConfigPtrOutput { + return o.ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(context.Background()) +} + +func (o DomainFSxLustreFileSystemConfigOutput) ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) DomainFSxLustreFileSystemConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v DomainFSxLustreFileSystemConfig) *DomainFSxLustreFileSystemConfig { + return &v + }).(DomainFSxLustreFileSystemConfigPtrOutput) +} + +func (o DomainFSxLustreFileSystemConfigOutput) FileSystemId() pulumi.StringOutput { + return o.ApplyT(func(v DomainFSxLustreFileSystemConfig) string { return v.FileSystemId }).(pulumi.StringOutput) +} + +func (o DomainFSxLustreFileSystemConfigOutput) FileSystemPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v DomainFSxLustreFileSystemConfig) *string { return v.FileSystemPath }).(pulumi.StringPtrOutput) +} + +type DomainFSxLustreFileSystemConfigPtrOutput struct{ *pulumi.OutputState } + +func (DomainFSxLustreFileSystemConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**DomainFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (o DomainFSxLustreFileSystemConfigPtrOutput) ToDomainFSxLustreFileSystemConfigPtrOutput() DomainFSxLustreFileSystemConfigPtrOutput { + return o +} + +func (o DomainFSxLustreFileSystemConfigPtrOutput) ToDomainFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) DomainFSxLustreFileSystemConfigPtrOutput { + return o +} + +func (o DomainFSxLustreFileSystemConfigPtrOutput) Elem() DomainFSxLustreFileSystemConfigOutput { + return o.ApplyT(func(v *DomainFSxLustreFileSystemConfig) DomainFSxLustreFileSystemConfig { + if v != nil { + return *v + } + var ret DomainFSxLustreFileSystemConfig + return ret + }).(DomainFSxLustreFileSystemConfigOutput) +} + +func (o DomainFSxLustreFileSystemConfigPtrOutput) FileSystemId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *DomainFSxLustreFileSystemConfig) *string { + if v == nil { + return nil + } + return &v.FileSystemId + }).(pulumi.StringPtrOutput) +} + +func (o DomainFSxLustreFileSystemConfigPtrOutput) FileSystemPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v *DomainFSxLustreFileSystemConfig) *string { + if v == nil { + return nil + } + return v.FileSystemPath + }).(pulumi.StringPtrOutput) +} + type DomainIdleSettings struct { // The time that SageMaker waits after the application becomes idle before shutting it down. IdleTimeoutInMinutes *int `pulumi:"idleTimeoutInMinutes"` @@ -35551,7 +35707,8 @@ func (o SpaceCodeRepositoryArrayOutput) Index(i pulumi.IntInput) SpaceCodeReposi } type SpaceCustomFileSystem struct { - EfsFileSystem *SpaceEfsFileSystem `pulumi:"efsFileSystem"` + EfsFileSystem *SpaceEfsFileSystem `pulumi:"efsFileSystem"` + FSxLustreFileSystem *SpaceFSxLustreFileSystem `pulumi:"fSxLustreFileSystem"` } // SpaceCustomFileSystemInput is an input type that accepts SpaceCustomFileSystemArgs and SpaceCustomFileSystemOutput values. @@ -35566,7 +35723,8 @@ type SpaceCustomFileSystemInput interface { } type SpaceCustomFileSystemArgs struct { - EfsFileSystem SpaceEfsFileSystemPtrInput `pulumi:"efsFileSystem"` + EfsFileSystem SpaceEfsFileSystemPtrInput `pulumi:"efsFileSystem"` + FSxLustreFileSystem SpaceFSxLustreFileSystemPtrInput `pulumi:"fSxLustreFileSystem"` } func (SpaceCustomFileSystemArgs) ElementType() reflect.Type { @@ -35624,6 +35782,10 @@ func (o SpaceCustomFileSystemOutput) EfsFileSystem() SpaceEfsFileSystemPtrOutput return o.ApplyT(func(v SpaceCustomFileSystem) *SpaceEfsFileSystem { return v.EfsFileSystem }).(SpaceEfsFileSystemPtrOutput) } +func (o SpaceCustomFileSystemOutput) FSxLustreFileSystem() SpaceFSxLustreFileSystemPtrOutput { + return o.ApplyT(func(v SpaceCustomFileSystem) *SpaceFSxLustreFileSystem { return v.FSxLustreFileSystem }).(SpaceFSxLustreFileSystemPtrOutput) +} + type SpaceCustomFileSystemArrayOutput struct{ *pulumi.OutputState } func (SpaceCustomFileSystemArrayOutput) ElementType() reflect.Type { @@ -36035,6 +36197,139 @@ func (o SpaceEfsFileSystemPtrOutput) FileSystemId() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } +type SpaceFSxLustreFileSystem struct { + FileSystemId string `pulumi:"fileSystemId"` +} + +// SpaceFSxLustreFileSystemInput is an input type that accepts SpaceFSxLustreFileSystemArgs and SpaceFSxLustreFileSystemOutput values. +// You can construct a concrete instance of `SpaceFSxLustreFileSystemInput` via: +// +// SpaceFSxLustreFileSystemArgs{...} +type SpaceFSxLustreFileSystemInput interface { + pulumi.Input + + ToSpaceFSxLustreFileSystemOutput() SpaceFSxLustreFileSystemOutput + ToSpaceFSxLustreFileSystemOutputWithContext(context.Context) SpaceFSxLustreFileSystemOutput +} + +type SpaceFSxLustreFileSystemArgs struct { + FileSystemId pulumi.StringInput `pulumi:"fileSystemId"` +} + +func (SpaceFSxLustreFileSystemArgs) ElementType() reflect.Type { + return reflect.TypeOf((*SpaceFSxLustreFileSystem)(nil)).Elem() +} + +func (i SpaceFSxLustreFileSystemArgs) ToSpaceFSxLustreFileSystemOutput() SpaceFSxLustreFileSystemOutput { + return i.ToSpaceFSxLustreFileSystemOutputWithContext(context.Background()) +} + +func (i SpaceFSxLustreFileSystemArgs) ToSpaceFSxLustreFileSystemOutputWithContext(ctx context.Context) SpaceFSxLustreFileSystemOutput { + return pulumi.ToOutputWithContext(ctx, i).(SpaceFSxLustreFileSystemOutput) +} + +func (i SpaceFSxLustreFileSystemArgs) ToSpaceFSxLustreFileSystemPtrOutput() SpaceFSxLustreFileSystemPtrOutput { + return i.ToSpaceFSxLustreFileSystemPtrOutputWithContext(context.Background()) +} + +func (i SpaceFSxLustreFileSystemArgs) ToSpaceFSxLustreFileSystemPtrOutputWithContext(ctx context.Context) SpaceFSxLustreFileSystemPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(SpaceFSxLustreFileSystemOutput).ToSpaceFSxLustreFileSystemPtrOutputWithContext(ctx) +} + +// SpaceFSxLustreFileSystemPtrInput is an input type that accepts SpaceFSxLustreFileSystemArgs, SpaceFSxLustreFileSystemPtr and SpaceFSxLustreFileSystemPtrOutput values. +// You can construct a concrete instance of `SpaceFSxLustreFileSystemPtrInput` via: +// +// SpaceFSxLustreFileSystemArgs{...} +// +// or: +// +// nil +type SpaceFSxLustreFileSystemPtrInput interface { + pulumi.Input + + ToSpaceFSxLustreFileSystemPtrOutput() SpaceFSxLustreFileSystemPtrOutput + ToSpaceFSxLustreFileSystemPtrOutputWithContext(context.Context) SpaceFSxLustreFileSystemPtrOutput +} + +type spaceFSxLustreFileSystemPtrType SpaceFSxLustreFileSystemArgs + +func SpaceFSxLustreFileSystemPtr(v *SpaceFSxLustreFileSystemArgs) SpaceFSxLustreFileSystemPtrInput { + return (*spaceFSxLustreFileSystemPtrType)(v) +} + +func (*spaceFSxLustreFileSystemPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**SpaceFSxLustreFileSystem)(nil)).Elem() +} + +func (i *spaceFSxLustreFileSystemPtrType) ToSpaceFSxLustreFileSystemPtrOutput() SpaceFSxLustreFileSystemPtrOutput { + return i.ToSpaceFSxLustreFileSystemPtrOutputWithContext(context.Background()) +} + +func (i *spaceFSxLustreFileSystemPtrType) ToSpaceFSxLustreFileSystemPtrOutputWithContext(ctx context.Context) SpaceFSxLustreFileSystemPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(SpaceFSxLustreFileSystemPtrOutput) +} + +type SpaceFSxLustreFileSystemOutput struct{ *pulumi.OutputState } + +func (SpaceFSxLustreFileSystemOutput) ElementType() reflect.Type { + return reflect.TypeOf((*SpaceFSxLustreFileSystem)(nil)).Elem() +} + +func (o SpaceFSxLustreFileSystemOutput) ToSpaceFSxLustreFileSystemOutput() SpaceFSxLustreFileSystemOutput { + return o +} + +func (o SpaceFSxLustreFileSystemOutput) ToSpaceFSxLustreFileSystemOutputWithContext(ctx context.Context) SpaceFSxLustreFileSystemOutput { + return o +} + +func (o SpaceFSxLustreFileSystemOutput) ToSpaceFSxLustreFileSystemPtrOutput() SpaceFSxLustreFileSystemPtrOutput { + return o.ToSpaceFSxLustreFileSystemPtrOutputWithContext(context.Background()) +} + +func (o SpaceFSxLustreFileSystemOutput) ToSpaceFSxLustreFileSystemPtrOutputWithContext(ctx context.Context) SpaceFSxLustreFileSystemPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v SpaceFSxLustreFileSystem) *SpaceFSxLustreFileSystem { + return &v + }).(SpaceFSxLustreFileSystemPtrOutput) +} + +func (o SpaceFSxLustreFileSystemOutput) FileSystemId() pulumi.StringOutput { + return o.ApplyT(func(v SpaceFSxLustreFileSystem) string { return v.FileSystemId }).(pulumi.StringOutput) +} + +type SpaceFSxLustreFileSystemPtrOutput struct{ *pulumi.OutputState } + +func (SpaceFSxLustreFileSystemPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**SpaceFSxLustreFileSystem)(nil)).Elem() +} + +func (o SpaceFSxLustreFileSystemPtrOutput) ToSpaceFSxLustreFileSystemPtrOutput() SpaceFSxLustreFileSystemPtrOutput { + return o +} + +func (o SpaceFSxLustreFileSystemPtrOutput) ToSpaceFSxLustreFileSystemPtrOutputWithContext(ctx context.Context) SpaceFSxLustreFileSystemPtrOutput { + return o +} + +func (o SpaceFSxLustreFileSystemPtrOutput) Elem() SpaceFSxLustreFileSystemOutput { + return o.ApplyT(func(v *SpaceFSxLustreFileSystem) SpaceFSxLustreFileSystem { + if v != nil { + return *v + } + var ret SpaceFSxLustreFileSystem + return ret + }).(SpaceFSxLustreFileSystemOutput) +} + +func (o SpaceFSxLustreFileSystemPtrOutput) FileSystemId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *SpaceFSxLustreFileSystem) *string { + if v == nil { + return nil + } + return &v.FileSystemId + }).(pulumi.StringPtrOutput) +} + type SpaceIdleSettings struct { // The space idle timeout value set in minutes IdleTimeoutInMinutes *int `pulumi:"idleTimeoutInMinutes"` @@ -37995,7 +38290,8 @@ func (o UserProfileCodeRepositoryArrayOutput) Index(i pulumi.IntInput) UserProfi type UserProfileCustomFileSystemConfig struct { // The settings for a custom Amazon EFS file system. - EfsFileSystemConfig *UserProfileEfsFileSystemConfig `pulumi:"efsFileSystemConfig"` + EfsFileSystemConfig *UserProfileEfsFileSystemConfig `pulumi:"efsFileSystemConfig"` + FSxLustreFileSystemConfig *UserProfileFSxLustreFileSystemConfig `pulumi:"fSxLustreFileSystemConfig"` } // UserProfileCustomFileSystemConfigInput is an input type that accepts UserProfileCustomFileSystemConfigArgs and UserProfileCustomFileSystemConfigOutput values. @@ -38011,7 +38307,8 @@ type UserProfileCustomFileSystemConfigInput interface { type UserProfileCustomFileSystemConfigArgs struct { // The settings for a custom Amazon EFS file system. - EfsFileSystemConfig UserProfileEfsFileSystemConfigPtrInput `pulumi:"efsFileSystemConfig"` + EfsFileSystemConfig UserProfileEfsFileSystemConfigPtrInput `pulumi:"efsFileSystemConfig"` + FSxLustreFileSystemConfig UserProfileFSxLustreFileSystemConfigPtrInput `pulumi:"fSxLustreFileSystemConfig"` } func (UserProfileCustomFileSystemConfigArgs) ElementType() reflect.Type { @@ -38072,6 +38369,12 @@ func (o UserProfileCustomFileSystemConfigOutput) EfsFileSystemConfig() UserProfi }).(UserProfileEfsFileSystemConfigPtrOutput) } +func (o UserProfileCustomFileSystemConfigOutput) FSxLustreFileSystemConfig() UserProfileFSxLustreFileSystemConfigPtrOutput { + return o.ApplyT(func(v UserProfileCustomFileSystemConfig) *UserProfileFSxLustreFileSystemConfig { + return v.FSxLustreFileSystemConfig + }).(UserProfileFSxLustreFileSystemConfigPtrOutput) +} + type UserProfileCustomFileSystemConfigArrayOutput struct{ *pulumi.OutputState } func (UserProfileCustomFileSystemConfigArrayOutput) ElementType() reflect.Type { @@ -38823,6 +39126,154 @@ func (o UserProfileEfsFileSystemConfigPtrOutput) FileSystemPath() pulumi.StringP }).(pulumi.StringPtrOutput) } +type UserProfileFSxLustreFileSystemConfig struct { + FileSystemId string `pulumi:"fileSystemId"` + FileSystemPath *string `pulumi:"fileSystemPath"` +} + +// UserProfileFSxLustreFileSystemConfigInput is an input type that accepts UserProfileFSxLustreFileSystemConfigArgs and UserProfileFSxLustreFileSystemConfigOutput values. +// You can construct a concrete instance of `UserProfileFSxLustreFileSystemConfigInput` via: +// +// UserProfileFSxLustreFileSystemConfigArgs{...} +type UserProfileFSxLustreFileSystemConfigInput interface { + pulumi.Input + + ToUserProfileFSxLustreFileSystemConfigOutput() UserProfileFSxLustreFileSystemConfigOutput + ToUserProfileFSxLustreFileSystemConfigOutputWithContext(context.Context) UserProfileFSxLustreFileSystemConfigOutput +} + +type UserProfileFSxLustreFileSystemConfigArgs struct { + FileSystemId pulumi.StringInput `pulumi:"fileSystemId"` + FileSystemPath pulumi.StringPtrInput `pulumi:"fileSystemPath"` +} + +func (UserProfileFSxLustreFileSystemConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*UserProfileFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (i UserProfileFSxLustreFileSystemConfigArgs) ToUserProfileFSxLustreFileSystemConfigOutput() UserProfileFSxLustreFileSystemConfigOutput { + return i.ToUserProfileFSxLustreFileSystemConfigOutputWithContext(context.Background()) +} + +func (i UserProfileFSxLustreFileSystemConfigArgs) ToUserProfileFSxLustreFileSystemConfigOutputWithContext(ctx context.Context) UserProfileFSxLustreFileSystemConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(UserProfileFSxLustreFileSystemConfigOutput) +} + +func (i UserProfileFSxLustreFileSystemConfigArgs) ToUserProfileFSxLustreFileSystemConfigPtrOutput() UserProfileFSxLustreFileSystemConfigPtrOutput { + return i.ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(context.Background()) +} + +func (i UserProfileFSxLustreFileSystemConfigArgs) ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) UserProfileFSxLustreFileSystemConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(UserProfileFSxLustreFileSystemConfigOutput).ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(ctx) +} + +// UserProfileFSxLustreFileSystemConfigPtrInput is an input type that accepts UserProfileFSxLustreFileSystemConfigArgs, UserProfileFSxLustreFileSystemConfigPtr and UserProfileFSxLustreFileSystemConfigPtrOutput values. +// You can construct a concrete instance of `UserProfileFSxLustreFileSystemConfigPtrInput` via: +// +// UserProfileFSxLustreFileSystemConfigArgs{...} +// +// or: +// +// nil +type UserProfileFSxLustreFileSystemConfigPtrInput interface { + pulumi.Input + + ToUserProfileFSxLustreFileSystemConfigPtrOutput() UserProfileFSxLustreFileSystemConfigPtrOutput + ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(context.Context) UserProfileFSxLustreFileSystemConfigPtrOutput +} + +type userProfileFSxLustreFileSystemConfigPtrType UserProfileFSxLustreFileSystemConfigArgs + +func UserProfileFSxLustreFileSystemConfigPtr(v *UserProfileFSxLustreFileSystemConfigArgs) UserProfileFSxLustreFileSystemConfigPtrInput { + return (*userProfileFSxLustreFileSystemConfigPtrType)(v) +} + +func (*userProfileFSxLustreFileSystemConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**UserProfileFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (i *userProfileFSxLustreFileSystemConfigPtrType) ToUserProfileFSxLustreFileSystemConfigPtrOutput() UserProfileFSxLustreFileSystemConfigPtrOutput { + return i.ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(context.Background()) +} + +func (i *userProfileFSxLustreFileSystemConfigPtrType) ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) UserProfileFSxLustreFileSystemConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(UserProfileFSxLustreFileSystemConfigPtrOutput) +} + +type UserProfileFSxLustreFileSystemConfigOutput struct{ *pulumi.OutputState } + +func (UserProfileFSxLustreFileSystemConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*UserProfileFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (o UserProfileFSxLustreFileSystemConfigOutput) ToUserProfileFSxLustreFileSystemConfigOutput() UserProfileFSxLustreFileSystemConfigOutput { + return o +} + +func (o UserProfileFSxLustreFileSystemConfigOutput) ToUserProfileFSxLustreFileSystemConfigOutputWithContext(ctx context.Context) UserProfileFSxLustreFileSystemConfigOutput { + return o +} + +func (o UserProfileFSxLustreFileSystemConfigOutput) ToUserProfileFSxLustreFileSystemConfigPtrOutput() UserProfileFSxLustreFileSystemConfigPtrOutput { + return o.ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(context.Background()) +} + +func (o UserProfileFSxLustreFileSystemConfigOutput) ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) UserProfileFSxLustreFileSystemConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v UserProfileFSxLustreFileSystemConfig) *UserProfileFSxLustreFileSystemConfig { + return &v + }).(UserProfileFSxLustreFileSystemConfigPtrOutput) +} + +func (o UserProfileFSxLustreFileSystemConfigOutput) FileSystemId() pulumi.StringOutput { + return o.ApplyT(func(v UserProfileFSxLustreFileSystemConfig) string { return v.FileSystemId }).(pulumi.StringOutput) +} + +func (o UserProfileFSxLustreFileSystemConfigOutput) FileSystemPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v UserProfileFSxLustreFileSystemConfig) *string { return v.FileSystemPath }).(pulumi.StringPtrOutput) +} + +type UserProfileFSxLustreFileSystemConfigPtrOutput struct{ *pulumi.OutputState } + +func (UserProfileFSxLustreFileSystemConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**UserProfileFSxLustreFileSystemConfig)(nil)).Elem() +} + +func (o UserProfileFSxLustreFileSystemConfigPtrOutput) ToUserProfileFSxLustreFileSystemConfigPtrOutput() UserProfileFSxLustreFileSystemConfigPtrOutput { + return o +} + +func (o UserProfileFSxLustreFileSystemConfigPtrOutput) ToUserProfileFSxLustreFileSystemConfigPtrOutputWithContext(ctx context.Context) UserProfileFSxLustreFileSystemConfigPtrOutput { + return o +} + +func (o UserProfileFSxLustreFileSystemConfigPtrOutput) Elem() UserProfileFSxLustreFileSystemConfigOutput { + return o.ApplyT(func(v *UserProfileFSxLustreFileSystemConfig) UserProfileFSxLustreFileSystemConfig { + if v != nil { + return *v + } + var ret UserProfileFSxLustreFileSystemConfig + return ret + }).(UserProfileFSxLustreFileSystemConfigOutput) +} + +func (o UserProfileFSxLustreFileSystemConfigPtrOutput) FileSystemId() pulumi.StringPtrOutput { + return o.ApplyT(func(v *UserProfileFSxLustreFileSystemConfig) *string { + if v == nil { + return nil + } + return &v.FileSystemId + }).(pulumi.StringPtrOutput) +} + +func (o UserProfileFSxLustreFileSystemConfigPtrOutput) FileSystemPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v *UserProfileFSxLustreFileSystemConfig) *string { + if v == nil { + return nil + } + return v.FileSystemPath + }).(pulumi.StringPtrOutput) +} + type UserProfileIdleSettings struct { // The time that SageMaker waits after the application becomes idle before shutting it down. IdleTimeoutInMinutes *int `pulumi:"idleTimeoutInMinutes"` @@ -40791,6 +41242,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DomainDockerSettingsPtrInput)(nil)).Elem(), DomainDockerSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainEfsFileSystemConfigInput)(nil)).Elem(), DomainEfsFileSystemConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainEfsFileSystemConfigPtrInput)(nil)).Elem(), DomainEfsFileSystemConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DomainFSxLustreFileSystemConfigInput)(nil)).Elem(), DomainFSxLustreFileSystemConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*DomainFSxLustreFileSystemConfigPtrInput)(nil)).Elem(), DomainFSxLustreFileSystemConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainIdleSettingsInput)(nil)).Elem(), DomainIdleSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainIdleSettingsPtrInput)(nil)).Elem(), DomainIdleSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*DomainJupyterLabAppSettingsInput)(nil)).Elem(), DomainJupyterLabAppSettingsArgs{}) @@ -41140,6 +41593,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*SpaceEbsStorageSettingsPtrInput)(nil)).Elem(), SpaceEbsStorageSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SpaceEfsFileSystemInput)(nil)).Elem(), SpaceEfsFileSystemArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SpaceEfsFileSystemPtrInput)(nil)).Elem(), SpaceEfsFileSystemArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*SpaceFSxLustreFileSystemInput)(nil)).Elem(), SpaceFSxLustreFileSystemArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*SpaceFSxLustreFileSystemPtrInput)(nil)).Elem(), SpaceFSxLustreFileSystemArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SpaceIdleSettingsInput)(nil)).Elem(), SpaceIdleSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SpaceIdleSettingsPtrInput)(nil)).Elem(), SpaceIdleSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*SpaceJupyterLabAppSettingsInput)(nil)).Elem(), SpaceJupyterLabAppSettingsArgs{}) @@ -41176,6 +41631,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*UserProfileDefaultSpaceStorageSettingsPtrInput)(nil)).Elem(), UserProfileDefaultSpaceStorageSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*UserProfileEfsFileSystemConfigInput)(nil)).Elem(), UserProfileEfsFileSystemConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*UserProfileEfsFileSystemConfigPtrInput)(nil)).Elem(), UserProfileEfsFileSystemConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*UserProfileFSxLustreFileSystemConfigInput)(nil)).Elem(), UserProfileFSxLustreFileSystemConfigArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*UserProfileFSxLustreFileSystemConfigPtrInput)(nil)).Elem(), UserProfileFSxLustreFileSystemConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*UserProfileIdleSettingsInput)(nil)).Elem(), UserProfileIdleSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*UserProfileIdleSettingsPtrInput)(nil)).Elem(), UserProfileIdleSettingsArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*UserProfileJupyterLabAppSettingsInput)(nil)).Elem(), UserProfileJupyterLabAppSettingsArgs{}) @@ -41277,6 +41734,8 @@ func init() { pulumi.RegisterOutputType(DomainDockerSettingsPtrOutput{}) pulumi.RegisterOutputType(DomainEfsFileSystemConfigOutput{}) pulumi.RegisterOutputType(DomainEfsFileSystemConfigPtrOutput{}) + pulumi.RegisterOutputType(DomainFSxLustreFileSystemConfigOutput{}) + pulumi.RegisterOutputType(DomainFSxLustreFileSystemConfigPtrOutput{}) pulumi.RegisterOutputType(DomainIdleSettingsOutput{}) pulumi.RegisterOutputType(DomainIdleSettingsPtrOutput{}) pulumi.RegisterOutputType(DomainJupyterLabAppSettingsOutput{}) @@ -41635,6 +42094,8 @@ func init() { pulumi.RegisterOutputType(SpaceEbsStorageSettingsPtrOutput{}) pulumi.RegisterOutputType(SpaceEfsFileSystemOutput{}) pulumi.RegisterOutputType(SpaceEfsFileSystemPtrOutput{}) + pulumi.RegisterOutputType(SpaceFSxLustreFileSystemOutput{}) + pulumi.RegisterOutputType(SpaceFSxLustreFileSystemPtrOutput{}) pulumi.RegisterOutputType(SpaceIdleSettingsOutput{}) pulumi.RegisterOutputType(SpaceIdleSettingsPtrOutput{}) pulumi.RegisterOutputType(SpaceJupyterLabAppSettingsOutput{}) @@ -41671,6 +42132,8 @@ func init() { pulumi.RegisterOutputType(UserProfileDefaultSpaceStorageSettingsPtrOutput{}) pulumi.RegisterOutputType(UserProfileEfsFileSystemConfigOutput{}) pulumi.RegisterOutputType(UserProfileEfsFileSystemConfigPtrOutput{}) + pulumi.RegisterOutputType(UserProfileFSxLustreFileSystemConfigOutput{}) + pulumi.RegisterOutputType(UserProfileFSxLustreFileSystemConfigPtrOutput{}) pulumi.RegisterOutputType(UserProfileIdleSettingsOutput{}) pulumi.RegisterOutputType(UserProfileIdleSettingsPtrOutput{}) pulumi.RegisterOutputType(UserProfileJupyterLabAppSettingsOutput{}) diff --git a/sdk/nodejs/types/enums/bedrock/index.ts b/sdk/nodejs/types/enums/bedrock/index.ts index 39ca4134c7..ed408da6ba 100644 --- a/sdk/nodejs/types/enums/bedrock/index.ts +++ b/sdk/nodejs/types/enums/bedrock/index.ts @@ -86,6 +86,16 @@ export const AgentPromptType = { */ export type AgentPromptType = (typeof AgentPromptType)[keyof typeof AgentPromptType]; +export const AgentRequireConfirmation = { + Enabled: "ENABLED", + Disabled: "DISABLED", +} as const; + +/** + * ENUM to check if action requires user confirmation + */ +export type AgentRequireConfirmation = (typeof AgentRequireConfirmation)[keyof typeof AgentRequireConfirmation]; + export const AgentStatus = { Creating: "CREATING", Preparing: "PREPARING", @@ -543,8 +553,19 @@ export const KnowledgeBaseType = { */ export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType]; +export const PromptConversationRole = { + User: "user", + Assistant: "assistant", +} as const; + +/** + * Conversation roles for the chat prompt + */ +export type PromptConversationRole = (typeof PromptConversationRole)[keyof typeof PromptConversationRole]; + export const PromptTemplateType = { Text: "TEXT", + Chat: "CHAT", } as const; /** diff --git a/sdk/nodejs/types/enums/logs/index.ts b/sdk/nodejs/types/enums/logs/index.ts index 842d3324a6..9d17a9e2bd 100644 --- a/sdk/nodejs/types/enums/logs/index.ts +++ b/sdk/nodejs/types/enums/logs/index.ts @@ -5,6 +5,8 @@ export const AccountPolicyPolicyType = { DataProtectionPolicy: "DATA_PROTECTION_POLICY", SubscriptionFilterPolicy: "SUBSCRIPTION_FILTER_POLICY", + FieldIndexPolicy: "FIELD_INDEX_POLICY", + TransformerPolicy: "TRANSFORMER_POLICY", } as const; /** diff --git a/sdk/nodejs/types/enums/opensearchservice/index.ts b/sdk/nodejs/types/enums/opensearchservice/index.ts index 04231721c9..e11e38f892 100644 --- a/sdk/nodejs/types/enums/opensearchservice/index.ts +++ b/sdk/nodejs/types/enums/opensearchservice/index.ts @@ -12,6 +12,12 @@ export const ApplicationAppConfigType = { */ export type ApplicationAppConfigType = (typeof ApplicationAppConfigType)[keyof typeof ApplicationAppConfigType]; +export const DomainNodeOptionNodeType = { + Coordinator: "coordinator", +} as const; + +export type DomainNodeOptionNodeType = (typeof DomainNodeOptionNodeType)[keyof typeof DomainNodeOptionNodeType]; + export const DomainRolesKeyIdcType = { GroupName: "GroupName", GroupId: "GroupId", diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 874e8fa4aa..0059bf0b78 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -9757,6 +9757,7 @@ export namespace bedrock { * The parameters that the agent elicits from the user to fulfill the function. */ parameters?: pulumi.Input<{[key: string]: pulumi.Input}>; + requireConfirmation?: pulumi.Input; } /** @@ -11491,6 +11492,64 @@ export namespace bedrock { embeddingModelConfiguration?: pulumi.Input; } + /** + * Target Agent to invoke with Prompt + */ + export interface PromptAgentResourceArgs { + /** + * Arn representation of the Agent Alias. + */ + agentIdentifier: pulumi.Input; + } + + /** + * Any Tool choice + */ + export interface PromptAnyToolChoiceArgs { + } + + /** + * Auto Tool choice + */ + export interface PromptAutoToolChoiceArgs { + } + + /** + * Configuration for chat prompt template + */ + export interface PromptChatPromptTemplateConfigurationArgs { + /** + * List of input variables + */ + inputVariables?: pulumi.Input[]>; + /** + * List of messages for chat prompt template + */ + messages: pulumi.Input[]>; + /** + * Configuration for chat prompt template + */ + system?: pulumi.Input[]>; + toolConfiguration?: pulumi.Input; + } + + /** + * Configuration for chat prompt template + */ + export interface PromptContentBlockPropertiesArgs { + /** + * Configuration for chat prompt template + */ + text: pulumi.Input; + } + + /** + * Target resource to invoke with Prompt + */ + export interface PromptGenAiResourcePropertiesArgs { + agent: pulumi.Input; + } + /** * Model inference configuration */ @@ -11508,6 +11567,17 @@ export namespace bedrock { name?: pulumi.Input; } + /** + * Chat prompt Message + */ + export interface PromptMessageArgs { + /** + * List of Content Blocks + */ + content: pulumi.Input[]>; + role: pulumi.Input; + } + /** * Prompt model inference configuration */ @@ -11530,13 +11600,40 @@ export namespace bedrock { topP?: pulumi.Input; } + /** + * Specific Tool choice + */ + export interface PromptSpecificToolChoiceArgs { + /** + * Tool name + */ + name: pulumi.Input; + } + + /** + * Configuration for chat prompt template + */ + export interface PromptSystemContentBlockPropertiesArgs { + /** + * Configuration for chat prompt template + */ + text: pulumi.Input; + } + /** * Prompt template configuration */ - export interface PromptTemplateConfigurationPropertiesArgs { + export interface PromptTemplateConfiguration0PropertiesArgs { text: pulumi.Input; } + /** + * Prompt template configuration + */ + export interface PromptTemplateConfiguration1PropertiesArgs { + chat: pulumi.Input; + } + /** * Configuration for text prompt template */ @@ -11570,10 +11667,69 @@ export namespace bedrock { version?: pulumi.Input; } + /** + * Tool choice + */ + export interface PromptToolChoice0PropertiesArgs { + auto: pulumi.Input; + } + + /** + * Tool choice + */ + export interface PromptToolChoice1PropertiesArgs { + any: pulumi.Input; + } + + /** + * Tool choice + */ + export interface PromptToolChoice2PropertiesArgs { + tool: pulumi.Input; + } + + /** + * Tool configuration + */ + export interface PromptToolConfigurationArgs { + toolChoice?: pulumi.Input; + /** + * List of Tools + */ + tools: pulumi.Input[]>; + } + + /** + * Tool input schema json + */ + export interface PromptToolInputSchemaPropertiesArgs { + json: any; + } + + /** + * Tool details + */ + export interface PromptToolPropertiesArgs { + toolSpec: pulumi.Input; + } + + /** + * Tool specification + */ + export interface PromptToolSpecificationArgs { + description?: pulumi.Input; + inputSchema: pulumi.Input; + /** + * Tool name + */ + name: pulumi.Input; + } + /** * Prompt variant */ export interface PromptVariantArgs { + genAiResource?: pulumi.Input; /** * Contains inference configurations for the prompt variant. */ @@ -11589,7 +11745,7 @@ export namespace bedrock { /** * Contains configurations for the prompt template. */ - templateConfiguration: pulumi.Input; + templateConfiguration: pulumi.Input; /** * The type of prompt template to use. */ @@ -51435,6 +51591,7 @@ export namespace opensearchservice { * Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) . */ multiAzWithStandbyEnabled?: pulumi.Input; + nodeOptions?: pulumi.Input[]>; /** * The number of warm nodes in the cluster. */ @@ -51628,6 +51785,17 @@ export namespace opensearchservice { masterUserPassword?: pulumi.Input; } + export interface DomainNodeConfigArgs { + count?: pulumi.Input; + enabled?: pulumi.Input; + type?: pulumi.Input; + } + + export interface DomainNodeOptionArgs { + nodeConfig?: pulumi.Input; + nodeType?: pulumi.Input; + } + export interface DomainNodeToNodeEncryptionOptionsArgs { /** * Specifies to enable or disable node-to-node encryption on the domain. Required if you enable fine-grained access control in [AdvancedSecurityOptionsInput](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-advancedsecurityoptionsinput.html) . @@ -86326,6 +86494,7 @@ export namespace sagemaker { * The settings for a custom Amazon EFS file system. */ efsFileSystemConfig?: pulumi.Input; + fSxLustreFileSystemConfig?: pulumi.Input; } /** @@ -86444,6 +86613,11 @@ export namespace sagemaker { fileSystemPath?: pulumi.Input; } + export interface DomainFSxLustreFileSystemConfigArgs { + fileSystemId: pulumi.Input; + fileSystemPath?: pulumi.Input; + } + export interface DomainIdleSettingsArgs { /** * The time that SageMaker waits after the application becomes idle before shutting it down. @@ -89677,6 +89851,7 @@ export namespace sagemaker { export interface SpaceCustomFileSystemArgs { efsFileSystem?: pulumi.Input; + fSxLustreFileSystem?: pulumi.Input; } /** @@ -89711,6 +89886,10 @@ export namespace sagemaker { fileSystemId: pulumi.Input; } + export interface SpaceFSxLustreFileSystemArgs { + fileSystemId: pulumi.Input; + } + export interface SpaceIdleSettingsArgs { /** * The space idle timeout value set in minutes @@ -89883,6 +90062,7 @@ export namespace sagemaker { * The settings for a custom Amazon EFS file system. */ efsFileSystemConfig?: pulumi.Input; + fSxLustreFileSystemConfig?: pulumi.Input; } /** @@ -89949,6 +90129,11 @@ export namespace sagemaker { fileSystemPath?: pulumi.Input; } + export interface UserProfileFSxLustreFileSystemConfigArgs { + fileSystemId: pulumi.Input; + fileSystemPath?: pulumi.Input; + } + export interface UserProfileIdleSettingsArgs { /** * The time that SageMaker waits after the application becomes idle before shutting it down. diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index f67ae59869..d840b77767 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -9697,6 +9697,7 @@ export namespace bedrock { * The parameters that the agent elicits from the user to fulfill the function. */ parameters?: {[key: string]: outputs.bedrock.AgentParameterDetail}; + requireConfirmation?: enums.bedrock.AgentRequireConfirmation; } /** @@ -11935,6 +11936,64 @@ export namespace bedrock { embeddingModelConfiguration?: outputs.bedrock.KnowledgeBaseEmbeddingModelConfiguration; } + /** + * Target Agent to invoke with Prompt + */ + export interface PromptAgentResource { + /** + * Arn representation of the Agent Alias. + */ + agentIdentifier: string; + } + + /** + * Any Tool choice + */ + export interface PromptAnyToolChoice { + } + + /** + * Auto Tool choice + */ + export interface PromptAutoToolChoice { + } + + /** + * Configuration for chat prompt template + */ + export interface PromptChatPromptTemplateConfiguration { + /** + * List of input variables + */ + inputVariables?: outputs.bedrock.PromptInputVariable[]; + /** + * List of messages for chat prompt template + */ + messages: outputs.bedrock.PromptMessage[]; + /** + * Configuration for chat prompt template + */ + system?: outputs.bedrock.PromptSystemContentBlockProperties[]; + toolConfiguration?: outputs.bedrock.PromptToolConfiguration; + } + + /** + * Configuration for chat prompt template + */ + export interface PromptContentBlockProperties { + /** + * Configuration for chat prompt template + */ + text: string; + } + + /** + * Target resource to invoke with Prompt + */ + export interface PromptGenAiResourceProperties { + agent: outputs.bedrock.PromptAgentResource; + } + /** * Model inference configuration */ @@ -11952,6 +12011,17 @@ export namespace bedrock { name?: string; } + /** + * Chat prompt Message + */ + export interface PromptMessage { + /** + * List of Content Blocks + */ + content: outputs.bedrock.PromptContentBlockProperties[]; + role: enums.bedrock.PromptConversationRole; + } + /** * Prompt model inference configuration */ @@ -11974,13 +12044,40 @@ export namespace bedrock { topP?: number; } + /** + * Specific Tool choice + */ + export interface PromptSpecificToolChoice { + /** + * Tool name + */ + name: string; + } + + /** + * Configuration for chat prompt template + */ + export interface PromptSystemContentBlockProperties { + /** + * Configuration for chat prompt template + */ + text: string; + } + /** * Prompt template configuration */ - export interface PromptTemplateConfigurationProperties { + export interface PromptTemplateConfiguration0Properties { text: outputs.bedrock.PromptTextPromptTemplateConfiguration; } + /** + * Prompt template configuration + */ + export interface PromptTemplateConfiguration1Properties { + chat: outputs.bedrock.PromptChatPromptTemplateConfiguration; + } + /** * Configuration for text prompt template */ @@ -12014,10 +12111,69 @@ export namespace bedrock { version?: string; } + /** + * Tool choice + */ + export interface PromptToolChoice0Properties { + auto: outputs.bedrock.PromptAutoToolChoice; + } + + /** + * Tool choice + */ + export interface PromptToolChoice1Properties { + any: outputs.bedrock.PromptAnyToolChoice; + } + + /** + * Tool choice + */ + export interface PromptToolChoice2Properties { + tool: outputs.bedrock.PromptSpecificToolChoice; + } + + /** + * Tool configuration + */ + export interface PromptToolConfiguration { + toolChoice?: outputs.bedrock.PromptToolChoice0Properties | outputs.bedrock.PromptToolChoice1Properties | outputs.bedrock.PromptToolChoice2Properties; + /** + * List of Tools + */ + tools: outputs.bedrock.PromptToolProperties[]; + } + + /** + * Tool input schema json + */ + export interface PromptToolInputSchemaProperties { + json: any; + } + + /** + * Tool details + */ + export interface PromptToolProperties { + toolSpec: outputs.bedrock.PromptToolSpecification; + } + + /** + * Tool specification + */ + export interface PromptToolSpecification { + description?: string; + inputSchema: outputs.bedrock.PromptToolInputSchemaProperties; + /** + * Tool name + */ + name: string; + } + /** * Prompt variant */ export interface PromptVariant { + genAiResource?: outputs.bedrock.PromptGenAiResourceProperties; /** * Contains inference configurations for the prompt variant. */ @@ -12033,7 +12189,7 @@ export namespace bedrock { /** * Contains configurations for the prompt template. */ - templateConfiguration: outputs.bedrock.PromptTemplateConfigurationProperties; + templateConfiguration: outputs.bedrock.PromptTemplateConfiguration0Properties | outputs.bedrock.PromptTemplateConfiguration1Properties; /** * The type of prompt template to use. */ @@ -53131,6 +53287,7 @@ export namespace opensearchservice { * Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) . */ multiAzWithStandbyEnabled?: boolean; + nodeOptions?: outputs.opensearchservice.DomainNodeOption[]; /** * The number of warm nodes in the cluster. */ @@ -53324,6 +53481,17 @@ export namespace opensearchservice { masterUserPassword?: string; } + export interface DomainNodeConfig { + count?: number; + enabled?: boolean; + type?: string; + } + + export interface DomainNodeOption { + nodeConfig?: outputs.opensearchservice.DomainNodeConfig; + nodeType?: enums.opensearchservice.DomainNodeOptionNodeType; + } + export interface DomainNodeToNodeEncryptionOptions { /** * Specifies to enable or disable node-to-node encryption on the domain. Required if you enable fine-grained access control in [AdvancedSecurityOptionsInput](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-opensearchservice-domain-advancedsecurityoptionsinput.html) . @@ -88793,6 +88961,7 @@ export namespace sagemaker { * The settings for a custom Amazon EFS file system. */ efsFileSystemConfig?: outputs.sagemaker.DomainEfsFileSystemConfig; + fSxLustreFileSystemConfig?: outputs.sagemaker.DomainFSxLustreFileSystemConfig; } /** @@ -88911,6 +89080,11 @@ export namespace sagemaker { fileSystemPath?: string; } + export interface DomainFSxLustreFileSystemConfig { + fileSystemId: string; + fileSystemPath?: string; + } + export interface DomainIdleSettings { /** * The time that SageMaker waits after the application becomes idle before shutting it down. @@ -92162,6 +92336,7 @@ export namespace sagemaker { export interface SpaceCustomFileSystem { efsFileSystem?: outputs.sagemaker.SpaceEfsFileSystem; + fSxLustreFileSystem?: outputs.sagemaker.SpaceFSxLustreFileSystem; } /** @@ -92196,6 +92371,10 @@ export namespace sagemaker { fileSystemId: string; } + export interface SpaceFSxLustreFileSystem { + fileSystemId: string; + } + export interface SpaceIdleSettings { /** * The space idle timeout value set in minutes @@ -92368,6 +92547,7 @@ export namespace sagemaker { * The settings for a custom Amazon EFS file system. */ efsFileSystemConfig?: outputs.sagemaker.UserProfileEfsFileSystemConfig; + fSxLustreFileSystemConfig?: outputs.sagemaker.UserProfileFSxLustreFileSystemConfig; } /** @@ -92434,6 +92614,11 @@ export namespace sagemaker { fileSystemPath?: string; } + export interface UserProfileFSxLustreFileSystemConfig { + fileSystemId: string; + fileSystemPath?: string; + } + export interface UserProfileIdleSettings { /** * The time that SageMaker waits after the application becomes idle before shutting it down. diff --git a/sdk/python/pulumi_aws_native/bedrock/_enums.py b/sdk/python/pulumi_aws_native/bedrock/_enums.py index f599a6c99a..af14294eba 100644 --- a/sdk/python/pulumi_aws_native/bedrock/_enums.py +++ b/sdk/python/pulumi_aws_native/bedrock/_enums.py @@ -13,6 +13,7 @@ 'AgentKnowledgeBaseState', 'AgentPromptState', 'AgentPromptType', + 'AgentRequireConfirmation', 'AgentStatus', 'AgentType', 'ApplicationInferenceProfileInferenceProfileStatus', @@ -51,6 +52,7 @@ 'KnowledgeBaseStatus', 'KnowledgeBaseStorageType', 'KnowledgeBaseType', + 'PromptConversationRole', 'PromptTemplateType', 'PromptVersionPromptTemplateType', ] @@ -124,6 +126,14 @@ class AgentPromptType(str, Enum): KNOWLEDGE_BASE_RESPONSE_GENERATION = "KNOWLEDGE_BASE_RESPONSE_GENERATION" +class AgentRequireConfirmation(str, Enum): + """ + ENUM to check if action requires user confirmation + """ + ENABLED = "ENABLED" + DISABLED = "DISABLED" + + class AgentStatus(str, Enum): """ Schema Type for Action APIs. @@ -505,11 +515,20 @@ class KnowledgeBaseType(str, Enum): VECTOR = "VECTOR" +class PromptConversationRole(str, Enum): + """ + Conversation roles for the chat prompt + """ + USER = "user" + ASSISTANT = "assistant" + + class PromptTemplateType(str, Enum): """ Prompt template type """ TEXT = "TEXT" + CHAT = "CHAT" class PromptVersionPromptTemplateType(str, Enum): diff --git a/sdk/python/pulumi_aws_native/bedrock/_inputs.py b/sdk/python/pulumi_aws_native/bedrock/_inputs.py index c62490df71..bafd5c7cdc 100644 --- a/sdk/python/pulumi_aws_native/bedrock/_inputs.py +++ b/sdk/python/pulumi_aws_native/bedrock/_inputs.py @@ -270,18 +270,52 @@ 'KnowledgeBaseStorageConfigurationArgsDict', 'KnowledgeBaseVectorKnowledgeBaseConfigurationArgs', 'KnowledgeBaseVectorKnowledgeBaseConfigurationArgsDict', + 'PromptAgentResourceArgs', + 'PromptAgentResourceArgsDict', + 'PromptAnyToolChoiceArgs', + 'PromptAnyToolChoiceArgsDict', + 'PromptAutoToolChoiceArgs', + 'PromptAutoToolChoiceArgsDict', + 'PromptChatPromptTemplateConfigurationArgs', + 'PromptChatPromptTemplateConfigurationArgsDict', + 'PromptContentBlockPropertiesArgs', + 'PromptContentBlockPropertiesArgsDict', + 'PromptGenAiResourcePropertiesArgs', + 'PromptGenAiResourcePropertiesArgsDict', 'PromptInferenceConfigurationPropertiesArgs', 'PromptInferenceConfigurationPropertiesArgsDict', 'PromptInputVariableArgs', 'PromptInputVariableArgsDict', + 'PromptMessageArgs', + 'PromptMessageArgsDict', 'PromptModelInferenceConfigurationArgs', 'PromptModelInferenceConfigurationArgsDict', - 'PromptTemplateConfigurationPropertiesArgs', - 'PromptTemplateConfigurationPropertiesArgsDict', + 'PromptSpecificToolChoiceArgs', + 'PromptSpecificToolChoiceArgsDict', + 'PromptSystemContentBlockPropertiesArgs', + 'PromptSystemContentBlockPropertiesArgsDict', + 'PromptTemplateConfiguration0PropertiesArgs', + 'PromptTemplateConfiguration0PropertiesArgsDict', + 'PromptTemplateConfiguration1PropertiesArgs', + 'PromptTemplateConfiguration1PropertiesArgsDict', 'PromptTextPromptTemplateConfigurationArgs', 'PromptTextPromptTemplateConfigurationArgsDict', 'PromptTextS3LocationArgs', 'PromptTextS3LocationArgsDict', + 'PromptToolChoice0PropertiesArgs', + 'PromptToolChoice0PropertiesArgsDict', + 'PromptToolChoice1PropertiesArgs', + 'PromptToolChoice1PropertiesArgsDict', + 'PromptToolChoice2PropertiesArgs', + 'PromptToolChoice2PropertiesArgsDict', + 'PromptToolConfigurationArgs', + 'PromptToolConfigurationArgsDict', + 'PromptToolInputSchemaPropertiesArgs', + 'PromptToolInputSchemaPropertiesArgsDict', + 'PromptToolPropertiesArgs', + 'PromptToolPropertiesArgsDict', + 'PromptToolSpecificationArgs', + 'PromptToolSpecificationArgsDict', 'PromptVariantArgs', 'PromptVariantArgsDict', ] @@ -682,6 +716,7 @@ class AgentFunctionArgsDict(TypedDict): """ The parameters that the agent elicits from the user to fulfill the function. """ + require_confirmation: NotRequired[pulumi.Input['AgentRequireConfirmation']] elif False: AgentFunctionArgsDict: TypeAlias = Mapping[str, Any] @@ -690,7 +725,8 @@ class AgentFunctionArgs: def __init__(__self__, *, name: pulumi.Input[str], description: Optional[pulumi.Input[str]] = None, - parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input['AgentParameterDetailArgs']]]] = None): + parameters: Optional[pulumi.Input[Mapping[str, pulumi.Input['AgentParameterDetailArgs']]]] = None, + require_confirmation: Optional[pulumi.Input['AgentRequireConfirmation']] = None): """ Function definition :param pulumi.Input[str] name: Name for a resource. @@ -702,6 +738,8 @@ def __init__(__self__, *, pulumi.set(__self__, "description", description) if parameters is not None: pulumi.set(__self__, "parameters", parameters) + if require_confirmation is not None: + pulumi.set(__self__, "require_confirmation", require_confirmation) @property @pulumi.getter @@ -739,6 +777,15 @@ def parameters(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['AgentPa def parameters(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['AgentParameterDetailArgs']]]]): pulumi.set(self, "parameters", value) + @property + @pulumi.getter(name="requireConfirmation") + def require_confirmation(self) -> Optional[pulumi.Input['AgentRequireConfirmation']]: + return pulumi.get(self, "require_confirmation") + + @require_confirmation.setter + def require_confirmation(self, value: Optional[pulumi.Input['AgentRequireConfirmation']]): + pulumi.set(self, "require_confirmation", value) + if not MYPY: class AgentGuardrailConfigurationArgsDict(TypedDict): @@ -7505,6 +7552,228 @@ def embedding_model_configuration(self, value: Optional[pulumi.Input['KnowledgeB pulumi.set(self, "embedding_model_configuration", value) +if not MYPY: + class PromptAgentResourceArgsDict(TypedDict): + """ + Target Agent to invoke with Prompt + """ + agent_identifier: pulumi.Input[str] + """ + Arn representation of the Agent Alias. + """ +elif False: + PromptAgentResourceArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptAgentResourceArgs: + def __init__(__self__, *, + agent_identifier: pulumi.Input[str]): + """ + Target Agent to invoke with Prompt + :param pulumi.Input[str] agent_identifier: Arn representation of the Agent Alias. + """ + pulumi.set(__self__, "agent_identifier", agent_identifier) + + @property + @pulumi.getter(name="agentIdentifier") + def agent_identifier(self) -> pulumi.Input[str]: + """ + Arn representation of the Agent Alias. + """ + return pulumi.get(self, "agent_identifier") + + @agent_identifier.setter + def agent_identifier(self, value: pulumi.Input[str]): + pulumi.set(self, "agent_identifier", value) + + +if not MYPY: + class PromptAnyToolChoiceArgsDict(TypedDict): + """ + Any Tool choice + """ + pass +elif False: + PromptAnyToolChoiceArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptAnyToolChoiceArgs: + def __init__(__self__): + """ + Any Tool choice + """ + pass + + +if not MYPY: + class PromptAutoToolChoiceArgsDict(TypedDict): + """ + Auto Tool choice + """ + pass +elif False: + PromptAutoToolChoiceArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptAutoToolChoiceArgs: + def __init__(__self__): + """ + Auto Tool choice + """ + pass + + +if not MYPY: + class PromptChatPromptTemplateConfigurationArgsDict(TypedDict): + """ + Configuration for chat prompt template + """ + messages: pulumi.Input[Sequence[pulumi.Input['PromptMessageArgsDict']]] + """ + List of messages for chat prompt template + """ + input_variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['PromptInputVariableArgsDict']]]] + """ + List of input variables + """ + system: NotRequired[pulumi.Input[Sequence[pulumi.Input['PromptSystemContentBlockPropertiesArgsDict']]]] + """ + Configuration for chat prompt template + """ + tool_configuration: NotRequired[pulumi.Input['PromptToolConfigurationArgsDict']] +elif False: + PromptChatPromptTemplateConfigurationArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptChatPromptTemplateConfigurationArgs: + def __init__(__self__, *, + messages: pulumi.Input[Sequence[pulumi.Input['PromptMessageArgs']]], + input_variables: Optional[pulumi.Input[Sequence[pulumi.Input['PromptInputVariableArgs']]]] = None, + system: Optional[pulumi.Input[Sequence[pulumi.Input['PromptSystemContentBlockPropertiesArgs']]]] = None, + tool_configuration: Optional[pulumi.Input['PromptToolConfigurationArgs']] = None): + """ + Configuration for chat prompt template + :param pulumi.Input[Sequence[pulumi.Input['PromptMessageArgs']]] messages: List of messages for chat prompt template + :param pulumi.Input[Sequence[pulumi.Input['PromptInputVariableArgs']]] input_variables: List of input variables + :param pulumi.Input[Sequence[pulumi.Input['PromptSystemContentBlockPropertiesArgs']]] system: Configuration for chat prompt template + """ + pulumi.set(__self__, "messages", messages) + if input_variables is not None: + pulumi.set(__self__, "input_variables", input_variables) + if system is not None: + pulumi.set(__self__, "system", system) + if tool_configuration is not None: + pulumi.set(__self__, "tool_configuration", tool_configuration) + + @property + @pulumi.getter + def messages(self) -> pulumi.Input[Sequence[pulumi.Input['PromptMessageArgs']]]: + """ + List of messages for chat prompt template + """ + return pulumi.get(self, "messages") + + @messages.setter + def messages(self, value: pulumi.Input[Sequence[pulumi.Input['PromptMessageArgs']]]): + pulumi.set(self, "messages", value) + + @property + @pulumi.getter(name="inputVariables") + def input_variables(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PromptInputVariableArgs']]]]: + """ + List of input variables + """ + return pulumi.get(self, "input_variables") + + @input_variables.setter + def input_variables(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PromptInputVariableArgs']]]]): + pulumi.set(self, "input_variables", value) + + @property + @pulumi.getter + def system(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PromptSystemContentBlockPropertiesArgs']]]]: + """ + Configuration for chat prompt template + """ + return pulumi.get(self, "system") + + @system.setter + def system(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PromptSystemContentBlockPropertiesArgs']]]]): + pulumi.set(self, "system", value) + + @property + @pulumi.getter(name="toolConfiguration") + def tool_configuration(self) -> Optional[pulumi.Input['PromptToolConfigurationArgs']]: + return pulumi.get(self, "tool_configuration") + + @tool_configuration.setter + def tool_configuration(self, value: Optional[pulumi.Input['PromptToolConfigurationArgs']]): + pulumi.set(self, "tool_configuration", value) + + +if not MYPY: + class PromptContentBlockPropertiesArgsDict(TypedDict): + """ + Configuration for chat prompt template + """ + text: pulumi.Input[str] + """ + Configuration for chat prompt template + """ +elif False: + PromptContentBlockPropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptContentBlockPropertiesArgs: + def __init__(__self__, *, + text: pulumi.Input[str]): + """ + Configuration for chat prompt template + :param pulumi.Input[str] text: Configuration for chat prompt template + """ + pulumi.set(__self__, "text", text) + + @property + @pulumi.getter + def text(self) -> pulumi.Input[str]: + """ + Configuration for chat prompt template + """ + return pulumi.get(self, "text") + + @text.setter + def text(self, value: pulumi.Input[str]): + pulumi.set(self, "text", value) + + +if not MYPY: + class PromptGenAiResourcePropertiesArgsDict(TypedDict): + """ + Target resource to invoke with Prompt + """ + agent: pulumi.Input['PromptAgentResourceArgsDict'] +elif False: + PromptGenAiResourcePropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptGenAiResourcePropertiesArgs: + def __init__(__self__, *, + agent: pulumi.Input['PromptAgentResourceArgs']): + """ + Target resource to invoke with Prompt + """ + pulumi.set(__self__, "agent", agent) + + @property + @pulumi.getter + def agent(self) -> pulumi.Input['PromptAgentResourceArgs']: + return pulumi.get(self, "agent") + + @agent.setter + def agent(self, value: pulumi.Input['PromptAgentResourceArgs']): + pulumi.set(self, "agent", value) + + if not MYPY: class PromptInferenceConfigurationPropertiesArgsDict(TypedDict): """ @@ -7569,6 +7838,53 @@ def name(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "name", value) +if not MYPY: + class PromptMessageArgsDict(TypedDict): + """ + Chat prompt Message + """ + content: pulumi.Input[Sequence[pulumi.Input['PromptContentBlockPropertiesArgsDict']]] + """ + List of Content Blocks + """ + role: pulumi.Input['PromptConversationRole'] +elif False: + PromptMessageArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptMessageArgs: + def __init__(__self__, *, + content: pulumi.Input[Sequence[pulumi.Input['PromptContentBlockPropertiesArgs']]], + role: pulumi.Input['PromptConversationRole']): + """ + Chat prompt Message + :param pulumi.Input[Sequence[pulumi.Input['PromptContentBlockPropertiesArgs']]] content: List of Content Blocks + """ + pulumi.set(__self__, "content", content) + pulumi.set(__self__, "role", role) + + @property + @pulumi.getter + def content(self) -> pulumi.Input[Sequence[pulumi.Input['PromptContentBlockPropertiesArgs']]]: + """ + List of Content Blocks + """ + return pulumi.get(self, "content") + + @content.setter + def content(self, value: pulumi.Input[Sequence[pulumi.Input['PromptContentBlockPropertiesArgs']]]): + pulumi.set(self, "content", value) + + @property + @pulumi.getter + def role(self) -> pulumi.Input['PromptConversationRole']: + return pulumi.get(self, "role") + + @role.setter + def role(self, value: pulumi.Input['PromptConversationRole']): + pulumi.set(self, "role", value) + + if not MYPY: class PromptModelInferenceConfigurationArgsDict(TypedDict): """ @@ -7666,16 +7982,86 @@ def top_p(self, value: Optional[pulumi.Input[float]]): if not MYPY: - class PromptTemplateConfigurationPropertiesArgsDict(TypedDict): + class PromptSpecificToolChoiceArgsDict(TypedDict): + """ + Specific Tool choice + """ + name: pulumi.Input[str] + """ + Tool name + """ +elif False: + PromptSpecificToolChoiceArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptSpecificToolChoiceArgs: + def __init__(__self__, *, + name: pulumi.Input[str]): + """ + Specific Tool choice + :param pulumi.Input[str] name: Tool name + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + Tool name + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + +if not MYPY: + class PromptSystemContentBlockPropertiesArgsDict(TypedDict): + """ + Configuration for chat prompt template + """ + text: pulumi.Input[str] + """ + Configuration for chat prompt template + """ +elif False: + PromptSystemContentBlockPropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptSystemContentBlockPropertiesArgs: + def __init__(__self__, *, + text: pulumi.Input[str]): + """ + Configuration for chat prompt template + :param pulumi.Input[str] text: Configuration for chat prompt template + """ + pulumi.set(__self__, "text", text) + + @property + @pulumi.getter + def text(self) -> pulumi.Input[str]: + """ + Configuration for chat prompt template + """ + return pulumi.get(self, "text") + + @text.setter + def text(self, value: pulumi.Input[str]): + pulumi.set(self, "text", value) + + +if not MYPY: + class PromptTemplateConfiguration0PropertiesArgsDict(TypedDict): """ Prompt template configuration """ text: pulumi.Input['PromptTextPromptTemplateConfigurationArgsDict'] elif False: - PromptTemplateConfigurationPropertiesArgsDict: TypeAlias = Mapping[str, Any] + PromptTemplateConfiguration0PropertiesArgsDict: TypeAlias = Mapping[str, Any] @pulumi.input_type -class PromptTemplateConfigurationPropertiesArgs: +class PromptTemplateConfiguration0PropertiesArgs: def __init__(__self__, *, text: pulumi.Input['PromptTextPromptTemplateConfigurationArgs']): """ @@ -7693,6 +8079,34 @@ def text(self, value: pulumi.Input['PromptTextPromptTemplateConfigurationArgs']) pulumi.set(self, "text", value) +if not MYPY: + class PromptTemplateConfiguration1PropertiesArgsDict(TypedDict): + """ + Prompt template configuration + """ + chat: pulumi.Input['PromptChatPromptTemplateConfigurationArgsDict'] +elif False: + PromptTemplateConfiguration1PropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptTemplateConfiguration1PropertiesArgs: + def __init__(__self__, *, + chat: pulumi.Input['PromptChatPromptTemplateConfigurationArgs']): + """ + Prompt template configuration + """ + pulumi.set(__self__, "chat", chat) + + @property + @pulumi.getter + def chat(self) -> pulumi.Input['PromptChatPromptTemplateConfigurationArgs']: + return pulumi.get(self, "chat") + + @chat.setter + def chat(self, value: pulumi.Input['PromptChatPromptTemplateConfigurationArgs']): + pulumi.set(self, "chat", value) + + if not MYPY: class PromptTextPromptTemplateConfigurationArgsDict(TypedDict): """ @@ -7836,6 +8250,254 @@ def version(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "version", value) +if not MYPY: + class PromptToolChoice0PropertiesArgsDict(TypedDict): + """ + Tool choice + """ + auto: pulumi.Input['PromptAutoToolChoiceArgsDict'] +elif False: + PromptToolChoice0PropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolChoice0PropertiesArgs: + def __init__(__self__, *, + auto: pulumi.Input['PromptAutoToolChoiceArgs']): + """ + Tool choice + """ + pulumi.set(__self__, "auto", auto) + + @property + @pulumi.getter + def auto(self) -> pulumi.Input['PromptAutoToolChoiceArgs']: + return pulumi.get(self, "auto") + + @auto.setter + def auto(self, value: pulumi.Input['PromptAutoToolChoiceArgs']): + pulumi.set(self, "auto", value) + + +if not MYPY: + class PromptToolChoice1PropertiesArgsDict(TypedDict): + """ + Tool choice + """ + any: pulumi.Input['PromptAnyToolChoiceArgsDict'] +elif False: + PromptToolChoice1PropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolChoice1PropertiesArgs: + def __init__(__self__, *, + any: pulumi.Input['PromptAnyToolChoiceArgs']): + """ + Tool choice + """ + pulumi.set(__self__, "any", any) + + @property + @pulumi.getter + def any(self) -> pulumi.Input['PromptAnyToolChoiceArgs']: + return pulumi.get(self, "any") + + @any.setter + def any(self, value: pulumi.Input['PromptAnyToolChoiceArgs']): + pulumi.set(self, "any", value) + + +if not MYPY: + class PromptToolChoice2PropertiesArgsDict(TypedDict): + """ + Tool choice + """ + tool: pulumi.Input['PromptSpecificToolChoiceArgsDict'] +elif False: + PromptToolChoice2PropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolChoice2PropertiesArgs: + def __init__(__self__, *, + tool: pulumi.Input['PromptSpecificToolChoiceArgs']): + """ + Tool choice + """ + pulumi.set(__self__, "tool", tool) + + @property + @pulumi.getter + def tool(self) -> pulumi.Input['PromptSpecificToolChoiceArgs']: + return pulumi.get(self, "tool") + + @tool.setter + def tool(self, value: pulumi.Input['PromptSpecificToolChoiceArgs']): + pulumi.set(self, "tool", value) + + +if not MYPY: + class PromptToolConfigurationArgsDict(TypedDict): + """ + Tool configuration + """ + tools: pulumi.Input[Sequence[pulumi.Input['PromptToolPropertiesArgsDict']]] + """ + List of Tools + """ + tool_choice: NotRequired[pulumi.Input[Union['PromptToolChoice0PropertiesArgsDict', 'PromptToolChoice1PropertiesArgsDict', 'PromptToolChoice2PropertiesArgsDict']]] +elif False: + PromptToolConfigurationArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolConfigurationArgs: + def __init__(__self__, *, + tools: pulumi.Input[Sequence[pulumi.Input['PromptToolPropertiesArgs']]], + tool_choice: Optional[pulumi.Input[Union['PromptToolChoice0PropertiesArgs', 'PromptToolChoice1PropertiesArgs', 'PromptToolChoice2PropertiesArgs']]] = None): + """ + Tool configuration + :param pulumi.Input[Sequence[pulumi.Input['PromptToolPropertiesArgs']]] tools: List of Tools + """ + pulumi.set(__self__, "tools", tools) + if tool_choice is not None: + pulumi.set(__self__, "tool_choice", tool_choice) + + @property + @pulumi.getter + def tools(self) -> pulumi.Input[Sequence[pulumi.Input['PromptToolPropertiesArgs']]]: + """ + List of Tools + """ + return pulumi.get(self, "tools") + + @tools.setter + def tools(self, value: pulumi.Input[Sequence[pulumi.Input['PromptToolPropertiesArgs']]]): + pulumi.set(self, "tools", value) + + @property + @pulumi.getter(name="toolChoice") + def tool_choice(self) -> Optional[pulumi.Input[Union['PromptToolChoice0PropertiesArgs', 'PromptToolChoice1PropertiesArgs', 'PromptToolChoice2PropertiesArgs']]]: + return pulumi.get(self, "tool_choice") + + @tool_choice.setter + def tool_choice(self, value: Optional[pulumi.Input[Union['PromptToolChoice0PropertiesArgs', 'PromptToolChoice1PropertiesArgs', 'PromptToolChoice2PropertiesArgs']]]): + pulumi.set(self, "tool_choice", value) + + +if not MYPY: + class PromptToolInputSchemaPropertiesArgsDict(TypedDict): + """ + Tool input schema json + """ + json: Any +elif False: + PromptToolInputSchemaPropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolInputSchemaPropertiesArgs: + def __init__(__self__, *, + json: Any): + """ + Tool input schema json + """ + pulumi.set(__self__, "json", json) + + @property + @pulumi.getter + def json(self) -> Any: + return pulumi.get(self, "json") + + @json.setter + def json(self, value: Any): + pulumi.set(self, "json", value) + + +if not MYPY: + class PromptToolPropertiesArgsDict(TypedDict): + """ + Tool details + """ + tool_spec: pulumi.Input['PromptToolSpecificationArgsDict'] +elif False: + PromptToolPropertiesArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolPropertiesArgs: + def __init__(__self__, *, + tool_spec: pulumi.Input['PromptToolSpecificationArgs']): + """ + Tool details + """ + pulumi.set(__self__, "tool_spec", tool_spec) + + @property + @pulumi.getter(name="toolSpec") + def tool_spec(self) -> pulumi.Input['PromptToolSpecificationArgs']: + return pulumi.get(self, "tool_spec") + + @tool_spec.setter + def tool_spec(self, value: pulumi.Input['PromptToolSpecificationArgs']): + pulumi.set(self, "tool_spec", value) + + +if not MYPY: + class PromptToolSpecificationArgsDict(TypedDict): + """ + Tool specification + """ + input_schema: pulumi.Input['PromptToolInputSchemaPropertiesArgsDict'] + name: pulumi.Input[str] + """ + Tool name + """ + description: NotRequired[pulumi.Input[str]] +elif False: + PromptToolSpecificationArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class PromptToolSpecificationArgs: + def __init__(__self__, *, + input_schema: pulumi.Input['PromptToolInputSchemaPropertiesArgs'], + name: pulumi.Input[str], + description: Optional[pulumi.Input[str]] = None): + """ + Tool specification + :param pulumi.Input[str] name: Tool name + """ + pulumi.set(__self__, "input_schema", input_schema) + pulumi.set(__self__, "name", name) + if description is not None: + pulumi.set(__self__, "description", description) + + @property + @pulumi.getter(name="inputSchema") + def input_schema(self) -> pulumi.Input['PromptToolInputSchemaPropertiesArgs']: + return pulumi.get(self, "input_schema") + + @input_schema.setter + def input_schema(self, value: pulumi.Input['PromptToolInputSchemaPropertiesArgs']): + pulumi.set(self, "input_schema", value) + + @property + @pulumi.getter + def name(self) -> pulumi.Input[str]: + """ + Tool name + """ + return pulumi.get(self, "name") + + @name.setter + def name(self, value: pulumi.Input[str]): + pulumi.set(self, "name", value) + + @property + @pulumi.getter + def description(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "description") + + @description.setter + def description(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "description", value) + + if not MYPY: class PromptVariantArgsDict(TypedDict): """ @@ -7845,7 +8507,7 @@ class PromptVariantArgsDict(TypedDict): """ Name for a variant. """ - template_configuration: pulumi.Input['PromptTemplateConfigurationPropertiesArgsDict'] + template_configuration: pulumi.Input[Union['PromptTemplateConfiguration0PropertiesArgsDict', 'PromptTemplateConfiguration1PropertiesArgsDict']] """ Contains configurations for the prompt template. """ @@ -7853,6 +8515,7 @@ class PromptVariantArgsDict(TypedDict): """ The type of prompt template to use. """ + gen_ai_resource: NotRequired[pulumi.Input['PromptGenAiResourcePropertiesArgsDict']] inference_configuration: NotRequired[pulumi.Input['PromptInferenceConfigurationPropertiesArgsDict']] """ Contains inference configurations for the prompt variant. @@ -7868,14 +8531,15 @@ class PromptVariantArgsDict(TypedDict): class PromptVariantArgs: def __init__(__self__, *, name: pulumi.Input[str], - template_configuration: pulumi.Input['PromptTemplateConfigurationPropertiesArgs'], + template_configuration: pulumi.Input[Union['PromptTemplateConfiguration0PropertiesArgs', 'PromptTemplateConfiguration1PropertiesArgs']], template_type: pulumi.Input['PromptTemplateType'], + gen_ai_resource: Optional[pulumi.Input['PromptGenAiResourcePropertiesArgs']] = None, inference_configuration: Optional[pulumi.Input['PromptInferenceConfigurationPropertiesArgs']] = None, model_id: Optional[pulumi.Input[str]] = None): """ Prompt variant :param pulumi.Input[str] name: Name for a variant. - :param pulumi.Input['PromptTemplateConfigurationPropertiesArgs'] template_configuration: Contains configurations for the prompt template. + :param pulumi.Input[Union['PromptTemplateConfiguration0PropertiesArgs', 'PromptTemplateConfiguration1PropertiesArgs']] template_configuration: Contains configurations for the prompt template. :param pulumi.Input['PromptTemplateType'] template_type: The type of prompt template to use. :param pulumi.Input['PromptInferenceConfigurationPropertiesArgs'] inference_configuration: Contains inference configurations for the prompt variant. :param pulumi.Input[str] model_id: ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models. @@ -7883,6 +8547,8 @@ def __init__(__self__, *, pulumi.set(__self__, "name", name) pulumi.set(__self__, "template_configuration", template_configuration) pulumi.set(__self__, "template_type", template_type) + if gen_ai_resource is not None: + pulumi.set(__self__, "gen_ai_resource", gen_ai_resource) if inference_configuration is not None: pulumi.set(__self__, "inference_configuration", inference_configuration) if model_id is not None: @@ -7902,14 +8568,14 @@ def name(self, value: pulumi.Input[str]): @property @pulumi.getter(name="templateConfiguration") - def template_configuration(self) -> pulumi.Input['PromptTemplateConfigurationPropertiesArgs']: + def template_configuration(self) -> pulumi.Input[Union['PromptTemplateConfiguration0PropertiesArgs', 'PromptTemplateConfiguration1PropertiesArgs']]: """ Contains configurations for the prompt template. """ return pulumi.get(self, "template_configuration") @template_configuration.setter - def template_configuration(self, value: pulumi.Input['PromptTemplateConfigurationPropertiesArgs']): + def template_configuration(self, value: pulumi.Input[Union['PromptTemplateConfiguration0PropertiesArgs', 'PromptTemplateConfiguration1PropertiesArgs']]): pulumi.set(self, "template_configuration", value) @property @@ -7924,6 +8590,15 @@ def template_type(self) -> pulumi.Input['PromptTemplateType']: def template_type(self, value: pulumi.Input['PromptTemplateType']): pulumi.set(self, "template_type", value) + @property + @pulumi.getter(name="genAiResource") + def gen_ai_resource(self) -> Optional[pulumi.Input['PromptGenAiResourcePropertiesArgs']]: + return pulumi.get(self, "gen_ai_resource") + + @gen_ai_resource.setter + def gen_ai_resource(self, value: Optional[pulumi.Input['PromptGenAiResourcePropertiesArgs']]): + pulumi.set(self, "gen_ai_resource", value) + @property @pulumi.getter(name="inferenceConfiguration") def inference_configuration(self) -> Optional[pulumi.Input['PromptInferenceConfigurationPropertiesArgs']]: diff --git a/sdk/python/pulumi_aws_native/bedrock/outputs.py b/sdk/python/pulumi_aws_native/bedrock/outputs.py index 4bdc36a997..1411c790cc 100644 --- a/sdk/python/pulumi_aws_native/bedrock/outputs.py +++ b/sdk/python/pulumi_aws_native/bedrock/outputs.py @@ -195,12 +195,29 @@ 'KnowledgeBaseRdsFieldMapping', 'KnowledgeBaseStorageConfiguration', 'KnowledgeBaseVectorKnowledgeBaseConfiguration', + 'PromptAgentResource', + 'PromptAnyToolChoice', + 'PromptAutoToolChoice', + 'PromptChatPromptTemplateConfiguration', + 'PromptContentBlockProperties', + 'PromptGenAiResourceProperties', 'PromptInferenceConfigurationProperties', 'PromptInputVariable', + 'PromptMessage', 'PromptModelInferenceConfiguration', - 'PromptTemplateConfigurationProperties', + 'PromptSpecificToolChoice', + 'PromptSystemContentBlockProperties', + 'PromptTemplateConfiguration0Properties', + 'PromptTemplateConfiguration1Properties', 'PromptTextPromptTemplateConfiguration', 'PromptTextS3Location', + 'PromptToolChoice0Properties', + 'PromptToolChoice1Properties', + 'PromptToolChoice2Properties', + 'PromptToolConfiguration', + 'PromptToolInputSchemaProperties', + 'PromptToolProperties', + 'PromptToolSpecification', 'PromptVariant', 'PromptVersionPromptInferenceConfigurationProperties', 'PromptVersionPromptInputVariable', @@ -575,10 +592,28 @@ class AgentFunction(dict): """ Function definition """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "requireConfirmation": + suggest = "require_confirmation" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in AgentFunction. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + AgentFunction.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + AgentFunction.__key_warning(key) + return super().get(key, default) + def __init__(__self__, *, name: str, description: Optional[str] = None, - parameters: Optional[Mapping[str, 'outputs.AgentParameterDetail']] = None): + parameters: Optional[Mapping[str, 'outputs.AgentParameterDetail']] = None, + require_confirmation: Optional['AgentRequireConfirmation'] = None): """ Function definition :param str name: Name for a resource. @@ -590,6 +625,8 @@ def __init__(__self__, *, pulumi.set(__self__, "description", description) if parameters is not None: pulumi.set(__self__, "parameters", parameters) + if require_confirmation is not None: + pulumi.set(__self__, "require_confirmation", require_confirmation) @property @pulumi.getter @@ -615,6 +652,11 @@ def parameters(self) -> Optional[Mapping[str, 'outputs.AgentParameterDetail']]: """ return pulumi.get(self, "parameters") + @property + @pulumi.getter(name="requireConfirmation") + def require_confirmation(self) -> Optional['AgentRequireConfirmation']: + return pulumi.get(self, "require_confirmation") + @pulumi.output_type class AgentFunctionSchema(dict): @@ -7884,6 +7926,182 @@ def embedding_model_configuration(self) -> Optional['outputs.KnowledgeBaseEmbedd return pulumi.get(self, "embedding_model_configuration") +@pulumi.output_type +class PromptAgentResource(dict): + """ + Target Agent to invoke with Prompt + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "agentIdentifier": + suggest = "agent_identifier" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in PromptAgentResource. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + PromptAgentResource.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + PromptAgentResource.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + agent_identifier: str): + """ + Target Agent to invoke with Prompt + :param str agent_identifier: Arn representation of the Agent Alias. + """ + pulumi.set(__self__, "agent_identifier", agent_identifier) + + @property + @pulumi.getter(name="agentIdentifier") + def agent_identifier(self) -> str: + """ + Arn representation of the Agent Alias. + """ + return pulumi.get(self, "agent_identifier") + + +@pulumi.output_type +class PromptAnyToolChoice(dict): + """ + Any Tool choice + """ + def __init__(__self__): + """ + Any Tool choice + """ + pass + + +@pulumi.output_type +class PromptAutoToolChoice(dict): + """ + Auto Tool choice + """ + def __init__(__self__): + """ + Auto Tool choice + """ + pass + + +@pulumi.output_type +class PromptChatPromptTemplateConfiguration(dict): + """ + Configuration for chat prompt template + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "inputVariables": + suggest = "input_variables" + elif key == "toolConfiguration": + suggest = "tool_configuration" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in PromptChatPromptTemplateConfiguration. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + PromptChatPromptTemplateConfiguration.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + PromptChatPromptTemplateConfiguration.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + messages: Sequence['outputs.PromptMessage'], + input_variables: Optional[Sequence['outputs.PromptInputVariable']] = None, + system: Optional[Sequence['outputs.PromptSystemContentBlockProperties']] = None, + tool_configuration: Optional['outputs.PromptToolConfiguration'] = None): + """ + Configuration for chat prompt template + :param Sequence['PromptMessage'] messages: List of messages for chat prompt template + :param Sequence['PromptInputVariable'] input_variables: List of input variables + :param Sequence['PromptSystemContentBlockProperties'] system: Configuration for chat prompt template + """ + pulumi.set(__self__, "messages", messages) + if input_variables is not None: + pulumi.set(__self__, "input_variables", input_variables) + if system is not None: + pulumi.set(__self__, "system", system) + if tool_configuration is not None: + pulumi.set(__self__, "tool_configuration", tool_configuration) + + @property + @pulumi.getter + def messages(self) -> Sequence['outputs.PromptMessage']: + """ + List of messages for chat prompt template + """ + return pulumi.get(self, "messages") + + @property + @pulumi.getter(name="inputVariables") + def input_variables(self) -> Optional[Sequence['outputs.PromptInputVariable']]: + """ + List of input variables + """ + return pulumi.get(self, "input_variables") + + @property + @pulumi.getter + def system(self) -> Optional[Sequence['outputs.PromptSystemContentBlockProperties']]: + """ + Configuration for chat prompt template + """ + return pulumi.get(self, "system") + + @property + @pulumi.getter(name="toolConfiguration") + def tool_configuration(self) -> Optional['outputs.PromptToolConfiguration']: + return pulumi.get(self, "tool_configuration") + + +@pulumi.output_type +class PromptContentBlockProperties(dict): + """ + Configuration for chat prompt template + """ + def __init__(__self__, *, + text: str): + """ + Configuration for chat prompt template + :param str text: Configuration for chat prompt template + """ + pulumi.set(__self__, "text", text) + + @property + @pulumi.getter + def text(self) -> str: + """ + Configuration for chat prompt template + """ + return pulumi.get(self, "text") + + +@pulumi.output_type +class PromptGenAiResourceProperties(dict): + """ + Target resource to invoke with Prompt + """ + def __init__(__self__, *, + agent: 'outputs.PromptAgentResource'): + """ + Target resource to invoke with Prompt + """ + pulumi.set(__self__, "agent", agent) + + @property + @pulumi.getter + def agent(self) -> 'outputs.PromptAgentResource': + return pulumi.get(self, "agent") + + @pulumi.output_type class PromptInferenceConfigurationProperties(dict): """ @@ -7925,6 +8143,35 @@ def name(self) -> Optional[str]: return pulumi.get(self, "name") +@pulumi.output_type +class PromptMessage(dict): + """ + Chat prompt Message + """ + def __init__(__self__, *, + content: Sequence['outputs.PromptContentBlockProperties'], + role: 'PromptConversationRole'): + """ + Chat prompt Message + :param Sequence['PromptContentBlockProperties'] content: List of Content Blocks + """ + pulumi.set(__self__, "content", content) + pulumi.set(__self__, "role", role) + + @property + @pulumi.getter + def content(self) -> Sequence['outputs.PromptContentBlockProperties']: + """ + List of Content Blocks + """ + return pulumi.get(self, "content") + + @property + @pulumi.getter + def role(self) -> 'PromptConversationRole': + return pulumi.get(self, "role") + + @pulumi.output_type class PromptModelInferenceConfiguration(dict): """ @@ -8006,7 +8253,51 @@ def top_p(self) -> Optional[float]: @pulumi.output_type -class PromptTemplateConfigurationProperties(dict): +class PromptSpecificToolChoice(dict): + """ + Specific Tool choice + """ + def __init__(__self__, *, + name: str): + """ + Specific Tool choice + :param str name: Tool name + """ + pulumi.set(__self__, "name", name) + + @property + @pulumi.getter + def name(self) -> str: + """ + Tool name + """ + return pulumi.get(self, "name") + + +@pulumi.output_type +class PromptSystemContentBlockProperties(dict): + """ + Configuration for chat prompt template + """ + def __init__(__self__, *, + text: str): + """ + Configuration for chat prompt template + :param str text: Configuration for chat prompt template + """ + pulumi.set(__self__, "text", text) + + @property + @pulumi.getter + def text(self) -> str: + """ + Configuration for chat prompt template + """ + return pulumi.get(self, "text") + + +@pulumi.output_type +class PromptTemplateConfiguration0Properties(dict): """ Prompt template configuration """ @@ -8023,6 +8314,24 @@ def text(self) -> 'outputs.PromptTextPromptTemplateConfiguration': return pulumi.get(self, "text") +@pulumi.output_type +class PromptTemplateConfiguration1Properties(dict): + """ + Prompt template configuration + """ + def __init__(__self__, *, + chat: 'outputs.PromptChatPromptTemplateConfiguration'): + """ + Prompt template configuration + """ + pulumi.set(__self__, "chat", chat) + + @property + @pulumi.getter + def chat(self) -> 'outputs.PromptChatPromptTemplateConfiguration': + return pulumi.get(self, "chat") + + @pulumi.output_type class PromptTextPromptTemplateConfiguration(dict): """ @@ -8130,6 +8439,214 @@ def version(self) -> Optional[str]: return pulumi.get(self, "version") +@pulumi.output_type +class PromptToolChoice0Properties(dict): + """ + Tool choice + """ + def __init__(__self__, *, + auto: 'outputs.PromptAutoToolChoice'): + """ + Tool choice + """ + pulumi.set(__self__, "auto", auto) + + @property + @pulumi.getter + def auto(self) -> 'outputs.PromptAutoToolChoice': + return pulumi.get(self, "auto") + + +@pulumi.output_type +class PromptToolChoice1Properties(dict): + """ + Tool choice + """ + def __init__(__self__, *, + any: 'outputs.PromptAnyToolChoice'): + """ + Tool choice + """ + pulumi.set(__self__, "any", any) + + @property + @pulumi.getter + def any(self) -> 'outputs.PromptAnyToolChoice': + return pulumi.get(self, "any") + + +@pulumi.output_type +class PromptToolChoice2Properties(dict): + """ + Tool choice + """ + def __init__(__self__, *, + tool: 'outputs.PromptSpecificToolChoice'): + """ + Tool choice + """ + pulumi.set(__self__, "tool", tool) + + @property + @pulumi.getter + def tool(self) -> 'outputs.PromptSpecificToolChoice': + return pulumi.get(self, "tool") + + +@pulumi.output_type +class PromptToolConfiguration(dict): + """ + Tool configuration + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "toolChoice": + suggest = "tool_choice" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in PromptToolConfiguration. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + PromptToolConfiguration.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + PromptToolConfiguration.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + tools: Sequence['outputs.PromptToolProperties'], + tool_choice: Optional[Any] = None): + """ + Tool configuration + :param Sequence['PromptToolProperties'] tools: List of Tools + """ + pulumi.set(__self__, "tools", tools) + if tool_choice is not None: + pulumi.set(__self__, "tool_choice", tool_choice) + + @property + @pulumi.getter + def tools(self) -> Sequence['outputs.PromptToolProperties']: + """ + List of Tools + """ + return pulumi.get(self, "tools") + + @property + @pulumi.getter(name="toolChoice") + def tool_choice(self) -> Optional[Any]: + return pulumi.get(self, "tool_choice") + + +@pulumi.output_type +class PromptToolInputSchemaProperties(dict): + """ + Tool input schema json + """ + def __init__(__self__, *, + json: Any): + """ + Tool input schema json + """ + pulumi.set(__self__, "json", json) + + @property + @pulumi.getter + def json(self) -> Any: + return pulumi.get(self, "json") + + +@pulumi.output_type +class PromptToolProperties(dict): + """ + Tool details + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "toolSpec": + suggest = "tool_spec" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in PromptToolProperties. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + PromptToolProperties.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + PromptToolProperties.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + tool_spec: 'outputs.PromptToolSpecification'): + """ + Tool details + """ + pulumi.set(__self__, "tool_spec", tool_spec) + + @property + @pulumi.getter(name="toolSpec") + def tool_spec(self) -> 'outputs.PromptToolSpecification': + return pulumi.get(self, "tool_spec") + + +@pulumi.output_type +class PromptToolSpecification(dict): + """ + Tool specification + """ + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "inputSchema": + suggest = "input_schema" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in PromptToolSpecification. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + PromptToolSpecification.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + PromptToolSpecification.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + input_schema: 'outputs.PromptToolInputSchemaProperties', + name: str, + description: Optional[str] = None): + """ + Tool specification + :param str name: Tool name + """ + pulumi.set(__self__, "input_schema", input_schema) + pulumi.set(__self__, "name", name) + if description is not None: + pulumi.set(__self__, "description", description) + + @property + @pulumi.getter(name="inputSchema") + def input_schema(self) -> 'outputs.PromptToolInputSchemaProperties': + return pulumi.get(self, "input_schema") + + @property + @pulumi.getter + def name(self) -> str: + """ + Tool name + """ + return pulumi.get(self, "name") + + @property + @pulumi.getter + def description(self) -> Optional[str]: + return pulumi.get(self, "description") + + @pulumi.output_type class PromptVariant(dict): """ @@ -8142,6 +8659,8 @@ def __key_warning(key: str): suggest = "template_configuration" elif key == "templateType": suggest = "template_type" + elif key == "genAiResource": + suggest = "gen_ai_resource" elif key == "inferenceConfiguration": suggest = "inference_configuration" elif key == "modelId": @@ -8160,14 +8679,15 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, name: str, - template_configuration: 'outputs.PromptTemplateConfigurationProperties', + template_configuration: Any, template_type: 'PromptTemplateType', + gen_ai_resource: Optional['outputs.PromptGenAiResourceProperties'] = None, inference_configuration: Optional['outputs.PromptInferenceConfigurationProperties'] = None, model_id: Optional[str] = None): """ Prompt variant :param str name: Name for a variant. - :param 'PromptTemplateConfigurationProperties' template_configuration: Contains configurations for the prompt template. + :param Union['PromptTemplateConfiguration0Properties', 'PromptTemplateConfiguration1Properties'] template_configuration: Contains configurations for the prompt template. :param 'PromptTemplateType' template_type: The type of prompt template to use. :param 'PromptInferenceConfigurationProperties' inference_configuration: Contains inference configurations for the prompt variant. :param str model_id: ARN or Id of a Bedrock Foundational Model or Inference Profile, or the ARN of a imported model, or a provisioned throughput ARN for custom models. @@ -8175,6 +8695,8 @@ def __init__(__self__, *, pulumi.set(__self__, "name", name) pulumi.set(__self__, "template_configuration", template_configuration) pulumi.set(__self__, "template_type", template_type) + if gen_ai_resource is not None: + pulumi.set(__self__, "gen_ai_resource", gen_ai_resource) if inference_configuration is not None: pulumi.set(__self__, "inference_configuration", inference_configuration) if model_id is not None: @@ -8190,7 +8712,7 @@ def name(self) -> str: @property @pulumi.getter(name="templateConfiguration") - def template_configuration(self) -> 'outputs.PromptTemplateConfigurationProperties': + def template_configuration(self) -> Any: """ Contains configurations for the prompt template. """ @@ -8204,6 +8726,11 @@ def template_type(self) -> 'PromptTemplateType': """ return pulumi.get(self, "template_type") + @property + @pulumi.getter(name="genAiResource") + def gen_ai_resource(self) -> Optional['outputs.PromptGenAiResourceProperties']: + return pulumi.get(self, "gen_ai_resource") + @property @pulumi.getter(name="inferenceConfiguration") def inference_configuration(self) -> Optional['outputs.PromptInferenceConfigurationProperties']: diff --git a/sdk/python/pulumi_aws_native/logs/_enums.py b/sdk/python/pulumi_aws_native/logs/_enums.py index 3291d1161a..3f75e35a9c 100644 --- a/sdk/python/pulumi_aws_native/logs/_enums.py +++ b/sdk/python/pulumi_aws_native/logs/_enums.py @@ -25,6 +25,8 @@ class AccountPolicyPolicyType(str, Enum): """ DATA_PROTECTION_POLICY = "DATA_PROTECTION_POLICY" SUBSCRIPTION_FILTER_POLICY = "SUBSCRIPTION_FILTER_POLICY" + FIELD_INDEX_POLICY = "FIELD_INDEX_POLICY" + TRANSFORMER_POLICY = "TRANSFORMER_POLICY" class AccountPolicyScope(str, Enum): diff --git a/sdk/python/pulumi_aws_native/opensearchservice/_enums.py b/sdk/python/pulumi_aws_native/opensearchservice/_enums.py index eac0b67d80..ca8acb2b52 100644 --- a/sdk/python/pulumi_aws_native/opensearchservice/_enums.py +++ b/sdk/python/pulumi_aws_native/opensearchservice/_enums.py @@ -6,6 +6,7 @@ __all__ = [ 'ApplicationAppConfigType', + 'DomainNodeOptionNodeType', 'DomainRolesKeyIdcType', 'DomainSubjectKeyIdcType', ] @@ -19,6 +20,10 @@ class ApplicationAppConfigType(str, Enum): OPENSEARCH_DASHBOARDS_DASHBOARD_ADMIN_GROUPS = "opensearchDashboards.dashboardAdmin.groups" +class DomainNodeOptionNodeType(str, Enum): + COORDINATOR = "coordinator" + + class DomainRolesKeyIdcType(str, Enum): """ Roles Key Idc type values. diff --git a/sdk/python/pulumi_aws_native/opensearchservice/_inputs.py b/sdk/python/pulumi_aws_native/opensearchservice/_inputs.py index 48fcd269c4..1c6a44f307 100644 --- a/sdk/python/pulumi_aws_native/opensearchservice/_inputs.py +++ b/sdk/python/pulumi_aws_native/opensearchservice/_inputs.py @@ -44,6 +44,10 @@ 'DomainLogPublishingOptionArgsDict', 'DomainMasterUserOptionsArgs', 'DomainMasterUserOptionsArgsDict', + 'DomainNodeConfigArgs', + 'DomainNodeConfigArgsDict', + 'DomainNodeOptionArgs', + 'DomainNodeOptionArgsDict', 'DomainNodeToNodeEncryptionOptionsArgs', 'DomainNodeToNodeEncryptionOptionsArgsDict', 'DomainOffPeakWindowOptionsArgs', @@ -359,6 +363,7 @@ class DomainClusterConfigArgsDict(TypedDict): """ Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see [Multi-AZ with Standby](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html#managedomains-za-standby) . """ + node_options: NotRequired[pulumi.Input[Sequence[pulumi.Input['DomainNodeOptionArgsDict']]]] warm_count: NotRequired[pulumi.Input[int]] """ The number of warm nodes in the cluster. @@ -392,6 +397,7 @@ def __init__(__self__, *, instance_count: Optional[pulumi.Input[int]] = None, instance_type: Optional[pulumi.Input[str]] = None, multi_az_with_standby_enabled: Optional[pulumi.Input[bool]] = None, + node_options: Optional[pulumi.Input[Sequence[pulumi.Input['DomainNodeOptionArgs']]]] = None, warm_count: Optional[pulumi.Input[int]] = None, warm_enabled: Optional[pulumi.Input[bool]] = None, warm_type: Optional[pulumi.Input[str]] = None, @@ -425,6 +431,8 @@ def __init__(__self__, *, pulumi.set(__self__, "instance_type", instance_type) if multi_az_with_standby_enabled is not None: pulumi.set(__self__, "multi_az_with_standby_enabled", multi_az_with_standby_enabled) + if node_options is not None: + pulumi.set(__self__, "node_options", node_options) if warm_count is not None: pulumi.set(__self__, "warm_count", warm_count) if warm_enabled is not None: @@ -520,6 +528,15 @@ def multi_az_with_standby_enabled(self) -> Optional[pulumi.Input[bool]]: def multi_az_with_standby_enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "multi_az_with_standby_enabled", value) + @property + @pulumi.getter(name="nodeOptions") + def node_options(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DomainNodeOptionArgs']]]]: + return pulumi.get(self, "node_options") + + @node_options.setter + def node_options(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DomainNodeOptionArgs']]]]): + pulumi.set(self, "node_options", value) + @property @pulumi.getter(name="warmCount") def warm_count(self) -> Optional[pulumi.Input[int]]: @@ -1397,6 +1414,91 @@ def master_user_password(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "master_user_password", value) +if not MYPY: + class DomainNodeConfigArgsDict(TypedDict): + count: NotRequired[pulumi.Input[int]] + enabled: NotRequired[pulumi.Input[bool]] + type: NotRequired[pulumi.Input[str]] +elif False: + DomainNodeConfigArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class DomainNodeConfigArgs: + def __init__(__self__, *, + count: Optional[pulumi.Input[int]] = None, + enabled: Optional[pulumi.Input[bool]] = None, + type: Optional[pulumi.Input[str]] = None): + if count is not None: + pulumi.set(__self__, "count", count) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def count(self) -> Optional[pulumi.Input[int]]: + return pulumi.get(self, "count") + + @count.setter + def count(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "count", value) + + @property + @pulumi.getter + def enabled(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "enabled") + + @enabled.setter + def enabled(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "enabled", value) + + @property + @pulumi.getter + def type(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "type") + + @type.setter + def type(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "type", value) + + +if not MYPY: + class DomainNodeOptionArgsDict(TypedDict): + node_config: NotRequired[pulumi.Input['DomainNodeConfigArgsDict']] + node_type: NotRequired[pulumi.Input['DomainNodeOptionNodeType']] +elif False: + DomainNodeOptionArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class DomainNodeOptionArgs: + def __init__(__self__, *, + node_config: Optional[pulumi.Input['DomainNodeConfigArgs']] = None, + node_type: Optional[pulumi.Input['DomainNodeOptionNodeType']] = None): + if node_config is not None: + pulumi.set(__self__, "node_config", node_config) + if node_type is not None: + pulumi.set(__self__, "node_type", node_type) + + @property + @pulumi.getter(name="nodeConfig") + def node_config(self) -> Optional[pulumi.Input['DomainNodeConfigArgs']]: + return pulumi.get(self, "node_config") + + @node_config.setter + def node_config(self, value: Optional[pulumi.Input['DomainNodeConfigArgs']]): + pulumi.set(self, "node_config", value) + + @property + @pulumi.getter(name="nodeType") + def node_type(self) -> Optional[pulumi.Input['DomainNodeOptionNodeType']]: + return pulumi.get(self, "node_type") + + @node_type.setter + def node_type(self, value: Optional[pulumi.Input['DomainNodeOptionNodeType']]): + pulumi.set(self, "node_type", value) + + if not MYPY: class DomainNodeToNodeEncryptionOptionsArgsDict(TypedDict): enabled: NotRequired[pulumi.Input[bool]] diff --git a/sdk/python/pulumi_aws_native/opensearchservice/outputs.py b/sdk/python/pulumi_aws_native/opensearchservice/outputs.py index 564f674e18..a4d2dbb91e 100644 --- a/sdk/python/pulumi_aws_native/opensearchservice/outputs.py +++ b/sdk/python/pulumi_aws_native/opensearchservice/outputs.py @@ -31,6 +31,8 @@ 'DomainJwtOptions', 'DomainLogPublishingOption', 'DomainMasterUserOptions', + 'DomainNodeConfig', + 'DomainNodeOption', 'DomainNodeToNodeEncryptionOptions', 'DomainOffPeakWindow', 'DomainOffPeakWindowOptions', @@ -267,6 +269,8 @@ def __key_warning(key: str): suggest = "instance_type" elif key == "multiAzWithStandbyEnabled": suggest = "multi_az_with_standby_enabled" + elif key == "nodeOptions": + suggest = "node_options" elif key == "warmCount": suggest = "warm_count" elif key == "warmEnabled": @@ -297,6 +301,7 @@ def __init__(__self__, *, instance_count: Optional[int] = None, instance_type: Optional[str] = None, multi_az_with_standby_enabled: Optional[bool] = None, + node_options: Optional[Sequence['outputs.DomainNodeOption']] = None, warm_count: Optional[int] = None, warm_enabled: Optional[bool] = None, warm_type: Optional[str] = None, @@ -330,6 +335,8 @@ def __init__(__self__, *, pulumi.set(__self__, "instance_type", instance_type) if multi_az_with_standby_enabled is not None: pulumi.set(__self__, "multi_az_with_standby_enabled", multi_az_with_standby_enabled) + if node_options is not None: + pulumi.set(__self__, "node_options", node_options) if warm_count is not None: pulumi.set(__self__, "warm_count", warm_count) if warm_enabled is not None: @@ -397,6 +404,11 @@ def multi_az_with_standby_enabled(self) -> Optional[bool]: """ return pulumi.get(self, "multi_az_with_standby_enabled") + @property + @pulumi.getter(name="nodeOptions") + def node_options(self) -> Optional[Sequence['outputs.DomainNodeOption']]: + return pulumi.get(self, "node_options") + @property @pulumi.getter(name="warmCount") def warm_count(self) -> Optional[int]: @@ -1119,6 +1131,75 @@ def master_user_password(self) -> Optional[str]: return pulumi.get(self, "master_user_password") +@pulumi.output_type +class DomainNodeConfig(dict): + def __init__(__self__, *, + count: Optional[int] = None, + enabled: Optional[bool] = None, + type: Optional[str] = None): + if count is not None: + pulumi.set(__self__, "count", count) + if enabled is not None: + pulumi.set(__self__, "enabled", enabled) + if type is not None: + pulumi.set(__self__, "type", type) + + @property + @pulumi.getter + def count(self) -> Optional[int]: + return pulumi.get(self, "count") + + @property + @pulumi.getter + def enabled(self) -> Optional[bool]: + return pulumi.get(self, "enabled") + + @property + @pulumi.getter + def type(self) -> Optional[str]: + return pulumi.get(self, "type") + + +@pulumi.output_type +class DomainNodeOption(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "nodeConfig": + suggest = "node_config" + elif key == "nodeType": + suggest = "node_type" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in DomainNodeOption. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + DomainNodeOption.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + DomainNodeOption.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + node_config: Optional['outputs.DomainNodeConfig'] = None, + node_type: Optional['DomainNodeOptionNodeType'] = None): + if node_config is not None: + pulumi.set(__self__, "node_config", node_config) + if node_type is not None: + pulumi.set(__self__, "node_type", node_type) + + @property + @pulumi.getter(name="nodeConfig") + def node_config(self) -> Optional['outputs.DomainNodeConfig']: + return pulumi.get(self, "node_config") + + @property + @pulumi.getter(name="nodeType") + def node_type(self) -> Optional['DomainNodeOptionNodeType']: + return pulumi.get(self, "node_type") + + @pulumi.output_type class DomainNodeToNodeEncryptionOptions(dict): def __init__(__self__, *, diff --git a/sdk/python/pulumi_aws_native/sagemaker/_inputs.py b/sdk/python/pulumi_aws_native/sagemaker/_inputs.py index 822ff5d930..5363715b30 100644 --- a/sdk/python/pulumi_aws_native/sagemaker/_inputs.py +++ b/sdk/python/pulumi_aws_native/sagemaker/_inputs.py @@ -106,6 +106,8 @@ 'DomainDockerSettingsArgsDict', 'DomainEfsFileSystemConfigArgs', 'DomainEfsFileSystemConfigArgsDict', + 'DomainFSxLustreFileSystemConfigArgs', + 'DomainFSxLustreFileSystemConfigArgsDict', 'DomainIdleSettingsArgs', 'DomainIdleSettingsArgsDict', 'DomainJupyterLabAppSettingsArgs', @@ -496,6 +498,8 @@ 'SpaceEbsStorageSettingsArgsDict', 'SpaceEfsFileSystemArgs', 'SpaceEfsFileSystemArgsDict', + 'SpaceFSxLustreFileSystemArgs', + 'SpaceFSxLustreFileSystemArgsDict', 'SpaceIdleSettingsArgs', 'SpaceIdleSettingsArgsDict', 'SpaceJupyterLabAppSettingsArgs', @@ -532,6 +536,8 @@ 'UserProfileDefaultSpaceStorageSettingsArgsDict', 'UserProfileEfsFileSystemConfigArgs', 'UserProfileEfsFileSystemConfigArgsDict', + 'UserProfileFSxLustreFileSystemConfigArgs', + 'UserProfileFSxLustreFileSystemConfigArgsDict', 'UserProfileIdleSettingsArgs', 'UserProfileIdleSettingsArgsDict', 'UserProfileJupyterLabAppSettingsArgs', @@ -2845,18 +2851,22 @@ class DomainCustomFileSystemConfigArgsDict(TypedDict): """ The settings for a custom Amazon EFS file system. """ + f_sx_lustre_file_system_config: NotRequired[pulumi.Input['DomainFSxLustreFileSystemConfigArgsDict']] elif False: DomainCustomFileSystemConfigArgsDict: TypeAlias = Mapping[str, Any] @pulumi.input_type class DomainCustomFileSystemConfigArgs: def __init__(__self__, *, - efs_file_system_config: Optional[pulumi.Input['DomainEfsFileSystemConfigArgs']] = None): + efs_file_system_config: Optional[pulumi.Input['DomainEfsFileSystemConfigArgs']] = None, + f_sx_lustre_file_system_config: Optional[pulumi.Input['DomainFSxLustreFileSystemConfigArgs']] = None): """ :param pulumi.Input['DomainEfsFileSystemConfigArgs'] efs_file_system_config: The settings for a custom Amazon EFS file system. """ if efs_file_system_config is not None: pulumi.set(__self__, "efs_file_system_config", efs_file_system_config) + if f_sx_lustre_file_system_config is not None: + pulumi.set(__self__, "f_sx_lustre_file_system_config", f_sx_lustre_file_system_config) @property @pulumi.getter(name="efsFileSystemConfig") @@ -2870,6 +2880,15 @@ def efs_file_system_config(self) -> Optional[pulumi.Input['DomainEfsFileSystemCo def efs_file_system_config(self, value: Optional[pulumi.Input['DomainEfsFileSystemConfigArgs']]): pulumi.set(self, "efs_file_system_config", value) + @property + @pulumi.getter(name="fSxLustreFileSystemConfig") + def f_sx_lustre_file_system_config(self) -> Optional[pulumi.Input['DomainFSxLustreFileSystemConfigArgs']]: + return pulumi.get(self, "f_sx_lustre_file_system_config") + + @f_sx_lustre_file_system_config.setter + def f_sx_lustre_file_system_config(self, value: Optional[pulumi.Input['DomainFSxLustreFileSystemConfigArgs']]): + pulumi.set(self, "f_sx_lustre_file_system_config", value) + if not MYPY: class DomainCustomImageArgsDict(TypedDict): @@ -3367,6 +3386,41 @@ def file_system_path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "file_system_path", value) +if not MYPY: + class DomainFSxLustreFileSystemConfigArgsDict(TypedDict): + file_system_id: pulumi.Input[str] + file_system_path: NotRequired[pulumi.Input[str]] +elif False: + DomainFSxLustreFileSystemConfigArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class DomainFSxLustreFileSystemConfigArgs: + def __init__(__self__, *, + file_system_id: pulumi.Input[str], + file_system_path: Optional[pulumi.Input[str]] = None): + pulumi.set(__self__, "file_system_id", file_system_id) + if file_system_path is not None: + pulumi.set(__self__, "file_system_path", file_system_path) + + @property + @pulumi.getter(name="fileSystemId") + def file_system_id(self) -> pulumi.Input[str]: + return pulumi.get(self, "file_system_id") + + @file_system_id.setter + def file_system_id(self, value: pulumi.Input[str]): + pulumi.set(self, "file_system_id", value) + + @property + @pulumi.getter(name="fileSystemPath") + def file_system_path(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "file_system_path") + + @file_system_path.setter + def file_system_path(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "file_system_path", value) + + if not MYPY: class DomainIdleSettingsArgsDict(TypedDict): idle_timeout_in_minutes: NotRequired[pulumi.Input[int]] @@ -17401,15 +17455,19 @@ def repository_url(self, value: pulumi.Input[str]): if not MYPY: class SpaceCustomFileSystemArgsDict(TypedDict): efs_file_system: NotRequired[pulumi.Input['SpaceEfsFileSystemArgsDict']] + f_sx_lustre_file_system: NotRequired[pulumi.Input['SpaceFSxLustreFileSystemArgsDict']] elif False: SpaceCustomFileSystemArgsDict: TypeAlias = Mapping[str, Any] @pulumi.input_type class SpaceCustomFileSystemArgs: def __init__(__self__, *, - efs_file_system: Optional[pulumi.Input['SpaceEfsFileSystemArgs']] = None): + efs_file_system: Optional[pulumi.Input['SpaceEfsFileSystemArgs']] = None, + f_sx_lustre_file_system: Optional[pulumi.Input['SpaceFSxLustreFileSystemArgs']] = None): if efs_file_system is not None: pulumi.set(__self__, "efs_file_system", efs_file_system) + if f_sx_lustre_file_system is not None: + pulumi.set(__self__, "f_sx_lustre_file_system", f_sx_lustre_file_system) @property @pulumi.getter(name="efsFileSystem") @@ -17420,6 +17478,15 @@ def efs_file_system(self) -> Optional[pulumi.Input['SpaceEfsFileSystemArgs']]: def efs_file_system(self, value: Optional[pulumi.Input['SpaceEfsFileSystemArgs']]): pulumi.set(self, "efs_file_system", value) + @property + @pulumi.getter(name="fSxLustreFileSystem") + def f_sx_lustre_file_system(self) -> Optional[pulumi.Input['SpaceFSxLustreFileSystemArgs']]: + return pulumi.get(self, "f_sx_lustre_file_system") + + @f_sx_lustre_file_system.setter + def f_sx_lustre_file_system(self, value: Optional[pulumi.Input['SpaceFSxLustreFileSystemArgs']]): + pulumi.set(self, "f_sx_lustre_file_system", value) + if not MYPY: class SpaceCustomImageArgsDict(TypedDict): @@ -17552,6 +17619,28 @@ def file_system_id(self, value: pulumi.Input[str]): pulumi.set(self, "file_system_id", value) +if not MYPY: + class SpaceFSxLustreFileSystemArgsDict(TypedDict): + file_system_id: pulumi.Input[str] +elif False: + SpaceFSxLustreFileSystemArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class SpaceFSxLustreFileSystemArgs: + def __init__(__self__, *, + file_system_id: pulumi.Input[str]): + pulumi.set(__self__, "file_system_id", file_system_id) + + @property + @pulumi.getter(name="fileSystemId") + def file_system_id(self) -> pulumi.Input[str]: + return pulumi.get(self, "file_system_id") + + @file_system_id.setter + def file_system_id(self, value: pulumi.Input[str]): + pulumi.set(self, "file_system_id", value) + + if not MYPY: class SpaceIdleSettingsArgsDict(TypedDict): idle_timeout_in_minutes: NotRequired[pulumi.Input[int]] @@ -18299,18 +18388,22 @@ class UserProfileCustomFileSystemConfigArgsDict(TypedDict): """ The settings for a custom Amazon EFS file system. """ + f_sx_lustre_file_system_config: NotRequired[pulumi.Input['UserProfileFSxLustreFileSystemConfigArgsDict']] elif False: UserProfileCustomFileSystemConfigArgsDict: TypeAlias = Mapping[str, Any] @pulumi.input_type class UserProfileCustomFileSystemConfigArgs: def __init__(__self__, *, - efs_file_system_config: Optional[pulumi.Input['UserProfileEfsFileSystemConfigArgs']] = None): + efs_file_system_config: Optional[pulumi.Input['UserProfileEfsFileSystemConfigArgs']] = None, + f_sx_lustre_file_system_config: Optional[pulumi.Input['UserProfileFSxLustreFileSystemConfigArgs']] = None): """ :param pulumi.Input['UserProfileEfsFileSystemConfigArgs'] efs_file_system_config: The settings for a custom Amazon EFS file system. """ if efs_file_system_config is not None: pulumi.set(__self__, "efs_file_system_config", efs_file_system_config) + if f_sx_lustre_file_system_config is not None: + pulumi.set(__self__, "f_sx_lustre_file_system_config", f_sx_lustre_file_system_config) @property @pulumi.getter(name="efsFileSystemConfig") @@ -18324,6 +18417,15 @@ def efs_file_system_config(self) -> Optional[pulumi.Input['UserProfileEfsFileSys def efs_file_system_config(self, value: Optional[pulumi.Input['UserProfileEfsFileSystemConfigArgs']]): pulumi.set(self, "efs_file_system_config", value) + @property + @pulumi.getter(name="fSxLustreFileSystemConfig") + def f_sx_lustre_file_system_config(self) -> Optional[pulumi.Input['UserProfileFSxLustreFileSystemConfigArgs']]: + return pulumi.get(self, "f_sx_lustre_file_system_config") + + @f_sx_lustre_file_system_config.setter + def f_sx_lustre_file_system_config(self, value: Optional[pulumi.Input['UserProfileFSxLustreFileSystemConfigArgs']]): + pulumi.set(self, "f_sx_lustre_file_system_config", value) + if not MYPY: class UserProfileCustomImageArgsDict(TypedDict): @@ -18590,6 +18692,41 @@ def file_system_path(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "file_system_path", value) +if not MYPY: + class UserProfileFSxLustreFileSystemConfigArgsDict(TypedDict): + file_system_id: pulumi.Input[str] + file_system_path: NotRequired[pulumi.Input[str]] +elif False: + UserProfileFSxLustreFileSystemConfigArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class UserProfileFSxLustreFileSystemConfigArgs: + def __init__(__self__, *, + file_system_id: pulumi.Input[str], + file_system_path: Optional[pulumi.Input[str]] = None): + pulumi.set(__self__, "file_system_id", file_system_id) + if file_system_path is not None: + pulumi.set(__self__, "file_system_path", file_system_path) + + @property + @pulumi.getter(name="fileSystemId") + def file_system_id(self) -> pulumi.Input[str]: + return pulumi.get(self, "file_system_id") + + @file_system_id.setter + def file_system_id(self, value: pulumi.Input[str]): + pulumi.set(self, "file_system_id", value) + + @property + @pulumi.getter(name="fileSystemPath") + def file_system_path(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "file_system_path") + + @file_system_path.setter + def file_system_path(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "file_system_path", value) + + if not MYPY: class UserProfileIdleSettingsArgsDict(TypedDict): idle_timeout_in_minutes: NotRequired[pulumi.Input[int]] diff --git a/sdk/python/pulumi_aws_native/sagemaker/outputs.py b/sdk/python/pulumi_aws_native/sagemaker/outputs.py index 83c1c609f5..27e7049264 100644 --- a/sdk/python/pulumi_aws_native/sagemaker/outputs.py +++ b/sdk/python/pulumi_aws_native/sagemaker/outputs.py @@ -62,6 +62,7 @@ 'DomainDefaultSpaceStorageSettings', 'DomainDockerSettings', 'DomainEfsFileSystemConfig', + 'DomainFSxLustreFileSystemConfig', 'DomainIdleSettings', 'DomainJupyterLabAppSettings', 'DomainJupyterServerAppSettings', @@ -258,6 +259,7 @@ 'SpaceCustomImage', 'SpaceEbsStorageSettings', 'SpaceEfsFileSystem', + 'SpaceFSxLustreFileSystem', 'SpaceIdleSettings', 'SpaceJupyterLabAppSettings', 'SpaceJupyterServerAppSettings', @@ -276,6 +278,7 @@ 'UserProfileDefaultEbsStorageSettings', 'UserProfileDefaultSpaceStorageSettings', 'UserProfileEfsFileSystemConfig', + 'UserProfileFSxLustreFileSystemConfig', 'UserProfileIdleSettings', 'UserProfileJupyterLabAppSettings', 'UserProfileJupyterServerAppSettings', @@ -2316,6 +2319,8 @@ def __key_warning(key: str): suggest = None if key == "efsFileSystemConfig": suggest = "efs_file_system_config" + elif key == "fSxLustreFileSystemConfig": + suggest = "f_sx_lustre_file_system_config" if suggest: pulumi.log.warn(f"Key '{key}' not found in DomainCustomFileSystemConfig. Access the value via the '{suggest}' property getter instead.") @@ -2329,12 +2334,15 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - efs_file_system_config: Optional['outputs.DomainEfsFileSystemConfig'] = None): + efs_file_system_config: Optional['outputs.DomainEfsFileSystemConfig'] = None, + f_sx_lustre_file_system_config: Optional['outputs.DomainFSxLustreFileSystemConfig'] = None): """ :param 'DomainEfsFileSystemConfig' efs_file_system_config: The settings for a custom Amazon EFS file system. """ if efs_file_system_config is not None: pulumi.set(__self__, "efs_file_system_config", efs_file_system_config) + if f_sx_lustre_file_system_config is not None: + pulumi.set(__self__, "f_sx_lustre_file_system_config", f_sx_lustre_file_system_config) @property @pulumi.getter(name="efsFileSystemConfig") @@ -2344,6 +2352,11 @@ def efs_file_system_config(self) -> Optional['outputs.DomainEfsFileSystemConfig' """ return pulumi.get(self, "efs_file_system_config") + @property + @pulumi.getter(name="fSxLustreFileSystemConfig") + def f_sx_lustre_file_system_config(self) -> Optional['outputs.DomainFSxLustreFileSystemConfig']: + return pulumi.get(self, "f_sx_lustre_file_system_config") + @pulumi.output_type class DomainCustomImage(dict): @@ -2772,6 +2785,45 @@ def file_system_path(self) -> Optional[str]: return pulumi.get(self, "file_system_path") +@pulumi.output_type +class DomainFSxLustreFileSystemConfig(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "fileSystemId": + suggest = "file_system_id" + elif key == "fileSystemPath": + suggest = "file_system_path" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in DomainFSxLustreFileSystemConfig. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + DomainFSxLustreFileSystemConfig.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + DomainFSxLustreFileSystemConfig.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + file_system_id: str, + file_system_path: Optional[str] = None): + pulumi.set(__self__, "file_system_id", file_system_id) + if file_system_path is not None: + pulumi.set(__self__, "file_system_path", file_system_path) + + @property + @pulumi.getter(name="fileSystemId") + def file_system_id(self) -> str: + return pulumi.get(self, "file_system_id") + + @property + @pulumi.getter(name="fileSystemPath") + def file_system_path(self) -> Optional[str]: + return pulumi.get(self, "file_system_path") + + @pulumi.output_type class DomainIdleSettings(dict): @staticmethod @@ -14819,6 +14871,8 @@ def __key_warning(key: str): suggest = None if key == "efsFileSystem": suggest = "efs_file_system" + elif key == "fSxLustreFileSystem": + suggest = "f_sx_lustre_file_system" if suggest: pulumi.log.warn(f"Key '{key}' not found in SpaceCustomFileSystem. Access the value via the '{suggest}' property getter instead.") @@ -14832,15 +14886,23 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - efs_file_system: Optional['outputs.SpaceEfsFileSystem'] = None): + efs_file_system: Optional['outputs.SpaceEfsFileSystem'] = None, + f_sx_lustre_file_system: Optional['outputs.SpaceFSxLustreFileSystem'] = None): if efs_file_system is not None: pulumi.set(__self__, "efs_file_system", efs_file_system) + if f_sx_lustre_file_system is not None: + pulumi.set(__self__, "f_sx_lustre_file_system", f_sx_lustre_file_system) @property @pulumi.getter(name="efsFileSystem") def efs_file_system(self) -> Optional['outputs.SpaceEfsFileSystem']: return pulumi.get(self, "efs_file_system") + @property + @pulumi.getter(name="fSxLustreFileSystem") + def f_sx_lustre_file_system(self) -> Optional['outputs.SpaceFSxLustreFileSystem']: + return pulumi.get(self, "f_sx_lustre_file_system") + @pulumi.output_type class SpaceCustomImage(dict): @@ -14976,6 +15038,35 @@ def file_system_id(self) -> str: return pulumi.get(self, "file_system_id") +@pulumi.output_type +class SpaceFSxLustreFileSystem(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "fileSystemId": + suggest = "file_system_id" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in SpaceFSxLustreFileSystem. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + SpaceFSxLustreFileSystem.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + SpaceFSxLustreFileSystem.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + file_system_id: str): + pulumi.set(__self__, "file_system_id", file_system_id) + + @property + @pulumi.getter(name="fileSystemId") + def file_system_id(self) -> str: + return pulumi.get(self, "file_system_id") + + @pulumi.output_type class SpaceIdleSettings(dict): @staticmethod @@ -15670,6 +15761,8 @@ def __key_warning(key: str): suggest = None if key == "efsFileSystemConfig": suggest = "efs_file_system_config" + elif key == "fSxLustreFileSystemConfig": + suggest = "f_sx_lustre_file_system_config" if suggest: pulumi.log.warn(f"Key '{key}' not found in UserProfileCustomFileSystemConfig. Access the value via the '{suggest}' property getter instead.") @@ -15683,12 +15776,15 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - efs_file_system_config: Optional['outputs.UserProfileEfsFileSystemConfig'] = None): + efs_file_system_config: Optional['outputs.UserProfileEfsFileSystemConfig'] = None, + f_sx_lustre_file_system_config: Optional['outputs.UserProfileFSxLustreFileSystemConfig'] = None): """ :param 'UserProfileEfsFileSystemConfig' efs_file_system_config: The settings for a custom Amazon EFS file system. """ if efs_file_system_config is not None: pulumi.set(__self__, "efs_file_system_config", efs_file_system_config) + if f_sx_lustre_file_system_config is not None: + pulumi.set(__self__, "f_sx_lustre_file_system_config", f_sx_lustre_file_system_config) @property @pulumi.getter(name="efsFileSystemConfig") @@ -15698,6 +15794,11 @@ def efs_file_system_config(self) -> Optional['outputs.UserProfileEfsFileSystemCo """ return pulumi.get(self, "efs_file_system_config") + @property + @pulumi.getter(name="fSxLustreFileSystemConfig") + def f_sx_lustre_file_system_config(self) -> Optional['outputs.UserProfileFSxLustreFileSystemConfig']: + return pulumi.get(self, "f_sx_lustre_file_system_config") + @pulumi.output_type class UserProfileCustomImage(dict): @@ -15935,6 +16036,45 @@ def file_system_path(self) -> Optional[str]: return pulumi.get(self, "file_system_path") +@pulumi.output_type +class UserProfileFSxLustreFileSystemConfig(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "fileSystemId": + suggest = "file_system_id" + elif key == "fileSystemPath": + suggest = "file_system_path" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in UserProfileFSxLustreFileSystemConfig. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + UserProfileFSxLustreFileSystemConfig.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + UserProfileFSxLustreFileSystemConfig.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + file_system_id: str, + file_system_path: Optional[str] = None): + pulumi.set(__self__, "file_system_id", file_system_id) + if file_system_path is not None: + pulumi.set(__self__, "file_system_path", file_system_path) + + @property + @pulumi.getter(name="fileSystemId") + def file_system_id(self) -> str: + return pulumi.get(self, "file_system_id") + + @property + @pulumi.getter(name="fileSystemPath") + def file_system_path(self) -> Optional[str]: + return pulumi.get(self, "file_system_path") + + @pulumi.output_type class UserProfileIdleSettings(dict): @staticmethod