1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. bedrockfoundation
  6. getModelAgreementOffers
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.43.0
published on Thursday, Aug 20, 2026 by Pulumi

    Provides details about AWS Bedrock Foundation Model Agreement Offers.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = aws.bedrockfoundation.getModelAgreementOffers({
        modelId: exampleAwsBedrockFoundationModels.modelSummaries[0].modelId,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.bedrockfoundation.get_model_agreement_offers(model_id=example_aws_bedrock_foundation_models["modelSummaries"][0]["modelId"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/bedrockfoundation"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := bedrockfoundation.GetModelAgreementOffers(ctx, &bedrockfoundation.GetModelAgreementOffersArgs{
    			ModelId: exampleAwsBedrockFoundationModels.ModelSummaries[0].ModelId,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Aws.BedrockFoundation.GetModelAgreementOffers.Invoke(new()
        {
            ModelId = exampleAwsBedrockFoundationModels.ModelSummaries[0].ModelId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.bedrockfoundation.BedrockfoundationFunctions;
    import com.pulumi.aws.bedrockfoundation.inputs.GetModelAgreementOffersArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = BedrockfoundationFunctions.getModelAgreementOffers(GetModelAgreementOffersArgs.builder()
                .modelId(exampleAwsBedrockFoundationModels.modelSummaries()[0].modelId())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: aws:bedrockfoundation:getModelAgreementOffers
          arguments:
            modelId: ${exampleAwsBedrockFoundationModels.modelSummaries[0].modelId}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    data "aws_bedrockfoundation_getmodelagreementoffers" "example" {
      model_id = exampleAwsBedrockFoundationModels.modelSummaries[0].modelId
    }
    

    Using getModelAgreementOffers

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getModelAgreementOffers(args: GetModelAgreementOffersArgs, opts?: InvokeOptions): Promise<GetModelAgreementOffersResult>
    function getModelAgreementOffersOutput(args: GetModelAgreementOffersOutputArgs, opts?: InvokeOutputOptions): Output<GetModelAgreementOffersResult>
    def get_model_agreement_offers(model_id: Optional[str] = None,
                                   offer_type: Optional[str] = None,
                                   region: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetModelAgreementOffersResult
    def get_model_agreement_offers_output(model_id: pulumi.Input[Optional[str]] = None,
                                   offer_type: pulumi.Input[Optional[str]] = None,
                                   region: pulumi.Input[Optional[str]] = None,
                                   opts: Optional[InvokeOutputOptions] = None) -> Output[GetModelAgreementOffersResult]
    func GetModelAgreementOffers(ctx *Context, args *GetModelAgreementOffersArgs, opts ...InvokeOption) (*GetModelAgreementOffersResult, error)
    func GetModelAgreementOffersOutput(ctx *Context, args *GetModelAgreementOffersOutputArgs, opts ...InvokeOption) GetModelAgreementOffersResultOutput

    > Note: This function is named GetModelAgreementOffers in the Go SDK.

    public static class GetModelAgreementOffers 
    {
        public static Task<GetModelAgreementOffersResult> InvokeAsync(GetModelAgreementOffersArgs args, InvokeOptions? opts = null)
        public static Output<GetModelAgreementOffersResult> Invoke(GetModelAgreementOffersInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetModelAgreementOffersResult> Invoke(GetModelAgreementOffersInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetModelAgreementOffersResult> getModelAgreementOffers(GetModelAgreementOffersArgs args, InvokeOptions options)
    public static Output<GetModelAgreementOffersResult> getModelAgreementOffers(GetModelAgreementOffersArgs args, InvokeOptions options)
    public static Output<GetModelAgreementOffersResult> getModelAgreementOffers(GetModelAgreementOffersArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws:bedrockfoundation/getModelAgreementOffers:getModelAgreementOffers
      arguments:
        # arguments dictionary
    data "aws_bedrockfoundation_get_model_agreement_offers" "name" {
        # arguments
    }

    The following arguments are supported:

    ModelId string

    Model ID of the foundation model

    The following arguments are optional:

    OfferType string
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    ModelId string

    Model ID of the foundation model

    The following arguments are optional:

    OfferType string
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    model_id string

    Model ID of the foundation model

    The following arguments are optional:

    offer_type string
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    modelId String

    Model ID of the foundation model

    The following arguments are optional:

    offerType String
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    modelId string

    Model ID of the foundation model

    The following arguments are optional:

    offerType string
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    model_id str

    Model ID of the foundation model

    The following arguments are optional:

    offer_type str
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    modelId String

    Model ID of the foundation model

    The following arguments are optional:

    offerType String
    Type of offer associated with the model. Valid values are ALL and PUBLIC.
    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.

    getModelAgreementOffers Result

    The following output properties are available:

    ModelId string
    Offers List<GetModelAgreementOffersOffer>
    List of the offers associated with the specified model. See offers.
    Region string
    OfferType string
    ModelId string
    Offers []GetModelAgreementOffersOffer
    List of the offers associated with the specified model. See offers.
    Region string
    OfferType string
    model_id string
    offers list(object)
    List of the offers associated with the specified model. See offers.
    region string
    offer_type string
    modelId String
    offers List<GetModelAgreementOffersOffer>
    List of the offers associated with the specified model. See offers.
    region String
    offerType String
    modelId string
    offers GetModelAgreementOffersOffer[]
    List of the offers associated with the specified model. See offers.
    region string
    offerType string
    model_id str
    offers Sequence[GetModelAgreementOffersOffer]
    List of the offers associated with the specified model. See offers.
    region str
    offer_type str
    modelId String
    offers List<Property Map>
    List of the offers associated with the specified model. See offers.
    region String
    offerType String

    Supporting Types

    GetModelAgreementOffersOffer

    OfferId string
    Offer ID for a model offer.
    OfferToken string
    Offer token.
    TermDetails List<GetModelAgreementOffersOfferTermDetail>
    Details about the terms of the offer. See termDetails.
    OfferId string
    Offer ID for a model offer.
    OfferToken string
    Offer token.
    TermDetails []GetModelAgreementOffersOfferTermDetail
    Details about the terms of the offer. See termDetails.
    offer_id string
    Offer ID for a model offer.
    offer_token string
    Offer token.
    term_details list(object)
    Details about the terms of the offer. See termDetails.
    offerId String
    Offer ID for a model offer.
    offerToken String
    Offer token.
    termDetails List<GetModelAgreementOffersOfferTermDetail>
    Details about the terms of the offer. See termDetails.
    offerId string
    Offer ID for a model offer.
    offerToken string
    Offer token.
    termDetails GetModelAgreementOffersOfferTermDetail[]
    Details about the terms of the offer. See termDetails.
    offer_id str
    Offer ID for a model offer.
    offer_token str
    Offer token.
    term_details Sequence[GetModelAgreementOffersOfferTermDetail]
    Details about the terms of the offer. See termDetails.
    offerId String
    Offer ID for a model offer.
    offerToken String
    Offer token.
    termDetails List<Property Map>
    Details about the terms of the offer. See termDetails.

    GetModelAgreementOffersOfferTermDetail

    LegalTerms List<GetModelAgreementOffersOfferTermDetailLegalTerm>
    Details about the legal terms. See legalTerm.
    SupportTerms List<GetModelAgreementOffersOfferTermDetailSupportTerm>
    Details about the support terms. See supportTerm.
    UsageBasedPricingTerms List<GetModelAgreementOffersOfferTermDetailUsageBasedPricingTerm>
    Details about the pricing terms. See usageBasedPricingTerm.
    ValidityTerms List<GetModelAgreementOffersOfferTermDetailValidityTerm>
    Details about the validity terms. See validityTerm.
    LegalTerms []GetModelAgreementOffersOfferTermDetailLegalTerm
    Details about the legal terms. See legalTerm.
    SupportTerms []GetModelAgreementOffersOfferTermDetailSupportTerm
    Details about the support terms. See supportTerm.
    UsageBasedPricingTerms []GetModelAgreementOffersOfferTermDetailUsageBasedPricingTerm
    Details about the pricing terms. See usageBasedPricingTerm.
    ValidityTerms []GetModelAgreementOffersOfferTermDetailValidityTerm
    Details about the validity terms. See validityTerm.
    legal_terms list(object)
    Details about the legal terms. See legalTerm.
    support_terms list(object)
    Details about the support terms. See supportTerm.
    usage_based_pricing_terms list(object)
    Details about the pricing terms. See usageBasedPricingTerm.
    validity_terms list(object)
    Details about the validity terms. See validityTerm.
    legalTerms List<GetModelAgreementOffersOfferTermDetailLegalTerm>
    Details about the legal terms. See legalTerm.
    supportTerms List<GetModelAgreementOffersOfferTermDetailSupportTerm>
    Details about the support terms. See supportTerm.
    usageBasedPricingTerms List<GetModelAgreementOffersOfferTermDetailUsageBasedPricingTerm>
    Details about the pricing terms. See usageBasedPricingTerm.
    validityTerms List<GetModelAgreementOffersOfferTermDetailValidityTerm>
    Details about the validity terms. See validityTerm.
    legalTerms GetModelAgreementOffersOfferTermDetailLegalTerm[]
    Details about the legal terms. See legalTerm.
    supportTerms GetModelAgreementOffersOfferTermDetailSupportTerm[]
    Details about the support terms. See supportTerm.
    usageBasedPricingTerms GetModelAgreementOffersOfferTermDetailUsageBasedPricingTerm[]
    Details about the pricing terms. See usageBasedPricingTerm.
    validityTerms GetModelAgreementOffersOfferTermDetailValidityTerm[]
    Details about the validity terms. See validityTerm.
    legal_terms Sequence[GetModelAgreementOffersOfferTermDetailLegalTerm]
    Details about the legal terms. See legalTerm.
    support_terms Sequence[GetModelAgreementOffersOfferTermDetailSupportTerm]
    Details about the support terms. See supportTerm.
    usage_based_pricing_terms Sequence[GetModelAgreementOffersOfferTermDetailUsageBasedPricingTerm]
    Details about the pricing terms. See usageBasedPricingTerm.
    validity_terms Sequence[GetModelAgreementOffersOfferTermDetailValidityTerm]
    Details about the validity terms. See validityTerm.
    legalTerms List<Property Map>
    Details about the legal terms. See legalTerm.
    supportTerms List<Property Map>
    Details about the support terms. See supportTerm.
    usageBasedPricingTerms List<Property Map>
    Details about the pricing terms. See usageBasedPricingTerm.
    validityTerms List<Property Map>
    Details about the validity terms. See validityTerm.

    GetModelAgreementOffersOfferTermDetailLegalTerm

    Url string
    URL to the legal term document.
    Url string
    URL to the legal term document.
    url string
    URL to the legal term document.
    url String
    URL to the legal term document.
    url string
    URL to the legal term document.
    url str
    URL to the legal term document.
    url String
    URL to the legal term document.

    GetModelAgreementOffersOfferTermDetailSupportTerm

    RefundPolicyDescription string
    Refund policy description.
    RefundPolicyDescription string
    Refund policy description.
    refund_policy_description string
    Refund policy description.
    refundPolicyDescription String
    Refund policy description.
    refundPolicyDescription string
    Refund policy description.
    refund_policy_description str
    Refund policy description.
    refundPolicyDescription String
    Refund policy description.

    GetModelAgreementOffersOfferTermDetailUsageBasedPricingTerm

    RateCards List<GetModelAgreementOffersOfferTermDetailUsageBasedPricingTermRateCard>
    Details about a usage price for each dimension. See rateCard.
    RateCards []GetModelAgreementOffersOfferTermDetailUsageBasedPricingTermRateCard
    Details about a usage price for each dimension. See rateCard.
    rate_cards list(object)
    Details about a usage price for each dimension. See rateCard.
    rateCards List<GetModelAgreementOffersOfferTermDetailUsageBasedPricingTermRateCard>
    Details about a usage price for each dimension. See rateCard.
    rateCards GetModelAgreementOffersOfferTermDetailUsageBasedPricingTermRateCard[]
    Details about a usage price for each dimension. See rateCard.
    rate_cards Sequence[GetModelAgreementOffersOfferTermDetailUsageBasedPricingTermRateCard]
    Details about a usage price for each dimension. See rateCard.
    rateCards List<Property Map>
    Details about a usage price for each dimension. See rateCard.

    GetModelAgreementOffersOfferTermDetailUsageBasedPricingTermRateCard

    Description string
    Description of the price rate.
    Dimension string
    Dimension for the price rate.
    Price string
    Single-dimensional rate information.
    Unit string
    Unit associated with the price.
    Description string
    Description of the price rate.
    Dimension string
    Dimension for the price rate.
    Price string
    Single-dimensional rate information.
    Unit string
    Unit associated with the price.
    description string
    Description of the price rate.
    dimension string
    Dimension for the price rate.
    price string
    Single-dimensional rate information.
    unit string
    Unit associated with the price.
    description String
    Description of the price rate.
    dimension String
    Dimension for the price rate.
    price String
    Single-dimensional rate information.
    unit String
    Unit associated with the price.
    description string
    Description of the price rate.
    dimension string
    Dimension for the price rate.
    price string
    Single-dimensional rate information.
    unit string
    Unit associated with the price.
    description str
    Description of the price rate.
    dimension str
    Dimension for the price rate.
    price str
    Single-dimensional rate information.
    unit str
    Unit associated with the price.
    description String
    Description of the price rate.
    dimension String
    Dimension for the price rate.
    price String
    Single-dimensional rate information.
    unit String
    Unit associated with the price.

    GetModelAgreementOffersOfferTermDetailValidityTerm

    AgreementDuration string
    Duration of the agreement.
    AgreementDuration string
    Duration of the agreement.
    agreement_duration string
    Duration of the agreement.
    agreementDuration String
    Duration of the agreement.
    agreementDuration string
    Duration of the agreement.
    agreement_duration str
    Duration of the agreement.
    agreementDuration String
    Duration of the agreement.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo aws logo
    Viewing docs for AWS v7.43.0
    published on Thursday, Aug 20, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial