Generation

generate functionSat, 12 Nov 2022

Aws API call for describing codeartifact nugget package

Script var AWS = require("aws-sdk"); var credentials = new AWS.SharedIniFileCredentials({profile: 'default'}); AWS.config.credentials = credentials; var codepipeline = new AWS.CodeArtifact({apiVersion: '2018-09-22'}); var params = { domain: "string", domainOwner: "string", repository: "string", format: "string", namespace: "string", package: "string", packageVersion: "string", maxResults: 0, nextToken: "string" }; codepipeline.describePackage(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });

Questions about programming?Chat with your personal AI assistant