Skip to content

Added ServiceFullName to IServiceMetadata#4266

Merged
afroz429 merged 1 commit intodevelopmentfrom
v4-ps-ns-fullname
Jan 5, 2026
Merged

Added ServiceFullName to IServiceMetadata#4266
afroz429 merged 1 commit intodevelopmentfrom
v4-ps-ns-fullname

Conversation

@afroz429
Copy link
Copy Markdown
Contributor

@afroz429 afroz429 commented Jan 2, 2026

Description

This PR adds ServiceFullName property to IServiceMetadata and generates the property for all services that implement IServiceMetadata. Although IServiceMetadata is public, it is in the internal namespace.

Motivation and Context

AWS Tools for PowerShell depends on AWS .NET SDK for cmdlet generation and needs Service Full Name from the models. To automate new service generation, this property is being added to service metadata so that it can be retrieved in PowerShell.

Testing

Dry run succeeded (DRY_RUN-04db5b44-5353-4975-ae2d-fb151b9b7c6d)

Tested locally by running retrieving the ServiceFullName



$ServiceDllPath = "C:\Users\Downloads\netstandard20\build\AWSSDK.AccessAnalyzer.dll"
$core = [System.Reflection.Assembly]::LoadFrom("C:\Users\Downloads\netstandard20\build\AWSSDK.Core.dll")
$service = [System.Reflection.Assembly]::LoadFrom($ServiceDllPath)
$interface = $core.GetType("Amazon.Runtime.Internal.IServiceMetadata")
$type = $service.GetTypes() | Where-Object { $_.GetInterfaces() -contains $interface } | Select-Object -First 1
$instance = [Activator]::CreateInstance($type)
$instance.ServiceFullName

Access Analyzer

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed

License

  • I confirm that this pull request can be released under the Apache 2 license

@dscpinheiro dscpinheiro changed the base branch from main to development January 2, 2026 18:18
@afroz429 afroz429 merged commit 73b2908 into development Jan 5, 2026
5 of 6 checks passed
@afroz429 afroz429 deleted the v4-ps-ns-fullname branch January 5, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants