AgreementService / Client / describe_agreement

describe_agreement#

AgreementService.Client.describe_agreement(**kwargs)#

Provides details about an agreement, such as the proposer, acceptor, start date, and end date.

See also: AWS API Documentation

Request Syntax

response = client.describe_agreement(
    agreementId='string'
)
Parameters:

agreementId (string) –

[REQUIRED]

The unique identifier of the agreement.

Return type:

dict

Returns:

Response Syntax

{
    'acceptanceTime': datetime(2015, 1, 1),
    'acceptor': {
        'accountId': 'string'
    },
    'agreementId': 'string',
    'agreementType': 'string',
    'endTime': datetime(2015, 1, 1),
    'estimatedCharges': {
        'agreementValue': 'string',
        'currencyCode': 'string'
    },
    'proposalSummary': {
        'offerId': 'string',
        'resources': [
            {
                'id': 'string',
                'type': 'string'
            },
        ]
    },
    'proposer': {
        'accountId': 'string'
    },
    'startTime': datetime(2015, 1, 1),
    'status': 'ACTIVE'|'ARCHIVED'|'CANCELLED'|'EXPIRED'|'RENEWED'|'REPLACED'|'ROLLED_BACK'|'SUPERSEDED'|'TERMINATED'
}

Response Structure

  • (dict) –

    • acceptanceTime (datetime) –

      The date and time the offer was accepted or the agreement was created.

      Note

      AcceptanceTime and StartTime can differ for future dated agreements (FDAs).

    • acceptor (dict) –

      The details of the party accepting the agreement terms. This is commonly the buyer for PurchaseAgreement.

      • accountId (string) –

        The AWS account ID of the acceptor.

    • agreementId (string) –

      The unique identifier of the agreement.

    • agreementType (string) –

      The type of agreement. Values are PurchaseAgreement or VendorInsightsAgreement.

    • endTime (datetime) –

      The date and time when the agreement ends. The field is null for pay-as-you-go agreements, which don’t have end dates.

    • estimatedCharges (dict) –

      The estimated cost of the agreement.

      • agreementValue (string) –

        The total known amount customer has to pay across the lifecycle of the agreement.

        Note

        This is the total contract value if accepted terms contain ConfigurableUpfrontPricingTerm or FixedUpfrontPricingTerm. In the case of pure contract pricing, this will be the total value of the contract. In the case of contracts with consumption pricing, this will only include the committed value and not include any overages that occur.

        If the accepted terms contain PaymentScheduleTerm, it will be the total payment schedule amount. This occurs when flexible payment schedule is used, and is the sum of all invoice charges in the payment schedule.

        In case a customer has amended an agreement, by purchasing more units of any dimension, this will include both the original cost as well as the added cost incurred due to addition of new units.

        This is 0 if the accepted terms contain UsageBasedPricingTerm without ConfigurableUpfrontPricingTerm or RecurringPaymentTerm. This occurs for usage-based pricing (such as SaaS metered or AMI/container hourly or monthly), because the exact usage is not known upfront.

      • currencyCode (string) –

        Defines the currency code for the charge.

    • proposalSummary (dict) –

      A summary of the proposal received from the proposer.

      • offerId (string) –

        The unique identifier of the offer in AWS Marketplace.

      • resources (list) –

        The list of resources involved in the agreement.

        • (dict) –

          The list of resources involved in the agreement.

          • id (string) –

            The unique identifier of the resource.

            Note

            We mention the term resource, which is most commonly a product, so a resourceId is also a productId.

          • type (string) –

            Type of the resource, which is the product. Values include SaaSProduct or AmiProduct.

    • proposer (dict) –

      The details of the party proposing the agreement terms. This is commonly the seller for PurchaseAgreement.

      • accountId (string) –

        The AWS account ID of the proposer.

    • startTime (datetime) –

      The date and time when the agreement starts.

    • status (string) –

      The current status of the agreement.

      Statuses include:

      • ACTIVE – The terms of the agreement are active.

      • ARCHIVED – The agreement ended without a specified reason.

      • CANCELLED – The acceptor ended the agreement before the defined end date.

      • EXPIRED – The agreement ended on the defined end date.

      • RENEWED – The agreement was renewed into a new agreement (for example, an auto-renewal).

      • REPLACED – The agreement was replaced using an agreement replacement offer.

      • ROLLED_BACK (Only applicable to inactive agreement revisions) – The agreement revision has been rolled back because of an error. An earlier revision is now active.

      • SUPERCEDED (Only applicable to inactive agreement revisions) – The agreement revision is no longer active and another agreement revision is now active.

      • TERMINATED – The agreement ended before the defined end date because of an AWS termination (for example, a payment failure).

Exceptions

  • AgreementService.Client.exceptions.ValidationException

  • AgreementService.Client.exceptions.AccessDeniedException

  • AgreementService.Client.exceptions.ThrottlingException

  • AgreementService.Client.exceptions.ResourceNotFoundException

  • AgreementService.Client.exceptions.InternalServerException