Resource methods
Provider SDKs may also include methods attached to a resource type. These methods return computed values from resources you are managing with Pulumi. For example, in the EKS SDK, the Cluster resource has a .GetKubeconfig method:
typescript
getKubeconfig(args?: Cluster.GetKubeconfigArgs): Output<Cluster.GetKubeconfigResult>Unlike provider functions, methods always appear in the output form: they take Input arguments, and return an Output (because they cannot execute until after the resource has been created). Resource methods do not accept invoke options.