GetPackageExamplesResponse
Code examples aggregated across a package’s resources and functions. Each example carries its own ’token’ and ‘kind’, filtered by ‘q’ and capped by ’limit’.
Properties
versionstring requiredResolved semantic version.navUrlstring requiredPath to the package navigation endpoint.languagestring requiredResolved snippet language.- Examples sorted by token, then by position within each token. Capped at ’limit'.
- ↳
idstring requiredStable identifier within the package version. Format: ‘# ’, where slug is the kebab-case title (e.g. ‘aws:ec2/instance:Instance#account-analyzer’), falling back to ’example- ’ when there is no heading. Duplicates within the same token are suffixed ‘-2’, ‘-3’, etc. - ↳
titlestring requiredTitle derived from the surrounding heading or caption. Capped at 120 chars. Empty when none was available; rely on ‘id’ for addressability. - ↳
codestring requiredExample source code in the resolved language. - ↳
tokenstring requiredPulumi token this example belongs to. - ↳
kindstring requiredWhether ’token’ is a ‘resource’ or ‘function’. totalCountinteger requiredTotal examples matching the query before ’limit’ was applied.
Thank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.